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
687 RADIUSD_VERSION_STRING
715 program_transform_name
728 enable_option_checking
731 enable_strict_dependencies
744 with_experimental_modules
746 with_openssl_includes
747 with_openssl_libraries
749 with_rlm_FOO_include_dir
751 with_talloc_include_dir
753 ac_precious_vars='build_alias
765 ac_subdirs_all='$mysubdirs'
767 # Initialize some variables set by options.
769 ac_init_version=false
770 ac_unrecognized_opts=
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
781 program_transform_name=s,x,x,
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806 infodir='${datarootdir}/info'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
819 # If the previous option needs an argument, assign it.
820 if test -n "$ac_prev"; then
821 eval $ac_prev=\$ac_option
827 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 # Accept the important Cygnus configure options, so we can diagnose typos.
834 case $ac_dashdash$ac_option in
838 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843 -build | --build | --buil | --bui | --bu)
844 ac_prev=build_alias ;;
845 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846 build_alias=$ac_optarg ;;
848 -cache-file | --cache-file | --cache-fil | --cache-fi \
849 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850 ac_prev=cache_file ;;
851 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853 cache_file=$ac_optarg ;;
856 cache_file=config.cache ;;
858 -datadir | --datadir | --datadi | --datad)
860 -datadir=* | --datadir=* | --datadi=* | --datad=*)
861 datadir=$ac_optarg ;;
863 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864 | --dataroo | --dataro | --datar)
865 ac_prev=datarootdir ;;
866 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868 datarootdir=$ac_optarg ;;
870 -disable-* | --disable-*)
871 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874 as_fn_error $? "invalid feature name: $ac_useropt"
875 ac_useropt_orig=$ac_useropt
876 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882 ac_unrecognized_sep=', ';;
884 eval enable_$ac_useropt=no ;;
886 -docdir | --docdir | --docdi | --doc | --do)
888 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896 -enable-* | --enable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
910 eval enable_$ac_useropt=\$ac_optarg ;;
912 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914 | --exec | --exe | --ex)
915 ac_prev=exec_prefix ;;
916 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918 | --exec=* | --exe=* | --ex=*)
919 exec_prefix=$ac_optarg ;;
921 -gas | --gas | --ga | --g)
922 # Obsolete; use --with-gas.
925 -help | --help | --hel | --he | -h)
927 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928 ac_init_help=recursive ;;
929 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930 ac_init_help=short ;;
932 -host | --host | --hos | --ho)
933 ac_prev=host_alias ;;
934 -host=* | --host=* | --hos=* | --ho=*)
935 host_alias=$ac_optarg ;;
937 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 htmldir=$ac_optarg ;;
943 -includedir | --includedir | --includedi | --included | --include \
944 | --includ | --inclu | --incl | --inc)
945 ac_prev=includedir ;;
946 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947 | --includ=* | --inclu=* | --incl=* | --inc=*)
948 includedir=$ac_optarg ;;
950 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953 infodir=$ac_optarg ;;
955 -libdir | --libdir | --libdi | --libd)
957 -libdir=* | --libdir=* | --libdi=* | --libd=*)
960 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961 | --libexe | --libex | --libe)
962 ac_prev=libexecdir ;;
963 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964 | --libexe=* | --libex=* | --libe=*)
965 libexecdir=$ac_optarg ;;
967 -localedir | --localedir | --localedi | --localed | --locale)
969 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970 localedir=$ac_optarg ;;
972 -localstatedir | --localstatedir | --localstatedi | --localstated \
973 | --localstate | --localstat | --localsta | --localst | --locals)
974 ac_prev=localstatedir ;;
975 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977 localstatedir=$ac_optarg ;;
979 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
985 # Obsolete; use --without-fp.
988 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989 | --no-cr | --no-c | -n)
992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998 | --oldin | --oldi | --old | --ol | --o)
999 ac_prev=oldincludedir ;;
1000 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003 oldincludedir=$ac_optarg ;;
1005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008 prefix=$ac_optarg ;;
1010 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011 | --program-pre | --program-pr | --program-p)
1012 ac_prev=program_prefix ;;
1013 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015 program_prefix=$ac_optarg ;;
1017 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018 | --program-suf | --program-su | --program-s)
1019 ac_prev=program_suffix ;;
1020 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022 program_suffix=$ac_optarg ;;
1024 -program-transform-name | --program-transform-name \
1025 | --program-transform-nam | --program-transform-na \
1026 | --program-transform-n | --program-transform- \
1027 | --program-transform | --program-transfor \
1028 | --program-transfo | --program-transf \
1029 | --program-trans | --program-tran \
1030 | --progr-tra | --program-tr | --program-t)
1031 ac_prev=program_transform_name ;;
1032 -program-transform-name=* | --program-transform-name=* \
1033 | --program-transform-nam=* | --program-transform-na=* \
1034 | --program-transform-n=* | --program-transform-=* \
1035 | --program-transform=* | --program-transfor=* \
1036 | --program-transfo=* | --program-transf=* \
1037 | --program-trans=* | --program-tran=* \
1038 | --progr-tra=* | --program-tr=* | --program-t=*)
1039 program_transform_name=$ac_optarg ;;
1041 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044 pdfdir=$ac_optarg ;;
1046 -psdir | --psdir | --psdi | --psd | --ps)
1048 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1055 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 sbindir=$ac_optarg ;;
1061 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063 | --sharedst | --shareds | --shared | --share | --shar \
1065 ac_prev=sharedstatedir ;;
1066 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 sharedstatedir=$ac_optarg ;;
1072 -site | --site | --sit)
1074 -site=* | --site=* | --sit=*)
1077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080 srcdir=$ac_optarg ;;
1082 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083 | --syscon | --sysco | --sysc | --sys | --sy)
1084 ac_prev=sysconfdir ;;
1085 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087 sysconfdir=$ac_optarg ;;
1089 -target | --target | --targe | --targ | --tar | --ta | --t)
1090 ac_prev=target_alias ;;
1091 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092 target_alias=$ac_optarg ;;
1094 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097 -version | --version | --versio | --versi | --vers | -V)
1098 ac_init_version=: ;;
1101 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error $? "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1114 eval with_$ac_useropt=\$ac_optarg ;;
1116 -without-* | --without-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1130 eval with_$ac_useropt=no ;;
1133 # Obsolete; use --with-x.
1136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137 | --x-incl | --x-inc | --x-in | --x-i)
1138 ac_prev=x_includes ;;
1139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141 x_includes=$ac_optarg ;;
1143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145 ac_prev=x_libraries ;;
1146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148 x_libraries=$ac_optarg ;;
1150 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1151 Try \`$0 --help' for more information"
1155 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 case $ac_envvar in #(
1158 '' | [0-9]* | *[!_$as_cr_alnum]* )
1159 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1161 eval $ac_envvar=\$ac_optarg
1162 export $ac_envvar ;;
1165 # FIXME: should be removed in autoconf 3.0.
1166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175 if test -n "$ac_prev"; then
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177 as_fn_error $? "missing argument to $ac_option"
1180 if test -n "$ac_unrecognized_opts"; then
1181 case $enable_option_checking in
1183 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1184 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 # Check all directory arguments for consistency.
1189 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val=\$$ac_var
1195 # Remove trailing slashes.
1198 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199 eval $ac_var=\$ac_val;;
1201 # Be sure to have absolute directory names.
1203 [\\/$]* | ?:[\\/]* ) continue;;
1204 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1214 target=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218 if test "x$build_alias" = x; then
1219 cross_compiling=maybe
1220 elif test "x$build_alias" != "x$host_alias"; then
1226 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228 test "$silent" = yes && exec 6>/dev/null
1231 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1232 ac_ls_di=`ls -di .` &&
1233 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1234 as_fn_error $? "working directory cannot be determined"
1235 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1236 as_fn_error $? "pwd does not report name of working directory"
1239 # Find the source files, if location was not specified.
1240 if test -z "$srcdir"; then
1241 ac_srcdir_defaulted=yes
1242 # Try the directory containing this script, then the parent directory.
1243 ac_confdir=`$as_dirname -- "$as_myself" ||
1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245 X"$as_myself" : 'X\(//\)[^/]' \| \
1246 X"$as_myself" : 'X\(//\)$' \| \
1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248 $as_echo X"$as_myself" |
1249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1271 ac_srcdir_defaulted=no
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1275 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 # Report the --help message.
1301 if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1305 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE. See below for descriptions of some of the useful variables.
1312 Defaults for the options are specified in brackets.
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking ...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325 Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
1327 [$ac_default_prefix]
1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1336 For better control, use the options below.
1338 Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 --target=TARGET configure for building compilers for TARGET [HOST]
1369 if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of freeradius $Id$:";;
1376 --disable-option-checking ignore unrecognized --enable/--with options
1377 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1378 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1379 --enable-developer enables features of interest to developers.
1380 --disable-largefile omit support for large files
1381 --enable-strict-dependencies fail configure on lack of module dependancy.
1382 --enable-werror causes the build to fail if any warnings are generated.
1385 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1386 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1387 --with-docdir=DIR directory for documentation DATADIR/doc/freeradius
1388 --with-logdir=DIR directory for logfiles LOCALSTATEDIR/log/radius
1389 --with-radacctdir=DIR directory for detail files LOGDIR/radacct
1390 --with-raddbdir=DIR directory for config files SYSCONFDIR/raddb
1391 --with-ascend-binary include support for Ascend binary filter attributes (default=yes)
1392 --with-threads Use threads, if available. (default=yes)
1393 --with-tcp Compile in TCP support. (default=yes)
1394 --with-vmps Compile in VMPS support. (default=yes)
1395 --with-dhcp Compile in DHCP support. (default=yes)
1396 --with-static-modules=QUOTED-MODULE-LIST
1397 --with-modules=QUOTED-MODULE-LIST
1398 --with-experimental-modules Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1399 --with-openssl Use OpenSSL. (default=yes)
1400 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1401 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1402 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1403 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1404 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1405 --with-talloc-include-dir=DIR
1406 Directory where the talloc includes may be found
1408 Some influential environment variables:
1409 CC C compiler command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
1413 LIBS libraries to pass to the linker, e.g. -l<library>
1414 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
1416 CXX C++ compiler command
1417 CXXFLAGS C++ compiler flags
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1423 Report bugs to <http://bugs.freeradius.org>.
1424 freeradius home page: <http://www.freeradius.org>.
1429 if test "$ac_init_help" = "recursive"; then
1430 # If there are subdirs, report their specific --help.
1431 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432 test -d "$ac_dir" ||
1433 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1441 # A ".." for each directory in $ac_dir_suffix.
1442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443 case $ac_top_builddir_sub in
1444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1448 ac_abs_top_builddir=$ac_pwd
1449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir=$ac_top_build_prefix
1454 .) # We are building in place.
1456 ac_top_srcdir=$ac_top_builddir_sub
1457 ac_abs_top_srcdir=$ac_pwd ;;
1458 [\\/]* | ?:[\\/]* ) # Absolute name.
1459 ac_srcdir=$srcdir$ac_dir_suffix;
1460 ac_top_srcdir=$srcdir
1461 ac_abs_top_srcdir=$srcdir ;;
1463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464 ac_top_srcdir=$ac_top_build_prefix$srcdir
1465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469 cd "$ac_dir" || { ac_status=$?; continue; }
1470 # Check for guested configure.
1471 if test -f "$ac_srcdir/configure.gnu"; then
1473 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1474 elif test -f "$ac_srcdir/configure"; then
1476 $SHELL "$ac_srcdir/configure" --help=recursive
1478 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480 cd "$ac_pwd" || { ac_status=$?; break; }
1484 test -n "$ac_init_help" && exit $ac_status
1485 if $ac_init_version; then
1487 freeradius configure $Id$
1488 generated by GNU Autoconf 2.69
1490 Copyright (C) 2012 Free Software Foundation, Inc.
1491 This configure script is free software; the Free Software Foundation
1492 gives unlimited permission to copy, distribute and modify it.
1497 ## ------------------------ ##
1498 ## Autoconf initialization. ##
1499 ## ------------------------ ##
1501 # ac_fn_c_try_compile LINENO
1502 # --------------------------
1503 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1504 ac_fn_c_try_compile ()
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 rm -f conftest.$ac_objext
1508 if { { ac_try="$ac_compile"
1510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1511 *) ac_try_echo=$ac_try;;
1513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514 $as_echo "$ac_try_echo"; } >&5
1515 (eval "$ac_compile") 2>conftest.err
1517 if test -s conftest.err; then
1518 grep -v '^ *+' conftest.err >conftest.er1
1519 cat conftest.er1 >&5
1520 mv -f conftest.er1 conftest.err
1522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523 test $ac_status = 0; } && {
1524 test -z "$ac_c_werror_flag" ||
1525 test ! -s conftest.err
1526 } && test -s conftest.$ac_objext; then :
1529 $as_echo "$as_me: failed program was:" >&5
1530 sed 's/^/| /' conftest.$ac_ext >&5
1534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1535 as_fn_set_status $ac_retval
1537 } # ac_fn_c_try_compile
1539 # ac_fn_cxx_try_compile LINENO
1540 # ----------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_cxx_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_cxx_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1575 } # ac_fn_cxx_try_compile
1577 # ac_fn_c_try_cpp LINENO
1578 # ----------------------
1579 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_cpp conftest.$ac_ext"
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } > conftest.i && {
1599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1614 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1617 # the include files in INCLUDES and setting the cache variable VAR
1619 ac_fn_c_check_header_mongrel ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if eval \${$3+:} false; then :
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 $as_echo_n "checking for $2... " >&6; }
1625 if eval \${$3+:} false; then :
1626 $as_echo_n "(cached) " >&6
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630 $as_echo "$ac_res" >&6; }
1632 # Is the header compilable?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1634 $as_echo_n "checking $2 usability... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641 ac_header_compiler=yes
1643 ac_header_compiler=no
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1647 $as_echo "$ac_header_compiler" >&6; }
1649 # Is the header present?
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1651 $as_echo_n "checking $2 presence... " >&6; }
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1656 if ac_fn_c_try_cpp "$LINENO"; then :
1657 ac_header_preproc=yes
1659 ac_header_preproc=no
1661 rm -f conftest.err conftest.i conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1663 $as_echo "$ac_header_preproc" >&6; }
1665 # So? What about this header?
1666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1669 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1675 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1677 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1679 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1681 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1684 ( $as_echo "## ----------------------------------------- ##
1685 ## Report this to http://bugs.freeradius.org ##
1686 ## ----------------------------------------- ##"
1687 ) | sed "s/^/$as_me: WARNING: /" >&2
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1695 eval "$3=\$ac_header_compiler"
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 } # ac_fn_c_check_header_mongrel
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=$ac_status
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1747 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists and can be compiled using the include files in
1750 # INCLUDES, setting the cache variable VAR accordingly.
1751 ac_fn_c_check_header_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1764 if ac_fn_c_try_compile "$LINENO"; then :
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 } # ac_fn_c_check_header_compile
1778 # ac_fn_c_try_link LINENO
1779 # -----------------------
1780 # Try to link conftest.$ac_ext, and return whether this succeeded.
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext conftest$ac_exeext
1785 if { { ac_try="$ac_link"
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>conftest.err
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest$ac_exeext && {
1804 test "$cross_compiling" = yes ||
1805 test -x conftest$ac_exeext
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1814 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816 # interfere with the next link command; also delete a directory that is
1817 # left behind by Apple's compiler. We do this before executing the actions.
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1822 } # ac_fn_c_try_link
1824 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1825 # -------------------------------------------
1826 # Tests whether TYPE exists after having included INCLUDES, setting cache
1827 # variable VAR accordingly.
1828 ac_fn_c_check_type ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834 $as_echo_n "(cached) " >&6
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1862 if ac_fn_c_try_compile "$LINENO"; then :
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 } # ac_fn_c_check_type
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893 #define $2 innocuous_$2
1895 /* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1901 # include <limits.h>
1903 # include <assert.h>
1908 /* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined __stub_$2 || defined __stub___$2
1930 if ac_fn_c_try_link "$LINENO"; then :
1935 rm -f core conftest.err conftest.$ac_objext \
1936 conftest$ac_exeext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_func
1945 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1946 # ---------------------------------------------
1947 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1949 ac_fn_c_check_decl ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 as_decl_name=`echo $2|sed 's/ *(.*//'`
1953 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1955 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1956 if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1965 #ifndef $as_decl_name
1967 (void) $as_decl_use;
1969 (void) $as_decl_name;
1977 if ac_fn_c_try_compile "$LINENO"; then :
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 } # ac_fn_c_check_decl
1990 cat >config.log <<_ACEOF
1991 This file contains any messages produced by compilers while
1992 running configure, to aid debugging if configure makes a mistake.
1994 It was created by freeradius $as_me $Id$, which was
1995 generated by GNU Autoconf 2.69. Invocation command line was
2007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2019 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 $as_echo "PATH: $as_dir"
2047 # Keep a trace of the command line.
2048 # Strip out --no-create and --no-recursion so they do not pile up.
2049 # Strip out --silent because we don't want to record it for future runs.
2050 # Also quote any args containing shell meta-characters.
2051 # Make two passes to allow for proper duplicate-argument suppression.
2055 ac_must_keep_next=false
2061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2063 | -silent | --silent | --silen | --sile | --sil)
2066 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2069 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2071 as_fn_append ac_configure_args1 " '$ac_arg'"
2072 if test $ac_must_keep_next = true; then
2073 ac_must_keep_next=false # Got value, back to normal.
2076 *=* | --config-cache | -C | -disable-* | --disable-* \
2077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2079 | -with-* | --with-* | -without-* | --without-* | --x)
2080 case "$ac_configure_args0 " in
2081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2084 -* ) ac_must_keep_next=true ;;
2087 as_fn_append ac_configure_args " '$ac_arg'"
2092 { ac_configure_args0=; unset ac_configure_args0;}
2093 { ac_configure_args1=; unset ac_configure_args1;}
2095 # When interrupted or exit'd, cleanup temporary files, and complete
2096 # config.log. We remove comments because anyway the quotes in there
2097 # would cause problems or look ugly.
2098 # WARNING: Use '\'' to represent an apostrophe within the trap.
2099 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2100 trap 'exit_status=$?
2101 # Save into config.log some information that might help in debugging.
2105 $as_echo "## ---------------- ##
2106 ## Cache variables. ##
2107 ## ---------------- ##"
2109 # The following way of writing the cache mishandles newlines in values,
2111 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2112 eval ac_val=\$$ac_var
2116 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2117 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2120 _ | IFS | as_nl) ;; #(
2121 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2122 *) { eval $ac_var=; unset $ac_var;} ;;
2127 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2128 *${as_nl}ac_space=\ *)
2130 "s/'\''/'\''\\\\'\'''\''/g;
2131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2141 $as_echo "## ----------------- ##
2142 ## Output variables. ##
2143 ## ----------------- ##"
2145 for ac_var in $ac_subst_vars
2147 eval ac_val=\$$ac_var
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 $as_echo "$ac_var='\''$ac_val'\''"
2155 if test -n "$ac_subst_files"; then
2156 $as_echo "## ------------------- ##
2157 ## File substitutions. ##
2158 ## ------------------- ##"
2160 for ac_var in $ac_subst_files
2162 eval ac_val=\$$ac_var
2164 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166 $as_echo "$ac_var='\''$ac_val'\''"
2171 if test -s confdefs.h; then
2172 $as_echo "## ----------- ##
2179 test "$ac_signal" != 0 &&
2180 $as_echo "$as_me: caught signal $ac_signal"
2181 $as_echo "$as_me: exit $exit_status"
2183 rm -f core *.core core.conftest.* &&
2184 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2187 for ac_signal in 1 2 13 15; do
2188 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2193 rm -f -r conftest* confdefs.h
2195 $as_echo "/* confdefs.h */" > confdefs.h
2197 # Predefined preprocessor variables.
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_NAME "$PACKAGE_NAME"
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_STRING "$PACKAGE_STRING"
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_URL "$PACKAGE_URL"
2224 # Let the site file select an alternate cache file if it wants to.
2225 # Prefer an explicitly selected file to automatically selected ones.
2228 if test -n "$CONFIG_SITE"; then
2229 # We do not want a PATH search for config.site.
2230 case $CONFIG_SITE in #((
2231 -*) ac_site_file1=./$CONFIG_SITE;;
2232 */*) ac_site_file1=$CONFIG_SITE;;
2233 *) ac_site_file1=./$CONFIG_SITE;;
2235 elif test "x$prefix" != xNONE; then
2236 ac_site_file1=$prefix/share/config.site
2237 ac_site_file2=$prefix/etc/config.site
2239 ac_site_file1=$ac_default_prefix/share/config.site
2240 ac_site_file2=$ac_default_prefix/etc/config.site
2242 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2244 test "x$ac_site_file" = xNONE && continue
2245 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2247 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2248 sed 's/^/| /' "$ac_site_file" >&5
2250 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252 as_fn_error $? "failed to load site script $ac_site_file
2253 See \`config.log' for more details" "$LINENO" 5; }
2257 if test -r "$cache_file"; then
2258 # Some versions of bash will fail to source /dev/null (special files
2259 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2260 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2262 $as_echo "$as_me: loading cache $cache_file" >&6;}
2264 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2265 *) . "./$cache_file";;
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2270 $as_echo "$as_me: creating cache $cache_file" >&6;}
2274 # Check that the precious variables saved in the cache have kept the same
2276 ac_cache_corrupted=false
2277 for ac_var in $ac_precious_vars; do
2278 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2279 eval ac_new_set=\$ac_env_${ac_var}_set
2280 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2281 eval ac_new_val=\$ac_env_${ac_var}_value
2282 case $ac_old_set,$ac_new_set in
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2285 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2286 ac_cache_corrupted=: ;;
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2289 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2290 ac_cache_corrupted=: ;;
2293 if test "x$ac_old_val" != "x$ac_new_val"; then
2294 # differences in whitespace do not lead to failure.
2295 ac_old_val_w=`echo x $ac_old_val`
2296 ac_new_val_w=`echo x $ac_new_val`
2297 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2299 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2300 ac_cache_corrupted=:
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2303 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2304 eval $ac_var=\$ac_old_val
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2307 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2309 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2312 # Pass precious variables to config.status.
2313 if test "$ac_new_set" = set; then
2315 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2316 *) ac_arg=$ac_var=$ac_new_val ;;
2318 case " $ac_configure_args " in
2319 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2320 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2324 if $ac_cache_corrupted; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2328 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2329 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2331 ## -------------------- ##
2332 ## Main body of script. ##
2333 ## -------------------- ##
2336 ac_cpp='$CPP $CPPFLAGS'
2337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2356 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2357 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2358 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2360 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2361 -v minor="$RADIUSD_MINOR_VERSION" \
2362 -v incrm="$RADIUSD_INCRM_VERSION" \
2363 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2365 RADIUSD_VERSION_STRING=`cat VERSION`
2370 cat >>confdefs.h <<_ACEOF
2371 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2375 cat >>confdefs.h <<_ACEOF
2376 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2381 # Check whether --enable-developer was given.
2382 if test "${enable_developer+set}" = set; then :
2383 enableval=$enable_developer; case "$enableval" in
2394 if test -d $srcdir/.git; then
2395 if test "x$developer" != "xno"; then
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2397 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2402 if test "x$developer" = "xyes"; then
2408 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2409 if test -f "$ac_dir/install-sh"; then
2411 ac_install_sh="$ac_aux_dir/install-sh -c"
2413 elif test -f "$ac_dir/install.sh"; then
2415 ac_install_sh="$ac_aux_dir/install.sh -c"
2417 elif test -f "$ac_dir/shtool"; then
2419 ac_install_sh="$ac_aux_dir/shtool install -c"
2423 if test -z "$ac_aux_dir"; then
2424 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2427 # These three variables are undocumented and unsupported,
2428 # and are intended to be withdrawn in a future Autoconf release.
2429 # They can cause serious problems if a builder's source tree is in a directory
2430 # whose full name contains unusual characters.
2431 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2432 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2433 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2436 # Make sure we can run config.sub.
2437 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2438 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2441 $as_echo_n "checking build system type... " >&6; }
2442 if ${ac_cv_build+:} false; then :
2443 $as_echo_n "(cached) " >&6
2445 ac_build_alias=$build_alias
2446 test "x$ac_build_alias" = x &&
2447 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2448 test "x$ac_build_alias" = x &&
2449 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2450 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2455 $as_echo "$ac_cv_build" >&6; }
2456 case $ac_cv_build in
2458 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2461 ac_save_IFS=$IFS; IFS='-'
2467 # Remember, the first character of IFS is used to create $*,
2468 # except with old shells:
2471 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2475 $as_echo_n "checking host system type... " >&6; }
2476 if ${ac_cv_host+:} false; then :
2477 $as_echo_n "(cached) " >&6
2479 if test "x$host_alias" = x; then
2480 ac_cv_host=$ac_cv_build
2482 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2483 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2488 $as_echo "$ac_cv_host" >&6; }
2491 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2494 ac_save_IFS=$IFS; IFS='-'
2500 # Remember, the first character of IFS is used to create $*,
2501 # except with old shells:
2504 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2508 $as_echo_n "checking target system type... " >&6; }
2509 if ${ac_cv_target+:} false; then :
2510 $as_echo_n "(cached) " >&6
2512 if test "x$target_alias" = x; then
2513 ac_cv_target=$ac_cv_host
2515 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2521 $as_echo "$ac_cv_target" >&6; }
2522 case $ac_cv_target in
2524 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2526 target=$ac_cv_target
2527 ac_save_IFS=$IFS; IFS='-'
2533 # Remember, the first character of IFS is used to create $*,
2534 # except with old shells:
2537 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2540 # The aliases save the names the user supplied, while $host etc.
2541 # will get canonicalized.
2542 test -n "$target_alias" &&
2543 test "$program_prefix$program_suffix$program_transform_name" = \
2545 program_prefix=${target_alias}-
2549 ac_cpp='$CPP $CPPFLAGS'
2550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553 if test -n "$ac_tool_prefix"; then
2554 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2555 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if ${ac_cv_prog_CC+:} false; then :
2559 $as_echo_n "(cached) " >&6
2561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 if test -n "$CC"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2584 $as_echo "$CC" >&6; }
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2592 if test -z "$ac_cv_prog_CC"; then
2594 # Extract the first word of "gcc", so it can be a program name with args.
2595 set dummy gcc; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2599 $as_echo_n "(cached) " >&6
2601 if test -n "$ac_ct_CC"; then
2602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611 ac_cv_prog_ac_ct_CC="gcc"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2622 if test -n "$ac_ct_CC"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2624 $as_echo "$ac_ct_CC" >&6; }
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2630 if test "x$ac_ct_CC" = x; then
2633 case $cross_compiling:$ac_tool_warned in
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2637 ac_tool_warned=yes ;;
2645 if test -z "$CC"; then
2646 if test -n "$ac_tool_prefix"; then
2647 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2648 set dummy ${ac_tool_prefix}cc; ac_word=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if ${ac_cv_prog_CC+:} false; then :
2652 $as_echo_n "(cached) " >&6
2654 if test -n "$CC"; then
2655 ac_cv_prog_CC="$CC" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_CC="${ac_tool_prefix}cc"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 if test -n "$CC"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2677 $as_echo "$CC" >&6; }
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2686 if test -z "$CC"; then
2687 # Extract the first word of "cc", so it can be a program name with args.
2688 set dummy cc; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if ${ac_cv_prog_CC+:} false; then :
2692 $as_echo_n "(cached) " >&6
2694 if test -n "$CC"; then
2695 ac_cv_prog_CC="$CC" # Let the user override the test.
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2706 ac_prog_rejected=yes
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 if test $ac_prog_rejected = yes; then
2718 # We found a bogon in the path, so make sure we never use it.
2719 set dummy $ac_cv_prog_CC
2721 if test $# != 0; then
2722 # We chose a different compiler from the bogus one.
2723 # However, it has the same basename, so the bogon will be chosen
2724 # first if we set CC to just the basename; use the full file name.
2726 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2732 if test -n "$CC"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2734 $as_echo "$CC" >&6; }
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2742 if test -z "$CC"; then
2743 if test -n "$ac_tool_prefix"; then
2744 for ac_prog in cl.exe
2746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if ${ac_cv_prog_CC+:} false; then :
2751 $as_echo_n "(cached) " >&6
2753 if test -n "$CC"; then
2754 ac_cv_prog_CC="$CC" # Let the user override the test.
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 if test -n "$CC"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2776 $as_echo "$CC" >&6; }
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2783 test -n "$CC" && break
2786 if test -z "$CC"; then
2788 for ac_prog in cl.exe
2790 # Extract the first word of "$ac_prog", so it can be a program name with args.
2791 set dummy $ac_prog; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2795 $as_echo_n "(cached) " >&6
2797 if test -n "$ac_ct_CC"; then
2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_ac_ct_CC="$ac_prog"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2818 if test -n "$ac_ct_CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2820 $as_echo "$ac_ct_CC" >&6; }
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2827 test -n "$ac_ct_CC" && break
2830 if test "x$ac_ct_CC" = x; then
2833 case $cross_compiling:$ac_tool_warned in
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2837 ac_tool_warned=yes ;;
2846 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2848 as_fn_error $? "no acceptable C compiler found in \$PATH
2849 See \`config.log' for more details" "$LINENO" 5; }
2851 # Provide some information about the compiler.
2852 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2855 for ac_option in --version -v -V -qversion; do
2856 { { ac_try="$ac_compiler $ac_option >&5"
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859 *) ac_try_echo=$ac_try;;
2861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2862 $as_echo "$ac_try_echo"; } >&5
2863 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2865 if test -s conftest.err; then
2867 ... rest of stderr output deleted ...
2868 10q' conftest.err >conftest.er1
2869 cat conftest.er1 >&5
2871 rm -f conftest.er1 conftest.err
2872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2873 test $ac_status = 0; }
2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h. */
2887 ac_clean_files_save=$ac_clean_files
2888 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2889 # Try to create an executable without -o first, disregard a.out.
2890 # It will help us diagnose broken compilers, and finding out an intuition
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2893 $as_echo_n "checking whether the C compiler works... " >&6; }
2894 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2896 # The possible output files:
2897 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2900 for ac_file in $ac_files
2903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2904 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2909 if { { ac_try="$ac_link_default"
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2915 $as_echo "$ac_try_echo"; } >&5
2916 (eval "$ac_link_default") 2>&5
2918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2919 test $ac_status = 0; }; then :
2920 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2921 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2922 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2923 # so that the user can short-circuit this test for compilers unknown to
2925 for ac_file in $ac_files ''
2927 test -f "$ac_file" || continue
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2932 # We found the default executable, but exeext='' is most
2936 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2938 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940 # We set ac_cv_exeext here because the later test for it is not
2941 # safe: cross compilers may not add the suffix if given an `-o'
2942 # argument, so we may need to know it at that point already.
2943 # Even if this section looks crufty: it has the advantage of
2950 test "$ac_cv_exeext" = no && ac_cv_exeext=
2955 if test -z "$ac_file"; then :
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 $as_echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2963 as_fn_error 77 "C compiler cannot create executables
2964 See \`config.log' for more details" "$LINENO" 5; }
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2967 $as_echo "yes" >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2970 $as_echo_n "checking for C compiler default output file name... " >&6; }
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2972 $as_echo "$ac_file" >&6; }
2973 ac_exeext=$ac_cv_exeext
2975 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2976 ac_clean_files=$ac_clean_files_save
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2978 $as_echo_n "checking for suffix of executables... " >&6; }
2979 if { { ac_try="$ac_link"
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985 $as_echo "$ac_try_echo"; } >&5
2986 (eval "$ac_link") 2>&5
2988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 test $ac_status = 0; }; then :
2990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2991 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2992 # work properly (i.e., refer to `conftest.exe'), while it won't with
2994 for ac_file in conftest.exe conftest conftest.*; do
2995 test -f "$ac_file" || continue
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2998 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3006 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3007 See \`config.log' for more details" "$LINENO" 5; }
3009 rm -f conftest conftest$ac_cv_exeext
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3011 $as_echo "$ac_cv_exeext" >&6; }
3013 rm -f conftest.$ac_ext
3014 EXEEXT=$ac_cv_exeext
3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3022 FILE *f = fopen ("conftest.out", "w");
3023 return ferror (f) || fclose (f) != 0;
3029 ac_clean_files="$ac_clean_files conftest.out"
3030 # Check that the compiler produces executables we can run. If not, either
3031 # the compiler is broken, or we cross compile.
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3033 $as_echo_n "checking whether we are cross compiling... " >&6; }
3034 if test "$cross_compiling" != yes; then
3035 { { ac_try="$ac_link"
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041 $as_echo "$ac_try_echo"; } >&5
3042 (eval "$ac_link") 2>&5
3044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045 test $ac_status = 0; }
3046 if { ac_try='./conftest$ac_cv_exeext'
3047 { { case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3052 $as_echo "$ac_try_echo"; } >&5
3053 (eval "$ac_try") 2>&5
3055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3056 test $ac_status = 0; }; }; then
3059 if test "$cross_compiling" = maybe; then
3062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3064 as_fn_error $? "cannot run C compiled programs.
3065 If you meant to cross compile, use \`--host'.
3066 See \`config.log' for more details" "$LINENO" 5; }
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3071 $as_echo "$cross_compiling" >&6; }
3073 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3074 ac_clean_files=$ac_clean_files_save
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3076 $as_echo_n "checking for suffix of object files... " >&6; }
3077 if ${ac_cv_objext+:} false; then :
3078 $as_echo_n "(cached) " >&6
3080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081 /* end confdefs.h. */
3091 rm -f conftest.o conftest.obj
3092 if { { ac_try="$ac_compile"
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098 $as_echo "$ac_try_echo"; } >&5
3099 (eval "$ac_compile") 2>&5
3101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102 test $ac_status = 0; }; then :
3103 for ac_file in conftest.o conftest.obj conftest.*; do
3104 test -f "$ac_file" || continue;
3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3107 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3112 $as_echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117 as_fn_error $? "cannot compute suffix of object files: cannot compile
3118 See \`config.log' for more details" "$LINENO" 5; }
3120 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3123 $as_echo "$ac_cv_objext" >&6; }
3124 OBJEXT=$ac_cv_objext
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3127 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3128 if ${ac_cv_c_compiler_gnu+:} false; then :
3129 $as_echo_n "(cached) " >&6
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132 /* end confdefs.h. */
3145 if ac_fn_c_try_compile "$LINENO"; then :
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3155 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3156 if test $ac_compiler_gnu = yes; then
3161 ac_test_CFLAGS=${CFLAGS+set}
3162 ac_save_CFLAGS=$CFLAGS
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3164 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3165 if ${ac_cv_prog_cc_g+:} false; then :
3166 $as_echo_n "(cached) " >&6
3168 ac_save_c_werror_flag=$ac_c_werror_flag
3169 ac_c_werror_flag=yes
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3183 if ac_fn_c_try_compile "$LINENO"; then :
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188 /* end confdefs.h. */
3198 if ac_fn_c_try_compile "$LINENO"; then :
3201 ac_c_werror_flag=$ac_save_c_werror_flag
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3214 if ac_fn_c_try_compile "$LINENO"; then :
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 ac_c_werror_flag=$ac_save_c_werror_flag
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3225 $as_echo "$ac_cv_prog_cc_g" >&6; }
3226 if test "$ac_test_CFLAGS" = set; then
3227 CFLAGS=$ac_save_CFLAGS
3228 elif test $ac_cv_prog_cc_g = yes; then
3229 if test "$GCC" = yes; then
3235 if test "$GCC" = yes; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3242 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3243 if ${ac_cv_prog_cc_c89+:} false; then :
3244 $as_echo_n "(cached) " >&6
3246 ac_cv_prog_cc_c89=no
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3253 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3254 struct buf { int x; };
3255 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3256 static char *e (p, i)
3262 static char *f (char * (*g) (char **, int), char **p, ...)
3267 s = g (p, va_arg (v,int));
3272 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3273 function prototypes and stuff, but not '\xHH' hex character constants.
3274 These don't provoke an error unfortunately, instead are silently treated
3275 as 'x'. The following induces an error, until -std is added to get
3276 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3277 array size at least. It's necessary to write '\x00'==0 to get something
3278 that's true only with -std. */
3279 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3281 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3282 inside strings and character constants. */
3284 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3286 int test (int i, double x);
3287 struct s1 {int (*f) (int a);};
3288 struct s2 {int (*f) (double a);};
3289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3295 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3300 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3301 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3303 CC="$ac_save_CC $ac_arg"
3304 if ac_fn_c_try_compile "$LINENO"; then :
3305 ac_cv_prog_cc_c89=$ac_arg
3307 rm -f core conftest.err conftest.$ac_objext
3308 test "x$ac_cv_prog_cc_c89" != "xno" && break
3310 rm -f conftest.$ac_ext
3315 case "x$ac_cv_prog_cc_c89" in
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3318 $as_echo "none needed" >&6; } ;;
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3321 $as_echo "unsupported" >&6; } ;;
3323 CC="$CC $ac_cv_prog_cc_c89"
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3325 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3327 if test "x$ac_cv_prog_cc_c89" != xno; then :
3332 ac_cpp='$CPP $CPPFLAGS'
3333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 ac_cpp='$CXXCPP $CPPFLAGS'
3339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3342 if test -z "$CXX"; then
3343 if test -n "$CCC"; then
3346 if test -n "$ac_tool_prefix"; then
3347 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_CXX+:} false; then :
3354 $as_echo_n "(cached) " >&6
3356 if test -n "$CXX"; then
3357 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 if test -n "$CXX"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3379 $as_echo "$CXX" >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3386 test -n "$CXX" && break
3389 if test -z "$CXX"; then
3391 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3393 # Extract the first word of "$ac_prog", so it can be a program name with args.
3394 set dummy $ac_prog; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3398 $as_echo_n "(cached) " >&6
3400 if test -n "$ac_ct_CXX"; then
3401 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_ac_ct_CXX="$ac_prog"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3421 if test -n "$ac_ct_CXX"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3423 $as_echo "$ac_ct_CXX" >&6; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3430 test -n "$ac_ct_CXX" && break
3433 if test "x$ac_ct_CXX" = x; then
3436 case $cross_compiling:$ac_tool_warned in
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3440 ac_tool_warned=yes ;;
3448 # Provide some information about the compiler.
3449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3452 for ac_option in --version -v -V -qversion; do
3453 { { ac_try="$ac_compiler $ac_option >&5"
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3462 if test -s conftest.err; then
3464 ... rest of stderr output deleted ...
3465 10q' conftest.err >conftest.er1
3466 cat conftest.er1 >&5
3468 rm -f conftest.er1 conftest.err
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3474 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3475 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3476 $as_echo_n "(cached) " >&6
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3492 if ac_fn_cxx_try_compile "$LINENO"; then :
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3502 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3503 if test $ac_compiler_gnu = yes; then
3508 ac_test_CXXFLAGS=${CXXFLAGS+set}
3509 ac_save_CXXFLAGS=$CXXFLAGS
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3511 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3512 if ${ac_cv_prog_cxx_g+:} false; then :
3513 $as_echo_n "(cached) " >&6
3515 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3516 ac_cxx_werror_flag=yes
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3530 if ac_fn_cxx_try_compile "$LINENO"; then :
3531 ac_cv_prog_cxx_g=yes
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3545 if ac_fn_cxx_try_compile "$LINENO"; then :
3548 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3561 if ac_fn_cxx_try_compile "$LINENO"; then :
3562 ac_cv_prog_cxx_g=yes
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3572 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3573 if test "$ac_test_CXXFLAGS" = set; then
3574 CXXFLAGS=$ac_save_CXXFLAGS
3575 elif test $ac_cv_prog_cxx_g = yes; then
3576 if test "$GXX" = yes; then
3582 if test "$GXX" = yes; then
3589 ac_cpp='$CPP $CPPFLAGS'
3590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3602 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3603 # On Suns, sometimes $CPP names a directory.
3604 if test -n "$CPP" && test -d "$CPP"; then
3607 if test -z "$CPP"; then
3608 if ${ac_cv_prog_CPP+:} false; then :
3609 $as_echo_n "(cached) " >&6
3611 # Double quotes because CPP needs to be expanded
3612 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3615 for ac_c_preproc_warn_flag in '' yes
3617 # Use a header file that comes with gcc, so configuring glibc
3618 # with a fresh cross-compiler works.
3619 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3620 # <limits.h> exists even on freestanding compilers.
3621 # On the NeXT, cc -E runs the code through the compiler's parser,
3622 # not just through cpp. "Syntax error" is here to catch this case.
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3626 # include <limits.h>
3628 # include <assert.h>
3632 if ac_fn_c_try_cpp "$LINENO"; then :
3635 # Broken: fails on valid input.
3638 rm -f conftest.err conftest.i conftest.$ac_ext
3640 # OK, works on sane cases. Now check whether nonexistent headers
3641 # can be detected and how.
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644 #include <ac_nonexistent.h>
3646 if ac_fn_c_try_cpp "$LINENO"; then :
3647 # Broken: success on invalid input.
3650 # Passes both tests.
3654 rm -f conftest.err conftest.i conftest.$ac_ext
3657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658 rm -f conftest.i conftest.err conftest.$ac_ext
3659 if $ac_preproc_ok; then :
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3672 $as_echo "$CPP" >&6; }
3674 for ac_c_preproc_warn_flag in '' yes
3676 # Use a header file that comes with gcc, so configuring glibc
3677 # with a fresh cross-compiler works.
3678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3679 # <limits.h> exists even on freestanding compilers.
3680 # On the NeXT, cc -E runs the code through the compiler's parser,
3681 # not just through cpp. "Syntax error" is here to catch this case.
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3685 # include <limits.h>
3687 # include <assert.h>
3691 if ac_fn_c_try_cpp "$LINENO"; then :
3694 # Broken: fails on valid input.
3697 rm -f conftest.err conftest.i conftest.$ac_ext
3699 # OK, works on sane cases. Now check whether nonexistent headers
3700 # can be detected and how.
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3703 #include <ac_nonexistent.h>
3705 if ac_fn_c_try_cpp "$LINENO"; then :
3706 # Broken: success on invalid input.
3709 # Passes both tests.
3713 rm -f conftest.err conftest.i conftest.$ac_ext
3716 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3717 rm -f conftest.i conftest.err conftest.$ac_ext
3718 if $ac_preproc_ok; then :
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3724 See \`config.log' for more details" "$LINENO" 5; }
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3735 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3736 if ${ac_cv_path_GREP+:} false; then :
3737 $as_echo_n "(cached) " >&6
3739 if test -z "$GREP"; then
3740 ac_path_GREP_found=false
3741 # Loop through the user's path and test for each of PROGNAME-LIST
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3746 test -z "$as_dir" && as_dir=.
3747 for ac_prog in grep ggrep; do
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3750 as_fn_executable_p "$ac_path_GREP" || continue
3751 # Check for GNU ac_path_GREP and select it if it is found.
3752 # Check for GNU $ac_path_GREP
3753 case `"$ac_path_GREP" --version 2>&1` in
3755 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3758 $as_echo_n 0123456789 >"conftest.in"
3761 cat "conftest.in" "conftest.in" >"conftest.tmp"
3762 mv "conftest.tmp" "conftest.in"
3763 cp "conftest.in" "conftest.nl"
3764 $as_echo 'GREP' >> "conftest.nl"
3765 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3767 as_fn_arith $ac_count + 1 && ac_count=$as_val
3768 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3769 # Best one so far, save it but keep looking for a better one
3770 ac_cv_path_GREP="$ac_path_GREP"
3771 ac_path_GREP_max=$ac_count
3773 # 10*(2^10) chars as input seems more than enough
3774 test $ac_count -gt 10 && break
3776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3779 $ac_path_GREP_found && break 3
3784 if test -z "$ac_cv_path_GREP"; then
3785 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3788 ac_cv_path_GREP=$GREP
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3793 $as_echo "$ac_cv_path_GREP" >&6; }
3794 GREP="$ac_cv_path_GREP"
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3798 $as_echo_n "checking for egrep... " >&6; }
3799 if ${ac_cv_path_EGREP+:} false; then :
3800 $as_echo_n "(cached) " >&6
3802 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3803 then ac_cv_path_EGREP="$GREP -E"
3805 if test -z "$EGREP"; then
3806 ac_path_EGREP_found=false
3807 # Loop through the user's path and test for each of PROGNAME-LIST
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3812 test -z "$as_dir" && as_dir=.
3813 for ac_prog in egrep; do
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3816 as_fn_executable_p "$ac_path_EGREP" || continue
3817 # Check for GNU ac_path_EGREP and select it if it is found.
3818 # Check for GNU $ac_path_EGREP
3819 case `"$ac_path_EGREP" --version 2>&1` in
3821 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3824 $as_echo_n 0123456789 >"conftest.in"
3827 cat "conftest.in" "conftest.in" >"conftest.tmp"
3828 mv "conftest.tmp" "conftest.in"
3829 cp "conftest.in" "conftest.nl"
3830 $as_echo 'EGREP' >> "conftest.nl"
3831 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3833 as_fn_arith $ac_count + 1 && ac_count=$as_val
3834 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3835 # Best one so far, save it but keep looking for a better one
3836 ac_cv_path_EGREP="$ac_path_EGREP"
3837 ac_path_EGREP_max=$ac_count
3839 # 10*(2^10) chars as input seems more than enough
3840 test $ac_count -gt 10 && break
3842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3845 $ac_path_EGREP_found && break 3
3850 if test -z "$ac_cv_path_EGREP"; then
3851 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3854 ac_cv_path_EGREP=$EGREP
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3860 $as_echo "$ac_cv_path_EGREP" >&6; }
3861 EGREP="$ac_cv_path_EGREP"
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3865 $as_echo_n "checking for ANSI C header files... " >&6; }
3866 if ${ac_cv_header_stdc+:} false; then :
3867 $as_echo_n "(cached) " >&6
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3884 if ac_fn_c_try_compile "$LINENO"; then :
3885 ac_cv_header_stdc=yes
3887 ac_cv_header_stdc=no
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 if test $ac_cv_header_stdc = yes; then
3892 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3899 $EGREP "memchr" >/dev/null 2>&1; then :
3902 ac_cv_header_stdc=no
3908 if test $ac_cv_header_stdc = yes; then
3909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3916 $EGREP "free" >/dev/null 2>&1; then :
3919 ac_cv_header_stdc=no
3925 if test $ac_cv_header_stdc = yes; then
3926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3927 if test "$cross_compiling" = yes; then :
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3934 #if ((' ' & 0x0FF) == 0x020)
3935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3938 # define ISLOWER(c) \
3939 (('a' <= (c) && (c) <= 'i') \
3940 || ('j' <= (c) && (c) <= 'r') \
3941 || ('s' <= (c) && (c) <= 'z'))
3942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3950 for (i = 0; i < 256; i++)
3951 if (XOR (islower (i), ISLOWER (i))
3952 || toupper (i) != TOUPPER (i))
3957 if ac_fn_c_try_run "$LINENO"; then :
3960 ac_cv_header_stdc=no
3962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3963 conftest.$ac_objext conftest.beam conftest.$ac_ext
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3969 $as_echo "$ac_cv_header_stdc" >&6; }
3970 if test $ac_cv_header_stdc = yes; then
3972 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3976 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3977 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3978 inttypes.h stdint.h unistd.h
3980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3981 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3983 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3984 cat >>confdefs.h <<_ACEOF
3985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3994 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3995 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4002 if test "$MINIX" = yes; then
4004 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4007 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4010 $as_echo "#define _MINIX 1" >>confdefs.h
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4016 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4017 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4018 $as_echo_n "(cached) " >&6
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4023 # define __EXTENSIONS__ 1
4024 $ac_includes_default
4033 if ac_fn_c_try_compile "$LINENO"; then :
4034 ac_cv_safe_to_define___extensions__=yes
4036 ac_cv_safe_to_define___extensions__=no
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4041 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4042 test $ac_cv_safe_to_define___extensions__ = yes &&
4043 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4045 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4047 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4049 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4051 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4056 if test $ac_cv_c_compiler_gnu = yes; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4058 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4059 if ${ac_cv_prog_gcc_traditional+:} false; then :
4060 $as_echo_n "(cached) " >&6
4062 ac_pattern="Autoconf.*'x'"
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4069 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4070 ac_cv_prog_gcc_traditional=yes
4072 ac_cv_prog_gcc_traditional=no
4077 if test $ac_cv_prog_gcc_traditional = no; then
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4084 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4085 ac_cv_prog_gcc_traditional=yes
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4092 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4093 if test $ac_cv_prog_gcc_traditional = yes; then
4094 CC="$CC -traditional"
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4099 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4100 if ${ac_cv_prog_suncc+:} false; then :
4101 $as_echo_n "(cached) " >&6
4103 cat > conftest.c <<EOF
4108 if { ac_try='${CC-cc} -E conftest.c'
4109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4114 ac_cv_prog_suncc=yes
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4120 $as_echo "$ac_cv_prog_suncc" >&6; }
4121 if test -n "$ac_tool_prefix"; then
4122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if ${ac_cv_prog_RANLIB+:} false; then :
4127 $as_echo_n "(cached) " >&6
4129 if test -n "$RANLIB"; then
4130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 RANLIB=$ac_cv_prog_RANLIB
4150 if test -n "$RANLIB"; then
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4152 $as_echo "$RANLIB" >&6; }
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4160 if test -z "$ac_cv_prog_RANLIB"; then
4161 ac_ct_RANLIB=$RANLIB
4162 # Extract the first word of "ranlib", so it can be a program name with args.
4163 set dummy ranlib; ac_word=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4167 $as_echo_n "(cached) " >&6
4169 if test -n "$ac_ct_RANLIB"; then
4170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_ac_ct_RANLIB="ranlib"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4190 if test -n "$ac_ct_RANLIB"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4192 $as_echo "$ac_ct_RANLIB" >&6; }
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4198 if test "x$ac_ct_RANLIB" = x; then
4201 case $cross_compiling:$ac_tool_warned in
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205 ac_tool_warned=yes ;;
4207 RANLIB=$ac_ct_RANLIB
4210 RANLIB="$ac_cv_prog_RANLIB"
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4216 $as_echo_n "checking if compiler is clang... " >&6; }
4217 if ${ax_cv_cc_clang+:} false; then :
4218 $as_echo_n "(cached) " >&6
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4237 if ac_fn_c_try_compile "$LINENO"; then :
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4246 $as_echo "$ax_cv_cc_clang" >&6; }
4249 if test "x$GCC" = "xyes"; then
4250 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4255 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4256 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4257 $as_echo_n "(cached) " >&6
4261 CFLAGS_SAVED=$CFLAGS
4262 CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4265 ac_cpp='$CPP $CPPFLAGS'
4266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4281 if ac_fn_c_try_compile "$LINENO"; then :
4282 ax_cv_cc_qunused_arguments_flag="yes"
4284 ax_cv_cc_qunused_arguments_flag="no"
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 ac_cpp='$CPP $CPPFLAGS'
4289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4294 CFLAGS="$CFLAGS_SAVED"
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4298 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4300 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4301 CFLAGS="$CFLAGS -Qunused-arguments"
4302 LDFLAGS="$LDFLAGS -Qunused-arguments"
4305 # Check whether --enable-largefile was given.
4306 if test "${enable_largefile+set}" = set; then :
4307 enableval=$enable_largefile;
4310 if test "$enable_largefile" != no; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4313 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4314 if ${ac_cv_sys_largefile_CC+:} false; then :
4315 $as_echo_n "(cached) " >&6
4317 ac_cv_sys_largefile_CC=no
4318 if test "$GCC" != yes; then
4321 # IRIX 6.2 and later do not support large files by default,
4322 # so use the C compiler's -n32 option if that helps.
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 #include <sys/types.h>
4326 /* Check that off_t can represent 2**63 - 1 correctly.
4327 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4328 since some C++ compilers masquerading as C compilers
4329 incorrectly reject 9223372036854775807. */
4330 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4331 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4332 && LARGE_OFF_T % 2147483647 == 1)
4342 if ac_fn_c_try_compile "$LINENO"; then :
4345 rm -f core conftest.err conftest.$ac_objext
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348 ac_cv_sys_largefile_CC=' -n32'; break
4350 rm -f core conftest.err conftest.$ac_objext
4354 rm -f conftest.$ac_ext
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4358 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4359 if test "$ac_cv_sys_largefile_CC" != no; then
4360 CC=$CC$ac_cv_sys_largefile_CC
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4364 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4365 if ${ac_cv_sys_file_offset_bits+:} false; then :
4366 $as_echo_n "(cached) " >&6
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 #include <sys/types.h>
4372 /* Check that off_t can represent 2**63 - 1 correctly.
4373 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4374 since some C++ compilers masquerading as C compilers
4375 incorrectly reject 9223372036854775807. */
4376 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4377 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4378 && LARGE_OFF_T % 2147483647 == 1)
4388 if ac_fn_c_try_compile "$LINENO"; then :
4389 ac_cv_sys_file_offset_bits=no; break
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #define _FILE_OFFSET_BITS 64
4395 #include <sys/types.h>
4396 /* Check that off_t can represent 2**63 - 1 correctly.
4397 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4398 since some C++ compilers masquerading as C compilers
4399 incorrectly reject 9223372036854775807. */
4400 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4401 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4402 && LARGE_OFF_T % 2147483647 == 1)
4412 if ac_fn_c_try_compile "$LINENO"; then :
4413 ac_cv_sys_file_offset_bits=64; break
4415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 ac_cv_sys_file_offset_bits=unknown
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4421 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4422 case $ac_cv_sys_file_offset_bits in #(
4425 cat >>confdefs.h <<_ACEOF
4426 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4431 if test $ac_cv_sys_file_offset_bits = unknown; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4433 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4434 if ${ac_cv_sys_large_files+:} false; then :
4435 $as_echo_n "(cached) " >&6
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4440 #include <sys/types.h>
4441 /* Check that off_t can represent 2**63 - 1 correctly.
4442 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4443 since some C++ compilers masquerading as C compilers
4444 incorrectly reject 9223372036854775807. */
4445 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4446 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4447 && LARGE_OFF_T % 2147483647 == 1)
4457 if ac_fn_c_try_compile "$LINENO"; then :
4458 ac_cv_sys_large_files=no; break
4460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463 #define _LARGE_FILES 1
4464 #include <sys/types.h>
4465 /* Check that off_t can represent 2**63 - 1 correctly.
4466 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4467 since some C++ compilers masquerading as C compilers
4468 incorrectly reject 9223372036854775807. */
4469 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4471 && LARGE_OFF_T % 2147483647 == 1)
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_cv_sys_large_files=1; break
4484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 ac_cv_sys_large_files=unknown
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4490 $as_echo "$ac_cv_sys_large_files" >&6; }
4491 case $ac_cv_sys_large_files in #(
4494 cat >>confdefs.h <<_ACEOF
4495 #define _LARGE_FILES $ac_cv_sys_large_files
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4507 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4508 if ${ac_cv_c_bigendian+:} false; then :
4509 $as_echo_n "(cached) " >&6
4511 ac_cv_c_bigendian=unknown
4512 # See if we're dealing with a universal compiler.
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515 #ifndef __APPLE_CC__
4516 not a universal capable compiler
4521 if ac_fn_c_try_compile "$LINENO"; then :
4523 # Check for potential -arch flags. It is not universal unless
4524 # there are at least two -arch flags with different values.
4527 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4528 if test -n "$ac_prev"; then
4530 i?86 | x86_64 | ppc | ppc64)
4531 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4534 ac_cv_c_bigendian=universal
4540 elif test "x$ac_word" = "x-arch"; then
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 if test $ac_cv_c_bigendian = unknown; then
4547 # See if sys/param.h defines the BYTE_ORDER macro.
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550 #include <sys/types.h>
4551 #include <sys/param.h>
4556 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4557 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4566 if ac_fn_c_try_compile "$LINENO"; then :
4567 # It does; now see whether it defined to BIG_ENDIAN or not.
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570 #include <sys/types.h>
4571 #include <sys/param.h>
4576 #if BYTE_ORDER != BIG_ENDIAN
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585 ac_cv_c_bigendian=yes
4587 ac_cv_c_bigendian=no
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 if test $ac_cv_c_bigendian = unknown; then
4594 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4602 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611 # It does; now see whether it defined to _BIG_ENDIAN or not.
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4627 if ac_fn_c_try_compile "$LINENO"; then :
4628 ac_cv_c_bigendian=yes
4630 ac_cv_c_bigendian=no
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 if test $ac_cv_c_bigendian = unknown; then
4637 # Compile a test program.
4638 if test "$cross_compiling" = yes; then :
4639 # Try to guess by grepping values from an object file.
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642 short int ascii_mm[] =
4643 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4644 short int ascii_ii[] =
4645 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4646 int use_ascii (int i) {
4647 return ascii_mm[i] + ascii_ii[i];
4649 short int ebcdic_ii[] =
4650 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4651 short int ebcdic_mm[] =
4652 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4653 int use_ebcdic (int i) {
4654 return ebcdic_mm[i] + ebcdic_ii[i];
4661 return use_ascii (foo) == use_ebcdic (foo);
4666 if ac_fn_c_try_compile "$LINENO"; then :
4667 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4668 ac_cv_c_bigendian=yes
4670 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4671 if test "$ac_cv_c_bigendian" = unknown; then
4672 ac_cv_c_bigendian=no
4674 # finding both strings is unlikely to happen, but who knows?
4675 ac_cv_c_bigendian=unknown
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683 $ac_includes_default
4688 /* Are we little or big endian? From Harbison&Steele. */
4692 char c[sizeof (long int)];
4695 return u.c[sizeof (long int) - 1] == 1;
4701 if ac_fn_c_try_run "$LINENO"; then :
4702 ac_cv_c_bigendian=no
4704 ac_cv_c_bigendian=yes
4706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4707 conftest.$ac_objext conftest.beam conftest.$ac_ext
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4713 $as_echo "$ac_cv_c_bigendian" >&6; }
4714 case $ac_cv_c_bigendian in #(
4716 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4722 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4726 as_fn_error $? "unknown endianness
4727 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4731 # Extract the first word of "gmake", so it can be a program name with args.
4732 set dummy gmake; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if ${ac_cv_prog_GMAKE+:} false; then :
4736 $as_echo_n "(cached) " >&6
4738 if test -n "$GMAKE"; then
4739 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_prog_GMAKE="yes"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4759 GMAKE=$ac_cv_prog_GMAKE
4760 if test -n "$GMAKE"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4762 $as_echo "$GMAKE" >&6; }
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4769 if test $GMAKE = no; then
4770 # Extract the first word of "make", so it can be a program name with args.
4771 set dummy make; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_path_MAKE+:} false; then :
4775 $as_echo_n "(cached) " >&6
4779 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4801 MAKE=$ac_cv_path_MAKE
4802 if test -n "$MAKE"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4804 $as_echo "$MAKE" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4812 # Extract the first word of "gmake", so it can be a program name with args.
4813 set dummy gmake; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if ${ac_cv_path_MAKE+:} false; then :
4817 $as_echo_n "(cached) " >&6
4821 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4843 MAKE=$ac_cv_path_MAKE
4844 if test -n "$MAKE"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4846 $as_echo "$MAKE" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4854 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4855 if test -z "$makever"; then
4856 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
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4861 $as_echo_n "checking number of system cores... " >&6; }
4862 if ${ax_cv_system_cores+:} false; then :
4863 $as_echo_n "(cached) " >&6
4867 ac_cpp='$CPP $CPPFLAGS'
4868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4872 if test "$cross_compiling" = yes; then :
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4882 # include <windows.h>
4884 # include <sys/param.h>
4885 # include <sys/sysctl.h>
4887 # include <unistd.h>
4890 int main (int argc, char *argv[])
4895 SYSTEM_INFO sysinfo;
4896 GetSystemInfo(&sysinfo);
4898 count = sysinfo.dwNumberOfProcessors;
4905 nm[1] = HW_AVAILCPU;
4906 sysctl(nm, 2, &count, &len, NULL, 0);
4910 sysctl(nm, 2, &count, &len, NULL, 0);
4917 count = sysconf(_SC_NPROCESSORS_ONLN);
4924 if ac_fn_c_try_run "$LINENO"; then :
4925 ax_cv_system_cores=$?
4927 ax_cv_system_cores=$?
4929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4930 conftest.$ac_objext conftest.beam conftest.$ac_ext
4934 ac_cpp='$CPP $CPPFLAGS'
4935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
4942 $as_echo "$ax_cv_system_cores" >&6; }
4947 # Extract the first word of "git", so it can be a program name with args.
4948 set dummy git; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_GIT+:} false; then :
4952 $as_echo_n "(cached) " >&6
4954 if test -n "$GIT"; then
4955 ac_cv_prog_GIT="$GIT" # Let the user override the test.
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_prog_GIT="yes"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4976 if test -n "$GIT"; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4978 $as_echo "$GIT" >&6; }
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4987 # Check whether --enable-strict-dependencies was given.
4988 if test "${enable_strict_dependencies+set}" = set; then :
4989 enableval=$enable_strict_dependencies;
4993 # Check whether --enable-werror was given.
4994 if test "${enable_werror+set}" = set; then :
4995 enableval=$enable_werror; case "$enableval" in
5006 docdir='${datadir}/doc/freeradius'
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5008 $as_echo_n "checking docdir... " >&6; }
5010 # Check whether --with-docdir was given.
5011 if test "${with_docdir+set}" = set; then :
5012 withval=$with_docdir; case "$withval" in
5018 [\\/$]* | ?:[\\/]* )
5022 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5030 $as_echo "$docdir" >&6; }
5031 if test "x$docdir" = xno; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5033 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5036 logdir='${localstatedir}/log/radius'
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5038 $as_echo_n "checking logdir... " >&6; }
5040 # Check whether --with-logdir was given.
5041 if test "${with_logdir+set}" = set; then :
5042 withval=$with_logdir; case "$withval" in
5044 as_fn_error $? "Need logdir" "$LINENO" 5
5048 [\\/$]* | ?:[\\/]* )
5052 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5060 $as_echo "$logdir" >&6; }
5062 radacctdir='${logdir}/radacct'
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5064 $as_echo_n "checking radacctdir... " >&6; }
5066 # Check whether --with-radacctdir was given.
5067 if test "${with_radacctdir+set}" = set; then :
5068 withval=$with_radacctdir; case "$withval" in
5070 as_fn_error $? "Need radacctdir" "$LINENO" 5
5074 [\\/$]* | ?:[\\/]* )
5075 radacctdir="$withval"
5078 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5086 $as_echo "$radacctdir" >&6; }
5088 raddbdir='${sysconfdir}/raddb'
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5090 $as_echo_n "checking raddbdir... " >&6; }
5092 # Check whether --with-raddbdir was given.
5093 if test "${with_raddbdir+set}" = set; then :
5094 withval=$with_raddbdir; case "$withval" in
5096 as_fn_error $? "Need raddbdir" "$LINENO" 5
5100 [\\/$]* | ?:[\\/]* )
5104 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5112 $as_echo "$raddbdir" >&6; }
5114 modconfdir="$raddbdir/mods-config"
5117 WITH_ASCEND_BINARY=yes
5119 # Check whether --with-ascend-binary was given.
5120 if test "${with_ascend_binary+set}" = set; then :
5121 withval=$with_ascend_binary; case "$withval" in
5125 WITH_ASCEND_BINARY=no
5130 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5132 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5138 # Check whether --with-threads was given.
5139 if test "${with_threads+set}" = set; then :
5140 withval=$with_threads; case "$withval" in
5152 # Check whether --with-tcp was given.
5153 if test "${with_tcp+set}" = set; then :
5154 withval=$with_tcp; case "$withval" in
5163 if test "x$WITH_TCP" = "xyes"; then
5165 $as_echo "#define WITH_TCP 1" >>confdefs.h
5171 # Check whether --with-vmps was given.
5172 if test "${with_vmps+set}" = set; then :
5173 withval=$with_vmps; case "$withval" in
5182 if test "x$WITH_VMPS" = "xyes"; then
5184 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5190 # Check whether --with-dhcp was given.
5191 if test "${with_dhcp+set}" = set; then :
5192 withval=$with_dhcp; case "$withval" in
5201 if test "x$WITH_DHCP" = "xyes"; then
5203 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5209 # Check whether --with-static_modules was given.
5210 if test "${with_static_modules+set}" = set; then :
5211 withval=$with_static_modules;
5212 for i in $withval; do
5213 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5221 # Check whether --with-modules was given.
5222 if test "${with_modules+set}" = set; then :
5223 withval=$with_modules;
5224 for i in $withval; do
5225 MODULES="$MODULES $i"
5233 # Check whether --with-experimental-modules was given.
5234 if test "${with_experimental_modules+set}" = set; then :
5235 withval=$with_experimental_modules; case "$withval" in
5250 # Check whether --with-openssl was given.
5251 if test "${with_openssl+set}" = set; then :
5252 withval=$with_openssl; case "$withval" in
5264 OPENSSL_INCLUDE_DIR=
5266 # Check whether --with-openssl-includes was given.
5267 if test "${with_openssl_includes+set}" = set; then :
5268 withval=$with_openssl_includes; case "$withval" in
5269 *) OPENSSL_INCLUDE_DIR="$withval"
5278 # Check whether --with-openssl-libraries was given.
5279 if test "${with_openssl_libraries+set}" = set; then :
5280 withval=$with_openssl_libraries; case "$withval" in
5281 *) OPENSSL_LIB_DIR="$withval"
5290 # Check whether --with-rlm-FOO-lib-dir was given.
5291 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5292 withval=$with_rlm_FOO_lib_dir; case "$withval" in
5301 # Check whether --with-rlm-FOO-include-dir was given.
5302 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5303 withval=$with_rlm_FOO_include_dir; case "$withval" in
5313 # Check whether --with-udpfromto was given.
5314 if test "${with_udpfromto+set}" = set; then :
5315 withval=$with_udpfromto; case "$withval" in
5326 if test "x$WITH_UDPFROMTO" = "xyes"; then
5328 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5334 # Extract the first word of "perl", so it can be a program name with args.
5335 set dummy perl; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_path_PERL+:} false; then :
5339 $as_echo_n "(cached) " >&6
5343 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5365 PERL=$ac_cv_path_PERL
5366 if test -n "$PERL"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5368 $as_echo "$PERL" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5375 if test "x$ac_cv_path_PERL" = "x"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5377 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5379 # Extract the first word of "snmpget", so it can be a program name with args.
5380 set dummy snmpget; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_path_SNMPGET+:} false; then :
5384 $as_echo_n "(cached) " >&6
5388 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 SNMPGET=$ac_cv_path_SNMPGET
5410 if test -n "$SNMPGET"; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5412 $as_echo "$SNMPGET" >&6; }
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5419 if test "x$ac_cv_path_SNMPGET" = "x"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5421 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5424 # Extract the first word of "snmpwalk", so it can be a program name with args.
5425 set dummy snmpwalk; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_path_SNMPWALK+:} false; then :
5429 $as_echo_n "(cached) " >&6
5433 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 SNMPWALK=$ac_cv_path_SNMPWALK
5455 if test -n "$SNMPWALK"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5457 $as_echo "$SNMPWALK" >&6; }
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5464 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5466 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5469 # Extract the first word of "rusers", so it can be a program name with args.
5470 set dummy rusers; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_path_RUSERS+:} false; then :
5474 $as_echo_n "(cached) " >&6
5478 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5500 RUSERS=$ac_cv_path_RUSERS
5501 if test -n "$RUSERS"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5503 $as_echo "$RUSERS" >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5511 missing_dir=`cd $ac_aux_dir && pwd`
5512 # expand $ac_aux_dir to an absolute path
5513 am_aux_dir=`cd $ac_aux_dir && pwd`
5515 if test x"${MISSING+set}" != xset; then
5518 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5520 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5523 # Use eval to expand $SHELL
5524 if eval "$MISSING --run true"; then
5525 am_missing_run="$MISSING --run "
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5529 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5533 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5536 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5539 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5542 # Extract the first word of "locate", so it can be a program name with args.
5543 set dummy locate; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if ${ac_cv_path_LOCATE+:} false; then :
5547 $as_echo_n "(cached) " >&6
5551 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 LOCATE=$ac_cv_path_LOCATE
5573 if test -n "$LOCATE"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5575 $as_echo "$LOCATE" >&6; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5582 # Extract the first word of "dirname", so it can be a program name with args.
5583 set dummy dirname; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if ${ac_cv_path_DIRNAME+:} false; then :
5587 $as_echo_n "(cached) " >&6
5591 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5612 DIRNAME=$ac_cv_path_DIRNAME
5613 if test -n "$DIRNAME"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5615 $as_echo "$DIRNAME" >&6; }
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5622 # Extract the first word of "grep", so it can be a program name with args.
5623 set dummy grep; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_path_GREP+:} false; then :
5627 $as_echo_n "(cached) " >&6
5631 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 GREP=$ac_cv_path_GREP
5653 if test -n "$GREP"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5655 $as_echo "$GREP" >&6; }
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5665 if test "x$WITH_THREADS" = "xyes"; then
5666 if test $ac_cv_prog_suncc = "yes"; then
5667 CFLAGS="$CFLAGS -mt"
5670 for ac_header in pthread.h
5672 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5673 if test "x$ac_cv_header_pthread_h" = xyes; then :
5674 cat >>confdefs.h <<_ACEOF
5675 #define HAVE_PTHREAD_H 1
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5686 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5687 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5688 $as_echo_n "(cached) " >&6
5690 ac_check_lib_save_LIBS=$LIBS
5691 LIBS="-lpthread $LIBS"
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5695 /* Override any GCC internal prototype to avoid an error.
5696 Use char because int might match the return type of a GCC
5697 builtin and then its argument prototype would still apply. */
5701 char pthread_create ();
5705 return pthread_create ();
5710 if ac_fn_c_try_link "$LINENO"; then :
5711 ac_cv_lib_pthread_pthread_create=yes
5713 ac_cv_lib_pthread_pthread_create=no
5715 rm -f core conftest.err conftest.$ac_objext \
5716 conftest$ac_exeext conftest.$ac_ext
5717 LIBS=$ac_check_lib_save_LIBS
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5720 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5721 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5723 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
5724 LIBS="-lpthread $LIBS"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5729 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5730 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
5731 $as_echo_n "(cached) " >&6
5733 ac_check_lib_save_LIBS=$LIBS
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5738 /* Override any GCC internal prototype to avoid an error.
5739 Use char because int might match the return type of a GCC
5740 builtin and then its argument prototype would still apply. */
5744 char pthread_create ();
5748 return pthread_create ();
5753 if ac_fn_c_try_link "$LINENO"; then :
5754 ac_cv_lib_c_r_pthread_create=yes
5756 ac_cv_lib_c_r_pthread_create=no
5758 rm -f core conftest.err conftest.$ac_objext \
5759 conftest$ac_exeext conftest.$ac_ext
5760 LIBS=$ac_check_lib_save_LIBS
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
5763 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5764 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5765 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
5777 if test "x$WITH_THREADS" != "xyes"; then
5779 ac_cv_header_pthread_h="no"
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5784 $as_echo_n "checking for library containing sem_init... " >&6; }
5785 if ${ac_cv_search_sem_init+:} false; then :
5786 $as_echo_n "(cached) " >&6
5788 ac_func_search_save_LIBS=$LIBS
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5792 /* Override any GCC internal prototype to avoid an error.
5793 Use char because int might match the return type of a GCC
5794 builtin and then its argument prototype would still apply. */
5807 for ac_lib in '' pthread sem posix4 rt semaphore; do
5808 if test -z "$ac_lib"; then
5809 ac_res="none required"
5812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5814 if ac_fn_c_try_link "$LINENO"; then :
5815 ac_cv_search_sem_init=$ac_res
5817 rm -f core conftest.err conftest.$ac_objext \
5819 if ${ac_cv_search_sem_init+:} false; then :
5823 if ${ac_cv_search_sem_init+:} false; then :
5826 ac_cv_search_sem_init=no
5829 LIBS=$ac_func_search_save_LIBS
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5832 $as_echo "$ac_cv_search_sem_init" >&6; }
5833 ac_res=$ac_cv_search_sem_init
5834 if test "$ac_res" != no; then :
5835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5838 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
5844 if test "x$WITH_THREADS" = "xyes"; then
5846 $as_echo "#define WITH_THREADS 1" >>confdefs.h
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5851 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5852 if ${ac_cv_lib_dl_dlopen+:} false; then :
5853 $as_echo_n "(cached) " >&6
5855 ac_check_lib_save_LIBS=$LIBS
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5860 /* Override any GCC internal prototype to avoid an error.
5861 Use char because int might match the return type of a GCC
5862 builtin and then its argument prototype would still apply. */
5875 if ac_fn_c_try_link "$LINENO"; then :
5876 ac_cv_lib_dl_dlopen=yes
5878 ac_cv_lib_dl_dlopen=no
5880 rm -f core conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5882 LIBS=$ac_check_lib_save_LIBS
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5885 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5886 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5887 cat >>confdefs.h <<_ACEOF
5888 #define HAVE_LIBDL 1
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
5897 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
5898 if ${ac_cv_lib_socket_getsockname+:} false; then :
5899 $as_echo_n "(cached) " >&6
5901 ac_check_lib_save_LIBS=$LIBS
5902 LIBS="-lsocket $LIBS"
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5906 /* Override any GCC internal prototype to avoid an error.
5907 Use char because int might match the return type of a GCC
5908 builtin and then its argument prototype would still apply. */
5912 char getsockname ();
5916 return getsockname ();
5921 if ac_fn_c_try_link "$LINENO"; then :
5922 ac_cv_lib_socket_getsockname=yes
5924 ac_cv_lib_socket_getsockname=no
5926 rm -f core conftest.err conftest.$ac_objext \
5927 conftest$ac_exeext conftest.$ac_ext
5928 LIBS=$ac_check_lib_save_LIBS
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
5931 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
5932 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
5933 cat >>confdefs.h <<_ACEOF
5934 #define HAVE_LIBSOCKET 1
5937 LIBS="-lsocket $LIBS"
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
5943 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
5944 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
5945 $as_echo_n "(cached) " >&6
5947 ac_check_lib_save_LIBS=$LIBS
5948 LIBS="-lresolv $LIBS"
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5952 /* Override any GCC internal prototype to avoid an error.
5953 Use char because int might match the return type of a GCC
5954 builtin and then its argument prototype would still apply. */
5962 return inet_aton ();
5967 if ac_fn_c_try_link "$LINENO"; then :
5968 ac_cv_lib_resolv_inet_aton=yes
5970 ac_cv_lib_resolv_inet_aton=no
5972 rm -f core conftest.err conftest.$ac_objext \
5973 conftest$ac_exeext conftest.$ac_ext
5974 LIBS=$ac_check_lib_save_LIBS
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
5977 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
5978 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
5979 cat >>confdefs.h <<_ACEOF
5980 #define HAVE_LIBRESOLV 1
5983 LIBS="-lresolv $LIBS"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
5989 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
5990 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
5991 $as_echo_n "(cached) " >&6
5993 ac_check_lib_save_LIBS=$LIBS
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5998 /* Override any GCC internal prototype to avoid an error.
5999 Use char because int might match the return type of a GCC
6000 builtin and then its argument prototype would still apply. */
6008 return inet_ntoa ();
6013 if ac_fn_c_try_link "$LINENO"; then :
6014 ac_cv_lib_nsl_inet_ntoa=yes
6016 ac_cv_lib_nsl_inet_ntoa=no
6018 rm -f core conftest.err conftest.$ac_objext \
6019 conftest$ac_exeext conftest.$ac_ext
6020 LIBS=$ac_check_lib_save_LIBS
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6023 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6024 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6025 cat >>confdefs.h <<_ACEOF
6026 #define HAVE_LIBNSL 1
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6034 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6035 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6036 $as_echo_n "(cached) " >&6
6038 ac_check_lib_save_LIBS=$LIBS
6039 LIBS="-lws2_32 $LIBS"
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6043 /* Override any GCC internal prototype to avoid an error.
6044 Use char because int might match the return type of a GCC
6045 builtin and then its argument prototype would still apply. */
6058 if ac_fn_c_try_link "$LINENO"; then :
6059 ac_cv_lib_ws2_32_htonl=yes
6061 ac_cv_lib_ws2_32_htonl=no
6063 rm -f core conftest.err conftest.$ac_objext \
6064 conftest$ac_exeext conftest.$ac_ext
6065 LIBS=$ac_check_lib_save_LIBS
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6068 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6069 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6070 cat >>confdefs.h <<_ACEOF
6071 #define HAVE_LIBWS2_32 1
6074 LIBS="-lws2_32 $LIBS"
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6081 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6082 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
6083 $as_echo_n "(cached) " >&6
6085 ac_check_lib_save_LIBS=$LIBS
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6090 /* Override any GCC internal prototype to avoid an error.
6091 Use char because int might match the return type of a GCC
6092 builtin and then its argument prototype would still apply. */
6096 char pcap_open_live ();
6100 return pcap_open_live ();
6105 if ac_fn_c_try_link "$LINENO"; then :
6106 ac_cv_lib_pcap_pcap_open_live=yes
6108 ac_cv_lib_pcap_pcap_open_live=no
6110 rm -f core conftest.err conftest.$ac_objext \
6111 conftest$ac_exeext conftest.$ac_ext
6112 LIBS=$ac_check_lib_save_LIBS
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
6115 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
6116 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
6120 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
6126 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6134 $as_echo_n "checking for a readline compatible library... " >&6; }
6135 if ${vl_cv_lib_readline+:} false; then :
6136 $as_echo_n "(cached) " >&6
6140 for readline_lib in readline edit editline; do
6141 for termcap_lib in "" termcap curses ncurses; do
6142 if test -z "$termcap_lib"; then
6143 TRY_LIB="-l$readline_lib"
6145 TRY_LIB="-l$readline_lib -l$termcap_lib"
6147 LIBS="$ORIG_LIBS $TRY_LIB"
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6151 /* Override any GCC internal prototype to avoid an error.
6152 Use char because int might match the return type of a GCC
6153 builtin and then its argument prototype would still apply. */
6166 if ac_fn_c_try_link "$LINENO"; then :
6167 vl_cv_lib_readline="$TRY_LIB"
6169 rm -f core conftest.err conftest.$ac_objext \
6170 conftest$ac_exeext conftest.$ac_ext
6171 if test -n "$vl_cv_lib_readline"; then
6175 if test -n "$vl_cv_lib_readline"; then
6179 if test -z "$vl_cv_lib_readline"; then
6180 vl_cv_lib_readline="no"
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
6186 $as_echo "$vl_cv_lib_readline" >&6; }
6188 if test "$vl_cv_lib_readline" != "no"; then
6189 LIBREADLINE="$vl_cv_lib_readline"
6191 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
6193 for ac_header in readline.h readline/readline.h
6195 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6196 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6197 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6198 cat >>confdefs.h <<_ACEOF
6199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6207 $as_echo_n "checking whether readline supports history... " >&6; }
6208 if ${vl_cv_lib_readline_history+:} false; then :
6209 $as_echo_n "(cached) " >&6
6212 vl_cv_lib_readline_history="no"
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6216 /* Override any GCC internal prototype to avoid an error.
6217 Use char because int might match the return type of a GCC
6218 builtin and then its argument prototype would still apply. */
6222 char add_history ();
6226 return add_history ();
6231 if ac_fn_c_try_link "$LINENO"; then :
6232 vl_cv_lib_readline_history="yes"
6234 rm -f core conftest.err conftest.$ac_objext \
6235 conftest$ac_exeext conftest.$ac_ext
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
6239 $as_echo "$vl_cv_lib_readline_history" >&6; }
6240 if test "$vl_cv_lib_readline_history" = "yes"; then
6242 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6244 for ac_header in history.h readline/history.h
6246 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6247 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6248 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6249 cat >>confdefs.h <<_ACEOF
6250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6265 CFLAGS="$CFLAGS -D_ALL_SOURCE"
6268 CFLAGS="$CFLAGS -DDARWIN"
6269 LIBS="-framework DirectoryService $LIBS"
6274 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6275 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6277 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6278 if eval \${$as_ac_Header+:} false; then :
6279 $as_echo_n "(cached) " >&6
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 #include <sys/types.h>
6295 if ac_fn_c_try_compile "$LINENO"; then :
6296 eval "$as_ac_Header=yes"
6298 eval "$as_ac_Header=no"
6300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302 eval ac_res=\$$as_ac_Header
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6304 $as_echo "$ac_res" >&6; }
6305 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6306 cat >>confdefs.h <<_ACEOF
6307 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6310 ac_header_dirent=$ac_hdr; break
6314 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6315 if test $ac_header_dirent = dirent.h; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6317 $as_echo_n "checking for library containing opendir... " >&6; }
6318 if ${ac_cv_search_opendir+:} false; then :
6319 $as_echo_n "(cached) " >&6
6321 ac_func_search_save_LIBS=$LIBS
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6325 /* Override any GCC internal prototype to avoid an error.
6326 Use char because int might match the return type of a GCC
6327 builtin and then its argument prototype would still apply. */
6340 for ac_lib in '' dir; do
6341 if test -z "$ac_lib"; then
6342 ac_res="none required"
6345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6347 if ac_fn_c_try_link "$LINENO"; then :
6348 ac_cv_search_opendir=$ac_res
6350 rm -f core conftest.err conftest.$ac_objext \
6352 if ${ac_cv_search_opendir+:} false; then :
6356 if ${ac_cv_search_opendir+:} false; then :
6359 ac_cv_search_opendir=no
6362 LIBS=$ac_func_search_save_LIBS
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6365 $as_echo "$ac_cv_search_opendir" >&6; }
6366 ac_res=$ac_cv_search_opendir
6367 if test "$ac_res" != no; then :
6368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6374 $as_echo_n "checking for library containing opendir... " >&6; }
6375 if ${ac_cv_search_opendir+:} false; then :
6376 $as_echo_n "(cached) " >&6
6378 ac_func_search_save_LIBS=$LIBS
6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380 /* end confdefs.h. */
6382 /* Override any GCC internal prototype to avoid an error.
6383 Use char because int might match the return type of a GCC
6384 builtin and then its argument prototype would still apply. */
6397 for ac_lib in '' x; do
6398 if test -z "$ac_lib"; then
6399 ac_res="none required"
6402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6404 if ac_fn_c_try_link "$LINENO"; then :
6405 ac_cv_search_opendir=$ac_res
6407 rm -f core conftest.err conftest.$ac_objext \
6409 if ${ac_cv_search_opendir+:} false; then :
6413 if ${ac_cv_search_opendir+:} false; then :
6416 ac_cv_search_opendir=no
6419 LIBS=$ac_func_search_save_LIBS
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6422 $as_echo "$ac_cv_search_opendir" >&6; }
6423 ac_res=$ac_cv_search_opendir
6424 if test "$ac_res" != no; then :
6425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6432 $as_echo_n "checking for ANSI C header files... " >&6; }
6433 if ${ac_cv_header_stdc+:} false; then :
6434 $as_echo_n "(cached) " >&6
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6451 if ac_fn_c_try_compile "$LINENO"; then :
6452 ac_cv_header_stdc=yes
6454 ac_cv_header_stdc=no
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 if test $ac_cv_header_stdc = yes; then
6459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466 $EGREP "memchr" >/dev/null 2>&1; then :
6469 ac_cv_header_stdc=no
6475 if test $ac_cv_header_stdc = yes; then
6476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6483 $EGREP "free" >/dev/null 2>&1; then :
6486 ac_cv_header_stdc=no
6492 if test $ac_cv_header_stdc = yes; then
6493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6494 if test "$cross_compiling" = yes; then :
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6501 #if ((' ' & 0x0FF) == 0x020)
6502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6505 # define ISLOWER(c) \
6506 (('a' <= (c) && (c) <= 'i') \
6507 || ('j' <= (c) && (c) <= 'r') \
6508 || ('s' <= (c) && (c) <= 'z'))
6509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6517 for (i = 0; i < 256; i++)
6518 if (XOR (islower (i), ISLOWER (i))
6519 || toupper (i) != TOUPPER (i))
6524 if ac_fn_c_try_run "$LINENO"; then :
6527 ac_cv_header_stdc=no
6529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6530 conftest.$ac_objext conftest.beam conftest.$ac_ext
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6536 $as_echo "$ac_cv_header_stdc" >&6; }
6537 if test $ac_cv_header_stdc = yes; then
6539 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6544 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6545 if ${ac_cv_header_time+:} false; then :
6546 $as_echo_n "(cached) " >&6
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6550 #include <sys/types.h>
6551 #include <sys/time.h>
6557 if ((struct tm *) 0)
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 ac_cv_header_time=yes
6566 ac_cv_header_time=no
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6571 $as_echo "$ac_cv_header_time" >&6; }
6572 if test $ac_cv_header_time = yes; then
6574 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6579 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6580 if ${ac_cv_header_sys_wait_h+:} false; then :
6581 $as_echo_n "(cached) " >&6
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6585 #include <sys/types.h>
6586 #include <sys/wait.h>
6588 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6591 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6599 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6604 if ac_fn_c_try_compile "$LINENO"; then :
6605 ac_cv_header_sys_wait_h=yes
6607 ac_cv_header_sys_wait_h=no
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6612 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6613 if test $ac_cv_header_sys_wait_h = yes; then
6615 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6663 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6664 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6665 cat >>confdefs.h <<_ACEOF
6666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6674 for ac_header in net/if.h
6676 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
6677 # include <sys/socket.h>
6681 if test "x$ac_cv_header_net_if_h" = xyes; then :
6682 cat >>confdefs.h <<_ACEOF
6683 #define HAVE_NET_IF_H 1
6692 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
6693 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
6695 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
6700 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
6702 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
6707 LIBS="$LIBS -lpcreposix"
6709 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
6710 if test "x$ac_cv_header_regex_h" = xyes; then :
6712 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
6717 if test "x$ac_cv_header_regex_h" = "xyes"; then
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6731 $EGREP "yes" >/dev/null 2>&1; then :
6733 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
6746 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6749 $as_echo "#define OSFC2 /**/" >>confdefs.h
6753 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6756 $as_echo "#define OSFSIA /**/" >>confdefs.h
6760 if test "x$WITH_OPENSSL" = xyes; then
6762 old_LDFLAGS="$LDFLAGS"
6764 OPENSSL_INCLUDE="-DNO_OPENSSL"
6766 if test "x$OPENSSL_LIB_DIR" != "x"; then
6767 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
6771 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
6772 if ${ac_cv_lib_crypto_DH_new+:} false; then :
6773 $as_echo_n "(cached) " >&6
6775 ac_check_lib_save_LIBS=$LIBS
6776 LIBS="-lcrypto $LIBS"
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6780 /* Override any GCC internal prototype to avoid an error.
6781 Use char because int might match the return type of a GCC
6782 builtin and then its argument prototype would still apply. */
6795 if ac_fn_c_try_link "$LINENO"; then :
6796 ac_cv_lib_crypto_DH_new=yes
6798 ac_cv_lib_crypto_DH_new=no
6800 rm -f core conftest.err conftest.$ac_objext \
6801 conftest$ac_exeext conftest.$ac_ext
6802 LIBS=$ac_check_lib_save_LIBS
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
6805 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
6806 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
6808 LIBS="-lcrypto $LIBS"
6810 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
6813 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
6814 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
6815 $as_echo_n "(cached) " >&6
6817 ac_check_lib_save_LIBS=$LIBS
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6822 /* Override any GCC internal prototype to avoid an error.
6823 Use char because int might match the return type of a GCC
6824 builtin and then its argument prototype would still apply. */
6837 if ac_fn_c_try_link "$LINENO"; then :
6838 ac_cv_lib_ssl_SSL_new=yes
6840 ac_cv_lib_ssl_SSL_new=no
6842 rm -f core conftest.err conftest.$ac_objext \
6843 conftest$ac_exeext conftest.$ac_ext
6844 LIBS=$ac_check_lib_save_LIBS
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
6847 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
6848 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
6851 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
6853 if test "x$OPENSSL_LIB_DIR" != "x"; then
6854 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
6856 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
6860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6862 as_fn_error $? "failed linking to libssl
6863 See \`config.log' for more details" "$LINENO" 5; }
6872 old_CPPFLAGS=$CPPFLAGS
6873 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6874 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
6877 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
6889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6890 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6891 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6892 cat >>confdefs.h <<_ACEOF
6893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6900 as_fn_error $? "failed locating OpenSSL headers
6901 See \`config.log' for more details" "$LINENO" 5; }
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
6910 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913 #include <openssl/crypto.h>
6914 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
6919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6920 $EGREP "yes" >/dev/null 2>&1; then :
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6923 $as_echo "yes" >&6; }
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6931 as_fn_error $? "OpenSSL version too old
6932 See \`config.log' for more details" "$LINENO" 5; }
6939 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6940 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
6942 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
6946 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
6947 if test "$cross_compiling" = yes; then :
6948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6950 as_fn_error $? "cannot run test program while cross compiling
6951 See \`config.log' for more details" "$LINENO" 5; }
6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6957 #include <openssl/opensslv.h>
6958 #include <openssl/crypto.h>
6964 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
6967 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
6976 if ac_fn_c_try_run "$LINENO"; then :
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6979 $as_echo "yes" >&6; }
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6987 as_fn_error $? "OpenSSL library version does not match header version
6988 See \`config.log' for more details" "$LINENO" 5; }
6992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6993 conftest.$ac_objext conftest.beam conftest.$ac_ext
6997 CPPFLAGS=$old_CPPFLAGS
6999 LDFLAGS="$old_LDFLAGS"
7006 if test "x$PCAP_LIBS" = x; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
7008 $as_echo "$as_me: skipping test for pcap.h." >&6;}
7010 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
7011 if test "x$ac_cv_header_pcap_h" = xyes; then :
7014 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
7018 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
7019 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
7020 $as_echo_n "(cached) " >&6
7022 ac_check_lib_save_LIBS=$LIBS
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7027 /* Override any GCC internal prototype to avoid an error.
7028 Use char because int might match the return type of a GCC
7029 builtin and then its argument prototype would still apply. */
7033 char pcap_fopen_offline ();
7037 return pcap_fopen_offline ();
7042 if ac_fn_c_try_link "$LINENO"; then :
7043 ac_cv_lib_pcap_pcap_fopen_offline=yes
7045 ac_cv_lib_pcap_pcap_fopen_offline=no
7047 rm -f core conftest.err conftest.$ac_objext \
7048 conftest$ac_exeext conftest.$ac_ext
7049 LIBS=$ac_check_lib_save_LIBS
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
7052 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
7053 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
7056 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
7064 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
7065 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
7066 $as_echo_n "(cached) " >&6
7068 ac_check_lib_save_LIBS=$LIBS
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7073 /* Override any GCC internal prototype to avoid an error.
7074 Use char because int might match the return type of a GCC
7075 builtin and then its argument prototype would still apply. */
7079 char pcap_dump_fopen ();
7083 return pcap_dump_fopen ();
7088 if ac_fn_c_try_link "$LINENO"; then :
7089 ac_cv_lib_pcap_pcap_dump_fopen=yes
7091 ac_cv_lib_pcap_pcap_dump_fopen=no
7093 rm -f core conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
7095 LIBS=$ac_check_lib_save_LIBS
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
7098 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
7099 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
7102 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
7113 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
7123 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7124 if test "x$ac_cv_type_off_t" = xyes; then :
7128 cat >>confdefs.h <<_ACEOF
7129 #define off_t long int
7134 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7135 if test "x$ac_cv_type_pid_t" = xyes; then :
7139 cat >>confdefs.h <<_ACEOF
7145 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7146 if test "x$ac_cv_type_size_t" = xyes; then :
7150 cat >>confdefs.h <<_ACEOF
7151 #define size_t unsigned int
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7157 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7158 if ${ac_cv_type_uid_t+:} false; then :
7159 $as_echo_n "(cached) " >&6
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 #include <sys/types.h>
7166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7167 $EGREP "uid_t" >/dev/null 2>&1; then :
7168 ac_cv_type_uid_t=yes
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7176 $as_echo "$ac_cv_type_uid_t" >&6; }
7177 if test $ac_cv_type_uid_t = no; then
7179 $as_echo "#define uid_t int" >>confdefs.h
7182 $as_echo "#define gid_t int" >>confdefs.h
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7189 $as_echo_n "checking for socklen_t... " >&6; }
7190 if ${ac_cv_type_socklen_t+:} false; then :
7191 $as_echo_n "(cached) " >&6
7193 ac_cv_type_socklen_t=no
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7196 #ifdef HAVE_SYS_TYPES_H
7197 # include <sys/types.h>
7200 #ifdef HAVE_SYS_SOCKET_H
7201 # include <sys/socket.h>
7212 if ac_fn_c_try_compile "$LINENO"; then :
7213 ac_cv_type_socklen_t=yes
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7220 $as_echo "$ac_cv_type_socklen_t" >&6; }
7222 if test "$ac_cv_type_socklen_t" != "yes"; then
7224 $as_echo "#define socklen_t int" >>confdefs.h
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
7231 $as_echo_n "checking for uint8_t... " >&6; }
7232 if ${ac_cv_type_uint8_t+:} false; then :
7233 $as_echo_n "(cached) " >&6
7235 ac_cv_type_uint8_t=no
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 #ifdef HAVE_INTTYPES_H
7239 # include <inttypes.h>
7242 #ifdef HAVE_STDINT_H
7243 # include <stdint.h>
7254 if ac_fn_c_try_compile "$LINENO"; then :
7255 ac_cv_type_uint8_t=yes
7257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
7262 $as_echo "$ac_cv_type_uint8_t" >&6; }
7264 if test "$ac_cv_type_uint8_t" != "yes"; then
7266 $as_echo "#define uint8_t unsigned char" >>confdefs.h
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
7273 $as_echo_n "checking for uint16_t... " >&6; }
7274 if ${ac_cv_type_uint16_t+:} false; then :
7275 $as_echo_n "(cached) " >&6
7277 ac_cv_type_uint16_t=no
7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7280 #ifdef HAVE_INTTYPES_H
7281 # include <inttypes.h>
7284 #ifdef HAVE_STDINT_H
7285 # include <stdint.h>
7296 if ac_fn_c_try_compile "$LINENO"; then :
7297 ac_cv_type_uint16_t=yes
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
7304 $as_echo "$ac_cv_type_uint16_t" >&6; }
7306 if test "$ac_cv_type_uint16_t" != "yes"; then
7308 $as_echo "#define uint16_t unsigned short" >>confdefs.h
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
7315 $as_echo_n "checking for uint32_t... " >&6; }
7316 if ${ac_cv_type_uint32_t+:} false; then :
7317 $as_echo_n "(cached) " >&6
7319 ac_cv_type_uint32_t=no
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 #ifdef HAVE_INTTYPES_H
7323 # include <inttypes.h>
7326 #ifdef HAVE_STDINT_H
7327 # include <stdint.h>
7338 if ac_fn_c_try_compile "$LINENO"; then :
7339 ac_cv_type_uint32_t=yes
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
7346 $as_echo "$ac_cv_type_uint32_t" >&6; }
7348 if test "$ac_cv_type_uint32_t" != "yes"; then
7350 $as_echo "#define uint32_t unsigned int" >>confdefs.h
7355 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
7356 #ifdef HAVE_NETINET_IN_H
7357 # include <netinet/in.h>
7362 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
7364 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7369 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7370 #ifdef HAVE_NETINET_IN_H
7371 # include <netinet/in.h>
7374 #ifdef HAVE_SYS_SOCKET_H
7375 # include <sys/socket.h>
7379 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7381 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
7386 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7387 #ifdef HAVE_NETINET_IN_H
7388 # include <netinet/in.h>
7392 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7394 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7399 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
7400 #ifdef HAVE_SYS_TYPES_H
7401 # include <sys/types.h>
7404 #ifdef HAVE_SYS_SOCKET_H
7405 # include <sys/socket.h>
7414 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
7416 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7456 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7457 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7458 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7459 cat >>confdefs.h <<_ACEOF
7460 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7468 $as_echo_n "checking return type of signal handlers... " >&6; }
7469 if ${ac_cv_type_signal+:} false; then :
7470 $as_echo_n "(cached) " >&6
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7474 #include <sys/types.h>
7480 return *(signal (0, 0)) (0) == 1;
7485 if ac_fn_c_try_compile "$LINENO"; then :
7486 ac_cv_type_signal=int
7488 ac_cv_type_signal=void
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7493 $as_echo "$ac_cv_type_signal" >&6; }
7495 cat >>confdefs.h <<_ACEOF
7496 #define RETSIGTYPE $ac_cv_type_signal
7501 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7504 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7511 #ifdef HAVE_STDDEF_H
7515 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7521 int foo = offsetof(struct utmpx, ut_xtime)
7526 if ac_fn_c_try_compile "$LINENO"; then :
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7534 if test "x$has_element" != "x"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7536 $as_echo "yes" >&6; }
7537 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7541 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7544 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
7546 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7553 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7559 #include <netinet/in.h>
7560 #ifdef HAVE_STDDEF_H
7564 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7570 int foo = offsetof(struct in_pktinfo, ipi_addr)
7575 if ac_fn_c_try_compile "$LINENO"; then :
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7583 if test "x$has_element" != "x"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7585 $as_echo "yes" >&6; }
7586 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7593 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
7595 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7601 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7607 #include <netinet/in.h>
7608 #ifdef HAVE_STDDEF_H
7612 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7618 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7623 if ac_fn_c_try_compile "$LINENO"; then :
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7630 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7631 if test "x$has_element" != "x"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7633 $as_echo "yes" >&6; }
7634 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
7641 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
7643 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7649 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7650 if ${ac_cv_c_const+:} false; then :
7651 $as_echo_n "(cached) " >&6
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7661 /* Ultrix mips cc rejects this sort of thing. */
7662 typedef int charset[2];
7663 const charset cs = { 0, 0 };
7664 /* SunOS 4.1.1 cc rejects this. */
7665 char const *const *pcpcc;
7667 /* NEC SVR4.0.2 mips cc rejects this. */
7668 struct point {int x, y;};
7669 static struct point const zero = {0,0};
7670 /* AIX XL C 1.02.0.0 rejects this.
7671 It does not let you subtract one const X* pointer from another in
7672 an arm of an if-expression whose if-part is not a constant
7674 const char *g = "string";
7675 pcpcc = &g + (g ? g-g : 0);
7676 /* HPUX 7.0 cc rejects these. */
7678 ppc = (char**) pcpcc;
7679 pcpcc = (char const *const *) ppc;
7680 { /* SCO 3.2v4 cc rejects this sort of thing. */
7683 char const *s = 0 ? (char *) 0 : (char const *) 0;
7688 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7690 const int *foo = &x[0];
7693 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7694 typedef const int *iptr;
7698 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7699 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7700 struct s { int j; const int *ap[3]; } bx;
7701 struct s *b = &bx; b->j = 5;
7703 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7707 return !cs[0] && !zero.x;
7714 if ac_fn_c_try_compile "$LINENO"; then :
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7722 $as_echo "$ac_cv_c_const" >&6; }
7723 if test $ac_cv_c_const = no; then
7725 $as_echo "#define const /**/" >>confdefs.h
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
7731 $as_echo_n "checking type of OS... " >&6; }
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
7734 $as_echo "$OS" >&6; }
7735 if test "$OS" = "OS/2"; then
7742 if test "x$developer" = "xyes"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
7744 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
7748 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
7749 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
7750 $as_echo_n "(cached) " >&6
7754 CFLAGS_SAVED=$CFLAGS
7755 CFLAGS="$CFLAGS -Werror -Wdocumentation"
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7774 if ac_fn_c_try_compile "$LINENO"; then :
7775 ax_cv_cc_wdocumentation_flag="yes"
7777 ax_cv_cc_wdocumentation_flag="no"
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 ac_cpp='$CPP $CPPFLAGS'
7782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787 CFLAGS="$CFLAGS_SAVED"
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
7791 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
7793 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
7794 devflags="-Wdocumentation"
7797 if test "x$GCC" = "xyes"; then
7798 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"
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
7803 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
7805 CFLAGS="$CFLAGS $devflags"
7806 if test "x$EXPERIMENTAL" != "xno"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
7808 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
7813 CFLAGS="$CFLAGS -DNDEBUG"
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
7816 $as_echo "no." >&6; }
7821 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
7822 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
7824 cat >>confdefs.h <<_ACEOF
7825 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
7832 $as_echo_n "checking for TLS... " >&6; }
7833 if test "$cross_compiling" = yes; then :
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7838 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
7840 if ac_fn_c_try_run "$LINENO"; then :
7845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7846 conftest.$ac_objext conftest.beam conftest.$ac_ext
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
7850 $as_echo "$have_tls" >&6; }
7851 if test "$have_tls" = "yes"; then
7853 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
7861 # Check whether --with-talloc-include-dir was given.
7862 if test "${with_talloc_include_dir+set}" = set; then :
7863 withval=$with_talloc_include_dir; case "$withval" in
7865 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
7870 talloc_include_dir="$withval"
7876 smart_try_dir="$talloc_include_dir"
7879 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7880 old_CFLAGS="$CFLAGS"
7884 if test "x$smart_try_dir" != "x"; then
7885 for try in $smart_try_dir; do
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7887 $as_echo_n "checking for talloc.h in $try... " >&6; }
7888 CFLAGS="$old_CFLAGS -isystem $try"
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7901 if ac_fn_c_try_compile "$LINENO"; then :
7903 smart_include="-isystem $try"
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7905 $as_echo "yes" >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7917 CFLAGS="$old_CFLAGS"
7920 if test "x$smart_include" = "x"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7922 $as_echo_n "checking for talloc.h... " >&6; }
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7935 if ac_fn_c_try_compile "$LINENO"; then :
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7939 $as_echo "yes" >&6; }
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 if test "x$smart_include" = "x"; then
7955 if test "x$LOCATE" != "x"; then
7959 for x in `${LOCATE} $file 2>/dev/null`; do
7960 base=`echo $x | sed "s%/${file}%%"`
7961 if test "x$x" = "x$base"; then
7965 dir=`${DIRNAME} $x 2>/dev/null`
7966 exclude=`echo ${dir} | ${GREP} /home`
7967 if test "x$exclude" != "x"; then
7971 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7972 if test "x$already" = "x"; then
7978 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7980 for try in $smart_include_dir /usr/local/include /opt/include; do
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7982 $as_echo_n "checking for talloc.h in $try... " >&6; }
7983 CFLAGS="$old_CFLAGS -isystem $try"
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7996 if ac_fn_c_try_compile "$LINENO"; then :
7998 smart_include="-isystem $try"
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8000 $as_echo "yes" >&6; }
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012 CFLAGS="$old_CFLAGS"
8015 if test "x$smart_include" != "x"; then
8016 eval "ac_cv_header_$ac_safe=yes"
8017 CFLAGS="$old_CFLAGS $smart_include"
8018 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8021 if test "x$ac_cv_header_talloc_h" != "xyes"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
8023 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
8024 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8026 INCLUDE="${SMART_CFLAGS} ${INCLUDE}"
8027 LIBS="-ltalloc ${LIBS}"
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
8031 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
8032 if ${ac_cv_lib_crypt_crypt+:} false; then :
8033 $as_echo_n "(cached) " >&6
8035 ac_check_lib_save_LIBS=$LIBS
8036 LIBS="-lcrypt $LIBS"
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8040 /* Override any GCC internal prototype to avoid an error.
8041 Use char because int might match the return type of a GCC
8042 builtin and then its argument prototype would still apply. */
8055 if ac_fn_c_try_link "$LINENO"; then :
8056 ac_cv_lib_crypt_crypt=yes
8058 ac_cv_lib_crypt_crypt=no
8060 rm -f core conftest.err conftest.$ac_objext \
8061 conftest$ac_exeext conftest.$ac_ext
8062 LIBS=$ac_check_lib_save_LIBS
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
8065 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
8066 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
8072 if test "$CRYPTLIB" != ""; then
8074 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8077 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
8078 if test "x$ac_cv_func_crypt" = xyes; then :
8080 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
8087 $as_echo_n "checking for setkey in -lcipher... " >&6; }
8088 if ${ac_cv_lib_cipher_setkey+:} false; then :
8089 $as_echo_n "(cached) " >&6
8091 ac_check_lib_save_LIBS=$LIBS
8092 LIBS="-lcipher $LIBS"
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8096 /* Override any GCC internal prototype to avoid an error.
8097 Use char because int might match the return type of a GCC
8098 builtin and then its argument prototype would still apply. */
8111 if ac_fn_c_try_link "$LINENO"; then :
8112 ac_cv_lib_cipher_setkey=yes
8114 ac_cv_lib_cipher_setkey=no
8116 rm -f core conftest.err conftest.$ac_objext \
8117 conftest$ac_exeext conftest.$ac_ext
8118 LIBS=$ac_check_lib_save_LIBS
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
8121 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
8122 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
8123 CRYPTLIB="${CRYPTLIB} -lcipher"
8130 $as_echo "#define GNUSTYLE 1" >>confdefs.h
8134 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
8138 $as_echo "#define BSDSTYLE 3" >>confdefs.h
8141 gethostbyaddrrstyle=""
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
8143 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
8146 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
8152 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
8158 cat >>confdefs.h <<_ACEOF
8159 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
8161 if test $ac_have_decl = 1; then :
8166 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8168 gethostbyaddrrstyle=BSD
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
8170 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
8177 if test "x$gethostbyaddrrstyle" = "x"; then
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8187 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
8192 if ac_fn_c_try_link "$LINENO"; then :
8195 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
8197 gethostbyaddrrstyle=GNU
8201 rm -f core conftest.err conftest.$ac_objext \
8202 conftest$ac_exeext conftest.$ac_ext
8205 if test "x$gethostbyaddrrstyle" = "x"; then
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8215 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
8220 if ac_fn_c_try_link "$LINENO"; then :
8223 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
8225 gethostbyaddrrstyle=SYSV
8229 rm -f core conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
8234 if test "x$gethostbyaddrrstyle" = "x"; then
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8244 gethostbyaddr(NULL, 0, 0)
8249 if ac_fn_c_try_link "$LINENO"; then :
8252 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8254 gethostbyaddrrstyle=BSD
8258 rm -f core conftest.err conftest.$ac_objext \
8259 conftest$ac_exeext conftest.$ac_ext
8262 if test "x$gethostbyaddrrstyle" = "x"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8264 $as_echo "none! It must not exist, here." >&6; }
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
8267 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
8270 if test "x$gethostbyaddrrstyle" = "xBSD"; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
8272 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
8275 gethostbynamerstyle=""
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
8277 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8287 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
8292 if ac_fn_c_try_link "$LINENO"; then :
8295 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
8297 gethostbynamerstyle=GNU
8301 rm -f core conftest.err conftest.$ac_objext \
8302 conftest$ac_exeext conftest.$ac_ext
8304 if test "x$gethostbynamerstyle" = "x"; then
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8314 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
8319 if ac_fn_c_try_link "$LINENO"; then :
8322 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
8324 gethostbynamerstyle=SYSV
8328 rm -f core conftest.err conftest.$ac_objext \
8329 conftest$ac_exeext conftest.$ac_ext
8332 if test "x$gethostbynamerstyle" = "x"; then
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8347 if ac_fn_c_try_link "$LINENO"; then :
8350 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
8352 gethostbynamerstyle=BSD
8356 rm -f core conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
8360 if test "x$gethostbynamerstyle" = "x"; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8362 $as_echo "none! It must not exist, here." >&6; }
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
8365 $as_echo "${gethostbynamerstyle}-style" >&6; }
8368 if test "x$gethostbynamerstyle" = "xBSD"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
8370 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
8374 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
8377 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
8381 $as_echo_n "checking ctime_r() syntax... " >&6; }
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8390 ctime_r(NULL, NULL, 0)
8395 if ac_fn_c_try_link "$LINENO"; then :
8398 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
8400 ctimerstyle="SOLARIS"
8404 rm -f core conftest.err conftest.$ac_objext \
8405 conftest$ac_exeext conftest.$ac_ext
8407 if test "x$ctimerstyle" = "x"; then
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8421 if ac_fn_c_try_link "$LINENO"; then :
8424 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
8430 rm -f core conftest.err conftest.$ac_objext \
8431 conftest$ac_exeext conftest.$ac_ext
8434 if test "x$ctimerstyle" = "x"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8436 $as_echo "none! It must not exist, here." >&6; }
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
8439 $as_echo "${ctimerstyle}-style" >&6; }
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
8449 $as_echo "top_builddir=$top_builddir" >&6; }
8454 if test "x$EXPERIMENTAL" = "xyes"; then
8455 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
8456 MODULES="$MODULES $foo"
8459 for foo in `cat "${srcdir}"/src/modules/stable`; do
8460 MODULES="$MODULES $foo"
8465 for bar in $MODULES; do
8466 if test -f "${srcdir}"/src/modules/$bar/configure; then
8467 mysubdirs="$mysubdirs src/modules/$bar"
8473 subdirs="$subdirs $mysubdirs"
8477 if test "x$werror" == "xyes"; then
8478 CFLAGS="-Werror $CFLAGS"
8481 ac_config_commands="$ac_config_commands stamp-h"
8483 ac_config_commands="$ac_config_commands build-radpaths-h"
8485 ac_config_commands="$ac_config_commands main-chmod"
8487 ac_config_commands="$ac_config_commands scripts-chmod"
8493 USE_SHARED_LIBS=$enable_shared
8495 USE_STATIC_LIBS=$enable_static
8500 unset ac_cv_env_LIBS_set
8501 unset ac_cv_env_LIBS_value
8503 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/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
8505 cat >confcache <<\_ACEOF
8506 # This file is a shell script that caches the results of configure
8507 # tests run on this system so they can be shared between configure
8508 # scripts and configure runs, see configure's option --config-cache.
8509 # It is not useful on other systems. If it contains results you don't
8510 # want to keep, you may remove or edit it.
8512 # config.status only pays attention to the cache file if you give it
8513 # the --recheck option to rerun configure.
8515 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8516 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8521 # The following way of writing the cache mishandles newlines in values,
8522 # but we know of no workaround that is simple, portable, and efficient.
8523 # So, we kill variables containing newlines.
8524 # Ultrix sh set writes to stderr and can't be redirected directly,
8525 # and sets the high bit in the cache file unless we assign to the vars.
8527 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8528 eval ac_val=\$$ac_var
8532 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8533 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8536 _ | IFS | as_nl) ;; #(
8537 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8538 *) { eval $ac_var=; unset $ac_var;} ;;
8544 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8545 *${as_nl}ac_space=\ *)
8546 # `set' does not quote correctly, so add quotes: double-quote
8547 # substitution turns \\\\ into \\, and sed turns \\ into \.
8550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8553 # `set' quotes correctly as required by POSIX, so do not add quotes.
8554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8563 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8565 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8567 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8568 if test -w "$cache_file"; then
8569 if test "x$cache_file" != "x/dev/null"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8571 $as_echo "$as_me: updating cache $cache_file" >&6;}
8572 if test ! -f "$cache_file" || test -h "$cache_file"; then
8573 cat confcache >"$cache_file"
8575 case $cache_file in #(
8577 mv -f confcache "$cache_file"$$ &&
8578 mv -f "$cache_file"$$ "$cache_file" ;; #(
8580 mv -f confcache "$cache_file" ;;
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8586 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8591 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8592 # Let make expand exec_prefix.
8593 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8595 DEFS=-DHAVE_CONFIG_H
8600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8601 # 1. Remove the extension, and $U if already installed.
8602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8603 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8605 # will be set to the directory where LIBOBJS objects are built.
8606 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8607 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8611 LTLIBOBJS=$ac_ltlibobjs
8616 : "${CONFIG_STATUS=./config.status}"
8618 ac_clean_files_save=$ac_clean_files
8619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8625 # Generated by $as_me.
8626 # Run this file to recreate the current configuration.
8627 # Compiler output produced by configure, useful for debugging
8628 # configure, is in config.log if it exists.
8634 SHELL=\${CONFIG_SHELL-$SHELL}
8637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8638 ## -------------------- ##
8639 ## M4sh Initialization. ##
8640 ## -------------------- ##
8642 # Be more Bourne compatible
8643 DUALCASE=1; export DUALCASE # for MKS sh
8644 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8648 # is contrary to our usage. Disable this feature.
8649 alias -g '${1+"$@"}'='"$@"'
8650 setopt NO_GLOB_SUBST
8652 case `(set -o) 2>/dev/null` in #(
8664 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8665 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8668 # Prefer a ksh shell builtin over an external printf program on Solaris,
8669 # but without wasting forks for bash or zsh.
8670 if test -z "$BASH_VERSION$ZSH_VERSION" \
8671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8672 as_echo='print -r --'
8673 as_echo_n='print -rn --'
8674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8675 as_echo='printf %s\n'
8676 as_echo_n='printf %s'
8678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8679 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8680 as_echo_n='/usr/ucb/echo -n'
8682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8683 as_echo_n_body='eval
8687 expr "X$arg" : "X\\(.*\\)$as_nl";
8688 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8690 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8692 export as_echo_n_body
8693 as_echo_n='sh -c $as_echo_n_body as_echo'
8696 as_echo='sh -c $as_echo_body as_echo'
8699 # The user is always right.
8700 if test "${PATH_SEPARATOR+set}" != set; then
8702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8710 # We need space, tab and new line, in precisely that order. Quoting is
8711 # there to prevent editors from complaining about space-tab.
8712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8713 # splitting by setting IFS to empty value.)
8716 # Find who we are. Look in the path if we contain no directory separator.
8719 *[\\/]* ) as_myself=$0 ;;
8720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724 test -z "$as_dir" && as_dir=.
8725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8731 # We did not find ourselves, most probably we were run as `sh COMMAND'
8732 # in which case we are not to be found in the path.
8733 if test "x$as_myself" = x; then
8736 if test ! -f "$as_myself"; then
8737 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8741 # Unset variables that we do not need and which cause bugs (e.g. in
8742 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8743 # suppresses any "Segmentation fault" message there. '((' could
8744 # trigger a bug in pdksh 5.2.14.
8745 for as_var in BASH_ENV ENV MAIL MAILPATH
8746 do eval test x\${$as_var+set} = xset \
8747 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8760 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8763 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8764 # ----------------------------------------
8765 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8766 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8767 # script with STATUS, using 1 if that was 0.
8770 as_status=$1; test $as_status -eq 0 && as_status=1
8772 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8773 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8775 $as_echo "$as_me: error: $2" >&2
8776 as_fn_exit $as_status
8780 # as_fn_set_status STATUS
8781 # -----------------------
8782 # Set $? to STATUS, without forking.
8786 } # as_fn_set_status
8790 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8800 # Portably unset VAR.
8803 { eval $1=; unset $1;}
8805 as_unset=as_fn_unset
8806 # as_fn_append VAR VALUE
8807 # ----------------------
8808 # Append the text in VALUE to the end of the definition contained in VAR. Take
8809 # advantage of any shell optimizations that allow amortized linear growth over
8810 # repeated appends, instead of the typical quadratic growth present in naive
8812 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8813 eval 'as_fn_append ()
8824 # as_fn_arith ARG...
8825 # ------------------
8826 # Perform arithmetic evaluation on the ARGs, and store the result in the
8827 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8828 # must be portable across $(()) and expr.
8829 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8830 eval 'as_fn_arith ()
8837 as_val=`expr "$@" || test $? -eq 1`
8842 if expr a : '\(a\)' >/dev/null 2>&1 &&
8843 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8849 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8850 as_basename=basename
8855 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8861 as_me=`$as_basename -- "$0" ||
8862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8863 X"$0" : 'X\(//\)$' \| \
8864 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8866 sed '/^.*\/\([^/][^/]*\)\/*$/{
8880 # Avoid depending upon Character Ranges.
8881 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8882 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8883 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8884 as_cr_digits='0123456789'
8885 as_cr_alnum=$as_cr_Letters$as_cr_digits
8887 ECHO_C= ECHO_N= ECHO_T=
8888 case `echo -n x` in #(((((
8890 case `echo 'xy\c'` in
8891 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8893 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8900 rm -f conf$$ conf$$.exe conf$$.file
8901 if test -d conf$$.dir; then
8902 rm -f conf$$.dir/conf$$.file
8905 mkdir conf$$.dir 2>/dev/null
8907 if (echo >conf$$.file) 2>/dev/null; then
8908 if ln -s conf$$.file conf$$ 2>/dev/null; then
8910 # ... but there are two gotchas:
8911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8913 # In both cases, we have to default to `cp -pR'.
8914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8916 elif ln conf$$.file conf$$ 2>/dev/null; then
8924 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8925 rmdir conf$$.dir 2>/dev/null
8930 # Create "$as_dir" as a directory, including parents if necessary.
8935 -*) as_dir=./$as_dir;;
8937 test -d "$as_dir" || eval $as_mkdir_p || {
8941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8942 *) as_qdir=$as_dir;;
8944 as_dirs="'$as_qdir' $as_dirs"
8945 as_dir=`$as_dirname -- "$as_dir" ||
8946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8947 X"$as_dir" : 'X\(//\)[^/]' \| \
8948 X"$as_dir" : 'X\(//\)$' \| \
8949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8950 $as_echo X"$as_dir" |
8951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8968 test -d "$as_dir" && break
8970 test -z "$as_dirs" || eval "mkdir $as_dirs"
8971 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8975 if mkdir -p . 2>/dev/null; then
8976 as_mkdir_p='mkdir -p "$as_dir"'
8978 test -d ./-p && rmdir ./-p
8983 # as_fn_executable_p FILE
8984 # -----------------------
8985 # Test if FILE is an executable regular file.
8986 as_fn_executable_p ()
8988 test -f "$1" && test -x "$1"
8989 } # as_fn_executable_p
8991 as_executable_p=as_fn_executable_p
8993 # Sed expression to map a string onto a valid CPP name.
8994 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8996 # Sed expression to map a string onto a valid variable name.
8997 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9001 ## ----------------------------------- ##
9002 ## Main body of $CONFIG_STATUS script. ##
9003 ## ----------------------------------- ##
9005 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9008 # Save the log message, to keep $0 and so on meaningful, and to
9009 # report actual input values of CONFIG_FILES etc. instead of their
9010 # values after options handling.
9012 This file was extended by freeradius $as_me $Id$, which was
9013 generated by GNU Autoconf 2.69. Invocation command line was
9015 CONFIG_FILES = $CONFIG_FILES
9016 CONFIG_HEADERS = $CONFIG_HEADERS
9017 CONFIG_LINKS = $CONFIG_LINKS
9018 CONFIG_COMMANDS = $CONFIG_COMMANDS
9021 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9026 case $ac_config_files in *"
9027 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9030 case $ac_config_headers in *"
9031 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9036 # Files that config.status was made for.
9037 config_files="$ac_config_files"
9038 config_headers="$ac_config_headers"
9039 config_commands="$ac_config_commands"
9043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9045 \`$as_me' instantiates files and other configuration actions
9046 from templates according to the current configuration. Unless the files
9047 and actions are specified as TAGs, all are instantiated by default.
9049 Usage: $0 [OPTION]... [TAG]...
9051 -h, --help print this help, then exit
9052 -V, --version print version number and configuration settings, then exit
9053 --config print configuration, then exit
9054 -q, --quiet, --silent
9055 do not print progress messages
9056 -d, --debug don't remove temporary files
9057 --recheck update $as_me by reconfiguring in the same conditions
9058 --file=FILE[:TEMPLATE]
9059 instantiate the configuration file FILE
9060 --header=FILE[:TEMPLATE]
9061 instantiate the configuration header FILE
9063 Configuration files:
9066 Configuration headers:
9069 Configuration commands:
9072 Report bugs to <http://bugs.freeradius.org>.
9073 freeradius home page: <http://www.freeradius.org>."
9076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9077 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9079 freeradius config.status $Id$
9080 configured by $0, generated by GNU Autoconf 2.69,
9081 with options \\"\$ac_cs_config\\"
9083 Copyright (C) 2012 Free Software Foundation, Inc.
9084 This config.status script is free software; the Free Software Foundation
9085 gives unlimited permission to copy, distribute and modify it."
9089 test -n "\$AWK" || AWK=awk
9092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9093 # The default lists apply if the user does not specify any file.
9099 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9116 # Handling of the options.
9117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9119 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9120 $as_echo "$ac_cs_version"; exit ;;
9121 --config | --confi | --conf | --con | --co | --c )
9122 $as_echo "$ac_cs_config"; exit ;;
9123 --debug | --debu | --deb | --de | --d | -d )
9125 --file | --fil | --fi | --f )
9128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9129 '') as_fn_error $? "missing file argument" ;;
9131 as_fn_append CONFIG_FILES " '$ac_optarg'"
9132 ac_need_defaults=false;;
9133 --header | --heade | --head | --hea )
9136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9138 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9139 ac_need_defaults=false;;
9141 # Conflict between --help and --header
9142 as_fn_error $? "ambiguous option: \`$1'
9143 Try \`$0 --help' for more information.";;
9144 --help | --hel | -h )
9145 $as_echo "$ac_cs_usage"; exit ;;
9146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9147 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9151 -*) as_fn_error $? "unrecognized option: \`$1'
9152 Try \`$0 --help' for more information." ;;
9154 *) as_fn_append ac_config_targets " $1"
9155 ac_need_defaults=false ;;
9161 ac_configure_extra_args=
9163 if $ac_cs_silent; then
9165 ac_configure_extra_args="$ac_configure_extra_args --silent"
9169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9170 if \$ac_cs_recheck; then
9171 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9173 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9174 CONFIG_SHELL='$SHELL'
9180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9185 ## Running $as_me. ##
9191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9196 # Handling of arguments.
9197 for ac_config_target in $ac_config_targets
9199 case $ac_config_target in
9200 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
9201 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
9202 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
9203 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
9204 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
9205 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
9206 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
9207 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
9208 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
9209 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
9210 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
9211 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
9212 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
9213 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
9214 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
9215 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
9216 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
9217 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
9219 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9224 # If the user did not use the arguments to specify the items to instantiate,
9225 # then the envvar interface is used. Set only those that are not.
9226 # We use the long form for the default assignment because of an extremely
9227 # bizarre bug on SunOS 4.1.3.
9228 if $ac_need_defaults; then
9229 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9230 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9231 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9234 # Have a temporary directory for convenience. Make it in the build tree
9235 # simply because there is no reason against having it here, and in addition,
9236 # creating and moving files from /tmp can sometimes cause problems.
9237 # Hook for its removal unless debugging.
9238 # Note that there is a small window in which the directory will not be cleaned:
9239 # after its creation but before its name has been assigned to `$tmp'.
9243 trap 'exit_status=$?
9245 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9247 trap 'as_fn_exit 1' 1 2 13 15
9249 # Create a (secure) tmp directory for tmp files.
9252 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9256 tmp=./conf$$-$RANDOM
9257 (umask 077 && mkdir "$tmp")
9258 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9261 # Set up the scripts for CONFIG_FILES section.
9262 # No need to generate them if there are no CONFIG_FILES.
9263 # This happens for instance with `./config.status config.h'.
9264 if test -n "$CONFIG_FILES"; then
9267 ac_cr=`echo X | tr X '\015'`
9268 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9269 # But we know of no other shell where ac_cr would be empty at this
9270 # point, so we can use a bashism as a fallback.
9271 if test "x$ac_cr" = x; then
9272 eval ac_cr=\$\'\\r\'
9274 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9275 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9281 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9286 echo "cat >conf$$subs.awk <<_ACEOF" &&
9287 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9291 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9293 for ac_last_try in false false false false false :; do
9294 . ./conf$$subs.sh ||
9295 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9297 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9298 if test $ac_delim_n = $ac_delim_num; then
9300 elif $ac_last_try; then
9301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9303 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9309 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9313 s/^/S["/; s/!.*/"]=/
9323 s/\(.\{148\}\)..*/\1/
9325 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9330 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9337 s/\(.\{148\}\)..*/\1/
9339 s/["\\]/\\&/g; s/^/"/; s/$/"/
9343 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9348 ' <conf$$subs.awk | sed '
9353 ' >>$CONFIG_STATUS || ac_write_fail=1
9354 rm -f conf$$subs.awk
9355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9357 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9358 for (key in S) S_is_set[key] = 1
9364 nfields = split(line, field, "@")
9366 len = length(field[1])
9367 for (i = 2; i < nfields; i++) {
9369 keylen = length(key)
9370 if (S_is_set[key]) {
9372 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9373 len += length(value) + length(field[++i])
9384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9385 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9386 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9389 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9390 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9393 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9394 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9395 # trailing colons and then remove the whole line if VPATH becomes empty
9396 # (actually we leave an empty line to preserve line numbers).
9397 if test "x$srcdir" = x.; then
9398 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9417 fi # test -n "$CONFIG_FILES"
9419 # Set up the scripts for CONFIG_HEADERS section.
9420 # No need to generate them if there are no CONFIG_HEADERS.
9421 # This happens for instance with `./config.status Makefile'.
9422 if test -n "$CONFIG_HEADERS"; then
9423 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9427 # Transform confdefs.h into an awk script `defines.awk', embedded as
9428 # here-document in config.status, that substitutes the proper values into
9429 # config.h.in to produce config.h.
9431 # Create a delimiter string that does not exist in confdefs.h, to ease
9432 # handling of long lines.
9434 for ac_last_try in false false :; do
9435 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9436 if test -z "$ac_tt"; then
9438 elif $ac_last_try; then
9439 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9445 # For the awk script, D is an array of macro values keyed by name,
9446 # likewise P contains macro parameters if any. Preserve backslash
9447 # newline sequences.
9449 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9451 s/.\{148\}/&'"$ac_delim"'/g
9454 s/^[ ]*#[ ]*define[ ][ ]*/ /
9461 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9463 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9467 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9468 D["\1"]=" \3\\\\\\n"\\/p
9470 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9475 s/.\{148\}/&'"$ac_delim"'/g
9480 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9483 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9485 ' <confdefs.h | sed '
9486 s/'"$ac_delim"'/"\\\
9487 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9490 for (key in D) D_is_set[key] = 1
9493 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9495 split(line, arg, " ")
9496 if (arg[1] == "#") {
9500 defundef = substr(arg[1], 2)
9503 split(mac1, mac2, "(") #)
9505 prefix = substr(line, 1, index(line, defundef) - 1)
9506 if (D_is_set[macro]) {
9507 # Preserve the white space surrounding the "#".
9508 print prefix "define", macro P[macro] D[macro]
9511 # Replace #undef with comments. This is necessary, for example,
9512 # in the case of _POSIX_SOURCE, which is predefined and required
9513 # on some systems where configure will not decide to define it.
9514 if (defundef == "undef") {
9515 print "/*", prefix defundef, macro, "*/"
9523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9524 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9525 fi # test -n "$CONFIG_HEADERS"
9528 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9533 :[FHLC]) ac_mode=$ac_tag; continue;;
9535 case $ac_mode$ac_tag in
9537 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9538 :[FH]-) ac_tag=-:-;;
9539 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9556 -) ac_f="$ac_tmp/stdin";;
9557 *) # Look for the file first in the build tree, then in the source tree
9558 # (if the path is not absolute). The absolute path cannot be DOS-style,
9559 # because $ac_f cannot contain `:'.
9563 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9565 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9567 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9568 as_fn_append ac_file_inputs " '$ac_f'"
9571 # Let's still pretend it is `configure' which instantiates (i.e., don't
9572 # use $as_me), people would be surprised to read:
9573 # /* config.h. Generated by config.status. */
9574 configure_input='Generated from '`
9575 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9577 if test x"$ac_file" != x-; then
9578 configure_input="$ac_file. $configure_input"
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9580 $as_echo "$as_me: creating $ac_file" >&6;}
9582 # Neutralize special characters interpreted by sed in replacement strings.
9583 case $configure_input in #(
9584 *\&* | *\|* | *\\* )
9585 ac_sed_conf_input=`$as_echo "$configure_input" |
9586 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9587 *) ac_sed_conf_input=$configure_input;;
9591 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9592 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9597 ac_dir=`$as_dirname -- "$ac_file" ||
9598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9599 X"$ac_file" : 'X\(//\)[^/]' \| \
9600 X"$ac_file" : 'X\(//\)$' \| \
9601 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9602 $as_echo X"$ac_file" |
9603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9620 as_dir="$ac_dir"; as_fn_mkdir_p
9624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9627 # A ".." for each directory in $ac_dir_suffix.
9628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9629 case $ac_top_builddir_sub in
9630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9634 ac_abs_top_builddir=$ac_pwd
9635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9636 # for backward compatibility:
9637 ac_top_builddir=$ac_top_build_prefix
9640 .) # We are building in place.
9642 ac_top_srcdir=$ac_top_builddir_sub
9643 ac_abs_top_srcdir=$ac_pwd ;;
9644 [\\/]* | ?:[\\/]* ) # Absolute name.
9645 ac_srcdir=$srcdir$ac_dir_suffix;
9646 ac_top_srcdir=$srcdir
9647 ac_abs_top_srcdir=$srcdir ;;
9649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9650 ac_top_srcdir=$ac_top_build_prefix$srcdir
9651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9665 # If the template does not know about datarootdir, expand it.
9666 # FIXME: This hack should be removed a few years after 2.60.
9667 ac_datarootdir_hack=; ac_datarootdir_seen=
9678 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9679 *datarootdir*) ac_datarootdir_seen=yes;;
9680 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9682 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9685 ac_datarootdir_hack='
9686 s&@datadir@&$datadir&g
9687 s&@docdir@&$docdir&g
9688 s&@infodir@&$infodir&g
9689 s&@localedir@&$localedir&g
9690 s&@mandir@&$mandir&g
9691 s&\\\${datarootdir}&$datarootdir&g' ;;
9695 # Neutralize VPATH when `$srcdir' = `.'.
9696 # Shell code in configure.ac might set extrasub.
9697 # FIXME: do we really want to maintain this feature?
9698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9699 ac_sed_extra="$ac_vpsub
9702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9704 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9705 s|@configure_input@|$ac_sed_conf_input|;t t
9706 s&@top_builddir@&$ac_top_builddir_sub&;t t
9707 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9708 s&@srcdir@&$ac_srcdir&;t t
9709 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9710 s&@top_srcdir@&$ac_top_srcdir&;t t
9711 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9712 s&@builddir@&$ac_builddir&;t t
9713 s&@abs_builddir@&$ac_abs_builddir&;t t
9714 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9715 $ac_datarootdir_hack
9717 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9718 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9720 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9721 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9722 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9723 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9725 which seems to be undefined. Please make sure it is defined" >&5
9726 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9727 which seems to be undefined. Please make sure it is defined" >&2;}
9729 rm -f "$ac_tmp/stdin"
9731 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9732 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9740 if test x"$ac_file" != x-; then
9742 $as_echo "/* $configure_input */" \
9743 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9744 } >"$ac_tmp/config.h" \
9745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9746 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9748 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9751 mv "$ac_tmp/config.h" "$ac_file" \
9752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9755 $as_echo "/* $configure_input */" \
9756 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9757 || as_fn_error $? "could not create -" "$LINENO" 5
9761 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9762 $as_echo "$as_me: executing $ac_file commands" >&6;}
9767 case $ac_file$ac_mode in
9768 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
9769 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
9770 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
9771 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
9779 ac_clean_files=$ac_clean_files_save
9781 test $ac_write_fail = 0 ||
9782 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9785 # configure is writing to config.log, and then calls config.status.
9786 # config.status does its own redirection, appending to config.log.
9787 # Unfortunately, on DOS this fails, as config.log is still kept open
9788 # by configure, so config.status won't be able to write to it; its
9789 # output is simply discarded. So we exec the FD to /dev/null,
9790 # effectively closing config.log, so it can be properly (re)opened and
9791 # appended to by config.status. When coming back to configure, we
9792 # need to make the FD available again.
9793 if test "$no_create" != yes; then
9795 ac_config_status_args=
9796 test "$silent" = yes &&
9797 ac_config_status_args="$ac_config_status_args --quiet"
9799 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9801 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9802 # would make configure fail if this is the last instruction.
9803 $ac_cs_success || as_fn_exit 1
9807 # CONFIG_SUBDIRS section.
9809 if test "$no_recursion" != yes; then
9811 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9812 # so they do not pile up.
9813 ac_sub_configure_args=
9815 eval "set x $ac_configure_args"
9819 if test -n "$ac_prev"; then
9824 -cache-file | --cache-file | --cache-fil | --cache-fi \
9825 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9826 ac_prev=cache_file ;;
9827 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9828 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9831 --config-cache | -C)
9833 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9835 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9837 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9839 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9841 --disable-option-checking)
9845 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9847 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9851 # Always prepend --prefix to ensure using the same prefix
9852 # in subdir configurations.
9853 ac_arg="--prefix=$prefix"
9855 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9857 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9860 if test "$silent" = yes; then
9861 ac_sub_configure_args="--silent $ac_sub_configure_args"
9864 # Always prepend --disable-option-checking to silence warnings, since
9865 # different subdirs can have different --enable and --with options.
9866 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9869 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9871 # Do not complain, so a configure script can configure whichever
9872 # parts of a large source tree are present.
9873 test -d "$srcdir/$ac_dir" || continue
9875 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9876 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9877 $as_echo "$ac_msg" >&6
9878 as_dir="$ac_dir"; as_fn_mkdir_p
9882 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9884 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9885 # A ".." for each directory in $ac_dir_suffix.
9886 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9887 case $ac_top_builddir_sub in
9888 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9889 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9892 ac_abs_top_builddir=$ac_pwd
9893 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9894 # for backward compatibility:
9895 ac_top_builddir=$ac_top_build_prefix
9898 .) # We are building in place.
9900 ac_top_srcdir=$ac_top_builddir_sub
9901 ac_abs_top_srcdir=$ac_pwd ;;
9902 [\\/]* | ?:[\\/]* ) # Absolute name.
9903 ac_srcdir=$srcdir$ac_dir_suffix;
9904 ac_top_srcdir=$srcdir
9905 ac_abs_top_srcdir=$srcdir ;;
9907 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9908 ac_top_srcdir=$ac_top_build_prefix$srcdir
9909 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9911 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9916 # Check for guested configure; otherwise get Cygnus style configure.
9917 if test -f "$ac_srcdir/configure.gnu"; then
9918 ac_sub_configure=$ac_srcdir/configure.gnu
9919 elif test -f "$ac_srcdir/configure"; then
9920 ac_sub_configure=$ac_srcdir/configure
9921 elif test -f "$ac_srcdir/configure.in"; then
9922 # This should be Cygnus configure.
9923 ac_sub_configure=$ac_aux_dir/configure
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9926 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9930 # The recursion is here.
9931 if test -n "$ac_sub_configure"; then
9932 # Make the cache file name correct relative to the subdirectory.
9934 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9936 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9939 { $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
9940 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9941 # The eval makes quoting arguments work.
9942 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9943 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9944 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9950 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9952 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}