2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
5 # Report bugs to <http://bugs.freeradius.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: http://bugs.freeradius.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
581 PACKAGE_NAME='freeradius'
582 PACKAGE_TARNAME='freeradius'
583 PACKAGE_VERSION='$Id$'
584 PACKAGE_STRING='freeradius $Id$'
585 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
586 PACKAGE_URL='http://www.freeradius.org'
588 ac_unique_file="src/main/radiusd.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 enable_option_checking=no
626 ac_subst_vars='LTLIBOBJS
694 RADIUSD_VERSION_STRING
722 program_transform_name
735 enable_option_checking
738 enable_strict_dependencies
753 with_experimental_modules
756 with_rlm_FOO_include_dir
759 with_openssl_include_dir
761 with_talloc_include_dir
763 with_pcap_include_dir
764 with_collectdclient_lib_dir
765 with_collectdclient_include_dir
766 with_execinfo_lib_dir
767 with_execinfo_include_dir
769 with_pcre_include_dir
771 ac_precious_vars='build_alias
783 ac_subdirs_all='$mysubdirs'
785 # Initialize some variables set by options.
787 ac_init_version=false
788 ac_unrecognized_opts=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
799 program_transform_name=s,x,x,
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 # Accept the important Cygnus configure options, so we can diagnose typos.
852 case $ac_dashdash$ac_option in
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
874 cache_file=config.cache ;;
876 -datadir | --datadir | --datadi | --datad)
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
902 eval enable_$ac_useropt=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
928 eval enable_$ac_useropt=\$ac_optarg ;;
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
943 -help | --help | --hel | --he | -h)
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 htmldir=$ac_optarg ;;
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
973 -libdir | --libdir | --libdi | --libd)
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
985 -localedir | --localedir | --localedi | --localed | --locale)
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1064 -psdir | --psdir | --psdi | --psd | --ps)
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 sbindir=$ac_optarg ;;
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 sharedstatedir=$ac_optarg ;;
1090 -site | --site | --sit)
1092 -site=* | --site=* | --sit=*)
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1132 eval with_$ac_useropt=\$ac_optarg ;;
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1148 eval with_$ac_useropt=no ;;
1151 # Obsolete; use --with-x.
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $? "missing argument to $ac_option"
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1219 # Be sure to have absolute directory names.
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 elif test "x$build_alias" != "x$host_alias"; then
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246 test "$silent" = yes && exec 6>/dev/null
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1289 ac_srcdir_defaulted=no
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1323 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1387 if test -n "$ac_init_help"; then
1388 case $ac_init_help in
1389 short | recursive ) echo "Configuration of freeradius $Id$:";;
1394 --disable-option-checking ignore unrecognized --enable/--with options
1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1397 --enable-developer enables features of interest to developers.
1398 --disable-largefile omit support for large files
1399 --enable-strict-dependencies fail configure on lack of module dependancy.
1400 --enable-werror causes the build to fail if any warnings are generated.
1403 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1404 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1405 --with-docdir=DIR directory for documentation DATADIR/doc/freeradius
1406 --with-logdir=DIR directory for logfiles LOCALSTATEDIR/log/radius
1407 --with-radacctdir=DIR directory for detail files LOGDIR/radacct
1408 --with-raddbdir=DIR directory for config files SYSCONFDIR/raddb
1409 --with-dictdir=DIR directory for dictionary files DATAROOTDIR/freeradius
1410 --with-ascend-binary include support for Ascend binary filter attributes (default=yes)
1411 --with-threads use threads, if available. (default=yes)
1412 --with-tcp compile in TCP support. (default=yes)
1413 --with-vmps compile in VMPS support. (default=yes)
1414 --with-dhcp compile in DHCP support. (default=yes)
1415 --with-static-modules=QUOTED-MODULE-LIST
1416 --with-shared-libs build dynamic libraries and link against them.
1418 --with-modules=QUOTED-MODULE-LIST
1419 --with-experimental-modules
1420 use experimental and unstable modules. (default=no,
1421 unless --enable-developer=yes)
1422 --with-udpfromto compile in UDPFROMTO support. (default=yes)
1423 --with-rlm-FOO-lib-dir=DIR
1424 directory in which to look for library files used by
1426 --with-rlm-FOO-include-dir=DIR
1427 directory in which to look for include files used by
1429 --with-openssl use OpenSSL. (default=yes)
1430 --with-openssl-lib-dir=DIR
1431 directory to look for OpenSSL library files
1432 --with-openssl-include-dir=DIR
1433 directory to look for OpenSSL include files
1434 --with-talloc-lib-dir=DIR
1435 directory in which to look for talloc library files
1436 --with-talloc-include-dir=DIR
1437 directory in which to look for talloc include files
1438 --with-pcap-lib-dir=DIR directory in which to look for pcap library files
1439 --with-pcap-include-dir=DIR
1440 directory in which to look for pcap include files
1441 --with-collectdclient-lib-dir=DIR
1442 directory in which to look for collectdclient
1444 --with-collectdclient-include-dir=DIR
1445 directory in which to look for collectdclient
1447 --with-execinfo-lib-dir=DIR
1448 directory in which to look for execinfo library
1450 --with-execinfo-include-dir=DIR
1451 directory in which to look for execinfo include
1453 --with-pcre-lib-dir=DIR directory in which to look for pcre library files
1454 --with-pcre-include-dir=DIR
1455 directory in which to look for pcre include files
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 Report bugs to <http://bugs.freeradius.org>.
1473 freeradius home page: <http://www.freeradius.org>.
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1503 .) # We are building in place.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 freeradius configure $Id$
1537 generated by GNU Autoconf 2.69
1539 Copyright (C) 2012 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile ()
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext
1557 if { { ac_try="$ac_compile"
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1586 } # ac_fn_c_try_compile
1588 # ac_fn_cxx_try_compile LINENO
1589 # ----------------------------
1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_cxx_try_compile ()
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext
1595 if { { ac_try="$ac_compile"
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_compile") 2>conftest.err
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_cxx_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest.$ac_objext; then :
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1624 } # ac_fn_cxx_try_compile
1626 # ac_fn_c_try_cpp LINENO
1627 # ----------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } > conftest.i && {
1648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1663 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1666 # the include files in INCLUDES and setting the cache variable VAR
1668 ac_fn_c_check_header_mongrel ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if eval \${$3+:} false; then :
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1681 # Is the header compilable?
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1683 $as_echo_n "checking $2 usability... " >&6; }
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1689 if ac_fn_c_try_compile "$LINENO"; then :
1690 ac_header_compiler=yes
1692 ac_header_compiler=no
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1696 $as_echo "$ac_header_compiler" >&6; }
1698 # Is the header present?
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1700 $as_echo_n "checking $2 presence... " >&6; }
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1705 if ac_fn_c_try_cpp "$LINENO"; then :
1706 ac_header_preproc=yes
1708 ac_header_preproc=no
1710 rm -f conftest.err conftest.i conftest.$ac_ext
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1712 $as_echo "$ac_header_preproc" >&6; }
1714 # So? What about this header?
1715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1718 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1724 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1726 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1728 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1730 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 ( $as_echo "## ----------------------------------------- ##
1734 ## Report this to http://bugs.freeradius.org ##
1735 ## ----------------------------------------- ##"
1736 ) | sed "s/^/$as_me: WARNING: /" >&2
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742 $as_echo_n "(cached) " >&6
1744 eval "$3=\$ac_header_compiler"
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 } # ac_fn_c_check_header_mongrel
1754 # ac_fn_c_try_run LINENO
1755 # ----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757 # that executables *can* be run.
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_link"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>&5
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772 { { case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_try") 2>&5
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; }; }; then :
1784 $as_echo "$as_me: program exited with status $ac_status" >&5
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1788 ac_retval=$ac_status
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1813 if ac_fn_c_try_compile "$LINENO"; then :
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 } # ac_fn_c_check_header_compile
1827 # ac_fn_c_try_link LINENO
1828 # -----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest$ac_exeext && {
1853 test "$cross_compiling" = yes ||
1854 test -x conftest$ac_exeext
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1871 } # ac_fn_c_try_link
1873 # ac_fn_c_check_func LINENO FUNC VAR
1874 # ----------------------------------
1875 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1876 ac_fn_c_check_func ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1888 #define $2 innocuous_$2
1890 /* System header to define __stub macros and hopefully few prototypes,
1891 which can conflict with char $2 (); below.
1892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1893 <limits.h> exists even on freestanding compilers. */
1896 # include <limits.h>
1898 # include <assert.h>
1903 /* Override any GCC internal prototype to avoid an error.
1904 Use char because int might match the return type of a GCC
1905 builtin and then its argument prototype would still apply. */
1910 /* The GNU C library defines this for functions which it implements
1911 to always fail with ENOSYS. Some functions are actually named
1912 something starting with __ and the normal name is an alias. */
1913 #if defined __stub_$2 || defined __stub___$2
1925 if ac_fn_c_try_link "$LINENO"; then :
1930 rm -f core conftest.err conftest.$ac_objext \
1931 conftest$ac_exeext conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 } # ac_fn_c_check_func
1940 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1941 # -------------------------------------------
1942 # Tests whether TYPE exists after having included INCLUDES, setting cache
1943 # variable VAR accordingly.
1944 ac_fn_c_check_type ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1978 if ac_fn_c_try_compile "$LINENO"; then :
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 } # ac_fn_c_check_type
1994 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1995 # ---------------------------------------------
1996 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1998 ac_fn_c_check_decl ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 as_decl_name=`echo $2|sed 's/ *(.*//'`
2002 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2004 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2005 if eval \${$3+:} false; then :
2006 $as_echo_n "(cached) " >&6
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2014 #ifndef $as_decl_name
2016 (void) $as_decl_use;
2018 (void) $as_decl_name;
2026 if ac_fn_c_try_compile "$LINENO"; then :
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 } # ac_fn_c_check_decl
2039 cat >config.log <<_ACEOF
2040 This file contains any messages produced by compilers while
2041 running configure, to aid debugging if configure makes a mistake.
2043 It was created by freeradius $as_me $Id$, which was
2044 generated by GNU Autoconf 2.69. Invocation command line was
2056 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2057 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2058 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2059 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2060 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2062 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2063 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2065 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2066 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2067 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2068 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2069 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2070 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2071 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 test -z "$as_dir" && as_dir=.
2080 $as_echo "PATH: $as_dir"
2096 # Keep a trace of the command line.
2097 # Strip out --no-create and --no-recursion so they do not pile up.
2098 # Strip out --silent because we don't want to record it for future runs.
2099 # Also quote any args containing shell meta-characters.
2100 # Make two passes to allow for proper duplicate-argument suppression.
2104 ac_must_keep_next=false
2110 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2112 | -silent | --silent | --silen | --sile | --sil)
2115 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2118 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2120 as_fn_append ac_configure_args1 " '$ac_arg'"
2121 if test $ac_must_keep_next = true; then
2122 ac_must_keep_next=false # Got value, back to normal.
2125 *=* | --config-cache | -C | -disable-* | --disable-* \
2126 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2127 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2128 | -with-* | --with-* | -without-* | --without-* | --x)
2129 case "$ac_configure_args0 " in
2130 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2133 -* ) ac_must_keep_next=true ;;
2136 as_fn_append ac_configure_args " '$ac_arg'"
2141 { ac_configure_args0=; unset ac_configure_args0;}
2142 { ac_configure_args1=; unset ac_configure_args1;}
2144 # When interrupted or exit'd, cleanup temporary files, and complete
2145 # config.log. We remove comments because anyway the quotes in there
2146 # would cause problems or look ugly.
2147 # WARNING: Use '\'' to represent an apostrophe within the trap.
2148 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2149 trap 'exit_status=$?
2150 # Save into config.log some information that might help in debugging.
2154 $as_echo "## ---------------- ##
2155 ## Cache variables. ##
2156 ## ---------------- ##"
2158 # The following way of writing the cache mishandles newlines in values,
2160 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2161 eval ac_val=\$$ac_var
2165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2166 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2169 _ | IFS | as_nl) ;; #(
2170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2171 *) { eval $ac_var=; unset $ac_var;} ;;
2176 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2177 *${as_nl}ac_space=\ *)
2179 "s/'\''/'\''\\\\'\'''\''/g;
2180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2183 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2190 $as_echo "## ----------------- ##
2191 ## Output variables. ##
2192 ## ----------------- ##"
2194 for ac_var in $ac_subst_vars
2196 eval ac_val=\$$ac_var
2198 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200 $as_echo "$ac_var='\''$ac_val'\''"
2204 if test -n "$ac_subst_files"; then
2205 $as_echo "## ------------------- ##
2206 ## File substitutions. ##
2207 ## ------------------- ##"
2209 for ac_var in $ac_subst_files
2211 eval ac_val=\$$ac_var
2213 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215 $as_echo "$ac_var='\''$ac_val'\''"
2220 if test -s confdefs.h; then
2221 $as_echo "## ----------- ##
2228 test "$ac_signal" != 0 &&
2229 $as_echo "$as_me: caught signal $ac_signal"
2230 $as_echo "$as_me: exit $exit_status"
2232 rm -f core *.core core.conftest.* &&
2233 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2236 for ac_signal in 1 2 13 15; do
2237 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2242 rm -f -r conftest* confdefs.h
2244 $as_echo "/* confdefs.h */" > confdefs.h
2246 # Predefined preprocessor variables.
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_NAME "$PACKAGE_NAME"
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_STRING "$PACKAGE_STRING"
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_URL "$PACKAGE_URL"
2273 # Let the site file select an alternate cache file if it wants to.
2274 # Prefer an explicitly selected file to automatically selected ones.
2277 if test -n "$CONFIG_SITE"; then
2278 # We do not want a PATH search for config.site.
2279 case $CONFIG_SITE in #((
2280 -*) ac_site_file1=./$CONFIG_SITE;;
2281 */*) ac_site_file1=$CONFIG_SITE;;
2282 *) ac_site_file1=./$CONFIG_SITE;;
2284 elif test "x$prefix" != xNONE; then
2285 ac_site_file1=$prefix/share/config.site
2286 ac_site_file2=$prefix/etc/config.site
2288 ac_site_file1=$ac_default_prefix/share/config.site
2289 ac_site_file2=$ac_default_prefix/etc/config.site
2291 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2293 test "x$ac_site_file" = xNONE && continue
2294 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2296 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2297 sed 's/^/| /' "$ac_site_file" >&5
2299 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301 as_fn_error $? "failed to load site script $ac_site_file
2302 See \`config.log' for more details" "$LINENO" 5; }
2306 if test -r "$cache_file"; then
2307 # Some versions of bash will fail to source /dev/null (special files
2308 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2309 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2311 $as_echo "$as_me: loading cache $cache_file" >&6;}
2313 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2314 *) . "./$cache_file";;
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2319 $as_echo "$as_me: creating cache $cache_file" >&6;}
2323 # Check that the precious variables saved in the cache have kept the same
2325 ac_cache_corrupted=false
2326 for ac_var in $ac_precious_vars; do
2327 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2328 eval ac_new_set=\$ac_env_${ac_var}_set
2329 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2330 eval ac_new_val=\$ac_env_${ac_var}_value
2331 case $ac_old_set,$ac_new_set in
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2334 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2335 ac_cache_corrupted=: ;;
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2338 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2339 ac_cache_corrupted=: ;;
2342 if test "x$ac_old_val" != "x$ac_new_val"; then
2343 # differences in whitespace do not lead to failure.
2344 ac_old_val_w=`echo x $ac_old_val`
2345 ac_new_val_w=`echo x $ac_new_val`
2346 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2348 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2349 ac_cache_corrupted=:
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2352 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2353 eval $ac_var=\$ac_old_val
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2356 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2358 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2361 # Pass precious variables to config.status.
2362 if test "$ac_new_set" = set; then
2364 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2365 *) ac_arg=$ac_var=$ac_new_val ;;
2367 case " $ac_configure_args " in
2368 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2369 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2373 if $ac_cache_corrupted; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2377 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2378 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2380 ## -------------------- ##
2381 ## Main body of script. ##
2382 ## -------------------- ##
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2405 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2406 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2407 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2409 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2410 -v minor="$RADIUSD_MINOR_VERSION" \
2411 -v incrm="$RADIUSD_INCRM_VERSION" \
2412 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2414 RADIUSD_VERSION_STRING=`cat VERSION`
2419 cat >>confdefs.h <<_ACEOF
2420 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2424 cat >>confdefs.h <<_ACEOF
2425 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2430 # Check whether --enable-developer was given.
2431 if test "${enable_developer+set}" = set; then :
2432 enableval=$enable_developer; case "$enableval" in
2443 if test -d $srcdir/.git; then
2444 if test "x$developer" != "xno"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2446 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2451 if test "x$developer" = "xyes"; then
2457 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2458 if test -f "$ac_dir/install-sh"; then
2460 ac_install_sh="$ac_aux_dir/install-sh -c"
2462 elif test -f "$ac_dir/install.sh"; then
2464 ac_install_sh="$ac_aux_dir/install.sh -c"
2466 elif test -f "$ac_dir/shtool"; then
2468 ac_install_sh="$ac_aux_dir/shtool install -c"
2472 if test -z "$ac_aux_dir"; then
2473 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2476 # These three variables are undocumented and unsupported,
2477 # and are intended to be withdrawn in a future Autoconf release.
2478 # They can cause serious problems if a builder's source tree is in a directory
2479 # whose full name contains unusual characters.
2480 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2481 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2482 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2485 # Make sure we can run config.sub.
2486 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2487 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2490 $as_echo_n "checking build system type... " >&6; }
2491 if ${ac_cv_build+:} false; then :
2492 $as_echo_n "(cached) " >&6
2494 ac_build_alias=$build_alias
2495 test "x$ac_build_alias" = x &&
2496 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2497 test "x$ac_build_alias" = x &&
2498 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2499 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2500 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2504 $as_echo "$ac_cv_build" >&6; }
2505 case $ac_cv_build in
2507 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2510 ac_save_IFS=$IFS; IFS='-'
2516 # Remember, the first character of IFS is used to create $*,
2517 # except with old shells:
2520 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2524 $as_echo_n "checking host system type... " >&6; }
2525 if ${ac_cv_host+:} false; then :
2526 $as_echo_n "(cached) " >&6
2528 if test "x$host_alias" = x; then
2529 ac_cv_host=$ac_cv_build
2531 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2532 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2537 $as_echo "$ac_cv_host" >&6; }
2540 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2543 ac_save_IFS=$IFS; IFS='-'
2549 # Remember, the first character of IFS is used to create $*,
2550 # except with old shells:
2553 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2557 $as_echo_n "checking target system type... " >&6; }
2558 if ${ac_cv_target+:} false; then :
2559 $as_echo_n "(cached) " >&6
2561 if test "x$target_alias" = x; then
2562 ac_cv_target=$ac_cv_host
2564 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2565 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2570 $as_echo "$ac_cv_target" >&6; }
2571 case $ac_cv_target in
2573 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2575 target=$ac_cv_target
2576 ac_save_IFS=$IFS; IFS='-'
2582 # Remember, the first character of IFS is used to create $*,
2583 # except with old shells:
2586 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2589 # The aliases save the names the user supplied, while $host etc.
2590 # will get canonicalized.
2591 test -n "$target_alias" &&
2592 test "$program_prefix$program_suffix$program_transform_name" = \
2594 program_prefix=${target_alias}-
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 if test -n "$ac_tool_prefix"; then
2603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if ${ac_cv_prog_CC+:} false; then :
2608 $as_echo_n "(cached) " >&6
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 if test -n "$CC"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2633 $as_echo "$CC" >&6; }
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2641 if test -z "$ac_cv_prog_CC"; then
2643 # Extract the first word of "gcc", so it can be a program name with args.
2644 set dummy gcc; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2648 $as_echo_n "(cached) " >&6
2650 if test -n "$ac_ct_CC"; then
2651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 ac_cv_prog_ac_ct_CC="gcc"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671 if test -n "$ac_ct_CC"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2673 $as_echo "$ac_ct_CC" >&6; }
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2679 if test "x$ac_ct_CC" = x; then
2682 case $cross_compiling:$ac_tool_warned in
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2686 ac_tool_warned=yes ;;
2694 if test -z "$CC"; then
2695 if test -n "$ac_tool_prefix"; then
2696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2697 set dummy ${ac_tool_prefix}cc; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_CC+:} false; then :
2701 $as_echo_n "(cached) " >&6
2703 if test -n "$CC"; then
2704 ac_cv_prog_CC="$CC" # Let the user override the test.
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713 ac_cv_prog_CC="${ac_tool_prefix}cc"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 if test -n "$CC"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726 $as_echo "$CC" >&6; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2735 if test -z "$CC"; then
2736 # Extract the first word of "cc", so it can be a program name with args.
2737 set dummy cc; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if ${ac_cv_prog_CC+:} false; then :
2741 $as_echo_n "(cached) " >&6
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2755 ac_prog_rejected=yes
2759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 if test $ac_prog_rejected = yes; then
2767 # We found a bogon in the path, so make sure we never use it.
2768 set dummy $ac_cv_prog_CC
2770 if test $# != 0; then
2771 # We chose a different compiler from the bogus one.
2772 # However, it has the same basename, so the bogon will be chosen
2773 # first if we set CC to just the basename; use the full file name.
2775 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2781 if test -n "$CC"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2783 $as_echo "$CC" >&6; }
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2791 if test -z "$CC"; then
2792 if test -n "$ac_tool_prefix"; then
2793 for ac_prog in cl.exe
2795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_CC+:} false; then :
2800 $as_echo_n "(cached) " >&6
2802 if test -n "$CC"; then
2803 ac_cv_prog_CC="$CC" # Let the user override the test.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 if test -n "$CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825 $as_echo "$CC" >&6; }
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2832 test -n "$CC" && break
2835 if test -z "$CC"; then
2837 for ac_prog in cl.exe
2839 # Extract the first word of "$ac_prog", so it can be a program name with args.
2840 set dummy $ac_prog; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2844 $as_echo_n "(cached) " >&6
2846 if test -n "$ac_ct_CC"; then
2847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_ac_ct_CC="$ac_prog"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867 if test -n "$ac_ct_CC"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2869 $as_echo "$ac_ct_CC" >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2876 test -n "$ac_ct_CC" && break
2879 if test "x$ac_ct_CC" = x; then
2882 case $cross_compiling:$ac_tool_warned in
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2886 ac_tool_warned=yes ;;
2895 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2897 as_fn_error $? "no acceptable C compiler found in \$PATH
2898 See \`config.log' for more details" "$LINENO" 5; }
2900 # Provide some information about the compiler.
2901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2904 for ac_option in --version -v -V -qversion; do
2905 { { ac_try="$ac_compiler $ac_option >&5"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2911 $as_echo "$ac_try_echo"; } >&5
2912 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2914 if test -s conftest.err; then
2916 ... rest of stderr output deleted ...
2917 10q' conftest.err >conftest.er1
2918 cat conftest.er1 >&5
2920 rm -f conftest.er1 conftest.err
2921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922 test $ac_status = 0; }
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2936 ac_clean_files_save=$ac_clean_files
2937 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2938 # Try to create an executable without -o first, disregard a.out.
2939 # It will help us diagnose broken compilers, and finding out an intuition
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2942 $as_echo_n "checking whether the C compiler works... " >&6; }
2943 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2945 # The possible output files:
2946 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2949 for ac_file in $ac_files
2952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2953 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2958 if { { ac_try="$ac_link_default"
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964 $as_echo "$ac_try_echo"; } >&5
2965 (eval "$ac_link_default") 2>&5
2967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968 test $ac_status = 0; }; then :
2969 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2970 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2971 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2972 # so that the user can short-circuit this test for compilers unknown to
2974 for ac_file in $ac_files ''
2976 test -f "$ac_file" || continue
2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2981 # We found the default executable, but exeext='' is most
2985 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2989 # We set ac_cv_exeext here because the later test for it is not
2990 # safe: cross compilers may not add the suffix if given an `-o'
2991 # argument, so we may need to know it at that point already.
2992 # Even if this section looks crufty: it has the advantage of
2999 test "$ac_cv_exeext" = no && ac_cv_exeext=
3004 if test -z "$ac_file"; then :
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 $as_echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012 as_fn_error 77 "C compiler cannot create executables
3013 See \`config.log' for more details" "$LINENO" 5; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3016 $as_echo "yes" >&6; }
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3019 $as_echo_n "checking for C compiler default output file name... " >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3021 $as_echo "$ac_file" >&6; }
3022 ac_exeext=$ac_cv_exeext
3024 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3025 ac_clean_files=$ac_clean_files_save
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3027 $as_echo_n "checking for suffix of executables... " >&6; }
3028 if { { ac_try="$ac_link"
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_link") 2>&5
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }; then :
3039 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3040 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3041 # work properly (i.e., refer to `conftest.exe'), while it won't with
3043 for ac_file in conftest.exe conftest conftest.*; do
3044 test -f "$ac_file" || continue
3046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3047 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3056 See \`config.log' for more details" "$LINENO" 5; }
3058 rm -f conftest conftest$ac_cv_exeext
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3060 $as_echo "$ac_cv_exeext" >&6; }
3062 rm -f conftest.$ac_ext
3063 EXEEXT=$ac_cv_exeext
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3071 FILE *f = fopen ("conftest.out", "w");
3072 return ferror (f) || fclose (f) != 0;
3078 ac_clean_files="$ac_clean_files conftest.out"
3079 # Check that the compiler produces executables we can run. If not, either
3080 # the compiler is broken, or we cross compile.
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3082 $as_echo_n "checking whether we are cross compiling... " >&6; }
3083 if test "$cross_compiling" != yes; then
3084 { { ac_try="$ac_link"
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_link") 2>&5
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }
3095 if { ac_try='./conftest$ac_cv_exeext'
3096 { { case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102 (eval "$ac_try") 2>&5
3104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105 test $ac_status = 0; }; }; then
3108 if test "$cross_compiling" = maybe; then
3111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113 as_fn_error $? "cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details" "$LINENO" 5; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3120 $as_echo "$cross_compiling" >&6; }
3122 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3123 ac_clean_files=$ac_clean_files_save
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3125 $as_echo_n "checking for suffix of object files... " >&6; }
3126 if ${ac_cv_objext+:} false; then :
3127 $as_echo_n "(cached) " >&6
3129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130 /* end confdefs.h. */
3140 rm -f conftest.o conftest.obj
3141 if { { ac_try="$ac_compile"
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147 $as_echo "$ac_try_echo"; } >&5
3148 (eval "$ac_compile") 2>&5
3150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3151 test $ac_status = 0; }; then :
3152 for ac_file in conftest.o conftest.obj conftest.*; do
3153 test -f "$ac_file" || continue;
3155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3156 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3161 $as_echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error $? "cannot compute suffix of object files: cannot compile
3167 See \`config.log' for more details" "$LINENO" 5; }
3169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3172 $as_echo "$ac_cv_objext" >&6; }
3173 OBJEXT=$ac_cv_objext
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3176 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3177 if ${ac_cv_c_compiler_gnu+:} false; then :
3178 $as_echo_n "(cached) " >&6
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h. */
3194 if ac_fn_c_try_compile "$LINENO"; then :
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3204 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3205 if test $ac_compiler_gnu = yes; then
3210 ac_test_CFLAGS=${CFLAGS+set}
3211 ac_save_CFLAGS=$CFLAGS
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3213 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3214 if ${ac_cv_prog_cc_g+:} false; then :
3215 $as_echo_n "(cached) " >&6
3217 ac_save_c_werror_flag=$ac_c_werror_flag
3218 ac_c_werror_flag=yes
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3232 if ac_fn_c_try_compile "$LINENO"; then :
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3247 if ac_fn_c_try_compile "$LINENO"; then :
3250 ac_c_werror_flag=$ac_save_c_werror_flag
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3263 if ac_fn_c_try_compile "$LINENO"; then :
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 ac_c_werror_flag=$ac_save_c_werror_flag
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3274 $as_echo "$ac_cv_prog_cc_g" >&6; }
3275 if test "$ac_test_CFLAGS" = set; then
3276 CFLAGS=$ac_save_CFLAGS
3277 elif test $ac_cv_prog_cc_g = yes; then
3278 if test "$GCC" = yes; then
3284 if test "$GCC" = yes; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3291 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3292 if ${ac_cv_prog_cc_c89+:} false; then :
3293 $as_echo_n "(cached) " >&6
3295 ac_cv_prog_cc_c89=no
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3303 struct buf { int x; };
3304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3305 static char *e (p, i)
3311 static char *f (char * (*g) (char **, int), char **p, ...)
3316 s = g (p, va_arg (v,int));
3321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3322 function prototypes and stuff, but not '\xHH' hex character constants.
3323 These don't provoke an error unfortunately, instead are silently treated
3324 as 'x'. The following induces an error, until -std is added to get
3325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3326 array size at least. It's necessary to write '\x00'==0 to get something
3327 that's true only with -std. */
3328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3330 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3331 inside strings and character constants. */
3333 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3335 int test (int i, double x);
3336 struct s1 {int (*f) (int a);};
3337 struct s2 {int (*f) (double a);};
3338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3344 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3349 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3350 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3352 CC="$ac_save_CC $ac_arg"
3353 if ac_fn_c_try_compile "$LINENO"; then :
3354 ac_cv_prog_cc_c89=$ac_arg
3356 rm -f core conftest.err conftest.$ac_objext
3357 test "x$ac_cv_prog_cc_c89" != "xno" && break
3359 rm -f conftest.$ac_ext
3364 case "x$ac_cv_prog_cc_c89" in
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3367 $as_echo "none needed" >&6; } ;;
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3370 $as_echo "unsupported" >&6; } ;;
3372 CC="$CC $ac_cv_prog_cc_c89"
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3374 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3376 if test "x$ac_cv_prog_cc_c89" != xno; then :
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 ac_cpp='$CXXCPP $CPPFLAGS'
3388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3391 if test -z "$CXX"; then
3392 if test -n "$CCC"; then
3395 if test -n "$ac_tool_prefix"; then
3396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if ${ac_cv_prog_CXX+:} false; then :
3403 $as_echo_n "(cached) " >&6
3405 if test -n "$CXX"; then
3406 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 if test -n "$CXX"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3428 $as_echo "$CXX" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3435 test -n "$CXX" && break
3438 if test -z "$CXX"; then
3440 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3442 # Extract the first word of "$ac_prog", so it can be a program name with args.
3443 set dummy $ac_prog; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3447 $as_echo_n "(cached) " >&6
3449 if test -n "$ac_ct_CXX"; then
3450 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_ac_ct_CXX="$ac_prog"
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3470 if test -n "$ac_ct_CXX"; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3472 $as_echo "$ac_ct_CXX" >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3479 test -n "$ac_ct_CXX" && break
3482 if test "x$ac_ct_CXX" = x; then
3485 case $cross_compiling:$ac_tool_warned in
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3489 ac_tool_warned=yes ;;
3497 # Provide some information about the compiler.
3498 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3501 for ac_option in --version -v -V -qversion; do
3502 { { ac_try="$ac_compiler $ac_option >&5"
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3511 if test -s conftest.err; then
3513 ... rest of stderr output deleted ...
3514 10q' conftest.err >conftest.er1
3515 cat conftest.er1 >&5
3517 rm -f conftest.er1 conftest.err
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3523 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3524 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3525 $as_echo_n "(cached) " >&6
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3541 if ac_fn_cxx_try_compile "$LINENO"; then :
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3551 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3552 if test $ac_compiler_gnu = yes; then
3557 ac_test_CXXFLAGS=${CXXFLAGS+set}
3558 ac_save_CXXFLAGS=$CXXFLAGS
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3560 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3561 if ${ac_cv_prog_cxx_g+:} false; then :
3562 $as_echo_n "(cached) " >&6
3564 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3565 ac_cxx_werror_flag=yes
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3579 if ac_fn_cxx_try_compile "$LINENO"; then :
3580 ac_cv_prog_cxx_g=yes
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3594 if ac_fn_cxx_try_compile "$LINENO"; then :
3597 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3610 if ac_fn_cxx_try_compile "$LINENO"; then :
3611 ac_cv_prog_cxx_g=yes
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3621 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3622 if test "$ac_test_CXXFLAGS" = set; then
3623 CXXFLAGS=$ac_save_CXXFLAGS
3624 elif test $ac_cv_prog_cxx_g = yes; then
3625 if test "$GXX" = yes; then
3631 if test "$GXX" = yes; then
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3651 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3652 # On Suns, sometimes $CPP names a directory.
3653 if test -n "$CPP" && test -d "$CPP"; then
3656 if test -z "$CPP"; then
3657 if ${ac_cv_prog_CPP+:} false; then :
3658 $as_echo_n "(cached) " >&6
3660 # Double quotes because CPP needs to be expanded
3661 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3664 for ac_c_preproc_warn_flag in '' yes
3666 # Use a header file that comes with gcc, so configuring glibc
3667 # with a fresh cross-compiler works.
3668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669 # <limits.h> exists even on freestanding compilers.
3670 # On the NeXT, cc -E runs the code through the compiler's parser,
3671 # not just through cpp. "Syntax error" is here to catch this case.
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3675 # include <limits.h>
3677 # include <assert.h>
3681 if ac_fn_c_try_cpp "$LINENO"; then :
3684 # Broken: fails on valid input.
3687 rm -f conftest.err conftest.i conftest.$ac_ext
3689 # OK, works on sane cases. Now check whether nonexistent headers
3690 # can be detected and how.
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3693 #include <ac_nonexistent.h>
3695 if ac_fn_c_try_cpp "$LINENO"; then :
3696 # Broken: success on invalid input.
3699 # Passes both tests.
3703 rm -f conftest.err conftest.i conftest.$ac_ext
3706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3707 rm -f conftest.i conftest.err conftest.$ac_ext
3708 if $ac_preproc_ok; then :
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3721 $as_echo "$CPP" >&6; }
3723 for ac_c_preproc_warn_flag in '' yes
3725 # Use a header file that comes with gcc, so configuring glibc
3726 # with a fresh cross-compiler works.
3727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3728 # <limits.h> exists even on freestanding compilers.
3729 # On the NeXT, cc -E runs the code through the compiler's parser,
3730 # not just through cpp. "Syntax error" is here to catch this case.
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3734 # include <limits.h>
3736 # include <assert.h>
3740 if ac_fn_c_try_cpp "$LINENO"; then :
3743 # Broken: fails on valid input.
3746 rm -f conftest.err conftest.i conftest.$ac_ext
3748 # OK, works on sane cases. Now check whether nonexistent headers
3749 # can be detected and how.
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3752 #include <ac_nonexistent.h>
3754 if ac_fn_c_try_cpp "$LINENO"; then :
3755 # Broken: success on invalid input.
3758 # Passes both tests.
3762 rm -f conftest.err conftest.i conftest.$ac_ext
3765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3766 rm -f conftest.i conftest.err conftest.$ac_ext
3767 if $ac_preproc_ok; then :
3770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3773 See \`config.log' for more details" "$LINENO" 5; }
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3784 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3785 if ${ac_cv_path_GREP+:} false; then :
3786 $as_echo_n "(cached) " >&6
3788 if test -z "$GREP"; then
3789 ac_path_GREP_found=false
3790 # Loop through the user's path and test for each of PROGNAME-LIST
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3795 test -z "$as_dir" && as_dir=.
3796 for ac_prog in grep ggrep; do
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3799 as_fn_executable_p "$ac_path_GREP" || continue
3800 # Check for GNU ac_path_GREP and select it if it is found.
3801 # Check for GNU $ac_path_GREP
3802 case `"$ac_path_GREP" --version 2>&1` in
3804 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3807 $as_echo_n 0123456789 >"conftest.in"
3810 cat "conftest.in" "conftest.in" >"conftest.tmp"
3811 mv "conftest.tmp" "conftest.in"
3812 cp "conftest.in" "conftest.nl"
3813 $as_echo 'GREP' >> "conftest.nl"
3814 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3816 as_fn_arith $ac_count + 1 && ac_count=$as_val
3817 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3818 # Best one so far, save it but keep looking for a better one
3819 ac_cv_path_GREP="$ac_path_GREP"
3820 ac_path_GREP_max=$ac_count
3822 # 10*(2^10) chars as input seems more than enough
3823 test $ac_count -gt 10 && break
3825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3828 $ac_path_GREP_found && break 3
3833 if test -z "$ac_cv_path_GREP"; then
3834 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3837 ac_cv_path_GREP=$GREP
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3842 $as_echo "$ac_cv_path_GREP" >&6; }
3843 GREP="$ac_cv_path_GREP"
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3847 $as_echo_n "checking for egrep... " >&6; }
3848 if ${ac_cv_path_EGREP+:} false; then :
3849 $as_echo_n "(cached) " >&6
3851 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3852 then ac_cv_path_EGREP="$GREP -E"
3854 if test -z "$EGREP"; then
3855 ac_path_EGREP_found=false
3856 # Loop through the user's path and test for each of PROGNAME-LIST
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3861 test -z "$as_dir" && as_dir=.
3862 for ac_prog in egrep; do
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3865 as_fn_executable_p "$ac_path_EGREP" || continue
3866 # Check for GNU ac_path_EGREP and select it if it is found.
3867 # Check for GNU $ac_path_EGREP
3868 case `"$ac_path_EGREP" --version 2>&1` in
3870 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3873 $as_echo_n 0123456789 >"conftest.in"
3876 cat "conftest.in" "conftest.in" >"conftest.tmp"
3877 mv "conftest.tmp" "conftest.in"
3878 cp "conftest.in" "conftest.nl"
3879 $as_echo 'EGREP' >> "conftest.nl"
3880 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3882 as_fn_arith $ac_count + 1 && ac_count=$as_val
3883 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3884 # Best one so far, save it but keep looking for a better one
3885 ac_cv_path_EGREP="$ac_path_EGREP"
3886 ac_path_EGREP_max=$ac_count
3888 # 10*(2^10) chars as input seems more than enough
3889 test $ac_count -gt 10 && break
3891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3894 $ac_path_EGREP_found && break 3
3899 if test -z "$ac_cv_path_EGREP"; then
3900 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3903 ac_cv_path_EGREP=$EGREP
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3909 $as_echo "$ac_cv_path_EGREP" >&6; }
3910 EGREP="$ac_cv_path_EGREP"
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3914 $as_echo_n "checking for ANSI C header files... " >&6; }
3915 if ${ac_cv_header_stdc+:} false; then :
3916 $as_echo_n "(cached) " >&6
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3933 if ac_fn_c_try_compile "$LINENO"; then :
3934 ac_cv_header_stdc=yes
3936 ac_cv_header_stdc=no
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940 if test $ac_cv_header_stdc = yes; then
3941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3948 $EGREP "memchr" >/dev/null 2>&1; then :
3951 ac_cv_header_stdc=no
3957 if test $ac_cv_header_stdc = yes; then
3958 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3965 $EGREP "free" >/dev/null 2>&1; then :
3968 ac_cv_header_stdc=no
3974 if test $ac_cv_header_stdc = yes; then
3975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3976 if test "$cross_compiling" = yes; then :
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3983 #if ((' ' & 0x0FF) == 0x020)
3984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3987 # define ISLOWER(c) \
3988 (('a' <= (c) && (c) <= 'i') \
3989 || ('j' <= (c) && (c) <= 'r') \
3990 || ('s' <= (c) && (c) <= 'z'))
3991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3999 for (i = 0; i < 256; i++)
4000 if (XOR (islower (i), ISLOWER (i))
4001 || toupper (i) != TOUPPER (i))
4006 if ac_fn_c_try_run "$LINENO"; then :
4009 ac_cv_header_stdc=no
4011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4012 conftest.$ac_objext conftest.beam conftest.$ac_ext
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4018 $as_echo "$ac_cv_header_stdc" >&6; }
4019 if test $ac_cv_header_stdc = yes; then
4021 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4025 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4027 inttypes.h stdint.h unistd.h
4029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4032 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4033 cat >>confdefs.h <<_ACEOF
4034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4043 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4044 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4051 if test "$MINIX" = yes; then
4053 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4056 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4059 $as_echo "#define _MINIX 1" >>confdefs.h
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4065 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4066 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4067 $as_echo_n "(cached) " >&6
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4072 # define __EXTENSIONS__ 1
4073 $ac_includes_default
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_cv_safe_to_define___extensions__=yes
4085 ac_cv_safe_to_define___extensions__=no
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4090 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4091 test $ac_cv_safe_to_define___extensions__ = yes &&
4092 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4094 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4096 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4098 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4100 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4105 if test $ac_cv_c_compiler_gnu = yes; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4107 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4108 if ${ac_cv_prog_gcc_traditional+:} false; then :
4109 $as_echo_n "(cached) " >&6
4111 ac_pattern="Autoconf.*'x'"
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4118 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4119 ac_cv_prog_gcc_traditional=yes
4121 ac_cv_prog_gcc_traditional=no
4126 if test $ac_cv_prog_gcc_traditional = no; then
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4134 ac_cv_prog_gcc_traditional=yes
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4141 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4142 if test $ac_cv_prog_gcc_traditional = yes; then
4143 CC="$CC -traditional"
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4148 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4149 if ${ac_cv_prog_suncc+:} false; then :
4150 $as_echo_n "(cached) " >&6
4152 cat > conftest.c <<EOF
4157 if { ac_try='${CC-cc} -E conftest.c'
4158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4162 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4163 ac_cv_prog_suncc=yes
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4169 $as_echo "$ac_cv_prog_suncc" >&6; }
4170 if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_RANLIB+:} false; then :
4176 $as_echo_n "(cached) " >&6
4178 if test -n "$RANLIB"; then
4179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 RANLIB=$ac_cv_prog_RANLIB
4199 if test -n "$RANLIB"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4201 $as_echo "$RANLIB" >&6; }
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4209 if test -z "$ac_cv_prog_RANLIB"; then
4210 ac_ct_RANLIB=$RANLIB
4211 # Extract the first word of "ranlib", so it can be a program name with args.
4212 set dummy ranlib; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4216 $as_echo_n "(cached) " >&6
4218 if test -n "$ac_ct_RANLIB"; then
4219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228 ac_cv_prog_ac_ct_RANLIB="ranlib"
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4239 if test -n "$ac_ct_RANLIB"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4241 $as_echo "$ac_ct_RANLIB" >&6; }
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4247 if test "x$ac_ct_RANLIB" = x; then
4250 case $cross_compiling:$ac_tool_warned in
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4254 ac_tool_warned=yes ;;
4256 RANLIB=$ac_ct_RANLIB
4259 RANLIB="$ac_cv_prog_RANLIB"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4265 $as_echo_n "checking if compiler is clang... " >&6; }
4266 if ${ax_cv_cc_clang+:} false; then :
4267 $as_echo_n "(cached) " >&6
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4286 if ac_fn_c_try_compile "$LINENO"; then :
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4295 $as_echo "$ax_cv_cc_clang" >&6; }
4297 if test "x$ax_cv_cc_clang" = "xyes"; then
4306 if test "x$GCC" = "xyes"; then
4307 CFLAGS="$CFLAGS -Wall -std=c99 -D_GNU_SOURCE"
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4312 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4313 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4314 $as_echo_n "(cached) " >&6
4318 CFLAGS_SAVED=$CFLAGS
4319 CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4338 if ac_fn_c_try_compile "$LINENO"; then :
4339 ax_cv_cc_qunused_arguments_flag="yes"
4341 ax_cv_cc_qunused_arguments_flag="no"
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351 CFLAGS="$CFLAGS_SAVED"
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4355 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4357 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4358 CFLAGS="$CFLAGS -Qunused-arguments"
4359 LDFLAGS="$LDFLAGS -Qunused-arguments"
4362 # Check whether --enable-largefile was given.
4363 if test "${enable_largefile+set}" = set; then :
4364 enableval=$enable_largefile;
4367 if test "$enable_largefile" != no; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4370 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4371 if ${ac_cv_sys_largefile_CC+:} false; then :
4372 $as_echo_n "(cached) " >&6
4374 ac_cv_sys_largefile_CC=no
4375 if test "$GCC" != yes; then
4378 # IRIX 6.2 and later do not support large files by default,
4379 # so use the C compiler's -n32 option if that helps.
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382 #include <sys/types.h>
4383 /* Check that off_t can represent 2**63 - 1 correctly.
4384 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4385 since some C++ compilers masquerading as C compilers
4386 incorrectly reject 9223372036854775807. */
4387 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4389 && LARGE_OFF_T % 2147483647 == 1)
4399 if ac_fn_c_try_compile "$LINENO"; then :
4402 rm -f core conftest.err conftest.$ac_objext
4404 if ac_fn_c_try_compile "$LINENO"; then :
4405 ac_cv_sys_largefile_CC=' -n32'; break
4407 rm -f core conftest.err conftest.$ac_objext
4411 rm -f conftest.$ac_ext
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4415 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4416 if test "$ac_cv_sys_largefile_CC" != no; then
4417 CC=$CC$ac_cv_sys_largefile_CC
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4421 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4422 if ${ac_cv_sys_file_offset_bits+:} false; then :
4423 $as_echo_n "(cached) " >&6
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #include <sys/types.h>
4429 /* Check that off_t can represent 2**63 - 1 correctly.
4430 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4431 since some C++ compilers masquerading as C compilers
4432 incorrectly reject 9223372036854775807. */
4433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4434 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4435 && LARGE_OFF_T % 2147483647 == 1)
4445 if ac_fn_c_try_compile "$LINENO"; then :
4446 ac_cv_sys_file_offset_bits=no; break
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451 #define _FILE_OFFSET_BITS 64
4452 #include <sys/types.h>
4453 /* Check that off_t can represent 2**63 - 1 correctly.
4454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4455 since some C++ compilers masquerading as C compilers
4456 incorrectly reject 9223372036854775807. */
4457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4459 && LARGE_OFF_T % 2147483647 == 1)
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_sys_file_offset_bits=64; break
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 ac_cv_sys_file_offset_bits=unknown
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4478 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4479 case $ac_cv_sys_file_offset_bits in #(
4482 cat >>confdefs.h <<_ACEOF
4483 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4488 if test $ac_cv_sys_file_offset_bits = unknown; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4490 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4491 if ${ac_cv_sys_large_files+:} false; then :
4492 $as_echo_n "(cached) " >&6
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #include <sys/types.h>
4498 /* Check that off_t can represent 2**63 - 1 correctly.
4499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4500 since some C++ compilers masquerading as C compilers
4501 incorrectly reject 9223372036854775807. */
4502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4504 && LARGE_OFF_T % 2147483647 == 1)
4514 if ac_fn_c_try_compile "$LINENO"; then :
4515 ac_cv_sys_large_files=no; break
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520 #define _LARGE_FILES 1
4521 #include <sys/types.h>
4522 /* Check that off_t can represent 2**63 - 1 correctly.
4523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4524 since some C++ compilers masquerading as C compilers
4525 incorrectly reject 9223372036854775807. */
4526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4528 && LARGE_OFF_T % 2147483647 == 1)
4538 if ac_fn_c_try_compile "$LINENO"; then :
4539 ac_cv_sys_large_files=1; break
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 ac_cv_sys_large_files=unknown
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4547 $as_echo "$ac_cv_sys_large_files" >&6; }
4548 case $ac_cv_sys_large_files in #(
4551 cat >>confdefs.h <<_ACEOF
4552 #define _LARGE_FILES $ac_cv_sys_large_files
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4564 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4565 if ${ac_cv_c_bigendian+:} false; then :
4566 $as_echo_n "(cached) " >&6
4568 ac_cv_c_bigendian=unknown
4569 # See if we're dealing with a universal compiler.
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572 #ifndef __APPLE_CC__
4573 not a universal capable compiler
4578 if ac_fn_c_try_compile "$LINENO"; then :
4580 # Check for potential -arch flags. It is not universal unless
4581 # there are at least two -arch flags with different values.
4584 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4585 if test -n "$ac_prev"; then
4587 i?86 | x86_64 | ppc | ppc64)
4588 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4591 ac_cv_c_bigendian=universal
4597 elif test "x$ac_word" = "x-arch"; then
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 if test $ac_cv_c_bigendian = unknown; then
4604 # See if sys/param.h defines the BYTE_ORDER macro.
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 #include <sys/types.h>
4608 #include <sys/param.h>
4613 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4614 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4623 if ac_fn_c_try_compile "$LINENO"; then :
4624 # It does; now see whether it defined to BIG_ENDIAN or not.
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627 #include <sys/types.h>
4628 #include <sys/param.h>
4633 #if BYTE_ORDER != BIG_ENDIAN
4641 if ac_fn_c_try_compile "$LINENO"; then :
4642 ac_cv_c_bigendian=yes
4644 ac_cv_c_bigendian=no
4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 if test $ac_cv_c_bigendian = unknown; then
4651 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4659 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668 # It does; now see whether it defined to _BIG_ENDIAN or not.
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4684 if ac_fn_c_try_compile "$LINENO"; then :
4685 ac_cv_c_bigendian=yes
4687 ac_cv_c_bigendian=no
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 if test $ac_cv_c_bigendian = unknown; then
4694 # Compile a test program.
4695 if test "$cross_compiling" = yes; then :
4696 # Try to guess by grepping values from an object file.
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 short int ascii_mm[] =
4700 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4701 short int ascii_ii[] =
4702 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4703 int use_ascii (int i) {
4704 return ascii_mm[i] + ascii_ii[i];
4706 short int ebcdic_ii[] =
4707 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4708 short int ebcdic_mm[] =
4709 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4710 int use_ebcdic (int i) {
4711 return ebcdic_mm[i] + ebcdic_ii[i];
4718 return use_ascii (foo) == use_ebcdic (foo);
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4725 ac_cv_c_bigendian=yes
4727 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4728 if test "$ac_cv_c_bigendian" = unknown; then
4729 ac_cv_c_bigendian=no
4731 # finding both strings is unlikely to happen, but who knows?
4732 ac_cv_c_bigendian=unknown
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740 $ac_includes_default
4745 /* Are we little or big endian? From Harbison&Steele. */
4749 char c[sizeof (long int)];
4752 return u.c[sizeof (long int) - 1] == 1;
4758 if ac_fn_c_try_run "$LINENO"; then :
4759 ac_cv_c_bigendian=no
4761 ac_cv_c_bigendian=yes
4763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4764 conftest.$ac_objext conftest.beam conftest.$ac_ext
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4770 $as_echo "$ac_cv_c_bigendian" >&6; }
4771 case $ac_cv_c_bigendian in #(
4774 $as_echo "#define BIG_ENDIAN 1" >>confdefs.h
4778 $as_echo "#define LITTLE_ENDIAN 1" >>confdefs.h
4783 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4787 as_fn_error $? "unknown endianness
4788 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4792 # Extract the first word of "gmake", so it can be a program name with args.
4793 set dummy gmake; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if ${ac_cv_prog_GMAKE+:} false; then :
4797 $as_echo_n "(cached) " >&6
4799 if test -n "$GMAKE"; then
4800 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_prog_GMAKE="yes"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4820 GMAKE=$ac_cv_prog_GMAKE
4821 if test -n "$GMAKE"; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4823 $as_echo "$GMAKE" >&6; }
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 $as_echo "no" >&6; }
4830 if test $GMAKE = no; then
4831 # Extract the first word of "make", so it can be a program name with args.
4832 set dummy make; ac_word=$2
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834 $as_echo_n "checking for $ac_word... " >&6; }
4835 if ${ac_cv_path_MAKE+:} false; then :
4836 $as_echo_n "(cached) " >&6
4840 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4862 MAKE=$ac_cv_path_MAKE
4863 if test -n "$MAKE"; then
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4865 $as_echo "$MAKE" >&6; }
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4873 # Extract the first word of "gmake", so it can be a program name with args.
4874 set dummy gmake; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if ${ac_cv_path_MAKE+:} false; then :
4878 $as_echo_n "(cached) " >&6
4882 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4904 MAKE=$ac_cv_path_MAKE
4905 if test -n "$MAKE"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4907 $as_echo "$MAKE" >&6; }
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4915 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4916 if test -z "$makever"; then
4917 as_fn_error $? "GNU Make is not installed. Please download and install it from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4922 $as_echo_n "checking number of system cores... " >&6; }
4923 if ${ax_cv_system_cores+:} false; then :
4924 $as_echo_n "(cached) " >&6
4928 ac_cpp='$CPP $CPPFLAGS'
4929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933 if test "$cross_compiling" = yes; then :
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4943 # include <windows.h>
4945 # include <sys/param.h>
4946 # include <sys/sysctl.h>
4948 # include <unistd.h>
4951 int main (int argc, char *argv[])
4956 SYSTEM_INFO sysinfo;
4957 GetSystemInfo(&sysinfo);
4959 count = sysinfo.dwNumberOfProcessors;
4966 nm[1] = HW_AVAILCPU;
4967 sysctl(nm, 2, &count, &len, NULL, 0);
4971 sysctl(nm, 2, &count, &len, NULL, 0);
4978 count = sysconf(_SC_NPROCESSORS_ONLN);
4985 if ac_fn_c_try_run "$LINENO"; then :
4986 ax_cv_system_cores=$?
4988 ax_cv_system_cores=$?
4990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4991 conftest.$ac_objext conftest.beam conftest.$ac_ext
4995 ac_cpp='$CPP $CPPFLAGS'
4996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
5003 $as_echo "$ax_cv_system_cores" >&6; }
5008 # Extract the first word of "git", so it can be a program name with args.
5009 set dummy git; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if ${ac_cv_prog_GIT+:} false; then :
5013 $as_echo_n "(cached) " >&6
5015 if test -n "$GIT"; then
5016 ac_cv_prog_GIT="$GIT" # Let the user override the test.
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_GIT="yes"
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5037 if test -n "$GIT"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5039 $as_echo "$GIT" >&6; }
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5048 # Check whether --enable-strict-dependencies was given.
5049 if test "${enable_strict_dependencies+set}" = set; then :
5050 enableval=$enable_strict_dependencies;
5054 # Check whether --enable-werror was given.
5055 if test "${enable_werror+set}" = set; then :
5056 enableval=$enable_werror; case "$enableval" in
5067 docdir='${datadir}/doc/freeradius'
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5069 $as_echo_n "checking docdir... " >&6; }
5071 # Check whether --with-docdir was given.
5072 if test "${with_docdir+set}" = set; then :
5073 withval=$with_docdir; case "$withval" in
5079 [\\/$]* | ?:[\\/]* )
5083 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5091 $as_echo "$docdir" >&6; }
5092 if test "x$docdir" = xno; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5094 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5097 logdir='${localstatedir}/log/radius'
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5099 $as_echo_n "checking logdir... " >&6; }
5101 # Check whether --with-logdir was given.
5102 if test "${with_logdir+set}" = set; then :
5103 withval=$with_logdir; case "$withval" in
5105 as_fn_error $? "Need logdir" "$LINENO" 5
5109 [\\/$]* | ?:[\\/]* )
5113 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5121 $as_echo "$logdir" >&6; }
5123 radacctdir='${logdir}/radacct'
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5125 $as_echo_n "checking radacctdir... " >&6; }
5127 # Check whether --with-radacctdir was given.
5128 if test "${with_radacctdir+set}" = set; then :
5129 withval=$with_radacctdir; case "$withval" in
5131 as_fn_error $? "Need radacctdir" "$LINENO" 5
5135 [\\/$]* | ?:[\\/]* )
5136 radacctdir="$withval"
5139 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5147 $as_echo "$radacctdir" >&6; }
5149 raddbdir='${sysconfdir}/raddb'
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5151 $as_echo_n "checking raddbdir... " >&6; }
5153 # Check whether --with-raddbdir was given.
5154 if test "${with_raddbdir+set}" = set; then :
5155 withval=$with_raddbdir; case "$withval" in
5157 as_fn_error $? "Need raddbdir" "$LINENO" 5
5161 [\\/$]* | ?:[\\/]* )
5165 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5173 $as_echo "$raddbdir" >&6; }
5175 dictdir='${datarootdir}/freeradius'
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dictdir" >&5
5177 $as_echo_n "checking dictdir... " >&6; }
5179 # Check whether --with-dictdir was given.
5180 if test "${with_dictdir+set}" = set; then :
5181 withval=$with_dictdir; case "$withval" in
5183 as_fn_error $? "Need dictdir" "$LINENO" 5
5187 [\\/$]* | ?:[\\/]* )
5191 as_fn_error $? "expected an absolute directory name for --with-dictdir: $withval" "$LINENO" 5
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dictdir" >&5
5199 $as_echo "$dictdir" >&6; }
5201 modconfdir='${raddbdir}/mods-config'
5204 WITH_ASCEND_BINARY=yes
5206 # Check whether --with-ascend-binary was given.
5207 if test "${with_ascend_binary+set}" = set; then :
5208 withval=$with_ascend_binary; case "$withval" in
5212 WITH_ASCEND_BINARY=no
5217 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5219 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5225 # Check whether --with-threads was given.
5226 if test "${with_threads+set}" = set; then :
5227 withval=$with_threads; case "$withval" in
5239 # Check whether --with-tcp was given.
5240 if test "${with_tcp+set}" = set; then :
5241 withval=$with_tcp; case "$withval" in
5250 if test "x$WITH_TCP" = "xyes"; then
5252 $as_echo "#define WITH_TCP 1" >>confdefs.h
5258 # Check whether --with-vmps was given.
5259 if test "${with_vmps+set}" = set; then :
5260 withval=$with_vmps; case "$withval" in
5269 if test "x$WITH_VMPS" = "xyes"; then
5271 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5277 # Check whether --with-dhcp was given.
5278 if test "${with_dhcp+set}" = set; then :
5279 withval=$with_dhcp; case "$withval" in
5288 if test "x$WITH_DHCP" = "xyes"; then
5290 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5296 # Check whether --with-static_modules was given.
5297 if test "${with_static_modules+set}" = set; then :
5298 withval=$with_static_modules;
5299 for i in $withval; do
5300 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5308 # Check whether --with-shared-libs was given.
5309 if test "${with_shared_libs+set}" = set; then :
5310 withval=$with_shared_libs; case "$withval" in
5322 # Check whether --with-modules was given.
5323 if test "${with_modules+set}" = set; then :
5324 withval=$with_modules;
5325 for i in $withval; do
5326 MODULES="$MODULES $i"
5334 # Check whether --with-experimental-modules was given.
5335 if test "${with_experimental_modules+set}" = set; then :
5336 withval=$with_experimental_modules; case "$withval" in
5351 # Check whether --with-udpfromto was given.
5352 if test "${with_udpfromto+set}" = set; then :
5353 withval=$with_udpfromto; case "$withval" in
5364 if test "x$WITH_UDPFROMTO" = "xyes"; then
5366 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5372 # Check whether --with-rlm-FOO-lib-dir was given.
5373 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5374 withval=$with_rlm_FOO_lib_dir; case "$withval" in
5383 # Check whether --with-rlm-FOO-include-dir was given.
5384 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5385 withval=$with_rlm_FOO_include_dir; case "$withval" in
5395 # Check whether --with-openssl was given.
5396 if test "${with_openssl+set}" = set; then :
5397 withval=$with_openssl; case "$withval" in
5411 # Check whether --with-openssl-lib-dir was given.
5412 if test "${with_openssl_lib_dir+set}" = set; then :
5413 withval=$with_openssl_lib_dir; case "$withval" in
5414 *) openssl_lib_dir="$withval"
5421 openssl_include_dir=
5423 # Check whether --with-openssl-include-dir was given.
5424 if test "${with_openssl_include_dir+set}" = set; then :
5425 withval=$with_openssl_include_dir; case "$withval" in
5426 *) openssl_include_dir="$withval"
5435 # Extract the first word of "perl", so it can be a program name with args.
5436 set dummy perl; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_path_PERL+:} false; then :
5440 $as_echo_n "(cached) " >&6
5444 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5466 PERL=$ac_cv_path_PERL
5467 if test -n "$PERL"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5469 $as_echo "$PERL" >&6; }
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5476 if test "x$ac_cv_path_PERL" = "x"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5478 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5480 # Extract the first word of "snmpget", so it can be a program name with args.
5481 set dummy snmpget; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_path_SNMPGET+:} false; then :
5485 $as_echo_n "(cached) " >&6
5489 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 SNMPGET=$ac_cv_path_SNMPGET
5511 if test -n "$SNMPGET"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5513 $as_echo "$SNMPGET" >&6; }
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5520 if test "x$ac_cv_path_SNMPGET" = "x"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5522 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5525 # Extract the first word of "snmpwalk", so it can be a program name with args.
5526 set dummy snmpwalk; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_path_SNMPWALK+:} false; then :
5530 $as_echo_n "(cached) " >&6
5534 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 SNMPWALK=$ac_cv_path_SNMPWALK
5556 if test -n "$SNMPWALK"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5558 $as_echo "$SNMPWALK" >&6; }
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5565 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5567 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5570 # Extract the first word of "rusers", so it can be a program name with args.
5571 set dummy rusers; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_path_RUSERS+:} false; then :
5575 $as_echo_n "(cached) " >&6
5579 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5589 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5601 RUSERS=$ac_cv_path_RUSERS
5602 if test -n "$RUSERS"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5604 $as_echo "$RUSERS" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5612 missing_dir=`cd $ac_aux_dir && pwd`
5613 # expand $ac_aux_dir to an absolute path
5614 am_aux_dir=`cd $ac_aux_dir && pwd`
5616 if test x"${MISSING+set}" != xset; then
5619 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5621 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5624 # Use eval to expand $SHELL
5625 if eval "$MISSING --run true"; then
5626 am_missing_run="$MISSING --run "
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5630 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5634 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5637 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5640 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5643 # Extract the first word of "locate", so it can be a program name with args.
5644 set dummy locate; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_path_LOCATE+:} false; then :
5648 $as_echo_n "(cached) " >&6
5652 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 LOCATE=$ac_cv_path_LOCATE
5674 if test -n "$LOCATE"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5676 $as_echo "$LOCATE" >&6; }
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5683 # Extract the first word of "dirname", so it can be a program name with args.
5684 set dummy dirname; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_path_DIRNAME+:} false; then :
5688 $as_echo_n "(cached) " >&6
5692 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 DIRNAME=$ac_cv_path_DIRNAME
5714 if test -n "$DIRNAME"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5716 $as_echo "$DIRNAME" >&6; }
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5723 # Extract the first word of "grep", so it can be a program name with args.
5724 set dummy grep; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_path_GREP+:} false; then :
5728 $as_echo_n "(cached) " >&6
5732 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 GREP=$ac_cv_path_GREP
5754 if test -n "$GREP"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5756 $as_echo "$GREP" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5767 # Check whether --with-talloc-lib-dir was given.
5768 if test "${with_talloc_lib_dir+set}" = set; then :
5769 withval=$with_talloc_lib_dir; case "$withval" in
5771 as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
5776 talloc_lib_dir="$withval"
5784 # Check whether --with-talloc-include-dir was given.
5785 if test "${with_talloc_include_dir+set}" = set; then :
5786 withval=$with_talloc_include_dir; case "$withval" in
5788 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
5793 talloc_include_dir="$withval"
5799 smart_try_dir="$talloc_lib_dir"
5802 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
5803 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
5806 old_CPPFLAGS="$CPPFLAGS"
5811 if test "x$smart_try_dir" != "x"; then
5812 for try in $smart_try_dir; do
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5814 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5815 LIBS="-ltalloc $old_LIBS"
5816 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 extern char _talloc();
5828 if ac_fn_c_try_link "$LINENO"; then :
5830 smart_lib="-ltalloc"
5831 smart_ldflags="-L$try -Wl,-rpath,$try"
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5833 $as_echo "yes" >&6; }
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5840 rm -f core conftest.err conftest.$ac_objext \
5841 conftest$ac_exeext conftest.$ac_ext
5844 CPPFLAGS="$old_CPPFLAGS"
5847 if test "x$smart_lib" = "x"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
5849 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
5850 LIBS="-ltalloc $old_LIBS"
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 extern char _talloc();
5862 if ac_fn_c_try_link "$LINENO"; then :
5864 smart_lib="-ltalloc"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5866 $as_echo "yes" >&6; }
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5872 rm -f core conftest.err conftest.$ac_objext \
5873 conftest$ac_exeext conftest.$ac_ext
5877 if test "x$smart_lib" = "x"; then
5880 if test "x$LOCATE" != "x"; then
5882 file=libtalloc${libltdl_cv_shlibext}
5884 for x in `${LOCATE} $file 2>/dev/null`; do
5885 base=`echo $x | sed "s%/${file}%%"`
5886 if test "x$x" = "x$base"; then
5890 dir=`${DIRNAME} $x 2>/dev/null`
5891 exclude=`echo ${dir} | ${GREP} /home`
5892 if test "x$exclude" != "x"; then
5896 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5897 if test "x$already" = "x"; then
5903 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5907 if test "x$LOCATE" != "x"; then
5911 for x in `${LOCATE} $file 2>/dev/null`; do
5912 base=`echo $x | sed "s%/${file}%%"`
5913 if test "x$x" = "x$base"; then
5917 dir=`${DIRNAME} $x 2>/dev/null`
5918 exclude=`echo ${dir} | ${GREP} /home`
5919 if test "x$exclude" != "x"; then
5923 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5924 if test "x$already" = "x"; then
5930 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5933 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5935 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5936 LIBS="-ltalloc $old_LIBS"
5937 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939 /* end confdefs.h. */
5940 extern char _talloc();
5949 if ac_fn_c_try_link "$LINENO"; then :
5951 smart_lib="-ltalloc"
5952 smart_ldflags="-L$try -Wl,-rpath,$try"
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5954 $as_echo "yes" >&6; }
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5961 rm -f core conftest.err conftest.$ac_objext \
5962 conftest$ac_exeext conftest.$ac_ext
5965 CPPFLAGS="$old_CPPFLAGS"
5968 if test "x$smart_lib" != "x"; then
5969 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
5970 LIBS="$smart_ldflags $smart_lib $old_LIBS"
5971 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
5974 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
5976 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
5977 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
5980 TALLOC_LIBS="${smart_lib}"
5981 TALLOC_LDFLAGS="${smart_ldflags}"
5987 if test "x$WITH_THREADS" = "xyes"; then
5988 if test $ac_cv_prog_suncc = "yes"; then
5989 CFLAGS="$CFLAGS -mt"
5992 for ac_header in pthread.h
5994 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5995 if test "x$ac_cv_header_pthread_h" = xyes; then :
5996 cat >>confdefs.h <<_ACEOF
5997 #define HAVE_PTHREAD_H 1
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6011 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6012 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6013 $as_echo_n "(cached) " >&6
6015 ac_check_lib_save_LIBS=$LIBS
6016 LIBS="-lpthread $LIBS"
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6020 /* Override any GCC internal prototype to avoid an error.
6021 Use char because int might match the return type of a GCC
6022 builtin and then its argument prototype would still apply. */
6026 char pthread_create ();
6030 return pthread_create ();
6035 if ac_fn_c_try_link "$LINENO"; then :
6036 ac_cv_lib_pthread_pthread_create=yes
6038 ac_cv_lib_pthread_pthread_create=no
6040 rm -f core conftest.err conftest.$ac_objext \
6041 conftest$ac_exeext conftest.$ac_ext
6042 LIBS=$ac_check_lib_save_LIBS
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6045 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6046 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6048 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
6049 LIBS="-lpthread $LIBS"
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
6054 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
6055 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
6056 $as_echo_n "(cached) " >&6
6058 ac_check_lib_save_LIBS=$LIBS
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6063 /* Override any GCC internal prototype to avoid an error.
6064 Use char because int might match the return type of a GCC
6065 builtin and then its argument prototype would still apply. */
6069 char pthread_create ();
6073 return pthread_create ();
6078 if ac_fn_c_try_link "$LINENO"; then :
6079 ac_cv_lib_c_r_pthread_create=yes
6081 ac_cv_lib_c_r_pthread_create=no
6083 rm -f core conftest.err conftest.$ac_objext \
6084 conftest$ac_exeext conftest.$ac_ext
6085 LIBS=$ac_check_lib_save_LIBS
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
6088 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
6089 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
6090 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
6104 if test "x$WITH_THREADS" != "xyes"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building with thread support." >&5
6106 $as_echo "$as_me: WARNING: silently not building with thread support." >&2;}
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: thread support requires: $fail." >&5
6108 $as_echo "$as_me: WARNING: FAILURE: thread support requires: $fail." >&2;}
6111 $as_echo "#define WITH_THREADS 1" >>confdefs.h
6116 if test "x$WITH_THREADS" != "xyes"; then
6118 ac_cv_header_pthread_h="no"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
6123 $as_echo_n "checking for library containing sem_init... " >&6; }
6124 if ${ac_cv_search_sem_init+:} false; then :
6125 $as_echo_n "(cached) " >&6
6127 ac_func_search_save_LIBS=$LIBS
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h. */
6131 /* Override any GCC internal prototype to avoid an error.
6132 Use char because int might match the return type of a GCC
6133 builtin and then its argument prototype would still apply. */
6146 for ac_lib in '' pthread sem posix4 rt semaphore; do
6147 if test -z "$ac_lib"; then
6148 ac_res="none required"
6151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6153 if ac_fn_c_try_link "$LINENO"; then :
6154 ac_cv_search_sem_init=$ac_res
6156 rm -f core conftest.err conftest.$ac_objext \
6158 if ${ac_cv_search_sem_init+:} false; then :
6162 if ${ac_cv_search_sem_init+:} false; then :
6165 ac_cv_search_sem_init=no
6168 LIBS=$ac_func_search_save_LIBS
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
6171 $as_echo "$ac_cv_search_sem_init" >&6; }
6172 ac_res=$ac_cv_search_sem_init
6173 if test "$ac_res" != no; then :
6174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6177 as_fn_error $? "-lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" "$LINENO" 5
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6184 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6185 if ${ac_cv_lib_dl_dlopen+:} false; then :
6186 $as_echo_n "(cached) " >&6
6188 ac_check_lib_save_LIBS=$LIBS
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6193 /* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
6208 if ac_fn_c_try_link "$LINENO"; then :
6209 ac_cv_lib_dl_dlopen=yes
6211 ac_cv_lib_dl_dlopen=no
6213 rm -f core conftest.err conftest.$ac_objext \
6214 conftest$ac_exeext conftest.$ac_ext
6215 LIBS=$ac_check_lib_save_LIBS
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6218 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6219 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6220 cat >>confdefs.h <<_ACEOF
6221 #define HAVE_LIBDL 1
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
6230 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
6231 if ${ac_cv_lib_socket_getsockname+:} false; then :
6232 $as_echo_n "(cached) " >&6
6234 ac_check_lib_save_LIBS=$LIBS
6235 LIBS="-lsocket $LIBS"
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6239 /* Override any GCC internal prototype to avoid an error.
6240 Use char because int might match the return type of a GCC
6241 builtin and then its argument prototype would still apply. */
6245 char getsockname ();
6249 return getsockname ();
6254 if ac_fn_c_try_link "$LINENO"; then :
6255 ac_cv_lib_socket_getsockname=yes
6257 ac_cv_lib_socket_getsockname=no
6259 rm -f core conftest.err conftest.$ac_objext \
6260 conftest$ac_exeext conftest.$ac_ext
6261 LIBS=$ac_check_lib_save_LIBS
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
6264 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
6265 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
6266 cat >>confdefs.h <<_ACEOF
6267 #define HAVE_LIBSOCKET 1
6270 LIBS="-lsocket $LIBS"
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
6276 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
6277 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
6278 $as_echo_n "(cached) " >&6
6280 ac_check_lib_save_LIBS=$LIBS
6281 LIBS="-lresolv $LIBS"
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6285 /* Override any GCC internal prototype to avoid an error.
6286 Use char because int might match the return type of a GCC
6287 builtin and then its argument prototype would still apply. */
6295 return inet_aton ();
6300 if ac_fn_c_try_link "$LINENO"; then :
6301 ac_cv_lib_resolv_inet_aton=yes
6303 ac_cv_lib_resolv_inet_aton=no
6305 rm -f core conftest.err conftest.$ac_objext \
6306 conftest$ac_exeext conftest.$ac_ext
6307 LIBS=$ac_check_lib_save_LIBS
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6310 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6311 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6312 cat >>confdefs.h <<_ACEOF
6313 #define HAVE_LIBRESOLV 1
6316 LIBS="-lresolv $LIBS"
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6322 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6323 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6324 $as_echo_n "(cached) " >&6
6326 ac_check_lib_save_LIBS=$LIBS
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6331 /* Override any GCC internal prototype to avoid an error.
6332 Use char because int might match the return type of a GCC
6333 builtin and then its argument prototype would still apply. */
6341 return inet_ntoa ();
6346 if ac_fn_c_try_link "$LINENO"; then :
6347 ac_cv_lib_nsl_inet_ntoa=yes
6349 ac_cv_lib_nsl_inet_ntoa=no
6351 rm -f core conftest.err conftest.$ac_objext \
6352 conftest$ac_exeext conftest.$ac_ext
6353 LIBS=$ac_check_lib_save_LIBS
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6356 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6357 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6358 cat >>confdefs.h <<_ACEOF
6359 #define HAVE_LIBNSL 1
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6367 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6368 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6369 $as_echo_n "(cached) " >&6
6371 ac_check_lib_save_LIBS=$LIBS
6372 LIBS="-lws2_32 $LIBS"
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6376 /* Override any GCC internal prototype to avoid an error.
6377 Use char because int might match the return type of a GCC
6378 builtin and then its argument prototype would still apply. */
6391 if ac_fn_c_try_link "$LINENO"; then :
6392 ac_cv_lib_ws2_32_htonl=yes
6394 ac_cv_lib_ws2_32_htonl=no
6396 rm -f core conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6398 LIBS=$ac_check_lib_save_LIBS
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6401 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6402 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6403 cat >>confdefs.h <<_ACEOF
6404 #define HAVE_LIBWS2_32 1
6407 LIBS="-lws2_32 $LIBS"
6414 # Check whether --with-pcap-lib-dir was given.
6415 if test "${with_pcap_lib_dir+set}" = set; then :
6416 withval=$with_pcap_lib_dir; case "$withval" in
6418 as_fn_error $? "Need pcap-lib-dir" "$LINENO" 5
6423 pcap_lib_dir="$withval"
6431 # Check whether --with-pcap-include-dir was given.
6432 if test "${with_pcap_include_dir+set}" = set; then :
6433 withval=$with_pcap_include_dir; case "$withval" in
6435 as_fn_error $? "Need pcap-include-dir" "$LINENO" 5
6440 pcap_include_dir="$withval"
6446 smart_try_dir="$pcap_lib_dir"
6449 sm_lib_safe=`echo "pcap" | sed 'y%./+-%__p_%'`
6450 sm_func_safe=`echo "pcap_open_live" | sed 'y%./+-%__p_%'`
6453 old_CPPFLAGS="$CPPFLAGS"
6458 if test "x$smart_try_dir" != "x"; then
6459 for try in $smart_try_dir; do
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6461 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6462 LIBS="-lpcap $old_LIBS"
6463 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 extern char pcap_open_live();
6475 if ac_fn_c_try_link "$LINENO"; then :
6478 smart_ldflags="-L$try -Wl,-rpath,$try"
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6480 $as_echo "yes" >&6; }
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6487 rm -f core conftest.err conftest.$ac_objext \
6488 conftest$ac_exeext conftest.$ac_ext
6491 CPPFLAGS="$old_CPPFLAGS"
6494 if test "x$smart_lib" = "x"; then
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6496 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6497 LIBS="-lpcap $old_LIBS"
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6500 extern char pcap_open_live();
6509 if ac_fn_c_try_link "$LINENO"; then :
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6513 $as_echo "yes" >&6; }
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6519 rm -f core conftest.err conftest.$ac_objext \
6520 conftest$ac_exeext conftest.$ac_ext
6524 if test "x$smart_lib" = "x"; then
6527 if test "x$LOCATE" != "x"; then
6529 file=libpcap${libltdl_cv_shlibext}
6531 for x in `${LOCATE} $file 2>/dev/null`; do
6532 base=`echo $x | sed "s%/${file}%%"`
6533 if test "x$x" = "x$base"; then
6537 dir=`${DIRNAME} $x 2>/dev/null`
6538 exclude=`echo ${dir} | ${GREP} /home`
6539 if test "x$exclude" != "x"; then
6543 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6544 if test "x$already" = "x"; then
6550 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6554 if test "x$LOCATE" != "x"; then
6558 for x in `${LOCATE} $file 2>/dev/null`; do
6559 base=`echo $x | sed "s%/${file}%%"`
6560 if test "x$x" = "x$base"; then
6564 dir=`${DIRNAME} $x 2>/dev/null`
6565 exclude=`echo ${dir} | ${GREP} /home`
6566 if test "x$exclude" != "x"; then
6570 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6571 if test "x$already" = "x"; then
6577 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6580 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6582 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6583 LIBS="-lpcap $old_LIBS"
6584 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6587 extern char pcap_open_live();
6596 if ac_fn_c_try_link "$LINENO"; then :
6599 smart_ldflags="-L$try -Wl,-rpath,$try"
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6601 $as_echo "yes" >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6608 rm -f core conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6612 CPPFLAGS="$old_CPPFLAGS"
6615 if test "x$smart_lib" != "x"; then
6616 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6617 LIBS="$smart_ldflags $smart_lib $old_LIBS"
6618 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6621 if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-lib-dir=<path>." >&5
6623 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-lib-dir=<path>." >&2;}
6626 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6630 pcap_fopen_offline \
6636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6637 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6638 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6639 cat >>confdefs.h <<_ACEOF
6640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6647 PCAP_LIBS="${smart_lib}"
6648 PCAP_LDFLAGS="${smart_ldflags}"
6652 collectdclient_lib_dir=
6654 # Check whether --with-collectdclient-lib-dir was given.
6655 if test "${with_collectdclient_lib_dir+set}" = set; then :
6656 withval=$with_collectdclient_lib_dir; case "$withval" in
6658 as_fn_error $? "Need collectdclient-lib-dir" "$LINENO" 5
6663 collectdclient_lib_dir="$withval"
6669 collectdclient_include_dir=
6671 # Check whether --with-collectdclient-include-dir was given.
6672 if test "${with_collectdclient_include_dir+set}" = set; then :
6673 withval=$with_collectdclient_include_dir; case "$withval" in
6675 as_fn_error $? "Need collectdclient-include-dir" "$LINENO" 5
6680 collectdclient_include_dir="$withval"
6686 smart_try_dir="$collectdclient_lib_dir"
6689 sm_lib_safe=`echo "collectdclient" | sed 'y%./+-%__p_%'`
6690 sm_func_safe=`echo "lcc_connect" | sed 'y%./+-%__p_%'`
6693 old_CPPFLAGS="$CPPFLAGS"
6698 if test "x$smart_try_dir" != "x"; then
6699 for try in $smart_try_dir; do
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6701 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6702 LIBS="-lcollectdclient $old_LIBS"
6703 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 extern char lcc_connect();
6715 if ac_fn_c_try_link "$LINENO"; then :
6717 smart_lib="-lcollectdclient"
6718 smart_ldflags="-L$try -Wl,-rpath,$try"
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6720 $as_echo "yes" >&6; }
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6727 rm -f core conftest.err conftest.$ac_objext \
6728 conftest$ac_exeext conftest.$ac_ext
6731 CPPFLAGS="$old_CPPFLAGS"
6734 if test "x$smart_lib" = "x"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient" >&5
6736 $as_echo_n "checking for lcc_connect in -lcollectdclient... " >&6; }
6737 LIBS="-lcollectdclient $old_LIBS"
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740 extern char lcc_connect();
6749 if ac_fn_c_try_link "$LINENO"; then :
6751 smart_lib="-lcollectdclient"
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6753 $as_echo "yes" >&6; }
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6759 rm -f core conftest.err conftest.$ac_objext \
6760 conftest$ac_exeext conftest.$ac_ext
6764 if test "x$smart_lib" = "x"; then
6767 if test "x$LOCATE" != "x"; then
6769 file=libcollectdclient${libltdl_cv_shlibext}
6771 for x in `${LOCATE} $file 2>/dev/null`; do
6772 base=`echo $x | sed "s%/${file}%%"`
6773 if test "x$x" = "x$base"; then
6777 dir=`${DIRNAME} $x 2>/dev/null`
6778 exclude=`echo ${dir} | ${GREP} /home`
6779 if test "x$exclude" != "x"; then
6783 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6784 if test "x$already" = "x"; then
6790 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6794 if test "x$LOCATE" != "x"; then
6796 file=libcollectdclient.a
6798 for x in `${LOCATE} $file 2>/dev/null`; do
6799 base=`echo $x | sed "s%/${file}%%"`
6800 if test "x$x" = "x$base"; then
6804 dir=`${DIRNAME} $x 2>/dev/null`
6805 exclude=`echo ${dir} | ${GREP} /home`
6806 if test "x$exclude" != "x"; then
6810 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6811 if test "x$already" = "x"; then
6817 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6820 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6822 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6823 LIBS="-lcollectdclient $old_LIBS"
6824 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 extern char lcc_connect();
6836 if ac_fn_c_try_link "$LINENO"; then :
6838 smart_lib="-lcollectdclient"
6839 smart_ldflags="-L$try -Wl,-rpath,$try"
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6841 $as_echo "yes" >&6; }
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6848 rm -f core conftest.err conftest.$ac_objext \
6849 conftest$ac_exeext conftest.$ac_ext
6852 CPPFLAGS="$old_CPPFLAGS"
6855 if test "x$smart_lib" != "x"; then
6856 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6857 LIBS="$smart_ldflags $smart_lib $old_LIBS"
6858 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6861 if test "x$ac_cv_lib_collectdclient_lcc_connect" != "xyes"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&5
6863 $as_echo "$as_me: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&2;}
6865 COLLECTDC_LIBS="${smart_lib}"
6866 COLLECTDC_LDFLAGS="${smart_ldflags}"
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6872 $as_echo_n "checking for a readline compatible library... " >&6; }
6873 if ${vl_cv_lib_readline+:} false; then :
6874 $as_echo_n "(cached) " >&6
6878 for readline_lib in readline edit editline; do
6879 for termcap_lib in "" termcap curses ncurses; do
6880 if test -z "$termcap_lib"; then
6881 TRY_LIB="-l$readline_lib"
6883 TRY_LIB="-l$readline_lib -l$termcap_lib"
6885 LIBS="$ORIG_LIBS $TRY_LIB"
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6889 /* Override any GCC internal prototype to avoid an error.
6890 Use char because int might match the return type of a GCC
6891 builtin and then its argument prototype would still apply. */
6904 if ac_fn_c_try_link "$LINENO"; then :
6905 vl_cv_lib_readline="$TRY_LIB"
6907 rm -f core conftest.err conftest.$ac_objext \
6908 conftest$ac_exeext conftest.$ac_ext
6909 if test -n "$vl_cv_lib_readline"; then
6913 if test -n "$vl_cv_lib_readline"; then
6917 if test -z "$vl_cv_lib_readline"; then
6918 vl_cv_lib_readline="no"
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
6924 $as_echo "$vl_cv_lib_readline" >&6; }
6926 if test "$vl_cv_lib_readline" != "no"; then
6927 LIBREADLINE="$vl_cv_lib_readline"
6929 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
6931 for ac_header in readline.h readline/readline.h
6933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6934 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6935 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6936 cat >>confdefs.h <<_ACEOF
6937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6945 $as_echo_n "checking whether readline supports history... " >&6; }
6946 if ${vl_cv_lib_readline_history+:} false; then :
6947 $as_echo_n "(cached) " >&6
6950 vl_cv_lib_readline_history="no"
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6954 /* Override any GCC internal prototype to avoid an error.
6955 Use char because int might match the return type of a GCC
6956 builtin and then its argument prototype would still apply. */
6960 char add_history ();
6964 return add_history ();
6969 if ac_fn_c_try_link "$LINENO"; then :
6970 vl_cv_lib_readline_history="yes"
6972 rm -f core conftest.err conftest.$ac_objext \
6973 conftest$ac_exeext conftest.$ac_ext
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
6977 $as_echo "$vl_cv_lib_readline_history" >&6; }
6978 if test "$vl_cv_lib_readline_history" = "yes"; then
6980 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6982 for ac_header in history.h readline/history.h
6984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6985 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6986 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6987 cat >>confdefs.h <<_ACEOF
6988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7001 smart_try_dir="$talloc_include_dir"
7004 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7005 old_CPPFLAGS="$CPPFLAGS"
7007 smart_include_dir="/usr/local/include /opt/include"
7012 for _prefix in $smart_prefix ""; do
7013 for _dir in $smart_try_dir; do
7014 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
7017 for _dir in $smart_include_dir; do
7018 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
7022 if test "x$_smart_try_dir" != "x"; then
7023 for try in $_smart_try_dir; do
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7025 $as_echo_n "checking for talloc.h in $try... " >&6; }
7026 CPPFLAGS="-isystem $try $old_CPPFLAGS"
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7039 if ac_fn_c_try_compile "$LINENO"; then :
7041 smart_include="-isystem $try"
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7043 $as_echo "yes" >&6; }
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055 CPPFLAGS="$old_CPPFLAGS"
7058 if test "x$smart_include" = "x"; then
7059 for _prefix in $smart_prefix; do
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/talloc.h" >&5
7061 $as_echo_n "checking for ${_prefix}/talloc.h... " >&6; }
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7075 if ac_fn_c_try_compile "$LINENO"; then :
7077 smart_include="-isystem ${_prefix}/"
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7079 $as_echo "yes" >&6; }
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 if test "x$smart_include" = "x"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7095 $as_echo_n "checking for talloc.h... " >&6; }
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7109 if ac_fn_c_try_compile "$LINENO"; then :
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126 if test "x$smart_include" = "x"; then
7128 for prefix in $smart_prefix; do
7131 if test "x$LOCATE" != "x"; then
7133 file="${_prefix}/${1}"
7135 for x in `${LOCATE} $file 2>/dev/null`; do
7136 base=`echo $x | sed "s%/${file}%%"`
7137 if test "x$x" = "x$base"; then
7141 dir=`${DIRNAME} $x 2>/dev/null`
7142 exclude=`echo ${dir} | ${GREP} /home`
7143 if test "x$exclude" != "x"; then
7147 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7148 if test "x$already" = "x"; then
7154 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7159 if test "x$LOCATE" != "x"; then
7163 for x in `${LOCATE} $file 2>/dev/null`; do
7164 base=`echo $x | sed "s%/${file}%%"`
7165 if test "x$x" = "x$base"; then
7169 dir=`${DIRNAME} $x 2>/dev/null`
7170 exclude=`echo ${dir} | ${GREP} /home`
7171 if test "x$exclude" != "x"; then
7175 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7176 if test "x$already" = "x"; then
7182 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7185 for try in $_smart_include_dir; do
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7187 $as_echo_n "checking for talloc.h in $try... " >&6; }
7188 CPPFLAGS="-isystem $try $old_CPPFLAGS"
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7201 if ac_fn_c_try_compile "$LINENO"; then :
7203 smart_include="-isystem $try"
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7205 $as_echo "yes" >&6; }
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 CPPFLAGS="$old_CPPFLAGS"
7220 if test "x$smart_include" != "x"; then
7221 eval "ac_cv_header_$ac_safe=yes"
7222 CPPFLAGS="$smart_include $old_CPPFLAGS"
7223 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
7228 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7230 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7231 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7236 CFLAGS="$CFLAGS -D_ALL_SOURCE"
7239 CFLAGS="$CFLAGS -DDARWIN"
7240 LIBS="-framework DirectoryService $LIBS"
7242 $as_echo "#define __APPLE_USE_RFC_2292 1" >>confdefs.h
7248 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7249 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7251 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7252 if eval \${$as_ac_Header+:} false; then :
7253 $as_echo_n "(cached) " >&6
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257 #include <sys/types.h>
7269 if ac_fn_c_try_compile "$LINENO"; then :
7270 eval "$as_ac_Header=yes"
7272 eval "$as_ac_Header=no"
7274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 eval ac_res=\$$as_ac_Header
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7278 $as_echo "$ac_res" >&6; }
7279 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7280 cat >>confdefs.h <<_ACEOF
7281 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7284 ac_header_dirent=$ac_hdr; break
7288 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7289 if test $ac_header_dirent = dirent.h; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7291 $as_echo_n "checking for library containing opendir... " >&6; }
7292 if ${ac_cv_search_opendir+:} false; then :
7293 $as_echo_n "(cached) " >&6
7295 ac_func_search_save_LIBS=$LIBS
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7299 /* Override any GCC internal prototype to avoid an error.
7300 Use char because int might match the return type of a GCC
7301 builtin and then its argument prototype would still apply. */
7314 for ac_lib in '' dir; do
7315 if test -z "$ac_lib"; then
7316 ac_res="none required"
7319 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7321 if ac_fn_c_try_link "$LINENO"; then :
7322 ac_cv_search_opendir=$ac_res
7324 rm -f core conftest.err conftest.$ac_objext \
7326 if ${ac_cv_search_opendir+:} false; then :
7330 if ${ac_cv_search_opendir+:} false; then :
7333 ac_cv_search_opendir=no
7336 LIBS=$ac_func_search_save_LIBS
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7339 $as_echo "$ac_cv_search_opendir" >&6; }
7340 ac_res=$ac_cv_search_opendir
7341 if test "$ac_res" != no; then :
7342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7348 $as_echo_n "checking for library containing opendir... " >&6; }
7349 if ${ac_cv_search_opendir+:} false; then :
7350 $as_echo_n "(cached) " >&6
7352 ac_func_search_save_LIBS=$LIBS
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7356 /* Override any GCC internal prototype to avoid an error.
7357 Use char because int might match the return type of a GCC
7358 builtin and then its argument prototype would still apply. */
7371 for ac_lib in '' x; do
7372 if test -z "$ac_lib"; then
7373 ac_res="none required"
7376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7378 if ac_fn_c_try_link "$LINENO"; then :
7379 ac_cv_search_opendir=$ac_res
7381 rm -f core conftest.err conftest.$ac_objext \
7383 if ${ac_cv_search_opendir+:} false; then :
7387 if ${ac_cv_search_opendir+:} false; then :
7390 ac_cv_search_opendir=no
7393 LIBS=$ac_func_search_save_LIBS
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7396 $as_echo "$ac_cv_search_opendir" >&6; }
7397 ac_res=$ac_cv_search_opendir
7398 if test "$ac_res" != no; then :
7399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7406 $as_echo_n "checking for ANSI C header files... " >&6; }
7407 if ${ac_cv_header_stdc+:} false; then :
7408 $as_echo_n "(cached) " >&6
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7425 if ac_fn_c_try_compile "$LINENO"; then :
7426 ac_cv_header_stdc=yes
7428 ac_cv_header_stdc=no
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 if test $ac_cv_header_stdc = yes; then
7433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7440 $EGREP "memchr" >/dev/null 2>&1; then :
7443 ac_cv_header_stdc=no
7449 if test $ac_cv_header_stdc = yes; then
7450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7457 $EGREP "free" >/dev/null 2>&1; then :
7460 ac_cv_header_stdc=no
7466 if test $ac_cv_header_stdc = yes; then
7467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7468 if test "$cross_compiling" = yes; then :
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7475 #if ((' ' & 0x0FF) == 0x020)
7476 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7477 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7479 # define ISLOWER(c) \
7480 (('a' <= (c) && (c) <= 'i') \
7481 || ('j' <= (c) && (c) <= 'r') \
7482 || ('s' <= (c) && (c) <= 'z'))
7483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7491 for (i = 0; i < 256; i++)
7492 if (XOR (islower (i), ISLOWER (i))
7493 || toupper (i) != TOUPPER (i))
7498 if ac_fn_c_try_run "$LINENO"; then :
7501 ac_cv_header_stdc=no
7503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7504 conftest.$ac_objext conftest.beam conftest.$ac_ext
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7510 $as_echo "$ac_cv_header_stdc" >&6; }
7511 if test $ac_cv_header_stdc = yes; then
7513 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7518 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7519 if ${ac_cv_header_time+:} false; then :
7520 $as_echo_n "(cached) " >&6
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 #include <sys/types.h>
7525 #include <sys/time.h>
7531 if ((struct tm *) 0)
7537 if ac_fn_c_try_compile "$LINENO"; then :
7538 ac_cv_header_time=yes
7540 ac_cv_header_time=no
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7545 $as_echo "$ac_cv_header_time" >&6; }
7546 if test $ac_cv_header_time = yes; then
7548 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7553 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7554 if ${ac_cv_header_sys_wait_h+:} false; then :
7555 $as_echo_n "(cached) " >&6
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7559 #include <sys/types.h>
7560 #include <sys/wait.h>
7562 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7565 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7573 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7578 if ac_fn_c_try_compile "$LINENO"; then :
7579 ac_cv_header_sys_wait_h=yes
7581 ac_cv_header_sys_wait_h=no
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7586 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7587 if test $ac_cv_header_sys_wait_h = yes; then
7589 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7640 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7641 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7642 cat >>confdefs.h <<_ACEOF
7643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7651 for ac_header in net/if.h
7653 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
7654 #ifdef HAVE_SYS_SOCKET_H
7655 # include <sys/socket.h>
7660 if test "x$ac_cv_header_net_if_h" = xyes; then :
7661 cat >>confdefs.h <<_ACEOF
7662 #define HAVE_NET_IF_H 1
7670 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
7673 $as_echo "#define OSFC2 /**/" >>confdefs.h
7677 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
7680 $as_echo "#define OSFSIA /**/" >>confdefs.h
7684 if test "x$WITH_OPENSSL" = xyes; then
7687 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
7689 smart_try_dir="$openssl_lib_dir"
7692 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
7693 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
7696 old_CPPFLAGS="$CPPFLAGS"
7701 if test "x$smart_try_dir" != "x"; then
7702 for try in $smart_try_dir; do
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
7704 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
7705 LIBS="-lcrypto $old_LIBS"
7706 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7709 extern char DH_new();
7718 if ac_fn_c_try_link "$LINENO"; then :
7720 smart_lib="-lcrypto"
7721 smart_ldflags="-L$try -Wl,-rpath,$try"
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7723 $as_echo "yes" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7730 rm -f core conftest.err conftest.$ac_objext \
7731 conftest$ac_exeext conftest.$ac_ext
7734 CPPFLAGS="$old_CPPFLAGS"
7737 if test "x$smart_lib" = "x"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
7739 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
7740 LIBS="-lcrypto $old_LIBS"
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743 extern char DH_new();
7752 if ac_fn_c_try_link "$LINENO"; then :
7754 smart_lib="-lcrypto"
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7756 $as_echo "yes" >&6; }
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7762 rm -f core conftest.err conftest.$ac_objext \
7763 conftest$ac_exeext conftest.$ac_ext
7767 if test "x$smart_lib" = "x"; then
7770 if test "x$LOCATE" != "x"; then
7772 file=libcrypto${libltdl_cv_shlibext}
7774 for x in `${LOCATE} $file 2>/dev/null`; do
7775 base=`echo $x | sed "s%/${file}%%"`
7776 if test "x$x" = "x$base"; then
7780 dir=`${DIRNAME} $x 2>/dev/null`
7781 exclude=`echo ${dir} | ${GREP} /home`
7782 if test "x$exclude" != "x"; then
7786 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7787 if test "x$already" = "x"; then
7793 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7797 if test "x$LOCATE" != "x"; then
7801 for x in `${LOCATE} $file 2>/dev/null`; do
7802 base=`echo $x | sed "s%/${file}%%"`
7803 if test "x$x" = "x$base"; then
7807 dir=`${DIRNAME} $x 2>/dev/null`
7808 exclude=`echo ${dir} | ${GREP} /home`
7809 if test "x$exclude" != "x"; then
7813 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7814 if test "x$already" = "x"; then
7820 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7823 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
7825 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
7826 LIBS="-lcrypto $old_LIBS"
7827 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7830 extern char DH_new();
7839 if ac_fn_c_try_link "$LINENO"; then :
7841 smart_lib="-lcrypto"
7842 smart_ldflags="-L$try -Wl,-rpath,$try"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7844 $as_echo "yes" >&6; }
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7851 rm -f core conftest.err conftest.$ac_objext \
7852 conftest$ac_exeext conftest.$ac_ext
7855 CPPFLAGS="$old_CPPFLAGS"
7858 if test "x$smart_lib" != "x"; then
7859 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7860 LIBS="$smart_ldflags $smart_lib $old_LIBS"
7861 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
7864 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
7866 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
7868 OPENSSL_LIBS="$smart_lib"
7869 OPENSSL_LDFLAGS="$smart_ldflags"
7873 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
7874 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
7877 old_CPPFLAGS="$CPPFLAGS"
7882 if test "x$smart_try_dir" != "x"; then
7883 for try in $smart_try_dir; do
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
7885 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
7886 LIBS="-lssl $old_LIBS"
7887 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890 extern char SSL_new();
7899 if ac_fn_c_try_link "$LINENO"; then :
7902 smart_ldflags="-L$try -Wl,-rpath,$try"
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7904 $as_echo "yes" >&6; }
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7911 rm -f core conftest.err conftest.$ac_objext \
7912 conftest$ac_exeext conftest.$ac_ext
7915 CPPFLAGS="$old_CPPFLAGS"
7918 if test "x$smart_lib" = "x"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
7920 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
7921 LIBS="-lssl $old_LIBS"
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924 extern char SSL_new();
7933 if ac_fn_c_try_link "$LINENO"; then :
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7937 $as_echo "yes" >&6; }
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7943 rm -f core conftest.err conftest.$ac_objext \
7944 conftest$ac_exeext conftest.$ac_ext
7948 if test "x$smart_lib" = "x"; then
7951 if test "x$LOCATE" != "x"; then
7953 file=libssl${libltdl_cv_shlibext}
7955 for x in `${LOCATE} $file 2>/dev/null`; do
7956 base=`echo $x | sed "s%/${file}%%"`
7957 if test "x$x" = "x$base"; then
7961 dir=`${DIRNAME} $x 2>/dev/null`
7962 exclude=`echo ${dir} | ${GREP} /home`
7963 if test "x$exclude" != "x"; then
7967 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7968 if test "x$already" = "x"; then
7974 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7978 if test "x$LOCATE" != "x"; then
7982 for x in `${LOCATE} $file 2>/dev/null`; do
7983 base=`echo $x | sed "s%/${file}%%"`
7984 if test "x$x" = "x$base"; then
7988 dir=`${DIRNAME} $x 2>/dev/null`
7989 exclude=`echo ${dir} | ${GREP} /home`
7990 if test "x$exclude" != "x"; then
7994 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7995 if test "x$already" = "x"; then
8001 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8004 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8006 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8007 LIBS="-lssl $old_LIBS"
8008 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 extern char SSL_new();
8020 if ac_fn_c_try_link "$LINENO"; then :
8023 smart_ldflags="-L$try -Wl,-rpath,$try"
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8025 $as_echo "yes" >&6; }
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8032 rm -f core conftest.err conftest.$ac_objext \
8033 conftest$ac_exeext conftest.$ac_ext
8036 CPPFLAGS="$old_CPPFLAGS"
8039 if test "x$smart_lib" != "x"; then
8040 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8041 LIBS="$smart_ldflags $smart_lib $old_LIBS"
8042 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8045 if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
8046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8048 as_fn_error $? "failed linking to libssl. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8049 See \`config.log' for more details" "$LINENO" 5; }
8052 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
8054 OPENSSL_LIBS="$OPENSSL_LIBS $smart_lib"
8056 if test "$OPENSSL_LDFLAGS" != "$smart_ldflags"; then
8057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8059 as_fn_error $? "\"inconsistent LDFLAGS between -lssl '$smart_ldflags' and -lcrypto '$OPENSSL_LDFLAGS'\"
8060 See \`config.log' for more details" "$LINENO" 5; }
8064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8066 as_fn_error $? "failed linking to libcrypto. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8067 See \`config.log' for more details" "$LINENO" 5; }
8070 smart_try_dir="$openssl_include_dir"
8073 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
8074 old_CPPFLAGS="$CPPFLAGS"
8076 smart_include_dir="/usr/local/include /opt/include"
8081 for _prefix in $smart_prefix ""; do
8082 for _dir in $smart_try_dir; do
8083 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8086 for _dir in $smart_include_dir; do
8087 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8091 if test "x$_smart_try_dir" != "x"; then
8092 for try in $_smart_try_dir; do
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8094 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8095 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8099 #include <openssl/ssl.h>
8108 if ac_fn_c_try_compile "$LINENO"; then :
8110 smart_include="-isystem $try"
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8112 $as_echo "yes" >&6; }
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124 CPPFLAGS="$old_CPPFLAGS"
8127 if test "x$smart_include" = "x"; then
8128 for _prefix in $smart_prefix; do
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/openssl/ssl.h" >&5
8130 $as_echo_n "checking for ${_prefix}/openssl/ssl.h... " >&6; }
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8135 #include <openssl/ssl.h>
8144 if ac_fn_c_try_compile "$LINENO"; then :
8146 smart_include="-isystem ${_prefix}/"
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8148 $as_echo "yes" >&6; }
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162 if test "x$smart_include" = "x"; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h" >&5
8164 $as_echo_n "checking for openssl/ssl.h... " >&6; }
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8169 #include <openssl/ssl.h>
8178 if ac_fn_c_try_compile "$LINENO"; then :
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8182 $as_echo "yes" >&6; }
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 if test "x$smart_include" = "x"; then
8197 for prefix in $smart_prefix; do
8200 if test "x$LOCATE" != "x"; then
8202 file="${_prefix}/${1}"
8204 for x in `${LOCATE} $file 2>/dev/null`; do
8205 base=`echo $x | sed "s%/${file}%%"`
8206 if test "x$x" = "x$base"; then
8210 dir=`${DIRNAME} $x 2>/dev/null`
8211 exclude=`echo ${dir} | ${GREP} /home`
8212 if test "x$exclude" != "x"; then
8216 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8217 if test "x$already" = "x"; then
8223 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8228 if test "x$LOCATE" != "x"; then
8232 for x in `${LOCATE} $file 2>/dev/null`; do
8233 base=`echo $x | sed "s%/${file}%%"`
8234 if test "x$x" = "x$base"; then
8238 dir=`${DIRNAME} $x 2>/dev/null`
8239 exclude=`echo ${dir} | ${GREP} /home`
8240 if test "x$exclude" != "x"; then
8244 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8245 if test "x$already" = "x"; then
8251 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8254 for try in $_smart_include_dir; do
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8256 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8257 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8261 #include <openssl/ssl.h>
8270 if ac_fn_c_try_compile "$LINENO"; then :
8272 smart_include="-isystem $try"
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8274 $as_echo "yes" >&6; }
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 $as_echo "no" >&6; }
8284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286 CPPFLAGS="$old_CPPFLAGS"
8289 if test "x$smart_include" != "x"; then
8290 eval "ac_cv_header_$ac_safe=yes"
8291 CPPFLAGS="$smart_include $old_CPPFLAGS"
8292 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8297 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
8299 $as_echo "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
8312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8313 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8314 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8315 cat >>confdefs.h <<_ACEOF
8316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8323 as_fn_error $? "failed locating OpenSSL headers. Use --with-openssl-include-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8324 See \`config.log' for more details" "$LINENO" 5; }
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
8333 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 #include <openssl/crypto.h>
8337 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
8342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8343 $EGREP "yes" >/dev/null 2>&1; then :
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8346 $as_echo "yes" >&6; }
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 $as_echo "no" >&6; }
8352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8354 as_fn_error $? "OpenSSL version too old
8355 See \`config.log' for more details" "$LINENO" 5; }
8362 old_CPPFLAGS="$CPPFLAGS"
8363 CPPFLAGS="$OPENSSL_LDFLAGS $CPPFLAGS"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
8366 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
8367 if test "$cross_compiling" = yes; then :
8368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8370 as_fn_error $? "cannot run test program while cross compiling
8371 See \`config.log' for more details" "$LINENO" 5; }
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8377 #include <openssl/opensslv.h>
8378 #include <openssl/crypto.h>
8384 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
8385 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
8396 if ac_fn_c_try_run "$LINENO"; then :
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8399 $as_echo "yes" >&6; }
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8407 as_fn_error $? "OpenSSL library version does not match header version
8408 See \`config.log' for more details" "$LINENO" 5; }
8412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8413 conftest.$ac_objext conftest.beam conftest.$ac_ext
8416 CPPFLAGS="$old_CPPFLAGS"
8422 export OPENSSL_LIBS OPENSSL_LDFLAGS
8425 if test "x$PCAP_LIBS" = x; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
8427 $as_echo "$as_me: skipping test for pcap.h." >&6;}
8429 smart_try_dir="$pcap_include_dir"
8432 ac_safe=`echo "pcap.h" | sed 'y%./+-%__pm%'`
8433 old_CPPFLAGS="$CPPFLAGS"
8435 smart_include_dir="/usr/local/include /opt/include"
8440 for _prefix in $smart_prefix ""; do
8441 for _dir in $smart_try_dir; do
8442 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8445 for _dir in $smart_include_dir; do
8446 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8450 if test "x$_smart_try_dir" != "x"; then
8451 for try in $_smart_try_dir; do
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8453 $as_echo_n "checking for pcap.h in $try... " >&6; }
8454 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8467 if ac_fn_c_try_compile "$LINENO"; then :
8469 smart_include="-isystem $try"
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8471 $as_echo "yes" >&6; }
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 CPPFLAGS="$old_CPPFLAGS"
8486 if test "x$smart_include" = "x"; then
8487 for _prefix in $smart_prefix; do
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcap.h" >&5
8489 $as_echo_n "checking for ${_prefix}/pcap.h... " >&6; }
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8503 if ac_fn_c_try_compile "$LINENO"; then :
8505 smart_include="-isystem ${_prefix}/"
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8507 $as_echo "yes" >&6; }
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 if test "x$smart_include" = "x"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5
8523 $as_echo_n "checking for pcap.h... " >&6; }
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8537 if ac_fn_c_try_compile "$LINENO"; then :
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8541 $as_echo "yes" >&6; }
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554 if test "x$smart_include" = "x"; then
8556 for prefix in $smart_prefix; do
8559 if test "x$LOCATE" != "x"; then
8561 file="${_prefix}/${1}"
8563 for x in `${LOCATE} $file 2>/dev/null`; do
8564 base=`echo $x | sed "s%/${file}%%"`
8565 if test "x$x" = "x$base"; then
8569 dir=`${DIRNAME} $x 2>/dev/null`
8570 exclude=`echo ${dir} | ${GREP} /home`
8571 if test "x$exclude" != "x"; then
8575 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8576 if test "x$already" = "x"; then
8582 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8587 if test "x$LOCATE" != "x"; then
8591 for x in `${LOCATE} $file 2>/dev/null`; do
8592 base=`echo $x | sed "s%/${file}%%"`
8593 if test "x$x" = "x$base"; then
8597 dir=`${DIRNAME} $x 2>/dev/null`
8598 exclude=`echo ${dir} | ${GREP} /home`
8599 if test "x$exclude" != "x"; then
8603 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8604 if test "x$already" = "x"; then
8610 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8613 for try in $_smart_include_dir; do
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8615 $as_echo_n "checking for pcap.h in $try... " >&6; }
8616 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8629 if ac_fn_c_try_compile "$LINENO"; then :
8631 smart_include="-isystem $try"
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8633 $as_echo "yes" >&6; }
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640 $as_echo "no" >&6; }
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 CPPFLAGS="$old_CPPFLAGS"
8648 if test "x$smart_include" != "x"; then
8649 eval "ac_cv_header_$ac_safe=yes"
8650 CPPFLAGS="$smart_include $old_CPPFLAGS"
8651 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8656 if test "x$ac_cv_header_pcap_h" == "xyes"; then
8658 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&5
8664 $as_echo "$as_me: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&2;}
8668 if test "x$COLLECTDC_LIBS" = x; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for collectd/client.h." >&5
8670 $as_echo "$as_me: skipping test for collectd/client.h." >&6;}
8672 smart_try_dir="$collectdclient_include_dir"
8675 ac_safe=`echo "collectd/client.h" | sed 'y%./+-%__pm%'`
8676 old_CPPFLAGS="$CPPFLAGS"
8678 smart_include_dir="/usr/local/include /opt/include"
8683 for _prefix in $smart_prefix ""; do
8684 for _dir in $smart_try_dir; do
8685 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8688 for _dir in $smart_include_dir; do
8689 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8693 if test "x$_smart_try_dir" != "x"; then
8694 for try in $_smart_try_dir; do
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
8696 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
8697 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8701 #include <collectd/client.h>
8710 if ac_fn_c_try_compile "$LINENO"; then :
8712 smart_include="-isystem $try"
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8714 $as_echo "yes" >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 CPPFLAGS="$old_CPPFLAGS"
8729 if test "x$smart_include" = "x"; then
8730 for _prefix in $smart_prefix; do
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/collectd/client.h" >&5
8732 $as_echo_n "checking for ${_prefix}/collectd/client.h... " >&6; }
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8737 #include <collectd/client.h>
8746 if ac_fn_c_try_compile "$LINENO"; then :
8748 smart_include="-isystem ${_prefix}/"
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8750 $as_echo "yes" >&6; }
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 $as_echo "no" >&6; }
8760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 if test "x$smart_include" = "x"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h" >&5
8766 $as_echo_n "checking for collectd/client.h... " >&6; }
8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8771 #include <collectd/client.h>
8780 if ac_fn_c_try_compile "$LINENO"; then :
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8784 $as_echo "yes" >&6; }
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 if test "x$smart_include" = "x"; then
8799 for prefix in $smart_prefix; do
8802 if test "x$LOCATE" != "x"; then
8804 file="${_prefix}/${1}"
8806 for x in `${LOCATE} $file 2>/dev/null`; do
8807 base=`echo $x | sed "s%/${file}%%"`
8808 if test "x$x" = "x$base"; then
8812 dir=`${DIRNAME} $x 2>/dev/null`
8813 exclude=`echo ${dir} | ${GREP} /home`
8814 if test "x$exclude" != "x"; then
8818 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8819 if test "x$already" = "x"; then
8825 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8830 if test "x$LOCATE" != "x"; then
8832 file=collectd/client.h
8834 for x in `${LOCATE} $file 2>/dev/null`; do
8835 base=`echo $x | sed "s%/${file}%%"`
8836 if test "x$x" = "x$base"; then
8840 dir=`${DIRNAME} $x 2>/dev/null`
8841 exclude=`echo ${dir} | ${GREP} /home`
8842 if test "x$exclude" != "x"; then
8846 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8847 if test "x$already" = "x"; then
8853 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8856 for try in $_smart_include_dir; do
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
8858 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
8859 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8863 #include <collectd/client.h>
8872 if ac_fn_c_try_compile "$LINENO"; then :
8874 smart_include="-isystem $try"
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8876 $as_echo "yes" >&6; }
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888 CPPFLAGS="$old_CPPFLAGS"
8891 if test "x$smart_include" != "x"; then
8892 eval "ac_cv_header_$ac_safe=yes"
8893 CPPFLAGS="$smart_include $old_CPPFLAGS"
8894 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8899 if test "x$ac_cv_header_collectd_client_h" == "xyes"; then
8901 $as_echo "#define HAVE_COLLECTDC_H 1" >>confdefs.h
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&5
8907 $as_echo "$as_me: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&2;}
8912 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8913 if test "x$ac_cv_type_off_t" = xyes; then :
8917 cat >>confdefs.h <<_ACEOF
8918 #define off_t long int
8923 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8924 if test "x$ac_cv_type_pid_t" = xyes; then :
8928 cat >>confdefs.h <<_ACEOF
8934 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8935 if test "x$ac_cv_type_size_t" = xyes; then :
8939 cat >>confdefs.h <<_ACEOF
8940 #define size_t unsigned int
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8946 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8947 if ${ac_cv_type_uid_t+:} false; then :
8948 $as_echo_n "(cached) " >&6
8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951 /* end confdefs.h. */
8952 #include <sys/types.h>
8955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8956 $EGREP "uid_t" >/dev/null 2>&1; then :
8957 ac_cv_type_uid_t=yes
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8965 $as_echo "$ac_cv_type_uid_t" >&6; }
8966 if test $ac_cv_type_uid_t = no; then
8968 $as_echo "#define uid_t int" >>confdefs.h
8971 $as_echo "#define gid_t int" >>confdefs.h
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
8978 $as_echo_n "checking for socklen_t... " >&6; }
8979 if ${ac_cv_type_socklen_t+:} false; then :
8980 $as_echo_n "(cached) " >&6
8982 ac_cv_type_socklen_t=no
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8985 #ifdef HAVE_SYS_TYPES_H
8986 # include <sys/types.h>
8989 #ifdef HAVE_SYS_SOCKET_H
8990 # include <sys/socket.h>
9001 if ac_fn_c_try_compile "$LINENO"; then :
9002 ac_cv_type_socklen_t=yes
9004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
9009 $as_echo "$ac_cv_type_socklen_t" >&6; }
9011 if test "$ac_cv_type_socklen_t" != "yes"; then
9013 $as_echo "#define socklen_t int" >>confdefs.h
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
9020 $as_echo_n "checking for uint8_t... " >&6; }
9021 if ${ac_cv_type_uint8_t+:} false; then :
9022 $as_echo_n "(cached) " >&6
9024 ac_cv_type_uint8_t=no
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9027 #ifdef HAVE_INTTYPES_H
9028 # include <inttypes.h>
9031 #ifdef HAVE_STDINT_H
9032 # include <stdint.h>
9043 if ac_fn_c_try_compile "$LINENO"; then :
9044 ac_cv_type_uint8_t=yes
9046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
9051 $as_echo "$ac_cv_type_uint8_t" >&6; }
9053 if test "$ac_cv_type_uint8_t" != "yes"; then
9055 $as_echo "#define uint8_t unsigned char" >>confdefs.h
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
9062 $as_echo_n "checking for uint16_t... " >&6; }
9063 if ${ac_cv_type_uint16_t+:} false; then :
9064 $as_echo_n "(cached) " >&6
9066 ac_cv_type_uint16_t=no
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069 #ifdef HAVE_INTTYPES_H
9070 # include <inttypes.h>
9073 #ifdef HAVE_STDINT_H
9074 # include <stdint.h>
9085 if ac_fn_c_try_compile "$LINENO"; then :
9086 ac_cv_type_uint16_t=yes
9088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
9093 $as_echo "$ac_cv_type_uint16_t" >&6; }
9095 if test "$ac_cv_type_uint16_t" != "yes"; then
9097 $as_echo "#define uint16_t unsigned short" >>confdefs.h
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
9104 $as_echo_n "checking for uint32_t... " >&6; }
9105 if ${ac_cv_type_uint32_t+:} false; then :
9106 $as_echo_n "(cached) " >&6
9108 ac_cv_type_uint32_t=no
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111 #ifdef HAVE_INTTYPES_H
9112 # include <inttypes.h>
9115 #ifdef HAVE_STDINT_H
9116 # include <stdint.h>
9127 if ac_fn_c_try_compile "$LINENO"; then :
9128 ac_cv_type_uint32_t=yes
9130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
9135 $as_echo "$ac_cv_type_uint32_t" >&6; }
9137 if test "$ac_cv_type_uint32_t" != "yes"; then
9139 $as_echo "#define uint32_t unsigned int" >>confdefs.h
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
9146 $as_echo_n "checking for uint64_t... " >&6; }
9147 if ${ac_cv_type_uint64_t+:} false; then :
9148 $as_echo_n "(cached) " >&6
9150 ac_cv_type_uint64_t=no
9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152 /* end confdefs.h. */
9153 #ifdef HAVE_INTTYPES_H
9154 # include <inttypes.h>
9157 #ifdef HAVE_STDINT_H
9158 # include <stdint.h>
9169 if ac_fn_c_try_compile "$LINENO"; then :
9170 ac_cv_type_uint64_t=yes
9172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5
9177 $as_echo "$ac_cv_type_uint64_t" >&6; }
9179 if test "$ac_cv_type_uint64_t" != "yes"; then
9181 $as_echo "#define uint64_t unsigned long long" >>confdefs.h
9186 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
9187 if test "x$ac_cv_type___uint128_t" = xyes; then :
9189 $as_echo "#define HAVE___UINT128_T 1" >>confdefs.h
9194 ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "
9195 #ifdef HAVE_INTTYPES_H
9196 # include <inttypes.h>
9199 #ifdef HAVE_STDINT_H
9200 # include <stdint.h>
9205 if test "x$ac_cv_type_uint128_t" = xyes; then :
9207 $as_echo "#define HAVE_UINT128_T 1" >>confdefs.h
9212 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
9213 #ifdef HAVE_NETINET_IN_H
9214 # include <netinet/in.h>
9219 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
9221 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
9226 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9227 #ifdef HAVE_NETINET_IN_H
9228 # include <netinet/in.h>
9231 #ifdef HAVE_SYS_SOCKET_H
9232 # include <sys/socket.h>
9236 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
9238 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
9243 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
9244 #ifdef HAVE_NETINET_IN_H
9245 # include <netinet/in.h>
9249 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
9251 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
9256 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
9257 #ifdef HAVE_SYS_TYPES_H
9258 # include <sys/types.h>
9261 #ifdef HAVE_SYS_SOCKET_H
9262 # include <sys/socket.h>
9271 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
9273 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_t is defined" >&5
9279 $as_echo_n "checking if sig_t is defined... " >&6; }
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9283 #ifdef HAVE_SIGNAL_H
9284 # include <signal.h>
9299 if ac_fn_c_try_link "$LINENO"; then :
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9302 $as_echo "yes" >&6; }
9304 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310 $as_echo "no" >&6; }
9314 rm -f core conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
9353 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9354 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9355 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9356 cat >>confdefs.h <<_ACEOF
9357 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9365 $as_echo_n "checking return type of signal handlers... " >&6; }
9366 if ${ac_cv_type_signal+:} false; then :
9367 $as_echo_n "(cached) " >&6
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9371 #include <sys/types.h>
9377 return *(signal (0, 0)) (0) == 1;
9382 if ac_fn_c_try_compile "$LINENO"; then :
9383 ac_cv_type_signal=int
9385 ac_cv_type_signal=void
9387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9390 $as_echo "$ac_cv_type_signal" >&6; }
9392 cat >>confdefs.h <<_ACEOF
9393 #define RETSIGTYPE $ac_cv_type_signal
9398 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
9401 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9408 #ifdef HAVE_STDDEF_H
9412 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
9418 int foo = offsetof(struct utmpx, ut_xtime)
9423 if ac_fn_c_try_compile "$LINENO"; then :
9428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9430 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
9431 if test "x$has_element" != "x"; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9433 $as_echo "yes" >&6; }
9434 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9438 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
9441 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
9443 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
9450 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9456 #include <netinet/in.h>
9457 #ifdef HAVE_STDDEF_H
9461 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
9467 int foo = offsetof(struct in_pktinfo, ipi_addr)
9472 if ac_fn_c_try_compile "$LINENO"; then :
9477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
9480 if test "x$has_element" != "x"; then
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9482 $as_echo "yes" >&6; }
9483 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9487 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
9490 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
9492 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
9498 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9504 #include <netinet/in.h>
9505 #ifdef HAVE_STDDEF_H
9509 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
9515 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
9520 if ac_fn_c_try_compile "$LINENO"; then :
9525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
9528 if test "x$has_element" != "x"; then
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9530 $as_echo "yes" >&6; }
9531 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 $as_echo "no" >&6; }
9535 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
9538 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
9540 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonll is defined" >&5
9545 $as_echo_n "checking if htonll is defined... " >&6; }
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9549 #include <sys/types.h>
9550 #include <netinet/in.h>
9563 if ac_fn_c_try_link "$LINENO"; then :
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9566 $as_echo "yes" >&6; }
9568 $as_echo "#define HAVE_HTONLL 1" >>confdefs.h
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9574 $as_echo "no" >&6; }
9578 rm -f core conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonlll is defined" >&5
9582 $as_echo_n "checking if htonlll is defined... " >&6; }
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9586 #include <sys/types.h>
9587 #include <netinet/in.h>
9600 if ac_fn_c_try_link "$LINENO"; then :
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9603 $as_echo "yes" >&6; }
9605 $as_echo "#define HAVE_HTONLLL 1" >>confdefs.h
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 $as_echo "no" >&6; }
9615 rm -f core conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9620 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9621 if ${ac_cv_c_const+:} false; then :
9622 $as_echo_n "(cached) " >&6
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9632 /* Ultrix mips cc rejects this sort of thing. */
9633 typedef int charset[2];
9634 const charset cs = { 0, 0 };
9635 /* SunOS 4.1.1 cc rejects this. */
9636 char const *const *pcpcc;
9638 /* NEC SVR4.0.2 mips cc rejects this. */
9639 struct point {int x, y;};
9640 static struct point const zero = {0,0};
9641 /* AIX XL C 1.02.0.0 rejects this.
9642 It does not let you subtract one const X* pointer from another in
9643 an arm of an if-expression whose if-part is not a constant
9645 const char *g = "string";
9646 pcpcc = &g + (g ? g-g : 0);
9647 /* HPUX 7.0 cc rejects these. */
9649 ppc = (char**) pcpcc;
9650 pcpcc = (char const *const *) ppc;
9651 { /* SCO 3.2v4 cc rejects this sort of thing. */
9654 char const *s = 0 ? (char *) 0 : (char const *) 0;
9659 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9661 const int *foo = &x[0];
9664 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9665 typedef const int *iptr;
9669 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9670 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9671 struct s { int j; const int *ap[3]; } bx;
9672 struct s *b = &bx; b->j = 5;
9674 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9678 return !cs[0] && !zero.x;
9685 if ac_fn_c_try_compile "$LINENO"; then :
9690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9693 $as_echo "$ac_cv_c_const" >&6; }
9694 if test $ac_cv_c_const = no; then
9696 $as_echo "#define const /**/" >>confdefs.h
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
9702 $as_echo_n "checking type of OS... " >&6; }
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
9705 $as_echo "$OS" >&6; }
9706 if test "$OS" = "OS/2"; then
9713 if test "x$developer" = "xyes"; then
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
9715 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
9719 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
9720 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
9721 $as_echo_n "(cached) " >&6
9725 CFLAGS_SAVED=$CFLAGS
9726 CFLAGS="$CFLAGS -Werror -Wdocumentation"
9729 ac_cpp='$CPP $CPPFLAGS'
9730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9745 if ac_fn_c_try_compile "$LINENO"; then :
9746 ax_cv_cc_wdocumentation_flag="yes"
9748 ax_cv_cc_wdocumentation_flag="no"
9750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9752 ac_cpp='$CPP $CPPFLAGS'
9753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9758 CFLAGS="$CFLAGS_SAVED"
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
9762 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
9764 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
9765 devflags="-Wdocumentation"
9768 if test "x$GCC" = "xyes"; then
9769 devflags="$devflags -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length -Wno-cast-align -Wformat-nonliteral -Wformat-security -Wformat=2 -DWITH_VERIFY_PTR=1"
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
9774 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
9776 CFLAGS="$CFLAGS $devflags"
9777 if test "x$EXPERIMENTAL" != "xno"; then
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
9779 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
9784 CFLAGS="$CFLAGS -DNDEBUG"
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
9789 $as_echo_n "checking if building with -DNDEBUG... " >&6; }
9790 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9792 $as_echo "yes" >&6; }
9794 $as_echo "#define WITH_NDEBUG 1" >>confdefs.h
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798 $as_echo "no" >&6; }
9803 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
9804 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
9806 cat >>confdefs.h <<_ACEOF
9807 #define RADIUSD_VERSION_COMMIT ${RADIUSD_VERSION_COMMIT}
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
9814 $as_echo_n "checking for __thread support in compiler... " >&6; }
9815 if test "$cross_compiling" = yes; then :
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9821 static __thread int val;
9822 int main(int argc, char **argv) {
9829 if ac_fn_c_try_run "$LINENO"; then :
9834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9835 conftest.$ac_objext conftest.beam conftest.$ac_ext
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
9839 $as_echo "$have_tls" >&6; }
9840 if test "x$have_tls" = "xyes"; then
9842 $as_echo "#define TLS_STORAGE_CLASS __thread" >>confdefs.h
9846 if test "x$have_tls" = "xno"; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __declspec(thread) support in compiler" >&5
9848 $as_echo_n "checking for __declspec(thread) support in compiler... " >&6; }
9849 if test "$cross_compiling" = yes; then :
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9855 static _Thread_local int val;
9856 int main(int argc, char **argv) {
9863 if ac_fn_c_try_run "$LINENO"; then :
9868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9869 conftest.$ac_objext conftest.beam conftest.$ac_ext
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
9873 $as_echo "$have_tls" >&6; }
9874 if test "x$have_tls" = "xyes"; then
9876 $as_echo "#define TLS_STORAGE_CLASS __declspec(thread)" >>confdefs.h
9880 if test "x$have_tls" = "xno"; then
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Thread_local support in compiler" >&5
9882 $as_echo_n "checking for _Thread_local support in compiler... " >&6; }
9883 if test "$cross_compiling" = yes; then :
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9889 static _Thread_local int val;
9890 int main(int argc, char **argv) {
9897 if ac_fn_c_try_run "$LINENO"; then :
9902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9903 conftest.$ac_objext conftest.beam conftest.$ac_ext
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
9907 $as_echo "$have_tls" >&6; }
9908 if test "x$have_tls" = "xyes"; then
9910 $as_echo "#define TLS_STORAGE_CLASS _Thread_local" >>confdefs.h
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_choose_expr support in compiler" >&5
9917 $as_echo_n "checking for __builtin_choose_expr support in compiler... " >&6; }
9918 if test "$cross_compiling" = yes; then :
9919 have_builtin_choose_expr=no
9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922 /* end confdefs.h. */
9924 int main(int argc, char **argv) {
9925 return __builtin_choose_expr(0, 1, 0);
9930 if ac_fn_c_try_run "$LINENO"; then :
9931 have_builtin_choose_expr=yes
9933 have_builtin_choose_expr=no
9935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9936 conftest.$ac_objext conftest.beam conftest.$ac_ext
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_choose_expr" >&5
9940 $as_echo "$have_builtin_choose_expr" >&6; }
9941 if test "x$have_builtin_choose_expr" = "xyes"; then
9943 $as_echo "#define HAVE_BUILTIN_CHOOSE_EXPR 1" >>confdefs.h
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p support in compiler" >&5
9949 $as_echo_n "checking for __builtin_types_compatible_p support in compiler... " >&6; }
9950 if test "$cross_compiling" = yes; then :
9951 have_builtin_types_compatible_p=no
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9956 int main(int argc, char **argv) {
9957 return !(__builtin_types_compatible_p(char *, char *));
9962 if ac_fn_c_try_run "$LINENO"; then :
9963 have_builtin_types_compatible_p=yes
9965 have_builtin_types_compatible_p=no
9967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9968 conftest.$ac_objext conftest.beam conftest.$ac_ext
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_types_compatible_p" >&5
9972 $as_echo "$have_builtin_types_compatible_p" >&6; }
9973 if test "x$have_builtin_types_compatible_p" = "xyes"; then
9975 $as_echo "#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64 support in compiler" >&5
9981 $as_echo_n "checking for __builtin_bswap64 support in compiler... " >&6; }
9982 if test "$cross_compiling" = yes; then :
9983 have_builtin_bswap64=no
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9988 int main(int argc, char **argv) {
9989 return (__builtin_bswap64(0));
9994 if ac_fn_c_try_run "$LINENO"; then :
9995 have_builtin_bswap64=yes
9997 have_builtin_bswap64=no
9999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10000 conftest.$ac_objext conftest.beam conftest.$ac_ext
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_bswap64" >&5
10004 $as_echo "$have_builtin_bswap64" >&6; }
10005 if test "x$have_builtin_bswap64" = "xyes"; then
10007 $as_echo "#define HAVE_BUILTIN_BSWAP_64 1" >>confdefs.h
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc_set_memlimit in -ltalloc" >&5
10014 $as_echo_n "checking for talloc_set_memlimit in -ltalloc... " >&6; }
10015 if ${ac_cv_lib_talloc_talloc_set_memlimit+:} false; then :
10016 $as_echo_n "(cached) " >&6
10018 ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-ltalloc $LIBS"
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10023 /* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
10029 char talloc_set_memlimit ();
10033 return talloc_set_memlimit ();
10038 if ac_fn_c_try_link "$LINENO"; then :
10039 ac_cv_lib_talloc_talloc_set_memlimit=yes
10041 ac_cv_lib_talloc_talloc_set_memlimit=no
10043 rm -f core conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045 LIBS=$ac_check_lib_save_LIBS
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_talloc_talloc_set_memlimit" >&5
10048 $as_echo "$ac_cv_lib_talloc_talloc_set_memlimit" >&6; }
10049 if test "x$ac_cv_lib_talloc_talloc_set_memlimit" = xyes; then :
10052 $as_echo "#define HAVE_TALLOC_SET_MEMLIMIT 1" >>confdefs.h
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10060 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10061 if ${ac_cv_lib_crypt_crypt+:} false; then :
10062 $as_echo_n "(cached) " >&6
10064 ac_check_lib_save_LIBS=$LIBS
10065 LIBS="-lcrypt $LIBS"
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10069 /* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
10084 if ac_fn_c_try_link "$LINENO"; then :
10085 ac_cv_lib_crypt_crypt=yes
10087 ac_cv_lib_crypt_crypt=no
10089 rm -f core conftest.err conftest.$ac_objext \
10090 conftest$ac_exeext conftest.$ac_ext
10091 LIBS=$ac_check_lib_save_LIBS
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10094 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10095 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10101 if test "$CRYPTLIB" != ""; then
10103 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10106 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
10107 if test "x$ac_cv_func_crypt" = xyes; then :
10109 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
10116 $as_echo_n "checking for setkey in -lcipher... " >&6; }
10117 if ${ac_cv_lib_cipher_setkey+:} false; then :
10118 $as_echo_n "(cached) " >&6
10120 ac_check_lib_save_LIBS=$LIBS
10121 LIBS="-lcipher $LIBS"
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10125 /* Override any GCC internal prototype to avoid an error.
10126 Use char because int might match the return type of a GCC
10127 builtin and then its argument prototype would still apply. */
10140 if ac_fn_c_try_link "$LINENO"; then :
10141 ac_cv_lib_cipher_setkey=yes
10143 ac_cv_lib_cipher_setkey=no
10145 rm -f core conftest.err conftest.$ac_objext \
10146 conftest$ac_exeext conftest.$ac_ext
10147 LIBS=$ac_check_lib_save_LIBS
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
10150 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
10151 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
10152 CRYPTLIB="${CRYPTLIB} -lcipher"
10160 # Check whether --with-execinfo-lib-dir was given.
10161 if test "${with_execinfo_lib_dir+set}" = set; then :
10162 withval=$with_execinfo_lib_dir; case "$withval" in
10164 as_fn_error $? "Need execinfo-lib-dir" "$LINENO" 5
10169 execinfo_lib_dir="$withval"
10176 execinfo_include_dir=
10178 # Check whether --with-execinfo-include-dir was given.
10179 if test "${with_execinfo_include_dir+set}" = set; then :
10180 withval=$with_execinfo_include_dir; case "$withval" in
10182 as_fn_error $? "Need execinfo-include-dir" "$LINENO" 5
10187 execinfo_include_dir="$withval"
10194 smart_try_dir=$execinfo_include_dir
10197 ac_safe=`echo "execinfo.h" | sed 'y%./+-%__pm%'`
10198 old_CPPFLAGS="$CPPFLAGS"
10200 smart_include_dir="/usr/local/include /opt/include"
10203 _smart_include_dir=
10205 for _prefix in $smart_prefix ""; do
10206 for _dir in $smart_try_dir; do
10207 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
10210 for _dir in $smart_include_dir; do
10211 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
10215 if test "x$_smart_try_dir" != "x"; then
10216 for try in $_smart_try_dir; do
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
10218 $as_echo_n "checking for execinfo.h in $try... " >&6; }
10219 CPPFLAGS="-isystem $try $old_CPPFLAGS"
10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10223 #include <execinfo.h>
10232 if ac_fn_c_try_compile "$LINENO"; then :
10234 smart_include="-isystem $try"
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10236 $as_echo "yes" >&6; }
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10248 CPPFLAGS="$old_CPPFLAGS"
10251 if test "x$smart_include" = "x"; then
10252 for _prefix in $smart_prefix; do
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/execinfo.h" >&5
10254 $as_echo_n "checking for ${_prefix}/execinfo.h... " >&6; }
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10259 #include <execinfo.h>
10268 if ac_fn_c_try_compile "$LINENO"; then :
10270 smart_include="-isystem ${_prefix}/"
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10272 $as_echo "yes" >&6; }
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10286 if test "x$smart_include" = "x"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h" >&5
10288 $as_echo_n "checking for execinfo.h... " >&6; }
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10293 #include <execinfo.h>
10302 if ac_fn_c_try_compile "$LINENO"; then :
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10306 $as_echo "yes" >&6; }
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10319 if test "x$smart_include" = "x"; then
10321 for prefix in $smart_prefix; do
10324 if test "x$LOCATE" != "x"; then
10326 file="${_prefix}/${1}"
10328 for x in `${LOCATE} $file 2>/dev/null`; do
10329 base=`echo $x | sed "s%/${file}%%"`
10330 if test "x$x" = "x$base"; then
10334 dir=`${DIRNAME} $x 2>/dev/null`
10335 exclude=`echo ${dir} | ${GREP} /home`
10336 if test "x$exclude" != "x"; then
10340 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
10341 if test "x$already" = "x"; then
10347 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
10352 if test "x$LOCATE" != "x"; then
10356 for x in `${LOCATE} $file 2>/dev/null`; do
10357 base=`echo $x | sed "s%/${file}%%"`
10358 if test "x$x" = "x$base"; then
10362 dir=`${DIRNAME} $x 2>/dev/null`
10363 exclude=`echo ${dir} | ${GREP} /home`
10364 if test "x$exclude" != "x"; then
10368 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
10369 if test "x$already" = "x"; then
10375 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
10378 for try in $_smart_include_dir; do
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
10380 $as_echo_n "checking for execinfo.h in $try... " >&6; }
10381 CPPFLAGS="-isystem $try $old_CPPFLAGS"
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10385 #include <execinfo.h>
10394 if ac_fn_c_try_compile "$LINENO"; then :
10396 smart_include="-isystem $try"
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10398 $as_echo "yes" >&6; }
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405 $as_echo "no" >&6; }
10408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10410 CPPFLAGS="$old_CPPFLAGS"
10413 if test "x$smart_include" != "x"; then
10414 eval "ac_cv_header_$ac_safe=yes"
10415 CPPFLAGS="$smart_include $old_CPPFLAGS"
10416 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
10421 if test "x$ac_cv_header_execinfo_h" = "xyes"; then
10422 smart_try_dir=$execinfo_lib_dir
10425 sm_lib_safe=`echo "execinfo" | sed 'y%./+-%__p_%'`
10426 sm_func_safe=`echo "backtrace_symbols" | sed 'y%./+-%__p_%'`
10429 old_CPPFLAGS="$CPPFLAGS"
10434 if test "x$smart_try_dir" != "x"; then
10435 for try in $smart_try_dir; do
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
10437 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
10438 LIBS="-lexecinfo $old_LIBS"
10439 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10442 extern char backtrace_symbols();
10446 backtrace_symbols()
10451 if ac_fn_c_try_link "$LINENO"; then :
10453 smart_lib="-lexecinfo"
10454 smart_ldflags="-L$try -Wl,-rpath,$try"
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10456 $as_echo "yes" >&6; }
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461 $as_echo "no" >&6; }
10463 rm -f core conftest.err conftest.$ac_objext \
10464 conftest$ac_exeext conftest.$ac_ext
10467 CPPFLAGS="$old_CPPFLAGS"
10470 if test "x$smart_lib" = "x"; then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo" >&5
10472 $as_echo_n "checking for backtrace_symbols in -lexecinfo... " >&6; }
10473 LIBS="-lexecinfo $old_LIBS"
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10476 extern char backtrace_symbols();
10480 backtrace_symbols()
10485 if ac_fn_c_try_link "$LINENO"; then :
10487 smart_lib="-lexecinfo"
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10489 $as_echo "yes" >&6; }
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10495 rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10500 if test "x$smart_lib" = "x"; then
10503 if test "x$LOCATE" != "x"; then
10505 file=libexecinfo${libltdl_cv_shlibext}
10507 for x in `${LOCATE} $file 2>/dev/null`; do
10508 base=`echo $x | sed "s%/${file}%%"`
10509 if test "x$x" = "x$base"; then
10513 dir=`${DIRNAME} $x 2>/dev/null`
10514 exclude=`echo ${dir} | ${GREP} /home`
10515 if test "x$exclude" != "x"; then
10519 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
10520 if test "x$already" = "x"; then
10526 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
10530 if test "x$LOCATE" != "x"; then
10534 for x in `${LOCATE} $file 2>/dev/null`; do
10535 base=`echo $x | sed "s%/${file}%%"`
10536 if test "x$x" = "x$base"; then
10540 dir=`${DIRNAME} $x 2>/dev/null`
10541 exclude=`echo ${dir} | ${GREP} /home`
10542 if test "x$exclude" != "x"; then
10546 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
10547 if test "x$already" = "x"; then
10553 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
10556 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
10558 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
10559 LIBS="-lexecinfo $old_LIBS"
10560 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 extern char backtrace_symbols();
10567 backtrace_symbols()
10572 if ac_fn_c_try_link "$LINENO"; then :
10574 smart_lib="-lexecinfo"
10575 smart_ldflags="-L$try -Wl,-rpath,$try"
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577 $as_echo "yes" >&6; }
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10582 $as_echo "no" >&6; }
10584 rm -f core conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
10588 CPPFLAGS="$old_CPPFLAGS"
10591 if test "x$smart_lib" != "x"; then
10592 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
10593 LIBS="$smart_ldflags $smart_lib $old_LIBS"
10594 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
10597 if test "x$ac_cv_lib_execinfo_backtrace_symbols" != "xyes"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if execinfo provided as part of libc" >&5
10599 $as_echo_n "checking if execinfo provided as part of libc... " >&6; }
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10603 #include <execinfo.h>
10610 backtrace_symbols(&sym, sizeof(sym))
10615 if ac_fn_c_try_link "$LINENO"; then :
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10618 $as_echo "yes" >&6; }
10619 ac_cv_lib_execinfo_backtrace_symbols="yes"
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10628 rm -f core conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10632 if test "x$ac_cv_lib_execinfo_backtrace_symbols" = "xyes"; then
10634 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
10641 # Check whether --with-pcre-lib-dir was given.
10642 if test "${with_pcre_lib_dir+set}" = set; then :
10643 withval=$with_pcre_lib_dir; case "$withval" in
10645 as_fn_error $? "Need pcre-lib-dir" "$LINENO" 5
10650 pcre_lib_dir="$withval"
10659 # Check whether --with-pcre-include-dir was given.
10660 if test "${with_pcre_include_dir+set}" = set; then :
10661 withval=$with_pcre_include_dir; case "$withval" in
10663 as_fn_error $? "Need pcre-include-dir" "$LINENO" 5
10668 pcre_include_dir="$withval"
10679 smart_try_dir=$pcre_include_dir
10682 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__pm%'`
10683 old_CPPFLAGS="$CPPFLAGS"
10685 smart_include_dir="/usr/local/include /opt/include"
10688 _smart_include_dir=
10690 for _prefix in $smart_prefix ""; do
10691 for _dir in $smart_try_dir; do
10692 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
10695 for _dir in $smart_include_dir; do
10696 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
10700 if test "x$_smart_try_dir" != "x"; then
10701 for try in $_smart_try_dir; do
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
10703 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
10704 CPPFLAGS="-isystem $try $old_CPPFLAGS"
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10708 #include <pcreposix.h>
10717 if ac_fn_c_try_compile "$LINENO"; then :
10719 smart_include="-isystem $try"
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10721 $as_echo "yes" >&6; }
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728 $as_echo "no" >&6; }
10731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733 CPPFLAGS="$old_CPPFLAGS"
10736 if test "x$smart_include" = "x"; then
10737 for _prefix in $smart_prefix; do
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcreposix.h" >&5
10739 $as_echo_n "checking for ${_prefix}/pcreposix.h... " >&6; }
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10744 #include <pcreposix.h>
10753 if ac_fn_c_try_compile "$LINENO"; then :
10755 smart_include="-isystem ${_prefix}/"
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10757 $as_echo "yes" >&6; }
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764 $as_echo "no" >&6; }
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10771 if test "x$smart_include" = "x"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h" >&5
10773 $as_echo_n "checking for pcreposix.h... " >&6; }
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10778 #include <pcreposix.h>
10787 if ac_fn_c_try_compile "$LINENO"; then :
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10791 $as_echo "yes" >&6; }
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798 $as_echo "no" >&6; }
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 if test "x$smart_include" = "x"; then
10806 for prefix in $smart_prefix; do
10809 if test "x$LOCATE" != "x"; then
10811 file="${_prefix}/${1}"
10813 for x in `${LOCATE} $file 2>/dev/null`; do
10814 base=`echo $x | sed "s%/${file}%%"`
10815 if test "x$x" = "x$base"; then
10819 dir=`${DIRNAME} $x 2>/dev/null`
10820 exclude=`echo ${dir} | ${GREP} /home`
10821 if test "x$exclude" != "x"; then
10825 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
10826 if test "x$already" = "x"; then
10832 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
10837 if test "x$LOCATE" != "x"; then
10841 for x in `${LOCATE} $file 2>/dev/null`; do
10842 base=`echo $x | sed "s%/${file}%%"`
10843 if test "x$x" = "x$base"; then
10847 dir=`${DIRNAME} $x 2>/dev/null`
10848 exclude=`echo ${dir} | ${GREP} /home`
10849 if test "x$exclude" != "x"; then
10853 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
10854 if test "x$already" = "x"; then
10860 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
10863 for try in $_smart_include_dir; do
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
10865 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
10866 CPPFLAGS="-isystem $try $old_CPPFLAGS"
10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h. */
10870 #include <pcreposix.h>
10879 if ac_fn_c_try_compile "$LINENO"; then :
10881 smart_include="-isystem $try"
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10883 $as_echo "yes" >&6; }
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895 CPPFLAGS="$old_CPPFLAGS"
10898 if test "x$smart_include" != "x"; then
10899 eval "ac_cv_header_$ac_safe=yes"
10900 CPPFLAGS="$smart_include $old_CPPFLAGS"
10901 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
10906 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
10908 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
10911 $as_echo "#define HAVE_PCREPOSIX_H 1" >>confdefs.h
10916 LIBS="-lpcre -lpcreposix $LIBS"
10922 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
10923 old_CPPFLAGS="$CPPFLAGS"
10925 smart_include_dir="/usr/local/include /opt/include"
10928 _smart_include_dir=
10930 for _prefix in $smart_prefix ""; do
10931 for _dir in $smart_try_dir; do
10932 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
10935 for _dir in $smart_include_dir; do
10936 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
10940 if test "x$_smart_try_dir" != "x"; then
10941 for try in $_smart_try_dir; do
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
10943 $as_echo_n "checking for regex.h in $try... " >&6; }
10944 CPPFLAGS="-isystem $try $old_CPPFLAGS"
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10957 if ac_fn_c_try_compile "$LINENO"; then :
10959 smart_include="-isystem $try"
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10961 $as_echo "yes" >&6; }
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 CPPFLAGS="$old_CPPFLAGS"
10976 if test "x$smart_include" = "x"; then
10977 for _prefix in $smart_prefix; do
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/regex.h" >&5
10979 $as_echo_n "checking for ${_prefix}/regex.h... " >&6; }
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10993 if ac_fn_c_try_compile "$LINENO"; then :
10995 smart_include="-isystem ${_prefix}/"
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10997 $as_echo "yes" >&6; }
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011 if test "x$smart_include" = "x"; then
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
11013 $as_echo_n "checking for regex.h... " >&6; }
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11027 if ac_fn_c_try_compile "$LINENO"; then :
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11031 $as_echo "yes" >&6; }
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044 if test "x$smart_include" = "x"; then
11046 for prefix in $smart_prefix; do
11049 if test "x$LOCATE" != "x"; then
11051 file="${_prefix}/${1}"
11053 for x in `${LOCATE} $file 2>/dev/null`; do
11054 base=`echo $x | sed "s%/${file}%%"`
11055 if test "x$x" = "x$base"; then
11059 dir=`${DIRNAME} $x 2>/dev/null`
11060 exclude=`echo ${dir} | ${GREP} /home`
11061 if test "x$exclude" != "x"; then
11065 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11066 if test "x$already" = "x"; then
11072 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11077 if test "x$LOCATE" != "x"; then
11081 for x in `${LOCATE} $file 2>/dev/null`; do
11082 base=`echo $x | sed "s%/${file}%%"`
11083 if test "x$x" = "x$base"; then
11087 dir=`${DIRNAME} $x 2>/dev/null`
11088 exclude=`echo ${dir} | ${GREP} /home`
11089 if test "x$exclude" != "x"; then
11093 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11094 if test "x$already" = "x"; then
11100 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11103 for try in $_smart_include_dir; do
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
11105 $as_echo_n "checking for regex.h in $try... " >&6; }
11106 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11119 if ac_fn_c_try_compile "$LINENO"; then :
11121 smart_include="-isystem $try"
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11123 $as_echo "yes" >&6; }
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11135 CPPFLAGS="$old_CPPFLAGS"
11138 if test "x$smart_include" != "x"; then
11139 eval "ac_cv_header_$ac_safe=yes"
11140 CPPFLAGS="$smart_include $old_CPPFLAGS"
11141 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11146 if test "x$ac_cv_header_regex_h" = "xyes"; then
11148 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
11151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h. */
11155 #ifdef REG_EXTENDED
11160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11161 $EGREP "yes" >/dev/null 2>&1; then :
11163 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
11177 $as_echo "#define GNUSTYLE 1" >>confdefs.h
11181 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
11185 $as_echo "#define BSDSTYLE 3" >>confdefs.h
11188 gethostbyaddrrstyle=""
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
11190 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
11193 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
11194 #ifdef HAVE_NETDB_H
11199 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
11205 cat >>confdefs.h <<_ACEOF
11206 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
11208 if test $ac_have_decl = 1; then :
11213 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
11215 gethostbyaddrrstyle=BSD
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
11217 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
11224 if test "x$gethostbyaddrrstyle" = "x"; then
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11234 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
11239 if ac_fn_c_try_link "$LINENO"; then :
11242 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
11244 gethostbyaddrrstyle=GNU
11248 rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11252 if test "x$gethostbyaddrrstyle" = "x"; then
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11262 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
11267 if ac_fn_c_try_link "$LINENO"; then :
11270 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
11272 gethostbyaddrrstyle=SYSV
11276 rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11281 if test "x$gethostbyaddrrstyle" = "x"; then
11282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11291 gethostbyaddr(NULL, 0, 0)
11296 if ac_fn_c_try_link "$LINENO"; then :
11299 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
11301 gethostbyaddrrstyle=BSD
11305 rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
11309 if test "x$gethostbyaddrrstyle" = "x"; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
11311 $as_echo "none! It must not exist, here." >&6; }
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
11314 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
11317 if test "x$gethostbyaddrrstyle" = "xBSD"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
11319 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
11322 gethostbynamerstyle=""
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
11324 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
11325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11334 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
11339 if ac_fn_c_try_link "$LINENO"; then :
11342 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
11344 gethostbynamerstyle=GNU
11348 rm -f core conftest.err conftest.$ac_objext \
11349 conftest$ac_exeext conftest.$ac_ext
11351 if test "x$gethostbynamerstyle" = "x"; then
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11361 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
11366 if ac_fn_c_try_link "$LINENO"; then :
11369 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
11371 gethostbynamerstyle=SYSV
11375 rm -f core conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
11379 if test "x$gethostbynamerstyle" = "x"; then
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11389 gethostbyname(NULL)
11394 if ac_fn_c_try_link "$LINENO"; then :
11397 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
11399 gethostbynamerstyle=BSD
11403 rm -f core conftest.err conftest.$ac_objext \
11404 conftest$ac_exeext conftest.$ac_ext
11407 if test "x$gethostbynamerstyle" = "x"; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
11409 $as_echo "none! It must not exist, here." >&6; }
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
11412 $as_echo "${gethostbynamerstyle}-style" >&6; }
11415 if test "x$gethostbynamerstyle" = "xBSD"; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
11417 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
11421 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
11424 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
11428 $as_echo_n "checking ctime_r() syntax... " >&6; }
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11437 ctime_r(NULL, NULL, 0)
11442 if ac_fn_c_try_link "$LINENO"; then :
11445 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
11447 ctimerstyle="SOLARIS"
11451 rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11454 if test "x$ctimerstyle" = "x"; then
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11463 ctime_r(NULL, NULL)
11468 if ac_fn_c_try_link "$LINENO"; then :
11471 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
11473 ctimerstyle="POSIX"
11477 rm -f core conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11481 if test "x$ctimerstyle" = "x"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
11483 $as_echo "none! It must not exist, here." >&6; }
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
11486 $as_echo "${ctimerstyle}-style" >&6; }
11494 export top_builddir
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
11496 $as_echo "top_builddir=$top_builddir" >&6; }
11501 if test "x$EXPERIMENTAL" = "xyes"; then
11502 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
11503 MODULES="$MODULES $foo"
11506 for foo in `cat "${srcdir}"/src/modules/stable`; do
11507 MODULES="$MODULES $foo"
11512 for bar in $MODULES; do
11513 if test -f "${srcdir}"/src/modules/$bar/configure; then
11514 mysubdirs="$mysubdirs src/modules/$bar"
11520 subdirs="$subdirs $mysubdirs"
11524 if test "x$werror" == "xyes"; then
11525 CFLAGS="-Werror $CFLAGS"
11528 ac_config_commands="$ac_config_commands stamp-h"
11530 ac_config_commands="$ac_config_commands build-radpaths-h"
11532 ac_config_commands="$ac_config_commands main-chmod"
11534 ac_config_commands="$ac_config_commands scripts-chmod"
11541 USE_STATIC_LIBS="yes"
11546 unset ac_cv_env_LIBS_set
11547 unset ac_cv_env_LIBS_value
11549 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/radsniff.mk ./src/main/checkrad ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/cron/radiusd.cron.daily ./scripts/cron/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/radrelay.conf ./raddb/radiusd.conf"
11551 cat >confcache <<\_ACEOF
11552 # This file is a shell script that caches the results of configure
11553 # tests run on this system so they can be shared between configure
11554 # scripts and configure runs, see configure's option --config-cache.
11555 # It is not useful on other systems. If it contains results you don't
11556 # want to keep, you may remove or edit it.
11558 # config.status only pays attention to the cache file if you give it
11559 # the --recheck option to rerun configure.
11561 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11562 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11563 # following values.
11567 # The following way of writing the cache mishandles newlines in values,
11568 # but we know of no workaround that is simple, portable, and efficient.
11569 # So, we kill variables containing newlines.
11570 # Ultrix sh set writes to stderr and can't be redirected directly,
11571 # and sets the high bit in the cache file unless we assign to the vars.
11573 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11574 eval ac_val=\$$ac_var
11578 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11579 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11582 _ | IFS | as_nl) ;; #(
11583 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11584 *) { eval $ac_var=; unset $ac_var;} ;;
11590 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11591 *${as_nl}ac_space=\ *)
11592 # `set' does not quote correctly, so add quotes: double-quote
11593 # substitution turns \\\\ into \\, and sed turns \\ into \.
11596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11599 # `set' quotes correctly as required by POSIX, so do not add quotes.
11600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11609 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11611 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11613 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11614 if test -w "$cache_file"; then
11615 if test "x$cache_file" != "x/dev/null"; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11617 $as_echo "$as_me: updating cache $cache_file" >&6;}
11618 if test ! -f "$cache_file" || test -h "$cache_file"; then
11619 cat confcache >"$cache_file"
11621 case $cache_file in #(
11623 mv -f confcache "$cache_file"$$ &&
11624 mv -f "$cache_file"$$ "$cache_file" ;; #(
11626 mv -f confcache "$cache_file" ;;
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11632 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11638 # Let make expand exec_prefix.
11639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11641 DEFS=-DHAVE_CONFIG_H
11646 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11647 # 1. Remove the extension, and $U if already installed.
11648 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11649 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11650 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11651 # will be set to the directory where LIBOBJS objects are built.
11652 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11653 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11655 LIBOBJS=$ac_libobjs
11657 LTLIBOBJS=$ac_ltlibobjs
11662 : "${CONFIG_STATUS=./config.status}"
11664 ac_clean_files_save=$ac_clean_files
11665 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11667 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11669 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11671 # Generated by $as_me.
11672 # Run this file to recreate the current configuration.
11673 # Compiler output produced by configure, useful for debugging
11674 # configure, is in config.log if it exists.
11677 ac_cs_recheck=false
11680 SHELL=\${CONFIG_SHELL-$SHELL}
11683 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11684 ## -------------------- ##
11685 ## M4sh Initialization. ##
11686 ## -------------------- ##
11688 # Be more Bourne compatible
11689 DUALCASE=1; export DUALCASE # for MKS sh
11690 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11693 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11694 # is contrary to our usage. Disable this feature.
11695 alias -g '${1+"$@"}'='"$@"'
11696 setopt NO_GLOB_SUBST
11698 case `(set -o) 2>/dev/null` in #(
11710 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11711 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11712 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11713 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11714 # Prefer a ksh shell builtin over an external printf program on Solaris,
11715 # but without wasting forks for bash or zsh.
11716 if test -z "$BASH_VERSION$ZSH_VERSION" \
11717 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11718 as_echo='print -r --'
11719 as_echo_n='print -rn --'
11720 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11721 as_echo='printf %s\n'
11722 as_echo_n='printf %s'
11724 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11725 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11726 as_echo_n='/usr/ucb/echo -n'
11728 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11729 as_echo_n_body='eval
11733 expr "X$arg" : "X\\(.*\\)$as_nl";
11734 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11736 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11738 export as_echo_n_body
11739 as_echo_n='sh -c $as_echo_n_body as_echo'
11741 export as_echo_body
11742 as_echo='sh -c $as_echo_body as_echo'
11745 # The user is always right.
11746 if test "${PATH_SEPARATOR+set}" != set; then
11748 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11749 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11756 # We need space, tab and new line, in precisely that order. Quoting is
11757 # there to prevent editors from complaining about space-tab.
11758 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11759 # splitting by setting IFS to empty value.)
11762 # Find who we are. Look in the path if we contain no directory separator.
11765 *[\\/]* ) as_myself=$0 ;;
11766 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767 for as_dir in $PATH
11770 test -z "$as_dir" && as_dir=.
11771 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11777 # We did not find ourselves, most probably we were run as `sh COMMAND'
11778 # in which case we are not to be found in the path.
11779 if test "x$as_myself" = x; then
11782 if test ! -f "$as_myself"; then
11783 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11787 # Unset variables that we do not need and which cause bugs (e.g. in
11788 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11789 # suppresses any "Segmentation fault" message there. '((' could
11790 # trigger a bug in pdksh 5.2.14.
11791 for as_var in BASH_ENV ENV MAIL MAILPATH
11792 do eval test x\${$as_var+set} = xset \
11793 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11806 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11809 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11810 # ----------------------------------------
11811 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11812 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11813 # script with STATUS, using 1 if that was 0.
11816 as_status=$1; test $as_status -eq 0 && as_status=1
11818 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11819 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11821 $as_echo "$as_me: error: $2" >&2
11822 as_fn_exit $as_status
11826 # as_fn_set_status STATUS
11827 # -----------------------
11828 # Set $? to STATUS, without forking.
11829 as_fn_set_status ()
11832 } # as_fn_set_status
11834 # as_fn_exit STATUS
11835 # -----------------
11836 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11840 as_fn_set_status $1
11846 # Portably unset VAR.
11849 { eval $1=; unset $1;}
11851 as_unset=as_fn_unset
11852 # as_fn_append VAR VALUE
11853 # ----------------------
11854 # Append the text in VALUE to the end of the definition contained in VAR. Take
11855 # advantage of any shell optimizations that allow amortized linear growth over
11856 # repeated appends, instead of the typical quadratic growth present in naive
11858 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11859 eval 'as_fn_append ()
11870 # as_fn_arith ARG...
11871 # ------------------
11872 # Perform arithmetic evaluation on the ARGs, and store the result in the
11873 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11874 # must be portable across $(()) and expr.
11875 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11876 eval 'as_fn_arith ()
11883 as_val=`expr "$@" || test $? -eq 1`
11888 if expr a : '\(a\)' >/dev/null 2>&1 &&
11889 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11895 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11896 as_basename=basename
11901 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11907 as_me=`$as_basename -- "$0" ||
11908 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11909 X"$0" : 'X\(//\)$' \| \
11910 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11912 sed '/^.*\/\([^/][^/]*\)\/*$/{
11926 # Avoid depending upon Character Ranges.
11927 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11928 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11929 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11930 as_cr_digits='0123456789'
11931 as_cr_alnum=$as_cr_Letters$as_cr_digits
11933 ECHO_C= ECHO_N= ECHO_T=
11934 case `echo -n x` in #(((((
11936 case `echo 'xy\c'` in
11937 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11939 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11946 rm -f conf$$ conf$$.exe conf$$.file
11947 if test -d conf$$.dir; then
11948 rm -f conf$$.dir/conf$$.file
11951 mkdir conf$$.dir 2>/dev/null
11953 if (echo >conf$$.file) 2>/dev/null; then
11954 if ln -s conf$$.file conf$$ 2>/dev/null; then
11956 # ... but there are two gotchas:
11957 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11958 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11959 # In both cases, we have to default to `cp -pR'.
11960 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11962 elif ln conf$$.file conf$$ 2>/dev/null; then
11970 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11971 rmdir conf$$.dir 2>/dev/null
11976 # Create "$as_dir" as a directory, including parents if necessary.
11981 -*) as_dir=./$as_dir;;
11983 test -d "$as_dir" || eval $as_mkdir_p || {
11987 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11988 *) as_qdir=$as_dir;;
11990 as_dirs="'$as_qdir' $as_dirs"
11991 as_dir=`$as_dirname -- "$as_dir" ||
11992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11993 X"$as_dir" : 'X\(//\)[^/]' \| \
11994 X"$as_dir" : 'X\(//\)$' \| \
11995 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11996 $as_echo X"$as_dir" |
11997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12001 /^X\(\/\/\)[^/].*/{
12014 test -d "$as_dir" && break
12016 test -z "$as_dirs" || eval "mkdir $as_dirs"
12017 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12021 if mkdir -p . 2>/dev/null; then
12022 as_mkdir_p='mkdir -p "$as_dir"'
12024 test -d ./-p && rmdir ./-p
12029 # as_fn_executable_p FILE
12030 # -----------------------
12031 # Test if FILE is an executable regular file.
12032 as_fn_executable_p ()
12034 test -f "$1" && test -x "$1"
12035 } # as_fn_executable_p
12036 as_test_x='test -x'
12037 as_executable_p=as_fn_executable_p
12039 # Sed expression to map a string onto a valid CPP name.
12040 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12042 # Sed expression to map a string onto a valid variable name.
12043 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12047 ## ----------------------------------- ##
12048 ## Main body of $CONFIG_STATUS script. ##
12049 ## ----------------------------------- ##
12051 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12054 # Save the log message, to keep $0 and so on meaningful, and to
12055 # report actual input values of CONFIG_FILES etc. instead of their
12056 # values after options handling.
12058 This file was extended by freeradius $as_me $Id$, which was
12059 generated by GNU Autoconf 2.69. Invocation command line was
12061 CONFIG_FILES = $CONFIG_FILES
12062 CONFIG_HEADERS = $CONFIG_HEADERS
12063 CONFIG_LINKS = $CONFIG_LINKS
12064 CONFIG_COMMANDS = $CONFIG_COMMANDS
12067 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12072 case $ac_config_files in *"
12073 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12076 case $ac_config_headers in *"
12077 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12082 # Files that config.status was made for.
12083 config_files="$ac_config_files"
12084 config_headers="$ac_config_headers"
12085 config_commands="$ac_config_commands"
12089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12091 \`$as_me' instantiates files and other configuration actions
12092 from templates according to the current configuration. Unless the files
12093 and actions are specified as TAGs, all are instantiated by default.
12095 Usage: $0 [OPTION]... [TAG]...
12097 -h, --help print this help, then exit
12098 -V, --version print version number and configuration settings, then exit
12099 --config print configuration, then exit
12100 -q, --quiet, --silent
12101 do not print progress messages
12102 -d, --debug don't remove temporary files
12103 --recheck update $as_me by reconfiguring in the same conditions
12104 --file=FILE[:TEMPLATE]
12105 instantiate the configuration file FILE
12106 --header=FILE[:TEMPLATE]
12107 instantiate the configuration header FILE
12109 Configuration files:
12112 Configuration headers:
12115 Configuration commands:
12118 Report bugs to <http://bugs.freeradius.org>.
12119 freeradius home page: <http://www.freeradius.org>."
12122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12123 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12125 freeradius config.status $Id$
12126 configured by $0, generated by GNU Autoconf 2.69,
12127 with options \\"\$ac_cs_config\\"
12129 Copyright (C) 2012 Free Software Foundation, Inc.
12130 This config.status script is free software; the Free Software Foundation
12131 gives unlimited permission to copy, distribute and modify it."
12135 test -n "\$AWK" || AWK=awk
12138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12139 # The default lists apply if the user does not specify any file.
12145 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12146 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12150 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12162 # Handling of the options.
12163 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12165 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12166 $as_echo "$ac_cs_version"; exit ;;
12167 --config | --confi | --conf | --con | --co | --c )
12168 $as_echo "$ac_cs_config"; exit ;;
12169 --debug | --debu | --deb | --de | --d | -d )
12171 --file | --fil | --fi | --f )
12174 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12175 '') as_fn_error $? "missing file argument" ;;
12177 as_fn_append CONFIG_FILES " '$ac_optarg'"
12178 ac_need_defaults=false;;
12179 --header | --heade | --head | --hea )
12182 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12184 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12185 ac_need_defaults=false;;
12187 # Conflict between --help and --header
12188 as_fn_error $? "ambiguous option: \`$1'
12189 Try \`$0 --help' for more information.";;
12190 --help | --hel | -h )
12191 $as_echo "$ac_cs_usage"; exit ;;
12192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12193 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12196 # This is an error.
12197 -*) as_fn_error $? "unrecognized option: \`$1'
12198 Try \`$0 --help' for more information." ;;
12200 *) as_fn_append ac_config_targets " $1"
12201 ac_need_defaults=false ;;
12207 ac_configure_extra_args=
12209 if $ac_cs_silent; then
12211 ac_configure_extra_args="$ac_configure_extra_args --silent"
12215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12216 if \$ac_cs_recheck; then
12217 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12219 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12220 CONFIG_SHELL='$SHELL'
12221 export CONFIG_SHELL
12226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12231 ## Running $as_me. ##
12237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12242 # Handling of arguments.
12243 for ac_config_target in $ac_config_targets
12245 case $ac_config_target in
12246 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
12247 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
12248 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
12249 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
12250 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
12251 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
12252 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
12253 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
12254 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
12255 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
12256 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
12257 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
12258 "./scripts/cron/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.daily" ;;
12259 "./scripts/cron/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.monthly" ;;
12260 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
12261 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
12262 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
12264 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12269 # If the user did not use the arguments to specify the items to instantiate,
12270 # then the envvar interface is used. Set only those that are not.
12271 # We use the long form for the default assignment because of an extremely
12272 # bizarre bug on SunOS 4.1.3.
12273 if $ac_need_defaults; then
12274 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12275 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12276 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12279 # Have a temporary directory for convenience. Make it in the build tree
12280 # simply because there is no reason against having it here, and in addition,
12281 # creating and moving files from /tmp can sometimes cause problems.
12282 # Hook for its removal unless debugging.
12283 # Note that there is a small window in which the directory will not be cleaned:
12284 # after its creation but before its name has been assigned to `$tmp'.
12288 trap 'exit_status=$?
12289 : "${ac_tmp:=$tmp}"
12290 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12292 trap 'as_fn_exit 1' 1 2 13 15
12294 # Create a (secure) tmp directory for tmp files.
12297 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12301 tmp=./conf$$-$RANDOM
12302 (umask 077 && mkdir "$tmp")
12303 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12306 # Set up the scripts for CONFIG_FILES section.
12307 # No need to generate them if there are no CONFIG_FILES.
12308 # This happens for instance with `./config.status config.h'.
12309 if test -n "$CONFIG_FILES"; then
12312 ac_cr=`echo X | tr X '\015'`
12313 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12314 # But we know of no other shell where ac_cr would be empty at this
12315 # point, so we can use a bashism as a fallback.
12316 if test "x$ac_cr" = x; then
12317 eval ac_cr=\$\'\\r\'
12319 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12320 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12323 ac_cs_awk_cr=$ac_cr
12326 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12331 echo "cat >conf$$subs.awk <<_ACEOF" &&
12332 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12334 } >conf$$subs.sh ||
12335 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12336 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12338 for ac_last_try in false false false false false :; do
12339 . ./conf$$subs.sh ||
12340 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12342 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12343 if test $ac_delim_n = $ac_delim_num; then
12345 elif $ac_last_try; then
12346 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12351 rm -f conf$$subs.sh
12353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12354 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12358 s/^/S["/; s/!.*/"]=/
12368 s/\(.\{148\}\)..*/\1/
12370 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12375 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12382 s/\(.\{148\}\)..*/\1/
12384 s/["\\]/\\&/g; s/^/"/; s/$/"/
12388 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12393 ' <conf$$subs.awk | sed '
12398 ' >>$CONFIG_STATUS || ac_write_fail=1
12399 rm -f conf$$subs.awk
12400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12402 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12403 for (key in S) S_is_set[key] = 1
12409 nfields = split(line, field, "@")
12411 len = length(field[1])
12412 for (i = 2; i < nfields; i++) {
12414 keylen = length(key)
12415 if (S_is_set[key]) {
12417 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12418 len += length(value) + length(field[++i])
12429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12430 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12431 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12434 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12435 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12438 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12439 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12440 # trailing colons and then remove the whole line if VPATH becomes empty
12441 # (actually we leave an empty line to preserve line numbers).
12442 if test "x$srcdir" = x.; then
12443 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12462 fi # test -n "$CONFIG_FILES"
12464 # Set up the scripts for CONFIG_HEADERS section.
12465 # No need to generate them if there are no CONFIG_HEADERS.
12466 # This happens for instance with `./config.status Makefile'.
12467 if test -n "$CONFIG_HEADERS"; then
12468 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12472 # Transform confdefs.h into an awk script `defines.awk', embedded as
12473 # here-document in config.status, that substitutes the proper values into
12474 # config.h.in to produce config.h.
12476 # Create a delimiter string that does not exist in confdefs.h, to ease
12477 # handling of long lines.
12479 for ac_last_try in false false :; do
12480 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12481 if test -z "$ac_tt"; then
12483 elif $ac_last_try; then
12484 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12486 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12490 # For the awk script, D is an array of macro values keyed by name,
12491 # likewise P contains macro parameters if any. Preserve backslash
12492 # newline sequences.
12494 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12496 s/.\{148\}/&'"$ac_delim"'/g
12499 s/^[ ]*#[ ]*define[ ][ ]*/ /
12506 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12508 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12512 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12513 D["\1"]=" \3\\\\\\n"\\/p
12515 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12520 s/.\{148\}/&'"$ac_delim"'/g
12525 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12528 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12530 ' <confdefs.h | sed '
12531 s/'"$ac_delim"'/"\\\
12532 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12535 for (key in D) D_is_set[key] = 1
12538 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12540 split(line, arg, " ")
12541 if (arg[1] == "#") {
12545 defundef = substr(arg[1], 2)
12548 split(mac1, mac2, "(") #)
12550 prefix = substr(line, 1, index(line, defundef) - 1)
12551 if (D_is_set[macro]) {
12552 # Preserve the white space surrounding the "#".
12553 print prefix "define", macro P[macro] D[macro]
12556 # Replace #undef with comments. This is necessary, for example,
12557 # in the case of _POSIX_SOURCE, which is predefined and required
12558 # on some systems where configure will not decide to define it.
12559 if (defundef == "undef") {
12560 print "/*", prefix defundef, macro, "*/"
12568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12569 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12570 fi # test -n "$CONFIG_HEADERS"
12573 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12578 :[FHLC]) ac_mode=$ac_tag; continue;;
12580 case $ac_mode$ac_tag in
12582 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12583 :[FH]-) ac_tag=-:-;;
12584 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12601 -) ac_f="$ac_tmp/stdin";;
12602 *) # Look for the file first in the build tree, then in the source tree
12603 # (if the path is not absolute). The absolute path cannot be DOS-style,
12604 # because $ac_f cannot contain `:'.
12608 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12610 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12612 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12613 as_fn_append ac_file_inputs " '$ac_f'"
12616 # Let's still pretend it is `configure' which instantiates (i.e., don't
12617 # use $as_me), people would be surprised to read:
12618 # /* config.h. Generated by config.status. */
12619 configure_input='Generated from '`
12620 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12622 if test x"$ac_file" != x-; then
12623 configure_input="$ac_file. $configure_input"
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12625 $as_echo "$as_me: creating $ac_file" >&6;}
12627 # Neutralize special characters interpreted by sed in replacement strings.
12628 case $configure_input in #(
12629 *\&* | *\|* | *\\* )
12630 ac_sed_conf_input=`$as_echo "$configure_input" |
12631 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12632 *) ac_sed_conf_input=$configure_input;;
12636 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12642 ac_dir=`$as_dirname -- "$ac_file" ||
12643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12644 X"$ac_file" : 'X\(//\)[^/]' \| \
12645 X"$ac_file" : 'X\(//\)$' \| \
12646 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12647 $as_echo X"$ac_file" |
12648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12652 /^X\(\/\/\)[^/].*/{
12665 as_dir="$ac_dir"; as_fn_mkdir_p
12669 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12671 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12672 # A ".." for each directory in $ac_dir_suffix.
12673 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12674 case $ac_top_builddir_sub in
12675 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12676 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12679 ac_abs_top_builddir=$ac_pwd
12680 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12681 # for backward compatibility:
12682 ac_top_builddir=$ac_top_build_prefix
12685 .) # We are building in place.
12687 ac_top_srcdir=$ac_top_builddir_sub
12688 ac_abs_top_srcdir=$ac_pwd ;;
12689 [\\/]* | ?:[\\/]* ) # Absolute name.
12690 ac_srcdir=$srcdir$ac_dir_suffix;
12691 ac_top_srcdir=$srcdir
12692 ac_abs_top_srcdir=$srcdir ;;
12693 *) # Relative name.
12694 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12695 ac_top_srcdir=$ac_top_build_prefix$srcdir
12696 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12698 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12710 # If the template does not know about datarootdir, expand it.
12711 # FIXME: This hack should be removed a few years after 2.60.
12712 ac_datarootdir_hack=; ac_datarootdir_seen=
12723 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12724 *datarootdir*) ac_datarootdir_seen=yes;;
12725 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12727 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12730 ac_datarootdir_hack='
12731 s&@datadir@&$datadir&g
12732 s&@docdir@&$docdir&g
12733 s&@infodir@&$infodir&g
12734 s&@localedir@&$localedir&g
12735 s&@mandir@&$mandir&g
12736 s&\\\${datarootdir}&$datarootdir&g' ;;
12740 # Neutralize VPATH when `$srcdir' = `.'.
12741 # Shell code in configure.ac might set extrasub.
12742 # FIXME: do we really want to maintain this feature?
12743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12744 ac_sed_extra="$ac_vpsub
12747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12750 s|@configure_input@|$ac_sed_conf_input|;t t
12751 s&@top_builddir@&$ac_top_builddir_sub&;t t
12752 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12753 s&@srcdir@&$ac_srcdir&;t t
12754 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12755 s&@top_srcdir@&$ac_top_srcdir&;t t
12756 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12757 s&@builddir@&$ac_builddir&;t t
12758 s&@abs_builddir@&$ac_abs_builddir&;t t
12759 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12760 $ac_datarootdir_hack
12762 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12763 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12765 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12766 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12767 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12768 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12770 which seems to be undefined. Please make sure it is defined" >&5
12771 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12772 which seems to be undefined. Please make sure it is defined" >&2;}
12774 rm -f "$ac_tmp/stdin"
12776 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12777 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12785 if test x"$ac_file" != x-; then
12787 $as_echo "/* $configure_input */" \
12788 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12789 } >"$ac_tmp/config.h" \
12790 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12791 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12793 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12796 mv "$ac_tmp/config.h" "$ac_file" \
12797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12800 $as_echo "/* $configure_input */" \
12801 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12802 || as_fn_error $? "could not create -" "$LINENO" 5
12806 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12807 $as_echo "$as_me: executing $ac_file commands" >&6;}
12812 case $ac_file$ac_mode in
12813 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
12814 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
12815 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
12816 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd cron/radiusd.cron.daily cron/radiusd.cron.monthly cryptpasswd) ;;
12824 ac_clean_files=$ac_clean_files_save
12826 test $ac_write_fail = 0 ||
12827 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12830 # configure is writing to config.log, and then calls config.status.
12831 # config.status does its own redirection, appending to config.log.
12832 # Unfortunately, on DOS this fails, as config.log is still kept open
12833 # by configure, so config.status won't be able to write to it; its
12834 # output is simply discarded. So we exec the FD to /dev/null,
12835 # effectively closing config.log, so it can be properly (re)opened and
12836 # appended to by config.status. When coming back to configure, we
12837 # need to make the FD available again.
12838 if test "$no_create" != yes; then
12840 ac_config_status_args=
12841 test "$silent" = yes &&
12842 ac_config_status_args="$ac_config_status_args --quiet"
12844 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12846 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12847 # would make configure fail if this is the last instruction.
12848 $ac_cs_success || as_fn_exit 1
12852 # CONFIG_SUBDIRS section.
12854 if test "$no_recursion" != yes; then
12856 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
12857 # so they do not pile up.
12858 ac_sub_configure_args=
12860 eval "set x $ac_configure_args"
12864 if test -n "$ac_prev"; then
12869 -cache-file | --cache-file | --cache-fil | --cache-fi \
12870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
12871 ac_prev=cache_file ;;
12872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
12873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
12876 --config-cache | -C)
12878 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
12880 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
12882 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
12884 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
12886 --disable-option-checking)
12890 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12892 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
12896 # Always prepend --prefix to ensure using the same prefix
12897 # in subdir configurations.
12898 ac_arg="--prefix=$prefix"
12900 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12902 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
12905 if test "$silent" = yes; then
12906 ac_sub_configure_args="--silent $ac_sub_configure_args"
12909 # Always prepend --disable-option-checking to silence warnings, since
12910 # different subdirs can have different --enable and --with options.
12911 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
12914 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
12916 # Do not complain, so a configure script can configure whichever
12917 # parts of a large source tree are present.
12918 test -d "$srcdir/$ac_dir" || continue
12920 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
12921 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
12922 $as_echo "$ac_msg" >&6
12923 as_dir="$ac_dir"; as_fn_mkdir_p
12927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12929 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12930 # A ".." for each directory in $ac_dir_suffix.
12931 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12932 case $ac_top_builddir_sub in
12933 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12934 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12937 ac_abs_top_builddir=$ac_pwd
12938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12939 # for backward compatibility:
12940 ac_top_builddir=$ac_top_build_prefix
12943 .) # We are building in place.
12945 ac_top_srcdir=$ac_top_builddir_sub
12946 ac_abs_top_srcdir=$ac_pwd ;;
12947 [\\/]* | ?:[\\/]* ) # Absolute name.
12948 ac_srcdir=$srcdir$ac_dir_suffix;
12949 ac_top_srcdir=$srcdir
12950 ac_abs_top_srcdir=$srcdir ;;
12951 *) # Relative name.
12952 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12953 ac_top_srcdir=$ac_top_build_prefix$srcdir
12954 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12961 # Check for guested configure; otherwise get Cygnus style configure.
12962 if test -f "$ac_srcdir/configure.gnu"; then
12963 ac_sub_configure=$ac_srcdir/configure.gnu
12964 elif test -f "$ac_srcdir/configure"; then
12965 ac_sub_configure=$ac_srcdir/configure
12966 elif test -f "$ac_srcdir/configure.in"; then
12967 # This should be Cygnus configure.
12968 ac_sub_configure=$ac_aux_dir/configure
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
12971 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
12975 # The recursion is here.
12976 if test -n "$ac_sub_configure"; then
12977 # Make the cache file name correct relative to the subdirectory.
12978 case $cache_file in
12979 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
12980 *) # Relative name.
12981 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
12985 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
12986 # The eval makes quoting arguments work.
12987 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
12988 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
12989 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
12995 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12997 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}