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
686 RADIUSD_VERSION_STRING
714 program_transform_name
727 enable_option_checking
730 enable_strict_dependencies
743 with_experimental_modules
745 with_openssl_includes
746 with_openssl_libraries
748 with_rlm_FOO_include_dir
750 with_talloc_include_dir
752 ac_precious_vars='build_alias
764 ac_subdirs_all='$mysubdirs'
766 # Initialize some variables set by options.
768 ac_init_version=false
769 ac_unrecognized_opts=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
780 program_transform_name=s,x,x,
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir='${exec_prefix}/bin'
795 sbindir='${exec_prefix}/sbin'
796 libexecdir='${exec_prefix}/libexec'
797 datarootdir='${prefix}/share'
798 datadir='${datarootdir}'
799 sysconfdir='${prefix}/etc'
800 sharedstatedir='${prefix}/com'
801 localstatedir='${prefix}/var'
802 includedir='${prefix}/include'
803 oldincludedir='/usr/include'
804 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805 infodir='${datarootdir}/info'
810 libdir='${exec_prefix}/lib'
811 localedir='${datarootdir}/locale'
812 mandir='${datarootdir}/man'
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
820 eval $ac_prev=\$ac_option
826 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 # Accept the important Cygnus configure options, so we can diagnose typos.
833 case $ac_dashdash$ac_option in
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
855 cache_file=config.cache ;;
857 -datadir | --datadir | --datadi | --datad)
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
869 -disable-* | --disable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 as_fn_error $? "invalid feature name: $ac_useropt"
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
883 eval enable_$ac_useropt=no ;;
885 -docdir | --docdir | --docdi | --doc | --do)
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 -enable-* | --enable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
909 eval enable_$ac_useropt=\$ac_optarg ;;
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
924 -help | --help | --hel | --he | -h)
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940 htmldir=$ac_optarg ;;
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
954 -libdir | --libdir | --libdi | --libd)
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
966 -localedir | --localedir | --localedi | --localed | --locale)
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984 # Obsolete; use --without-fp.
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1045 -psdir | --psdir | --psdi | --psd | --ps)
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 sbindir=$ac_optarg ;;
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 sharedstatedir=$ac_optarg ;;
1071 -site | --site | --sit)
1073 -site=* | --site=* | --sit=*)
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1113 eval with_$ac_useropt=\$ac_optarg ;;
1115 -without-* | --without-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1129 eval with_$ac_useropt=no ;;
1132 # Obsolete; use --with-x.
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1149 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1150 Try \`$0 --help' for more information"
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 case $ac_envvar in #(
1157 '' | [0-9]* | *[!_$as_cr_alnum]* )
1158 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 as_fn_error $? "missing argument to $ac_option"
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1182 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187 # Check all directory arguments for consistency.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1193 eval ac_val=\$$ac_var
1194 # Remove trailing slashes.
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1200 # Be sure to have absolute directory names.
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1208 # There might be people who depend on the old broken behavior: `$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1213 target=$target_alias
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x; then
1217 if test "x$build_alias" = x; then
1218 cross_compiling=maybe
1219 elif test "x$build_alias" != "x$host_alias"; then
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227 test "$silent" = yes && exec 6>/dev/null
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error $? "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error $? "pwd does not report name of working directory"
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1270 ac_srcdir_defaulted=no
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1304 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking ...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 --target=TARGET configure for building compilers for TARGET [HOST]
1368 if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of freeradius $Id$:";;
1375 --disable-option-checking ignore unrecognized --enable/--with options
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-developer enables features of interest to developers.
1379 --disable-largefile omit support for large files
1380 --enable-strict-dependencies fail configure on lack of module dependancy.
1381 --enable-werror causes the build to fail if any warnings are generated.
1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1386 --with-docdir=DIR directory for documentation DATADIR/doc/freeradius
1387 --with-logdir=DIR directory for logfiles LOCALSTATEDIR/log/radius
1388 --with-radacctdir=DIR directory for detail files LOGDIR/radacct
1389 --with-raddbdir=DIR directory for config files SYSCONFDIR/raddb
1390 --with-ascend-binary include support for Ascend binary filter attributes (default=yes)
1391 --with-threads Use threads, if available. (default=yes)
1392 --with-tcp Compile in TCP support. (default=yes)
1393 --with-vmps Compile in VMPS support. (default=yes)
1394 --with-dhcp Compile in DHCP support. (default=yes)
1395 --with-static-modules=QUOTED-MODULE-LIST
1396 --with-modules=QUOTED-MODULE-LIST
1397 --with-experimental-modules Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1398 --with-openssl Use OpenSSL. (default=yes)
1399 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1400 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1401 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1402 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1403 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1404 --with-talloc-include-dir=DIR
1405 Directory where the talloc includes may be found
1407 Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1415 CXX C++ compiler command
1416 CXXFLAGS C++ compiler flags
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1422 Report bugs to <http://bugs.freeradius.org>.
1423 freeradius home page: <http://www.freeradius.org>.
1428 if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" ||
1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1453 .) # We are building in place.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1486 freeradius configure $Id$
1487 generated by GNU Autoconf 2.69
1489 Copyright (C) 2012 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1496 ## ------------------------ ##
1497 ## Autoconf initialization. ##
1498 ## ------------------------ ##
1500 # ac_fn_c_try_compile LINENO
1501 # --------------------------
1502 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_compile ()
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 rm -f conftest.$ac_objext
1507 if { { ac_try="$ac_compile"
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_compile") 2>conftest.err
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && {
1523 test -z "$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 } && test -s conftest.$ac_objext; then :
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534 as_fn_set_status $ac_retval
1536 } # ac_fn_c_try_compile
1538 # ac_fn_cxx_try_compile LINENO
1539 # ----------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_cxx_try_compile ()
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_cxx_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1574 } # ac_fn_cxx_try_compile
1576 # ac_fn_c_try_cpp LINENO
1577 # ----------------------
1578 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_cpp conftest.$ac_ext"
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } > conftest.i && {
1598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1613 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1614 # -------------------------------------------------------
1615 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1616 # the include files in INCLUDES and setting the cache variable VAR
1618 ac_fn_c_check_header_mongrel ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if eval \${$3+:} false; then :
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 $as_echo_n "checking for $2... " >&6; }
1624 if eval \${$3+:} false; then :
1625 $as_echo_n "(cached) " >&6
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
1631 # Is the header compilable?
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1633 $as_echo_n "checking $2 usability... " >&6; }
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640 ac_header_compiler=yes
1642 ac_header_compiler=no
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1646 $as_echo "$ac_header_compiler" >&6; }
1648 # Is the header present?
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1650 $as_echo_n "checking $2 presence... " >&6; }
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1655 if ac_fn_c_try_cpp "$LINENO"; then :
1656 ac_header_preproc=yes
1658 ac_header_preproc=no
1660 rm -f conftest.err conftest.i conftest.$ac_ext
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1662 $as_echo "$ac_header_preproc" >&6; }
1664 # So? What about this header?
1665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1668 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1670 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1674 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1676 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1678 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1680 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1682 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1683 ( $as_echo "## ----------------------------------------- ##
1684 ## Report this to http://bugs.freeradius.org ##
1685 ## ----------------------------------------- ##"
1686 ) | sed "s/^/$as_me: WARNING: /" >&2
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if eval \${$3+:} false; then :
1692 $as_echo_n "(cached) " >&6
1694 eval "$3=\$ac_header_compiler"
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 } # ac_fn_c_check_header_mongrel
1704 # ac_fn_c_try_run LINENO
1705 # ----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707 # that executables *can* be run.
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_link"
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>&5
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722 { { case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_try") 2>&5
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }; then :
1734 $as_echo "$as_me: program exited with status $ac_status" >&5
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1738 ac_retval=$ac_status
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1746 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1747 # -------------------------------------------------------
1748 # Tests whether HEADER exists and can be compiled using the include files in
1749 # INCLUDES, setting the cache variable VAR accordingly.
1750 ac_fn_c_check_header_compile ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if eval \${$3+:} false; then :
1756 $as_echo_n "(cached) " >&6
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1763 if ac_fn_c_try_compile "$LINENO"; then :
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 } # ac_fn_c_check_header_compile
1777 # ac_fn_c_try_link LINENO
1778 # -----------------------
1779 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext conftest$ac_exeext
1784 if { { ac_try="$ac_link"
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_link") 2>conftest.err
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest$ac_exeext && {
1803 test "$cross_compiling" = yes ||
1804 test -x conftest$ac_exeext
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1813 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1814 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1815 # interfere with the next link command; also delete a directory that is
1816 # left behind by Apple's compiler. We do this before executing the actions.
1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
1821 } # ac_fn_c_try_link
1823 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1824 # -------------------------------------------
1825 # Tests whether TYPE exists after having included INCLUDES, setting cache
1826 # variable VAR accordingly.
1827 ac_fn_c_check_type ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833 $as_echo_n "(cached) " >&6
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1861 if ac_fn_c_try_compile "$LINENO"; then :
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 } # ac_fn_c_check_type
1877 # ac_fn_c_check_func LINENO FUNC VAR
1878 # ----------------------------------
1879 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1880 ac_fn_c_check_func ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892 #define $2 innocuous_$2
1894 /* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below.
1896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897 <limits.h> exists even on freestanding compilers. */
1900 # include <limits.h>
1902 # include <assert.h>
1907 /* Override any GCC internal prototype to avoid an error.
1908 Use char because int might match the return type of a GCC
1909 builtin and then its argument prototype would still apply. */
1914 /* The GNU C library defines this for functions which it implements
1915 to always fail with ENOSYS. Some functions are actually named
1916 something starting with __ and the normal name is an alias. */
1917 #if defined __stub_$2 || defined __stub___$2
1929 if ac_fn_c_try_link "$LINENO"; then :
1934 rm -f core conftest.err conftest.$ac_objext \
1935 conftest$ac_exeext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 } # ac_fn_c_check_func
1944 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1945 # ---------------------------------------------
1946 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1948 ac_fn_c_check_decl ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 as_decl_name=`echo $2|sed 's/ *(.*//'`
1952 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1954 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1964 #ifndef $as_decl_name
1966 (void) $as_decl_use;
1968 (void) $as_decl_name;
1976 if ac_fn_c_try_compile "$LINENO"; then :
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 } # ac_fn_c_check_decl
1989 cat >config.log <<_ACEOF
1990 This file contains any messages produced by compilers while
1991 running configure, to aid debugging if configure makes a mistake.
1993 It was created by freeradius $as_me $Id$, which was
1994 generated by GNU Autoconf 2.69. Invocation command line was
2006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2018 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 test -z "$as_dir" && as_dir=.
2030 $as_echo "PATH: $as_dir"
2046 # Keep a trace of the command line.
2047 # Strip out --no-create and --no-recursion so they do not pile up.
2048 # Strip out --silent because we don't want to record it for future runs.
2049 # Also quote any args containing shell meta-characters.
2050 # Make two passes to allow for proper duplicate-argument suppression.
2054 ac_must_keep_next=false
2060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2062 | -silent | --silent | --silen | --sile | --sil)
2065 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2068 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2070 as_fn_append ac_configure_args1 " '$ac_arg'"
2071 if test $ac_must_keep_next = true; then
2072 ac_must_keep_next=false # Got value, back to normal.
2075 *=* | --config-cache | -C | -disable-* | --disable-* \
2076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2078 | -with-* | --with-* | -without-* | --without-* | --x)
2079 case "$ac_configure_args0 " in
2080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2083 -* ) ac_must_keep_next=true ;;
2086 as_fn_append ac_configure_args " '$ac_arg'"
2091 { ac_configure_args0=; unset ac_configure_args0;}
2092 { ac_configure_args1=; unset ac_configure_args1;}
2094 # When interrupted or exit'd, cleanup temporary files, and complete
2095 # config.log. We remove comments because anyway the quotes in there
2096 # would cause problems or look ugly.
2097 # WARNING: Use '\'' to represent an apostrophe within the trap.
2098 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2099 trap 'exit_status=$?
2100 # Save into config.log some information that might help in debugging.
2104 $as_echo "## ---------------- ##
2105 ## Cache variables. ##
2106 ## ---------------- ##"
2108 # The following way of writing the cache mishandles newlines in values,
2110 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2111 eval ac_val=\$$ac_var
2115 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2116 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2119 _ | IFS | as_nl) ;; #(
2120 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2121 *) { eval $ac_var=; unset $ac_var;} ;;
2126 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2127 *${as_nl}ac_space=\ *)
2129 "s/'\''/'\''\\\\'\'''\''/g;
2130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2140 $as_echo "## ----------------- ##
2141 ## Output variables. ##
2142 ## ----------------- ##"
2144 for ac_var in $ac_subst_vars
2146 eval ac_val=\$$ac_var
2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2150 $as_echo "$ac_var='\''$ac_val'\''"
2154 if test -n "$ac_subst_files"; then
2155 $as_echo "## ------------------- ##
2156 ## File substitutions. ##
2157 ## ------------------- ##"
2159 for ac_var in $ac_subst_files
2161 eval ac_val=\$$ac_var
2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2165 $as_echo "$ac_var='\''$ac_val'\''"
2170 if test -s confdefs.h; then
2171 $as_echo "## ----------- ##
2178 test "$ac_signal" != 0 &&
2179 $as_echo "$as_me: caught signal $ac_signal"
2180 $as_echo "$as_me: exit $exit_status"
2182 rm -f core *.core core.conftest.* &&
2183 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2186 for ac_signal in 1 2 13 15; do
2187 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2192 rm -f -r conftest* confdefs.h
2194 $as_echo "/* confdefs.h */" > confdefs.h
2196 # Predefined preprocessor variables.
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_NAME "$PACKAGE_NAME"
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_STRING "$PACKAGE_STRING"
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_URL "$PACKAGE_URL"
2223 # Let the site file select an alternate cache file if it wants to.
2224 # Prefer an explicitly selected file to automatically selected ones.
2227 if test -n "$CONFIG_SITE"; then
2228 # We do not want a PATH search for config.site.
2229 case $CONFIG_SITE in #((
2230 -*) ac_site_file1=./$CONFIG_SITE;;
2231 */*) ac_site_file1=$CONFIG_SITE;;
2232 *) ac_site_file1=./$CONFIG_SITE;;
2234 elif test "x$prefix" != xNONE; then
2235 ac_site_file1=$prefix/share/config.site
2236 ac_site_file2=$prefix/etc/config.site
2238 ac_site_file1=$ac_default_prefix/share/config.site
2239 ac_site_file2=$ac_default_prefix/etc/config.site
2241 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2243 test "x$ac_site_file" = xNONE && continue
2244 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2246 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2247 sed 's/^/| /' "$ac_site_file" >&5
2249 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 as_fn_error $? "failed to load site script $ac_site_file
2252 See \`config.log' for more details" "$LINENO" 5; }
2256 if test -r "$cache_file"; then
2257 # Some versions of bash will fail to source /dev/null (special files
2258 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2259 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2261 $as_echo "$as_me: loading cache $cache_file" >&6;}
2263 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2264 *) . "./$cache_file";;
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2269 $as_echo "$as_me: creating cache $cache_file" >&6;}
2273 # Check that the precious variables saved in the cache have kept the same
2275 ac_cache_corrupted=false
2276 for ac_var in $ac_precious_vars; do
2277 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2278 eval ac_new_set=\$ac_env_${ac_var}_set
2279 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2280 eval ac_new_val=\$ac_env_${ac_var}_value
2281 case $ac_old_set,$ac_new_set in
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2284 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2285 ac_cache_corrupted=: ;;
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2288 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2289 ac_cache_corrupted=: ;;
2292 if test "x$ac_old_val" != "x$ac_new_val"; then
2293 # differences in whitespace do not lead to failure.
2294 ac_old_val_w=`echo x $ac_old_val`
2295 ac_new_val_w=`echo x $ac_new_val`
2296 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2298 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2299 ac_cache_corrupted=:
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2302 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2303 eval $ac_var=\$ac_old_val
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2306 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2308 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2311 # Pass precious variables to config.status.
2312 if test "$ac_new_set" = set; then
2314 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2315 *) ac_arg=$ac_var=$ac_new_val ;;
2317 case " $ac_configure_args " in
2318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2319 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2323 if $ac_cache_corrupted; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2327 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2328 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2330 ## -------------------- ##
2331 ## Main body of script. ##
2332 ## -------------------- ##
2335 ac_cpp='$CPP $CPPFLAGS'
2336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2342 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2352 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2353 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2354 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2356 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2357 -v minor="$RADIUSD_MINOR_VERSION" \
2358 -v incrm="$RADIUSD_INCRM_VERSION" \
2359 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2361 RADIUSD_VERSION_STRING=`cat VERSION`
2366 cat >>confdefs.h <<_ACEOF
2367 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2371 cat >>confdefs.h <<_ACEOF
2372 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2377 # Check whether --enable-developer was given.
2378 if test "${enable_developer+set}" = set; then :
2379 enableval=$enable_developer; case "$enableval" in
2390 if test -d $srcdir/.git; then
2391 if test "x$developer" != "xno"; then
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2393 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2398 if test "x$developer" = "xyes"; then
2407 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2408 if test -f "$ac_dir/install-sh"; then
2410 ac_install_sh="$ac_aux_dir/install-sh -c"
2412 elif test -f "$ac_dir/install.sh"; then
2414 ac_install_sh="$ac_aux_dir/install.sh -c"
2416 elif test -f "$ac_dir/shtool"; then
2418 ac_install_sh="$ac_aux_dir/shtool install -c"
2422 if test -z "$ac_aux_dir"; then
2423 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2426 # These three variables are undocumented and unsupported,
2427 # and are intended to be withdrawn in a future Autoconf release.
2428 # They can cause serious problems if a builder's source tree is in a directory
2429 # whose full name contains unusual characters.
2430 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2431 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2432 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2435 # Make sure we can run config.sub.
2436 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2437 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2440 $as_echo_n "checking build system type... " >&6; }
2441 if ${ac_cv_build+:} false; then :
2442 $as_echo_n "(cached) " >&6
2444 ac_build_alias=$build_alias
2445 test "x$ac_build_alias" = x &&
2446 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2447 test "x$ac_build_alias" = x &&
2448 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2449 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2450 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2454 $as_echo "$ac_cv_build" >&6; }
2455 case $ac_cv_build in
2457 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2460 ac_save_IFS=$IFS; IFS='-'
2466 # Remember, the first character of IFS is used to create $*,
2467 # except with old shells:
2470 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2474 $as_echo_n "checking host system type... " >&6; }
2475 if ${ac_cv_host+:} false; then :
2476 $as_echo_n "(cached) " >&6
2478 if test "x$host_alias" = x; then
2479 ac_cv_host=$ac_cv_build
2481 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2482 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2487 $as_echo "$ac_cv_host" >&6; }
2490 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2493 ac_save_IFS=$IFS; IFS='-'
2499 # Remember, the first character of IFS is used to create $*,
2500 # except with old shells:
2503 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2507 $as_echo_n "checking target system type... " >&6; }
2508 if ${ac_cv_target+:} false; then :
2509 $as_echo_n "(cached) " >&6
2511 if test "x$target_alias" = x; then
2512 ac_cv_target=$ac_cv_host
2514 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2515 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2520 $as_echo "$ac_cv_target" >&6; }
2521 case $ac_cv_target in
2523 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2525 target=$ac_cv_target
2526 ac_save_IFS=$IFS; IFS='-'
2532 # Remember, the first character of IFS is used to create $*,
2533 # except with old shells:
2536 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2539 # The aliases save the names the user supplied, while $host etc.
2540 # will get canonicalized.
2541 test -n "$target_alias" &&
2542 test "$program_prefix$program_suffix$program_transform_name" = \
2544 program_prefix=${target_alias}-
2548 ac_cpp='$CPP $CPPFLAGS'
2549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552 if test -n "$ac_tool_prefix"; then
2553 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2554 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if ${ac_cv_prog_CC+:} false; then :
2558 $as_echo_n "(cached) " >&6
2560 if test -n "$CC"; then
2561 ac_cv_prog_CC="$CC" # Let the user override the test.
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 if test -n "$CC"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2583 $as_echo "$CC" >&6; }
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586 $as_echo "no" >&6; }
2591 if test -z "$ac_cv_prog_CC"; then
2593 # Extract the first word of "gcc", so it can be a program name with args.
2594 set dummy gcc; ac_word=$2
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2596 $as_echo_n "checking for $ac_word... " >&6; }
2597 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2598 $as_echo_n "(cached) " >&6
2600 if test -n "$ac_ct_CC"; then
2601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610 ac_cv_prog_ac_ct_CC="gcc"
2611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2623 $as_echo "$ac_ct_CC" >&6; }
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626 $as_echo "no" >&6; }
2629 if test "x$ac_ct_CC" = x; then
2632 case $cross_compiling:$ac_tool_warned in
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2636 ac_tool_warned=yes ;;
2644 if test -z "$CC"; then
2645 if test -n "$ac_tool_prefix"; then
2646 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2647 set dummy ${ac_tool_prefix}cc; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if ${ac_cv_prog_CC+:} false; then :
2651 $as_echo_n "(cached) " >&6
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_prog_CC="${ac_tool_prefix}cc"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 if test -n "$CC"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2676 $as_echo "$CC" >&6; }
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2685 if test -z "$CC"; then
2686 # Extract the first word of "cc", so it can be a program name with args.
2687 set dummy cc; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if ${ac_cv_prog_CC+:} false; then :
2691 $as_echo_n "(cached) " >&6
2693 if test -n "$CC"; then
2694 ac_cv_prog_CC="$CC" # Let the user override the test.
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2705 ac_prog_rejected=yes
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 if test $ac_prog_rejected = yes; then
2717 # We found a bogon in the path, so make sure we never use it.
2718 set dummy $ac_cv_prog_CC
2720 if test $# != 0; then
2721 # We chose a different compiler from the bogus one.
2722 # However, it has the same basename, so the bogon will be chosen
2723 # first if we set CC to just the basename; use the full file name.
2725 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2731 if test -n "$CC"; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2733 $as_echo "$CC" >&6; }
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2741 if test -z "$CC"; then
2742 if test -n "$ac_tool_prefix"; then
2743 for ac_prog in cl.exe
2745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if ${ac_cv_prog_CC+:} false; then :
2750 $as_echo_n "(cached) " >&6
2752 if test -n "$CC"; then
2753 ac_cv_prog_CC="$CC" # Let the user override the test.
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2762 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 if test -n "$CC"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2775 $as_echo "$CC" >&6; }
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2782 test -n "$CC" && break
2785 if test -z "$CC"; then
2787 for ac_prog in cl.exe
2789 # Extract the first word of "$ac_prog", so it can be a program name with args.
2790 set dummy $ac_prog; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2794 $as_echo_n "(cached) " >&6
2796 if test -n "$ac_ct_CC"; then
2797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806 ac_cv_prog_ac_ct_CC="$ac_prog"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2817 if test -n "$ac_ct_CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2819 $as_echo "$ac_ct_CC" >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2826 test -n "$ac_ct_CC" && break
2829 if test "x$ac_ct_CC" = x; then
2832 case $cross_compiling:$ac_tool_warned in
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2836 ac_tool_warned=yes ;;
2845 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2847 as_fn_error $? "no acceptable C compiler found in \$PATH
2848 See \`config.log' for more details" "$LINENO" 5; }
2850 # Provide some information about the compiler.
2851 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2854 for ac_option in --version -v -V -qversion; do
2855 { { ac_try="$ac_compiler $ac_option >&5"
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2861 $as_echo "$ac_try_echo"; } >&5
2862 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2864 if test -s conftest.err; then
2866 ... rest of stderr output deleted ...
2867 10q' conftest.err >conftest.er1
2868 cat conftest.er1 >&5
2870 rm -f conftest.er1 conftest.err
2871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2872 test $ac_status = 0; }
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2886 ac_clean_files_save=$ac_clean_files
2887 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2888 # Try to create an executable without -o first, disregard a.out.
2889 # It will help us diagnose broken compilers, and finding out an intuition
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2892 $as_echo_n "checking whether the C compiler works... " >&6; }
2893 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2895 # The possible output files:
2896 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2899 for ac_file in $ac_files
2902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2903 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2908 if { { ac_try="$ac_link_default"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2914 $as_echo "$ac_try_echo"; } >&5
2915 (eval "$ac_link_default") 2>&5
2917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2918 test $ac_status = 0; }; then :
2919 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2920 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2921 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2922 # so that the user can short-circuit this test for compilers unknown to
2924 for ac_file in $ac_files ''
2926 test -f "$ac_file" || continue
2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2931 # We found the default executable, but exeext='' is most
2935 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2937 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2939 # We set ac_cv_exeext here because the later test for it is not
2940 # safe: cross compilers may not add the suffix if given an `-o'
2941 # argument, so we may need to know it at that point already.
2942 # Even if this section looks crufty: it has the advantage of
2949 test "$ac_cv_exeext" = no && ac_cv_exeext=
2954 if test -z "$ac_file"; then :
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 $as_echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2962 as_fn_error 77 "C compiler cannot create executables
2963 See \`config.log' for more details" "$LINENO" 5; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2966 $as_echo "yes" >&6; }
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2969 $as_echo_n "checking for C compiler default output file name... " >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2971 $as_echo "$ac_file" >&6; }
2972 ac_exeext=$ac_cv_exeext
2974 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2975 ac_clean_files=$ac_clean_files_save
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2977 $as_echo_n "checking for suffix of executables... " >&6; }
2978 if { { ac_try="$ac_link"
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984 $as_echo "$ac_try_echo"; } >&5
2985 (eval "$ac_link") 2>&5
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }; then :
2989 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2990 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2991 # work properly (i.e., refer to `conftest.exe'), while it won't with
2993 for ac_file in conftest.exe conftest conftest.*; do
2994 test -f "$ac_file" || continue
2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3005 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3006 See \`config.log' for more details" "$LINENO" 5; }
3008 rm -f conftest conftest$ac_cv_exeext
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3010 $as_echo "$ac_cv_exeext" >&6; }
3012 rm -f conftest.$ac_ext
3013 EXEEXT=$ac_cv_exeext
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3021 FILE *f = fopen ("conftest.out", "w");
3022 return ferror (f) || fclose (f) != 0;
3028 ac_clean_files="$ac_clean_files conftest.out"
3029 # Check that the compiler produces executables we can run. If not, either
3030 # the compiler is broken, or we cross compile.
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3032 $as_echo_n "checking whether we are cross compiling... " >&6; }
3033 if test "$cross_compiling" != yes; then
3034 { { ac_try="$ac_link"
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040 $as_echo "$ac_try_echo"; } >&5
3041 (eval "$ac_link") 2>&5
3043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044 test $ac_status = 0; }
3045 if { ac_try='./conftest$ac_cv_exeext'
3046 { { case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051 $as_echo "$ac_try_echo"; } >&5
3052 (eval "$ac_try") 2>&5
3054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055 test $ac_status = 0; }; }; then
3058 if test "$cross_compiling" = maybe; then
3061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3063 as_fn_error $? "cannot run C compiled programs.
3064 If you meant to cross compile, use \`--host'.
3065 See \`config.log' for more details" "$LINENO" 5; }
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3070 $as_echo "$cross_compiling" >&6; }
3072 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3073 ac_clean_files=$ac_clean_files_save
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3075 $as_echo_n "checking for suffix of object files... " >&6; }
3076 if ${ac_cv_objext+:} false; then :
3077 $as_echo_n "(cached) " >&6
3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h. */
3090 rm -f conftest.o conftest.obj
3091 if { { ac_try="$ac_compile"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3097 $as_echo "$ac_try_echo"; } >&5
3098 (eval "$ac_compile") 2>&5
3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101 test $ac_status = 0; }; then :
3102 for ac_file in conftest.o conftest.obj conftest.*; do
3103 test -f "$ac_file" || continue;
3105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3106 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3111 $as_echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116 as_fn_error $? "cannot compute suffix of object files: cannot compile
3117 See \`config.log' for more details" "$LINENO" 5; }
3119 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3122 $as_echo "$ac_cv_objext" >&6; }
3123 OBJEXT=$ac_cv_objext
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3126 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3127 if ${ac_cv_c_compiler_gnu+:} false; then :
3128 $as_echo_n "(cached) " >&6
3130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3131 /* end confdefs.h. */
3144 if ac_fn_c_try_compile "$LINENO"; then :
3149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3154 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3155 if test $ac_compiler_gnu = yes; then
3160 ac_test_CFLAGS=${CFLAGS+set}
3161 ac_save_CFLAGS=$CFLAGS
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3163 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3164 if ${ac_cv_prog_cc_g+:} false; then :
3165 $as_echo_n "(cached) " >&6
3167 ac_save_c_werror_flag=$ac_c_werror_flag
3168 ac_c_werror_flag=yes
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3182 if ac_fn_c_try_compile "$LINENO"; then :
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h. */
3197 if ac_fn_c_try_compile "$LINENO"; then :
3200 ac_c_werror_flag=$ac_save_c_werror_flag
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h. */
3213 if ac_fn_c_try_compile "$LINENO"; then :
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 ac_c_werror_flag=$ac_save_c_werror_flag
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3224 $as_echo "$ac_cv_prog_cc_g" >&6; }
3225 if test "$ac_test_CFLAGS" = set; then
3226 CFLAGS=$ac_save_CFLAGS
3227 elif test $ac_cv_prog_cc_g = yes; then
3228 if test "$GCC" = yes; then
3234 if test "$GCC" = yes; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3241 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3242 if ${ac_cv_prog_cc_c89+:} false; then :
3243 $as_echo_n "(cached) " >&6
3245 ac_cv_prog_cc_c89=no
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3252 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3253 struct buf { int x; };
3254 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3255 static char *e (p, i)
3261 static char *f (char * (*g) (char **, int), char **p, ...)
3266 s = g (p, va_arg (v,int));
3271 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3272 function prototypes and stuff, but not '\xHH' hex character constants.
3273 These don't provoke an error unfortunately, instead are silently treated
3274 as 'x'. The following induces an error, until -std is added to get
3275 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3276 array size at least. It's necessary to write '\x00'==0 to get something
3277 that's true only with -std. */
3278 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3280 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3281 inside strings and character constants. */
3283 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3285 int test (int i, double x);
3286 struct s1 {int (*f) (int a);};
3287 struct s2 {int (*f) (double a);};
3288 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3294 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3299 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3300 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3302 CC="$ac_save_CC $ac_arg"
3303 if ac_fn_c_try_compile "$LINENO"; then :
3304 ac_cv_prog_cc_c89=$ac_arg
3306 rm -f core conftest.err conftest.$ac_objext
3307 test "x$ac_cv_prog_cc_c89" != "xno" && break
3309 rm -f conftest.$ac_ext
3314 case "x$ac_cv_prog_cc_c89" in
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3317 $as_echo "none needed" >&6; } ;;
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3320 $as_echo "unsupported" >&6; } ;;
3322 CC="$CC $ac_cv_prog_cc_c89"
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3324 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3326 if test "x$ac_cv_prog_cc_c89" != xno; then :
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337 ac_cpp='$CXXCPP $CPPFLAGS'
3338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3341 if test -z "$CXX"; then
3342 if test -n "$CCC"; then
3345 if test -n "$ac_tool_prefix"; then
3346 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_CXX+:} false; then :
3353 $as_echo_n "(cached) " >&6
3355 if test -n "$CXX"; then
3356 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 if test -n "$CXX"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3378 $as_echo "$CXX" >&6; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3385 test -n "$CXX" && break
3388 if test -z "$CXX"; then
3390 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3392 # Extract the first word of "$ac_prog", so it can be a program name with args.
3393 set dummy $ac_prog; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3397 $as_echo_n "(cached) " >&6
3399 if test -n "$ac_ct_CXX"; then
3400 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_ac_ct_CXX="$ac_prog"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3420 if test -n "$ac_ct_CXX"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3422 $as_echo "$ac_ct_CXX" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3429 test -n "$ac_ct_CXX" && break
3432 if test "x$ac_ct_CXX" = x; then
3435 case $cross_compiling:$ac_tool_warned in
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439 ac_tool_warned=yes ;;
3447 # Provide some information about the compiler.
3448 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3451 for ac_option in --version -v -V -qversion; do
3452 { { ac_try="$ac_compiler $ac_option >&5"
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3461 if test -s conftest.err; then
3463 ... rest of stderr output deleted ...
3464 10q' conftest.err >conftest.er1
3465 cat conftest.er1 >&5
3467 rm -f conftest.er1 conftest.err
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3473 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3474 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3475 $as_echo_n "(cached) " >&6
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3491 if ac_fn_cxx_try_compile "$LINENO"; then :
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3501 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3502 if test $ac_compiler_gnu = yes; then
3507 ac_test_CXXFLAGS=${CXXFLAGS+set}
3508 ac_save_CXXFLAGS=$CXXFLAGS
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3510 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3511 if ${ac_cv_prog_cxx_g+:} false; then :
3512 $as_echo_n "(cached) " >&6
3514 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3515 ac_cxx_werror_flag=yes
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3529 if ac_fn_cxx_try_compile "$LINENO"; then :
3530 ac_cv_prog_cxx_g=yes
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3544 if ac_fn_cxx_try_compile "$LINENO"; then :
3547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3560 if ac_fn_cxx_try_compile "$LINENO"; then :
3561 ac_cv_prog_cxx_g=yes
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3571 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3572 if test "$ac_test_CXXFLAGS" = set; then
3573 CXXFLAGS=$ac_save_CXXFLAGS
3574 elif test $ac_cv_prog_cxx_g = yes; then
3575 if test "$GXX" = yes; then
3581 if test "$GXX" = yes; then
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3601 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3602 # On Suns, sometimes $CPP names a directory.
3603 if test -n "$CPP" && test -d "$CPP"; then
3606 if test -z "$CPP"; then
3607 if ${ac_cv_prog_CPP+:} false; then :
3608 $as_echo_n "(cached) " >&6
3610 # Double quotes because CPP needs to be expanded
3611 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3614 for ac_c_preproc_warn_flag in '' yes
3616 # Use a header file that comes with gcc, so configuring glibc
3617 # with a fresh cross-compiler works.
3618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619 # <limits.h> exists even on freestanding compilers.
3620 # On the NeXT, cc -E runs the code through the compiler's parser,
3621 # not just through cpp. "Syntax error" is here to catch this case.
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3625 # include <limits.h>
3627 # include <assert.h>
3631 if ac_fn_c_try_cpp "$LINENO"; then :
3634 # Broken: fails on valid input.
3637 rm -f conftest.err conftest.i conftest.$ac_ext
3639 # OK, works on sane cases. Now check whether nonexistent headers
3640 # can be detected and how.
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643 #include <ac_nonexistent.h>
3645 if ac_fn_c_try_cpp "$LINENO"; then :
3646 # Broken: success on invalid input.
3649 # Passes both tests.
3653 rm -f conftest.err conftest.i conftest.$ac_ext
3656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3657 rm -f conftest.i conftest.err conftest.$ac_ext
3658 if $ac_preproc_ok; then :
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3671 $as_echo "$CPP" >&6; }
3673 for ac_c_preproc_warn_flag in '' yes
3675 # Use a header file that comes with gcc, so configuring glibc
3676 # with a fresh cross-compiler works.
3677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3678 # <limits.h> exists even on freestanding compilers.
3679 # On the NeXT, cc -E runs the code through the compiler's parser,
3680 # not just through cpp. "Syntax error" is here to catch this case.
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3684 # include <limits.h>
3686 # include <assert.h>
3690 if ac_fn_c_try_cpp "$LINENO"; then :
3693 # Broken: fails on valid input.
3696 rm -f conftest.err conftest.i conftest.$ac_ext
3698 # OK, works on sane cases. Now check whether nonexistent headers
3699 # can be detected and how.
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3702 #include <ac_nonexistent.h>
3704 if ac_fn_c_try_cpp "$LINENO"; then :
3705 # Broken: success on invalid input.
3708 # Passes both tests.
3712 rm -f conftest.err conftest.i conftest.$ac_ext
3715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3716 rm -f conftest.i conftest.err conftest.$ac_ext
3717 if $ac_preproc_ok; then :
3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3723 See \`config.log' for more details" "$LINENO" 5; }
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3734 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3735 if ${ac_cv_path_GREP+:} false; then :
3736 $as_echo_n "(cached) " >&6
3738 if test -z "$GREP"; then
3739 ac_path_GREP_found=false
3740 # Loop through the user's path and test for each of PROGNAME-LIST
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3745 test -z "$as_dir" && as_dir=.
3746 for ac_prog in grep ggrep; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3749 as_fn_executable_p "$ac_path_GREP" || continue
3750 # Check for GNU ac_path_GREP and select it if it is found.
3751 # Check for GNU $ac_path_GREP
3752 case `"$ac_path_GREP" --version 2>&1` in
3754 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3757 $as_echo_n 0123456789 >"conftest.in"
3760 cat "conftest.in" "conftest.in" >"conftest.tmp"
3761 mv "conftest.tmp" "conftest.in"
3762 cp "conftest.in" "conftest.nl"
3763 $as_echo 'GREP' >> "conftest.nl"
3764 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3766 as_fn_arith $ac_count + 1 && ac_count=$as_val
3767 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3768 # Best one so far, save it but keep looking for a better one
3769 ac_cv_path_GREP="$ac_path_GREP"
3770 ac_path_GREP_max=$ac_count
3772 # 10*(2^10) chars as input seems more than enough
3773 test $ac_count -gt 10 && break
3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3778 $ac_path_GREP_found && break 3
3783 if test -z "$ac_cv_path_GREP"; then
3784 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3787 ac_cv_path_GREP=$GREP
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3792 $as_echo "$ac_cv_path_GREP" >&6; }
3793 GREP="$ac_cv_path_GREP"
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3797 $as_echo_n "checking for egrep... " >&6; }
3798 if ${ac_cv_path_EGREP+:} false; then :
3799 $as_echo_n "(cached) " >&6
3801 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3802 then ac_cv_path_EGREP="$GREP -E"
3804 if test -z "$EGREP"; then
3805 ac_path_EGREP_found=false
3806 # Loop through the user's path and test for each of PROGNAME-LIST
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3811 test -z "$as_dir" && as_dir=.
3812 for ac_prog in egrep; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3815 as_fn_executable_p "$ac_path_EGREP" || continue
3816 # Check for GNU ac_path_EGREP and select it if it is found.
3817 # Check for GNU $ac_path_EGREP
3818 case `"$ac_path_EGREP" --version 2>&1` in
3820 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3823 $as_echo_n 0123456789 >"conftest.in"
3826 cat "conftest.in" "conftest.in" >"conftest.tmp"
3827 mv "conftest.tmp" "conftest.in"
3828 cp "conftest.in" "conftest.nl"
3829 $as_echo 'EGREP' >> "conftest.nl"
3830 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3832 as_fn_arith $ac_count + 1 && ac_count=$as_val
3833 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3834 # Best one so far, save it but keep looking for a better one
3835 ac_cv_path_EGREP="$ac_path_EGREP"
3836 ac_path_EGREP_max=$ac_count
3838 # 10*(2^10) chars as input seems more than enough
3839 test $ac_count -gt 10 && break
3841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3844 $ac_path_EGREP_found && break 3
3849 if test -z "$ac_cv_path_EGREP"; then
3850 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3853 ac_cv_path_EGREP=$EGREP
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3859 $as_echo "$ac_cv_path_EGREP" >&6; }
3860 EGREP="$ac_cv_path_EGREP"
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3864 $as_echo_n "checking for ANSI C header files... " >&6; }
3865 if ${ac_cv_header_stdc+:} false; then :
3866 $as_echo_n "(cached) " >&6
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3883 if ac_fn_c_try_compile "$LINENO"; then :
3884 ac_cv_header_stdc=yes
3886 ac_cv_header_stdc=no
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 if test $ac_cv_header_stdc = yes; then
3891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3898 $EGREP "memchr" >/dev/null 2>&1; then :
3901 ac_cv_header_stdc=no
3907 if test $ac_cv_header_stdc = yes; then
3908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "free" >/dev/null 2>&1; then :
3918 ac_cv_header_stdc=no
3924 if test $ac_cv_header_stdc = yes; then
3925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3926 if test "$cross_compiling" = yes; then :
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3933 #if ((' ' & 0x0FF) == 0x020)
3934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3937 # define ISLOWER(c) \
3938 (('a' <= (c) && (c) <= 'i') \
3939 || ('j' <= (c) && (c) <= 'r') \
3940 || ('s' <= (c) && (c) <= 'z'))
3941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3949 for (i = 0; i < 256; i++)
3950 if (XOR (islower (i), ISLOWER (i))
3951 || toupper (i) != TOUPPER (i))
3956 if ac_fn_c_try_run "$LINENO"; then :
3959 ac_cv_header_stdc=no
3961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3962 conftest.$ac_objext conftest.beam conftest.$ac_ext
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3968 $as_echo "$ac_cv_header_stdc" >&6; }
3969 if test $ac_cv_header_stdc = yes; then
3971 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3976 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3977 inttypes.h stdint.h unistd.h
3979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3980 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3982 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3983 cat >>confdefs.h <<_ACEOF
3984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3993 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3994 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4001 if test "$MINIX" = yes; then
4003 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4006 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4009 $as_echo "#define _MINIX 1" >>confdefs.h
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4015 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4016 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4017 $as_echo_n "(cached) " >&6
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4022 # define __EXTENSIONS__ 1
4023 $ac_includes_default
4032 if ac_fn_c_try_compile "$LINENO"; then :
4033 ac_cv_safe_to_define___extensions__=yes
4035 ac_cv_safe_to_define___extensions__=no
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4040 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4041 test $ac_cv_safe_to_define___extensions__ = yes &&
4042 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4044 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4046 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4048 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4050 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4055 if test $ac_cv_c_compiler_gnu = yes; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4057 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4058 if ${ac_cv_prog_gcc_traditional+:} false; then :
4059 $as_echo_n "(cached) " >&6
4061 ac_pattern="Autoconf.*'x'"
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4068 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4069 ac_cv_prog_gcc_traditional=yes
4071 ac_cv_prog_gcc_traditional=no
4076 if test $ac_cv_prog_gcc_traditional = no; then
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4083 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4084 ac_cv_prog_gcc_traditional=yes
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4091 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4092 if test $ac_cv_prog_gcc_traditional = yes; then
4093 CC="$CC -traditional"
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4098 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4099 if ${ac_cv_prog_suncc+:} false; then :
4100 $as_echo_n "(cached) " >&6
4102 cat > conftest.c <<EOF
4107 if { ac_try='${CC-cc} -E conftest.c'
4108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4113 ac_cv_prog_suncc=yes
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4119 $as_echo "$ac_cv_prog_suncc" >&6; }
4120 if test -n "$ac_tool_prefix"; then
4121 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_RANLIB+:} false; then :
4126 $as_echo_n "(cached) " >&6
4128 if test -n "$RANLIB"; then
4129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 RANLIB=$ac_cv_prog_RANLIB
4149 if test -n "$RANLIB"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4151 $as_echo "$RANLIB" >&6; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4159 if test -z "$ac_cv_prog_RANLIB"; then
4160 ac_ct_RANLIB=$RANLIB
4161 # Extract the first word of "ranlib", so it can be a program name with args.
4162 set dummy ranlib; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4166 $as_echo_n "(cached) " >&6
4168 if test -n "$ac_ct_RANLIB"; then
4169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_ac_ct_RANLIB="ranlib"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4189 if test -n "$ac_ct_RANLIB"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4191 $as_echo "$ac_ct_RANLIB" >&6; }
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4197 if test "x$ac_ct_RANLIB" = x; then
4200 case $cross_compiling:$ac_tool_warned in
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4204 ac_tool_warned=yes ;;
4206 RANLIB=$ac_ct_RANLIB
4209 RANLIB="$ac_cv_prog_RANLIB"
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4215 $as_echo_n "checking if compiler is clang... " >&6; }
4216 if ${ax_cv_clang+:} false; then :
4217 $as_echo_n "(cached) " >&6
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4236 if ac_fn_c_try_compile "$LINENO"; then :
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_clang" >&5
4245 $as_echo "$ax_cv_clang" >&6; }
4248 if test "x$GCC" = "xyes"; then
4249 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4254 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4255 if ${ax_cv_qunused_arguments_flag+:} false; then :
4256 $as_echo_n "(cached) " >&6
4260 CFLAGS_SAVED=$CFLAGS
4261 CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4280 if ac_fn_c_try_compile "$LINENO"; then :
4281 ax_cv_qunused_arguments_flag="yes"
4283 ax_cv_qunused_arguments_flag="no"
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 CFLAGS="$CFLAGS_SAVED"
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_qunused_arguments_flag" >&5
4297 $as_echo "$ax_cv_qunused_arguments_flag" >&6; }
4299 if test "x$ax_cv_qunused_arguments_flag" = "xyes"; then
4300 CFLAGS="$CFLAGS -Qunused-arguments"
4301 LDFLAGS="$LDFLAGS -Qunused-arguments"
4304 # Check whether --enable-largefile was given.
4305 if test "${enable_largefile+set}" = set; then :
4306 enableval=$enable_largefile;
4309 if test "$enable_largefile" != no; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4312 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4313 if ${ac_cv_sys_largefile_CC+:} false; then :
4314 $as_echo_n "(cached) " >&6
4316 ac_cv_sys_largefile_CC=no
4317 if test "$GCC" != yes; then
4320 # IRIX 6.2 and later do not support large files by default,
4321 # so use the C compiler's -n32 option if that helps.
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324 #include <sys/types.h>
4325 /* Check that off_t can represent 2**63 - 1 correctly.
4326 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4327 since some C++ compilers masquerading as C compilers
4328 incorrectly reject 9223372036854775807. */
4329 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4330 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4331 && LARGE_OFF_T % 2147483647 == 1)
4341 if ac_fn_c_try_compile "$LINENO"; then :
4344 rm -f core conftest.err conftest.$ac_objext
4346 if ac_fn_c_try_compile "$LINENO"; then :
4347 ac_cv_sys_largefile_CC=' -n32'; break
4349 rm -f core conftest.err conftest.$ac_objext
4353 rm -f conftest.$ac_ext
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4357 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4358 if test "$ac_cv_sys_largefile_CC" != no; then
4359 CC=$CC$ac_cv_sys_largefile_CC
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4363 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4364 if ${ac_cv_sys_file_offset_bits+:} false; then :
4365 $as_echo_n "(cached) " >&6
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370 #include <sys/types.h>
4371 /* Check that off_t can represent 2**63 - 1 correctly.
4372 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4373 since some C++ compilers masquerading as C compilers
4374 incorrectly reject 9223372036854775807. */
4375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4377 && LARGE_OFF_T % 2147483647 == 1)
4387 if ac_fn_c_try_compile "$LINENO"; then :
4388 ac_cv_sys_file_offset_bits=no; break
4390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393 #define _FILE_OFFSET_BITS 64
4394 #include <sys/types.h>
4395 /* Check that off_t can represent 2**63 - 1 correctly.
4396 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4397 since some C++ compilers masquerading as C compilers
4398 incorrectly reject 9223372036854775807. */
4399 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4400 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4401 && LARGE_OFF_T % 2147483647 == 1)
4411 if ac_fn_c_try_compile "$LINENO"; then :
4412 ac_cv_sys_file_offset_bits=64; break
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 ac_cv_sys_file_offset_bits=unknown
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4420 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4421 case $ac_cv_sys_file_offset_bits in #(
4424 cat >>confdefs.h <<_ACEOF
4425 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4430 if test $ac_cv_sys_file_offset_bits = unknown; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4432 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4433 if ${ac_cv_sys_large_files+:} false; then :
4434 $as_echo_n "(cached) " >&6
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <sys/types.h>
4440 /* Check that off_t can represent 2**63 - 1 correctly.
4441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4442 since some C++ compilers masquerading as C compilers
4443 incorrectly reject 9223372036854775807. */
4444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4446 && LARGE_OFF_T % 2147483647 == 1)
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457 ac_cv_sys_large_files=no; break
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462 #define _LARGE_FILES 1
4463 #include <sys/types.h>
4464 /* Check that off_t can represent 2**63 - 1 correctly.
4465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4466 since some C++ compilers masquerading as C compilers
4467 incorrectly reject 9223372036854775807. */
4468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4470 && LARGE_OFF_T % 2147483647 == 1)
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481 ac_cv_sys_large_files=1; break
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_cv_sys_large_files=unknown
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4489 $as_echo "$ac_cv_sys_large_files" >&6; }
4490 case $ac_cv_sys_large_files in #(
4493 cat >>confdefs.h <<_ACEOF
4494 #define _LARGE_FILES $ac_cv_sys_large_files
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4506 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4507 if ${ac_cv_c_bigendian+:} false; then :
4508 $as_echo_n "(cached) " >&6
4510 ac_cv_c_bigendian=unknown
4511 # See if we're dealing with a universal compiler.
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514 #ifndef __APPLE_CC__
4515 not a universal capable compiler
4520 if ac_fn_c_try_compile "$LINENO"; then :
4522 # Check for potential -arch flags. It is not universal unless
4523 # there are at least two -arch flags with different values.
4526 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4527 if test -n "$ac_prev"; then
4529 i?86 | x86_64 | ppc | ppc64)
4530 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4533 ac_cv_c_bigendian=universal
4539 elif test "x$ac_word" = "x-arch"; then
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 if test $ac_cv_c_bigendian = unknown; then
4546 # See if sys/param.h defines the BYTE_ORDER macro.
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4549 #include <sys/types.h>
4550 #include <sys/param.h>
4555 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4556 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4565 if ac_fn_c_try_compile "$LINENO"; then :
4566 # It does; now see whether it defined to BIG_ENDIAN or not.
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569 #include <sys/types.h>
4570 #include <sys/param.h>
4575 #if BYTE_ORDER != BIG_ENDIAN
4583 if ac_fn_c_try_compile "$LINENO"; then :
4584 ac_cv_c_bigendian=yes
4586 ac_cv_c_bigendian=no
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 if test $ac_cv_c_bigendian = unknown; then
4593 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4601 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610 # It does; now see whether it defined to _BIG_ENDIAN or not.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627 ac_cv_c_bigendian=yes
4629 ac_cv_c_bigendian=no
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 if test $ac_cv_c_bigendian = unknown; then
4636 # Compile a test program.
4637 if test "$cross_compiling" = yes; then :
4638 # Try to guess by grepping values from an object file.
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4641 short int ascii_mm[] =
4642 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4643 short int ascii_ii[] =
4644 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4645 int use_ascii (int i) {
4646 return ascii_mm[i] + ascii_ii[i];
4648 short int ebcdic_ii[] =
4649 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4650 short int ebcdic_mm[] =
4651 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4652 int use_ebcdic (int i) {
4653 return ebcdic_mm[i] + ebcdic_ii[i];
4660 return use_ascii (foo) == use_ebcdic (foo);
4665 if ac_fn_c_try_compile "$LINENO"; then :
4666 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4667 ac_cv_c_bigendian=yes
4669 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4670 if test "$ac_cv_c_bigendian" = unknown; then
4671 ac_cv_c_bigendian=no
4673 # finding both strings is unlikely to happen, but who knows?
4674 ac_cv_c_bigendian=unknown
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682 $ac_includes_default
4687 /* Are we little or big endian? From Harbison&Steele. */
4691 char c[sizeof (long int)];
4694 return u.c[sizeof (long int) - 1] == 1;
4700 if ac_fn_c_try_run "$LINENO"; then :
4701 ac_cv_c_bigendian=no
4703 ac_cv_c_bigendian=yes
4705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4706 conftest.$ac_objext conftest.beam conftest.$ac_ext
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4712 $as_echo "$ac_cv_c_bigendian" >&6; }
4713 case $ac_cv_c_bigendian in #(
4715 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4721 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4725 as_fn_error $? "unknown endianness
4726 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4730 # Extract the first word of "gmake", so it can be a program name with args.
4731 set dummy gmake; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_prog_GMAKE+:} false; then :
4735 $as_echo_n "(cached) " >&6
4737 if test -n "$GMAKE"; then
4738 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_prog_GMAKE="yes"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4758 GMAKE=$ac_cv_prog_GMAKE
4759 if test -n "$GMAKE"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4761 $as_echo "$GMAKE" >&6; }
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4768 if test $GMAKE = no; then
4769 # Extract the first word of "make", so it can be a program name with args.
4770 set dummy make; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if ${ac_cv_path_MAKE+:} false; then :
4774 $as_echo_n "(cached) " >&6
4778 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4800 MAKE=$ac_cv_path_MAKE
4801 if test -n "$MAKE"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4803 $as_echo "$MAKE" >&6; }
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4811 # Extract the first word of "gmake", so it can be a program name with args.
4812 set dummy gmake; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if ${ac_cv_path_MAKE+:} false; then :
4816 $as_echo_n "(cached) " >&6
4820 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4842 MAKE=$ac_cv_path_MAKE
4843 if test -n "$MAKE"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4845 $as_echo "$MAKE" >&6; }
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4853 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4854 if test -z "$makever"; then
4855 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
4858 # Extract the first word of "git", so it can be a program name with args.
4859 set dummy git; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if ${ac_cv_prog_GIT+:} false; then :
4863 $as_echo_n "(cached) " >&6
4865 if test -n "$GIT"; then
4866 ac_cv_prog_GIT="$GIT" # Let the user override the test.
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_GIT="yes"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4887 if test -n "$GIT"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4889 $as_echo "$GIT" >&6; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4898 # Check whether --enable-strict-dependencies was given.
4899 if test "${enable_strict_dependencies+set}" = set; then :
4900 enableval=$enable_strict_dependencies;
4904 # Check whether --enable-werror was given.
4905 if test "${enable_werror+set}" = set; then :
4906 enableval=$enable_werror; case "$enableval" in
4917 docdir='${datadir}/doc/freeradius'
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
4919 $as_echo_n "checking docdir... " >&6; }
4921 # Check whether --with-docdir was given.
4922 if test "${with_docdir+set}" = set; then :
4923 withval=$with_docdir; case "$withval" in
4929 [\\/$]* | ?:[\\/]* )
4933 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
4941 $as_echo "$docdir" >&6; }
4942 if test "x$docdir" = xno; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
4944 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
4947 logdir='${localstatedir}/log/radius'
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
4949 $as_echo_n "checking logdir... " >&6; }
4951 # Check whether --with-logdir was given.
4952 if test "${with_logdir+set}" = set; then :
4953 withval=$with_logdir; case "$withval" in
4955 as_fn_error $? "Need logdir" "$LINENO" 5
4959 [\\/$]* | ?:[\\/]* )
4963 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
4971 $as_echo "$logdir" >&6; }
4973 radacctdir='${logdir}/radacct'
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
4975 $as_echo_n "checking radacctdir... " >&6; }
4977 # Check whether --with-radacctdir was given.
4978 if test "${with_radacctdir+set}" = set; then :
4979 withval=$with_radacctdir; case "$withval" in
4981 as_fn_error $? "Need radacctdir" "$LINENO" 5
4985 [\\/$]* | ?:[\\/]* )
4986 radacctdir="$withval"
4989 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
4997 $as_echo "$radacctdir" >&6; }
4999 raddbdir='${sysconfdir}/raddb'
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5001 $as_echo_n "checking raddbdir... " >&6; }
5003 # Check whether --with-raddbdir was given.
5004 if test "${with_raddbdir+set}" = set; then :
5005 withval=$with_raddbdir; case "$withval" in
5007 as_fn_error $? "Need raddbdir" "$LINENO" 5
5011 [\\/$]* | ?:[\\/]* )
5015 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5023 $as_echo "$raddbdir" >&6; }
5025 WITH_ASCEND_BINARY=yes
5027 # Check whether --with-ascend-binary was given.
5028 if test "${with_ascend_binary+set}" = set; then :
5029 withval=$with_ascend_binary; case "$withval" in
5033 WITH_ASCEND_BINARY=no
5038 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5040 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5046 # Check whether --with-threads was given.
5047 if test "${with_threads+set}" = set; then :
5048 withval=$with_threads; case "$withval" in
5060 # Check whether --with-tcp was given.
5061 if test "${with_tcp+set}" = set; then :
5062 withval=$with_tcp; case "$withval" in
5071 if test "x$WITH_TCP" = "xyes"; then
5073 $as_echo "#define WITH_TCP 1" >>confdefs.h
5079 # Check whether --with-vmps was given.
5080 if test "${with_vmps+set}" = set; then :
5081 withval=$with_vmps; case "$withval" in
5090 if test "x$WITH_VMPS" = "xyes"; then
5092 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5098 # Check whether --with-dhcp was given.
5099 if test "${with_dhcp+set}" = set; then :
5100 withval=$with_dhcp; case "$withval" in
5109 if test "x$WITH_DHCP" = "xyes"; then
5111 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5117 # Check whether --with-static_modules was given.
5118 if test "${with_static_modules+set}" = set; then :
5119 withval=$with_static_modules;
5120 for i in $withval; do
5121 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5129 # Check whether --with-modules was given.
5130 if test "${with_modules+set}" = set; then :
5131 withval=$with_modules;
5132 for i in $withval; do
5133 MODULES="$MODULES $i"
5141 # Check whether --with-experimental-modules was given.
5142 if test "${with_experimental_modules+set}" = set; then :
5143 withval=$with_experimental_modules; case "$withval" in
5158 # Check whether --with-openssl was given.
5159 if test "${with_openssl+set}" = set; then :
5160 withval=$with_openssl; case "$withval" in
5172 OPENSSL_INCLUDE_DIR=
5174 # Check whether --with-openssl-includes was given.
5175 if test "${with_openssl_includes+set}" = set; then :
5176 withval=$with_openssl_includes; case "$withval" in
5177 *) OPENSSL_INCLUDE_DIR="$withval"
5186 # Check whether --with-openssl-libraries was given.
5187 if test "${with_openssl_libraries+set}" = set; then :
5188 withval=$with_openssl_libraries; case "$withval" in
5189 *) OPENSSL_LIB_DIR="$withval"
5198 # Check whether --with-rlm-FOO-lib-dir was given.
5199 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5200 withval=$with_rlm_FOO_lib_dir; case "$withval" in
5209 # Check whether --with-rlm-FOO-include-dir was given.
5210 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5211 withval=$with_rlm_FOO_include_dir; case "$withval" in
5221 # Check whether --with-udpfromto was given.
5222 if test "${with_udpfromto+set}" = set; then :
5223 withval=$with_udpfromto; case "$withval" in
5234 if test "x$WITH_UDPFROMTO" = "xyes"; then
5236 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5242 # Extract the first word of "perl", so it can be a program name with args.
5243 set dummy perl; ac_word=$2
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245 $as_echo_n "checking for $ac_word... " >&6; }
5246 if ${ac_cv_path_PERL+:} false; then :
5247 $as_echo_n "(cached) " >&6
5251 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5273 PERL=$ac_cv_path_PERL
5274 if test -n "$PERL"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5276 $as_echo "$PERL" >&6; }
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5283 if test "x$ac_cv_path_PERL" = "x"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5285 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5287 # Extract the first word of "snmpget", so it can be a program name with args.
5288 set dummy snmpget; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if ${ac_cv_path_SNMPGET+:} false; then :
5292 $as_echo_n "(cached) " >&6
5296 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 SNMPGET=$ac_cv_path_SNMPGET
5318 if test -n "$SNMPGET"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5320 $as_echo "$SNMPGET" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5327 if test "x$ac_cv_path_SNMPGET" = "x"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5329 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5332 # Extract the first word of "snmpwalk", so it can be a program name with args.
5333 set dummy snmpwalk; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_path_SNMPWALK+:} false; then :
5337 $as_echo_n "(cached) " >&6
5341 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 SNMPWALK=$ac_cv_path_SNMPWALK
5363 if test -n "$SNMPWALK"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5365 $as_echo "$SNMPWALK" >&6; }
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5372 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5374 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5377 # Extract the first word of "rusers", so it can be a program name with args.
5378 set dummy rusers; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_path_RUSERS+:} false; then :
5382 $as_echo_n "(cached) " >&6
5386 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5408 RUSERS=$ac_cv_path_RUSERS
5409 if test -n "$RUSERS"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5411 $as_echo "$RUSERS" >&6; }
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5419 missing_dir=`cd $ac_aux_dir && pwd`
5420 # expand $ac_aux_dir to an absolute path
5421 am_aux_dir=`cd $ac_aux_dir && pwd`
5423 if test x"${MISSING+set}" != xset; then
5426 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5428 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5431 # Use eval to expand $SHELL
5432 if eval "$MISSING --run true"; then
5433 am_missing_run="$MISSING --run "
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5437 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5441 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5444 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5447 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5450 # Extract the first word of "locate", so it can be a program name with args.
5451 set dummy locate; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_path_LOCATE+:} false; then :
5455 $as_echo_n "(cached) " >&6
5459 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 LOCATE=$ac_cv_path_LOCATE
5481 if test -n "$LOCATE"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5483 $as_echo "$LOCATE" >&6; }
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5490 # Extract the first word of "dirname", so it can be a program name with args.
5491 set dummy dirname; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_path_DIRNAME+:} false; then :
5495 $as_echo_n "(cached) " >&6
5499 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 DIRNAME=$ac_cv_path_DIRNAME
5521 if test -n "$DIRNAME"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5523 $as_echo "$DIRNAME" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5530 # Extract the first word of "grep", so it can be a program name with args.
5531 set dummy grep; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_path_GREP+:} false; then :
5535 $as_echo_n "(cached) " >&6
5539 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 GREP=$ac_cv_path_GREP
5561 if test -n "$GREP"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5563 $as_echo "$GREP" >&6; }
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5573 if test "x$WITH_THREADS" = "xyes"; then
5574 if test $ac_cv_prog_suncc = "yes"; then
5575 CFLAGS="$CFLAGS -mt"
5578 for ac_header in pthread.h
5580 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5581 if test "x$ac_cv_header_pthread_h" = xyes; then :
5582 cat >>confdefs.h <<_ACEOF
5583 #define HAVE_PTHREAD_H 1
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5594 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5595 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5596 $as_echo_n "(cached) " >&6
5598 ac_check_lib_save_LIBS=$LIBS
5599 LIBS="-lpthread $LIBS"
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5603 /* Override any GCC internal prototype to avoid an error.
5604 Use char because int might match the return type of a GCC
5605 builtin and then its argument prototype would still apply. */
5609 char pthread_create ();
5613 return pthread_create ();
5618 if ac_fn_c_try_link "$LINENO"; then :
5619 ac_cv_lib_pthread_pthread_create=yes
5621 ac_cv_lib_pthread_pthread_create=no
5623 rm -f core conftest.err conftest.$ac_objext \
5624 conftest$ac_exeext conftest.$ac_ext
5625 LIBS=$ac_check_lib_save_LIBS
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5628 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5629 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5631 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
5632 LIBS="-lpthread $LIBS"
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5637 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5638 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
5639 $as_echo_n "(cached) " >&6
5641 ac_check_lib_save_LIBS=$LIBS
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5646 /* Override any GCC internal prototype to avoid an error.
5647 Use char because int might match the return type of a GCC
5648 builtin and then its argument prototype would still apply. */
5652 char pthread_create ();
5656 return pthread_create ();
5661 if ac_fn_c_try_link "$LINENO"; then :
5662 ac_cv_lib_c_r_pthread_create=yes
5664 ac_cv_lib_c_r_pthread_create=no
5666 rm -f core conftest.err conftest.$ac_objext \
5667 conftest$ac_exeext conftest.$ac_ext
5668 LIBS=$ac_check_lib_save_LIBS
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
5671 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5672 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5673 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
5685 if test "x$WITH_THREADS" != "xyes"; then
5687 ac_cv_header_pthread_h="no"
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5692 $as_echo_n "checking for library containing sem_init... " >&6; }
5693 if ${ac_cv_search_sem_init+:} false; then :
5694 $as_echo_n "(cached) " >&6
5696 ac_func_search_save_LIBS=$LIBS
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5700 /* Override any GCC internal prototype to avoid an error.
5701 Use char because int might match the return type of a GCC
5702 builtin and then its argument prototype would still apply. */
5715 for ac_lib in '' pthread sem posix4 rt semaphore; do
5716 if test -z "$ac_lib"; then
5717 ac_res="none required"
5720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5722 if ac_fn_c_try_link "$LINENO"; then :
5723 ac_cv_search_sem_init=$ac_res
5725 rm -f core conftest.err conftest.$ac_objext \
5727 if ${ac_cv_search_sem_init+:} false; then :
5731 if ${ac_cv_search_sem_init+:} false; then :
5734 ac_cv_search_sem_init=no
5737 LIBS=$ac_func_search_save_LIBS
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5740 $as_echo "$ac_cv_search_sem_init" >&6; }
5741 ac_res=$ac_cv_search_sem_init
5742 if test "$ac_res" != no; then :
5743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5746 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
5752 if test "x$WITH_THREADS" = "xyes"; then
5754 $as_echo "#define WITH_THREADS 1" >>confdefs.h
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5759 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5760 if ${ac_cv_lib_dl_dlopen+:} false; then :
5761 $as_echo_n "(cached) " >&6
5763 ac_check_lib_save_LIBS=$LIBS
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5768 /* Override any GCC internal prototype to avoid an error.
5769 Use char because int might match the return type of a GCC
5770 builtin and then its argument prototype would still apply. */
5783 if ac_fn_c_try_link "$LINENO"; then :
5784 ac_cv_lib_dl_dlopen=yes
5786 ac_cv_lib_dl_dlopen=no
5788 rm -f core conftest.err conftest.$ac_objext \
5789 conftest$ac_exeext conftest.$ac_ext
5790 LIBS=$ac_check_lib_save_LIBS
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5793 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5794 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5795 cat >>confdefs.h <<_ACEOF
5796 #define HAVE_LIBDL 1
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
5805 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
5806 if ${ac_cv_lib_socket_getsockname+:} false; then :
5807 $as_echo_n "(cached) " >&6
5809 ac_check_lib_save_LIBS=$LIBS
5810 LIBS="-lsocket $LIBS"
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5814 /* Override any GCC internal prototype to avoid an error.
5815 Use char because int might match the return type of a GCC
5816 builtin and then its argument prototype would still apply. */
5820 char getsockname ();
5824 return getsockname ();
5829 if ac_fn_c_try_link "$LINENO"; then :
5830 ac_cv_lib_socket_getsockname=yes
5832 ac_cv_lib_socket_getsockname=no
5834 rm -f core conftest.err conftest.$ac_objext \
5835 conftest$ac_exeext conftest.$ac_ext
5836 LIBS=$ac_check_lib_save_LIBS
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
5839 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
5840 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
5841 cat >>confdefs.h <<_ACEOF
5842 #define HAVE_LIBSOCKET 1
5845 LIBS="-lsocket $LIBS"
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
5851 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
5852 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
5853 $as_echo_n "(cached) " >&6
5855 ac_check_lib_save_LIBS=$LIBS
5856 LIBS="-lresolv $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. */
5870 return inet_aton ();
5875 if ac_fn_c_try_link "$LINENO"; then :
5876 ac_cv_lib_resolv_inet_aton=yes
5878 ac_cv_lib_resolv_inet_aton=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_resolv_inet_aton" >&5
5885 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
5886 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
5887 cat >>confdefs.h <<_ACEOF
5888 #define HAVE_LIBRESOLV 1
5891 LIBS="-lresolv $LIBS"
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
5897 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
5898 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
5899 $as_echo_n "(cached) " >&6
5901 ac_check_lib_save_LIBS=$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. */
5916 return inet_ntoa ();
5921 if ac_fn_c_try_link "$LINENO"; then :
5922 ac_cv_lib_nsl_inet_ntoa=yes
5924 ac_cv_lib_nsl_inet_ntoa=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_nsl_inet_ntoa" >&5
5931 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
5932 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
5933 cat >>confdefs.h <<_ACEOF
5934 #define HAVE_LIBNSL 1
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
5942 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
5943 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
5944 $as_echo_n "(cached) " >&6
5946 ac_check_lib_save_LIBS=$LIBS
5947 LIBS="-lws2_32 $LIBS"
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5951 /* Override any GCC internal prototype to avoid an error.
5952 Use char because int might match the return type of a GCC
5953 builtin and then its argument prototype would still apply. */
5966 if ac_fn_c_try_link "$LINENO"; then :
5967 ac_cv_lib_ws2_32_htonl=yes
5969 ac_cv_lib_ws2_32_htonl=no
5971 rm -f core conftest.err conftest.$ac_objext \
5972 conftest$ac_exeext conftest.$ac_ext
5973 LIBS=$ac_check_lib_save_LIBS
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
5976 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
5977 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
5978 cat >>confdefs.h <<_ACEOF
5979 #define HAVE_LIBWS2_32 1
5982 LIBS="-lws2_32 $LIBS"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
5989 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
5990 if ${ac_cv_lib_pcap_pcap_open_live+:} 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. */
6004 char pcap_open_live ();
6008 return pcap_open_live ();
6013 if ac_fn_c_try_link "$LINENO"; then :
6014 ac_cv_lib_pcap_pcap_open_live=yes
6016 ac_cv_lib_pcap_pcap_open_live=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_pcap_pcap_open_live" >&5
6023 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
6024 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
6028 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
6034 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6042 $as_echo_n "checking for a readline compatible library... " >&6; }
6043 if ${vl_cv_lib_readline+:} false; then :
6044 $as_echo_n "(cached) " >&6
6048 for readline_lib in readline edit editline; do
6049 for termcap_lib in "" termcap curses ncurses; do
6050 if test -z "$termcap_lib"; then
6051 TRY_LIB="-l$readline_lib"
6053 TRY_LIB="-l$readline_lib -l$termcap_lib"
6055 LIBS="$ORIG_LIBS $TRY_LIB"
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6059 /* Override any GCC internal prototype to avoid an error.
6060 Use char because int might match the return type of a GCC
6061 builtin and then its argument prototype would still apply. */
6074 if ac_fn_c_try_link "$LINENO"; then :
6075 vl_cv_lib_readline="$TRY_LIB"
6077 rm -f core conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
6079 if test -n "$vl_cv_lib_readline"; then
6083 if test -n "$vl_cv_lib_readline"; then
6087 if test -z "$vl_cv_lib_readline"; then
6088 vl_cv_lib_readline="no"
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
6094 $as_echo "$vl_cv_lib_readline" >&6; }
6096 if test "$vl_cv_lib_readline" != "no"; then
6097 LIBREADLINE="$vl_cv_lib_readline"
6099 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
6101 for ac_header in readline.h readline/readline.h
6103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6104 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6105 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6106 cat >>confdefs.h <<_ACEOF
6107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6115 $as_echo_n "checking whether readline supports history... " >&6; }
6116 if ${vl_cv_lib_readline_history+:} false; then :
6117 $as_echo_n "(cached) " >&6
6120 vl_cv_lib_readline_history="no"
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6124 /* Override any GCC internal prototype to avoid an error.
6125 Use char because int might match the return type of a GCC
6126 builtin and then its argument prototype would still apply. */
6130 char add_history ();
6134 return add_history ();
6139 if ac_fn_c_try_link "$LINENO"; then :
6140 vl_cv_lib_readline_history="yes"
6142 rm -f core conftest.err conftest.$ac_objext \
6143 conftest$ac_exeext conftest.$ac_ext
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
6147 $as_echo "$vl_cv_lib_readline_history" >&6; }
6148 if test "$vl_cv_lib_readline_history" = "yes"; then
6150 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6152 for ac_header in history.h readline/history.h
6154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6155 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6156 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6157 cat >>confdefs.h <<_ACEOF
6158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6173 CFLAGS="$CFLAGS -D_ALL_SOURCE"
6176 CFLAGS="$CFLAGS -DDARWIN"
6177 LIBS="-framework DirectoryService $LIBS"
6182 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6183 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6185 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6186 if eval \${$as_ac_Header+:} false; then :
6187 $as_echo_n "(cached) " >&6
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 #include <sys/types.h>
6203 if ac_fn_c_try_compile "$LINENO"; then :
6204 eval "$as_ac_Header=yes"
6206 eval "$as_ac_Header=no"
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210 eval ac_res=\$$as_ac_Header
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6212 $as_echo "$ac_res" >&6; }
6213 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6214 cat >>confdefs.h <<_ACEOF
6215 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6218 ac_header_dirent=$ac_hdr; break
6222 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6223 if test $ac_header_dirent = dirent.h; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6225 $as_echo_n "checking for library containing opendir... " >&6; }
6226 if ${ac_cv_search_opendir+:} false; then :
6227 $as_echo_n "(cached) " >&6
6229 ac_func_search_save_LIBS=$LIBS
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6233 /* Override any GCC internal prototype to avoid an error.
6234 Use char because int might match the return type of a GCC
6235 builtin and then its argument prototype would still apply. */
6248 for ac_lib in '' dir; do
6249 if test -z "$ac_lib"; then
6250 ac_res="none required"
6253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6255 if ac_fn_c_try_link "$LINENO"; then :
6256 ac_cv_search_opendir=$ac_res
6258 rm -f core conftest.err conftest.$ac_objext \
6260 if ${ac_cv_search_opendir+:} false; then :
6264 if ${ac_cv_search_opendir+:} false; then :
6267 ac_cv_search_opendir=no
6270 LIBS=$ac_func_search_save_LIBS
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6273 $as_echo "$ac_cv_search_opendir" >&6; }
6274 ac_res=$ac_cv_search_opendir
6275 if test "$ac_res" != no; then :
6276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6282 $as_echo_n "checking for library containing opendir... " >&6; }
6283 if ${ac_cv_search_opendir+:} false; then :
6284 $as_echo_n "(cached) " >&6
6286 ac_func_search_save_LIBS=$LIBS
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6290 /* Override any GCC internal prototype to avoid an error.
6291 Use char because int might match the return type of a GCC
6292 builtin and then its argument prototype would still apply. */
6305 for ac_lib in '' x; do
6306 if test -z "$ac_lib"; then
6307 ac_res="none required"
6310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6312 if ac_fn_c_try_link "$LINENO"; then :
6313 ac_cv_search_opendir=$ac_res
6315 rm -f core conftest.err conftest.$ac_objext \
6317 if ${ac_cv_search_opendir+:} false; then :
6321 if ${ac_cv_search_opendir+:} false; then :
6324 ac_cv_search_opendir=no
6327 LIBS=$ac_func_search_save_LIBS
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6330 $as_echo "$ac_cv_search_opendir" >&6; }
6331 ac_res=$ac_cv_search_opendir
6332 if test "$ac_res" != no; then :
6333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6340 $as_echo_n "checking for ANSI C header files... " >&6; }
6341 if ${ac_cv_header_stdc+:} false; then :
6342 $as_echo_n "(cached) " >&6
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6359 if ac_fn_c_try_compile "$LINENO"; then :
6360 ac_cv_header_stdc=yes
6362 ac_cv_header_stdc=no
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 if test $ac_cv_header_stdc = yes; then
6367 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6374 $EGREP "memchr" >/dev/null 2>&1; then :
6377 ac_cv_header_stdc=no
6383 if test $ac_cv_header_stdc = yes; then
6384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6391 $EGREP "free" >/dev/null 2>&1; then :
6394 ac_cv_header_stdc=no
6400 if test $ac_cv_header_stdc = yes; then
6401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6402 if test "$cross_compiling" = yes; then :
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6409 #if ((' ' & 0x0FF) == 0x020)
6410 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6411 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6413 # define ISLOWER(c) \
6414 (('a' <= (c) && (c) <= 'i') \
6415 || ('j' <= (c) && (c) <= 'r') \
6416 || ('s' <= (c) && (c) <= 'z'))
6417 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6420 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6425 for (i = 0; i < 256; i++)
6426 if (XOR (islower (i), ISLOWER (i))
6427 || toupper (i) != TOUPPER (i))
6432 if ac_fn_c_try_run "$LINENO"; then :
6435 ac_cv_header_stdc=no
6437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6438 conftest.$ac_objext conftest.beam conftest.$ac_ext
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6444 $as_echo "$ac_cv_header_stdc" >&6; }
6445 if test $ac_cv_header_stdc = yes; then
6447 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6452 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6453 if ${ac_cv_header_time+:} false; then :
6454 $as_echo_n "(cached) " >&6
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6458 #include <sys/types.h>
6459 #include <sys/time.h>
6465 if ((struct tm *) 0)
6471 if ac_fn_c_try_compile "$LINENO"; then :
6472 ac_cv_header_time=yes
6474 ac_cv_header_time=no
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6479 $as_echo "$ac_cv_header_time" >&6; }
6480 if test $ac_cv_header_time = yes; then
6482 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6487 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6488 if ${ac_cv_header_sys_wait_h+:} false; then :
6489 $as_echo_n "(cached) " >&6
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6493 #include <sys/types.h>
6494 #include <sys/wait.h>
6496 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6499 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6507 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6512 if ac_fn_c_try_compile "$LINENO"; then :
6513 ac_cv_header_sys_wait_h=yes
6515 ac_cv_header_sys_wait_h=no
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6520 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6521 if test $ac_cv_header_sys_wait_h = yes; then
6523 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6571 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6572 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6573 cat >>confdefs.h <<_ACEOF
6574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6582 for ac_header in net/if.h
6584 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
6585 # include <sys/socket.h>
6589 if test "x$ac_cv_header_net_if_h" = xyes; then :
6590 cat >>confdefs.h <<_ACEOF
6591 #define HAVE_NET_IF_H 1
6600 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
6601 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
6603 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
6608 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
6610 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
6615 LIBS="$LIBS -lpcreposix"
6617 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
6618 if test "x$ac_cv_header_regex_h" = xyes; then :
6620 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
6625 if test "x$ac_cv_header_regex_h" = "xyes"; then
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6639 $EGREP "yes" >/dev/null 2>&1; then :
6641 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
6654 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6657 $as_echo "#define OSFC2 /**/" >>confdefs.h
6661 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6664 $as_echo "#define OSFSIA /**/" >>confdefs.h
6668 if test "x$WITH_OPENSSL" = xyes; then
6670 old_LDFLAGS="$LDFLAGS"
6672 OPENSSL_INCLUDE="-DNO_OPENSSL"
6674 if test "x$OPENSSL_LIB_DIR" != "x"; then
6675 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
6679 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
6680 if ${ac_cv_lib_crypto_DH_new+:} false; then :
6681 $as_echo_n "(cached) " >&6
6683 ac_check_lib_save_LIBS=$LIBS
6684 LIBS="-lcrypto $LIBS"
6685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h. */
6688 /* Override any GCC internal prototype to avoid an error.
6689 Use char because int might match the return type of a GCC
6690 builtin and then its argument prototype would still apply. */
6703 if ac_fn_c_try_link "$LINENO"; then :
6704 ac_cv_lib_crypto_DH_new=yes
6706 ac_cv_lib_crypto_DH_new=no
6708 rm -f core conftest.err conftest.$ac_objext \
6709 conftest$ac_exeext conftest.$ac_ext
6710 LIBS=$ac_check_lib_save_LIBS
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
6713 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
6714 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
6716 LIBS="-lcrypto $LIBS"
6718 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
6721 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
6722 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
6723 $as_echo_n "(cached) " >&6
6725 ac_check_lib_save_LIBS=$LIBS
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6730 /* Override any GCC internal prototype to avoid an error.
6731 Use char because int might match the return type of a GCC
6732 builtin and then its argument prototype would still apply. */
6745 if ac_fn_c_try_link "$LINENO"; then :
6746 ac_cv_lib_ssl_SSL_new=yes
6748 ac_cv_lib_ssl_SSL_new=no
6750 rm -f core conftest.err conftest.$ac_objext \
6751 conftest$ac_exeext conftest.$ac_ext
6752 LIBS=$ac_check_lib_save_LIBS
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
6755 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
6756 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
6759 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
6761 if test "x$OPENSSL_LIB_DIR" != "x"; then
6762 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
6764 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
6768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6770 as_fn_error $? "failed linking to libssl
6771 See \`config.log' for more details" "$LINENO" 5; }
6780 old_CPPFLAGS=$CPPFLAGS
6781 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6782 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
6785 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
6797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6798 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6799 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6800 cat >>confdefs.h <<_ACEOF
6801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6808 as_fn_error $? "failed locating OpenSSL headers
6809 See \`config.log' for more details" "$LINENO" 5; }
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
6818 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6821 #include <openssl/crypto.h>
6822 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
6827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6828 $EGREP "yes" >/dev/null 2>&1; then :
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6831 $as_echo "yes" >&6; }
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6839 as_fn_error $? "OpenSSL version too old
6840 See \`config.log' for more details" "$LINENO" 5; }
6847 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6848 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
6850 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
6854 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
6855 if test "$cross_compiling" = yes; then :
6856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6858 as_fn_error $? "cannot run test program while cross compiling
6859 See \`config.log' for more details" "$LINENO" 5; }
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6865 #include <openssl/opensslv.h>
6866 #include <openssl/crypto.h>
6872 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
6875 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
6884 if ac_fn_c_try_run "$LINENO"; then :
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6887 $as_echo "yes" >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6895 as_fn_error $? "OpenSSL library version does not match header version
6896 See \`config.log' for more details" "$LINENO" 5; }
6900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6901 conftest.$ac_objext conftest.beam conftest.$ac_ext
6905 CPPFLAGS=$old_CPPFLAGS
6907 LDFLAGS="$old_LDFLAGS"
6914 if test "x$PCAP_LIBS" = x; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
6916 $as_echo "$as_me: skipping test for pcap.h." >&6;}
6918 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
6919 if test "x$ac_cv_header_pcap_h" = xyes; then :
6922 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
6926 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
6927 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
6928 $as_echo_n "(cached) " >&6
6930 ac_check_lib_save_LIBS=$LIBS
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6935 /* Override any GCC internal prototype to avoid an error.
6936 Use char because int might match the return type of a GCC
6937 builtin and then its argument prototype would still apply. */
6941 char pcap_fopen_offline ();
6945 return pcap_fopen_offline ();
6950 if ac_fn_c_try_link "$LINENO"; then :
6951 ac_cv_lib_pcap_pcap_fopen_offline=yes
6953 ac_cv_lib_pcap_pcap_fopen_offline=no
6955 rm -f core conftest.err conftest.$ac_objext \
6956 conftest$ac_exeext conftest.$ac_ext
6957 LIBS=$ac_check_lib_save_LIBS
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
6960 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
6961 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
6964 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
6972 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
6973 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
6974 $as_echo_n "(cached) " >&6
6976 ac_check_lib_save_LIBS=$LIBS
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6981 /* Override any GCC internal prototype to avoid an error.
6982 Use char because int might match the return type of a GCC
6983 builtin and then its argument prototype would still apply. */
6987 char pcap_dump_fopen ();
6991 return pcap_dump_fopen ();
6996 if ac_fn_c_try_link "$LINENO"; then :
6997 ac_cv_lib_pcap_pcap_dump_fopen=yes
6999 ac_cv_lib_pcap_pcap_dump_fopen=no
7001 rm -f core conftest.err conftest.$ac_objext \
7002 conftest$ac_exeext conftest.$ac_ext
7003 LIBS=$ac_check_lib_save_LIBS
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
7006 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
7007 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
7010 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
7021 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
7031 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7032 if test "x$ac_cv_type_off_t" = xyes; then :
7036 cat >>confdefs.h <<_ACEOF
7037 #define off_t long int
7042 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7043 if test "x$ac_cv_type_pid_t" = xyes; then :
7047 cat >>confdefs.h <<_ACEOF
7053 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7054 if test "x$ac_cv_type_size_t" = xyes; then :
7058 cat >>confdefs.h <<_ACEOF
7059 #define size_t unsigned int
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7065 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7066 if ${ac_cv_type_uid_t+:} false; then :
7067 $as_echo_n "(cached) " >&6
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7071 #include <sys/types.h>
7074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7075 $EGREP "uid_t" >/dev/null 2>&1; then :
7076 ac_cv_type_uid_t=yes
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7084 $as_echo "$ac_cv_type_uid_t" >&6; }
7085 if test $ac_cv_type_uid_t = no; then
7087 $as_echo "#define uid_t int" >>confdefs.h
7090 $as_echo "#define gid_t int" >>confdefs.h
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7097 $as_echo_n "checking for socklen_t... " >&6; }
7098 if ${ac_cv_type_socklen_t+:} false; then :
7099 $as_echo_n "(cached) " >&6
7101 ac_cv_type_socklen_t=no
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7104 #ifdef HAVE_SYS_TYPES_H
7105 # include <sys/types.h>
7108 #ifdef HAVE_SYS_SOCKET_H
7109 # include <sys/socket.h>
7120 if ac_fn_c_try_compile "$LINENO"; then :
7121 ac_cv_type_socklen_t=yes
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7128 $as_echo "$ac_cv_type_socklen_t" >&6; }
7130 if test "$ac_cv_type_socklen_t" != "yes"; then
7132 $as_echo "#define socklen_t int" >>confdefs.h
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
7139 $as_echo_n "checking for uint8_t... " >&6; }
7140 if ${ac_cv_type_uint8_t+:} false; then :
7141 $as_echo_n "(cached) " >&6
7143 ac_cv_type_uint8_t=no
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 #ifdef HAVE_INTTYPES_H
7147 # include <inttypes.h>
7150 #ifdef HAVE_STDINT_H
7151 # include <stdint.h>
7162 if ac_fn_c_try_compile "$LINENO"; then :
7163 ac_cv_type_uint8_t=yes
7165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
7170 $as_echo "$ac_cv_type_uint8_t" >&6; }
7172 if test "$ac_cv_type_uint8_t" != "yes"; then
7174 $as_echo "#define uint8_t unsigned char" >>confdefs.h
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
7181 $as_echo_n "checking for uint16_t... " >&6; }
7182 if ${ac_cv_type_uint16_t+:} false; then :
7183 $as_echo_n "(cached) " >&6
7185 ac_cv_type_uint16_t=no
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7188 #ifdef HAVE_INTTYPES_H
7189 # include <inttypes.h>
7192 #ifdef HAVE_STDINT_H
7193 # include <stdint.h>
7204 if ac_fn_c_try_compile "$LINENO"; then :
7205 ac_cv_type_uint16_t=yes
7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
7212 $as_echo "$ac_cv_type_uint16_t" >&6; }
7214 if test "$ac_cv_type_uint16_t" != "yes"; then
7216 $as_echo "#define uint16_t unsigned short" >>confdefs.h
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
7223 $as_echo_n "checking for uint32_t... " >&6; }
7224 if ${ac_cv_type_uint32_t+:} false; then :
7225 $as_echo_n "(cached) " >&6
7227 ac_cv_type_uint32_t=no
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #ifdef HAVE_INTTYPES_H
7231 # include <inttypes.h>
7234 #ifdef HAVE_STDINT_H
7235 # include <stdint.h>
7246 if ac_fn_c_try_compile "$LINENO"; then :
7247 ac_cv_type_uint32_t=yes
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
7254 $as_echo "$ac_cv_type_uint32_t" >&6; }
7256 if test "$ac_cv_type_uint32_t" != "yes"; then
7258 $as_echo "#define uint32_t unsigned int" >>confdefs.h
7263 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
7264 #ifdef HAVE_NETINET_IN_H
7265 # include <netinet/in.h>
7270 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
7272 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7277 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7278 #ifdef HAVE_NETINET_IN_H
7279 # include <netinet/in.h>
7282 #ifdef HAVE_SYS_SOCKET_H
7283 # include <sys/socket.h>
7287 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7289 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
7294 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7295 #ifdef HAVE_NETINET_IN_H
7296 # include <netinet/in.h>
7300 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7302 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7307 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
7308 #ifdef HAVE_SYS_TYPES_H
7309 # include <sys/types.h>
7312 #ifdef HAVE_SYS_SOCKET_H
7313 # include <sys/socket.h>
7322 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
7324 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7364 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7365 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7366 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7367 cat >>confdefs.h <<_ACEOF
7368 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7376 $as_echo_n "checking return type of signal handlers... " >&6; }
7377 if ${ac_cv_type_signal+:} false; then :
7378 $as_echo_n "(cached) " >&6
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7382 #include <sys/types.h>
7388 return *(signal (0, 0)) (0) == 1;
7393 if ac_fn_c_try_compile "$LINENO"; then :
7394 ac_cv_type_signal=int
7396 ac_cv_type_signal=void
7398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7401 $as_echo "$ac_cv_type_signal" >&6; }
7403 cat >>confdefs.h <<_ACEOF
7404 #define RETSIGTYPE $ac_cv_type_signal
7409 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7412 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7419 #ifdef HAVE_STDDEF_H
7423 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7429 int foo = offsetof(struct utmpx, ut_xtime)
7434 if ac_fn_c_try_compile "$LINENO"; then :
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7442 if test "x$has_element" != "x"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7444 $as_echo "yes" >&6; }
7445 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7449 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7452 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
7454 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7461 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7467 #include <netinet/in.h>
7468 #ifdef HAVE_STDDEF_H
7472 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7478 int foo = offsetof(struct in_pktinfo, ipi_addr)
7483 if ac_fn_c_try_compile "$LINENO"; then :
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7491 if test "x$has_element" != "x"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7493 $as_echo "yes" >&6; }
7494 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7498 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7501 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
7503 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7509 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7515 #include <netinet/in.h>
7516 #ifdef HAVE_STDDEF_H
7520 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7526 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7531 if ac_fn_c_try_compile "$LINENO"; then :
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7539 if test "x$has_element" != "x"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7541 $as_echo "yes" >&6; }
7542 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7546 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
7549 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
7551 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7557 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7558 if ${ac_cv_c_const+:} false; then :
7559 $as_echo_n "(cached) " >&6
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7569 /* Ultrix mips cc rejects this sort of thing. */
7570 typedef int charset[2];
7571 const charset cs = { 0, 0 };
7572 /* SunOS 4.1.1 cc rejects this. */
7573 char const *const *pcpcc;
7575 /* NEC SVR4.0.2 mips cc rejects this. */
7576 struct point {int x, y;};
7577 static struct point const zero = {0,0};
7578 /* AIX XL C 1.02.0.0 rejects this.
7579 It does not let you subtract one const X* pointer from another in
7580 an arm of an if-expression whose if-part is not a constant
7582 const char *g = "string";
7583 pcpcc = &g + (g ? g-g : 0);
7584 /* HPUX 7.0 cc rejects these. */
7586 ppc = (char**) pcpcc;
7587 pcpcc = (char const *const *) ppc;
7588 { /* SCO 3.2v4 cc rejects this sort of thing. */
7591 char const *s = 0 ? (char *) 0 : (char const *) 0;
7596 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7598 const int *foo = &x[0];
7601 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7602 typedef const int *iptr;
7606 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7607 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7608 struct s { int j; const int *ap[3]; } bx;
7609 struct s *b = &bx; b->j = 5;
7611 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7615 return !cs[0] && !zero.x;
7622 if ac_fn_c_try_compile "$LINENO"; then :
7627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7630 $as_echo "$ac_cv_c_const" >&6; }
7631 if test $ac_cv_c_const = no; then
7633 $as_echo "#define const /**/" >>confdefs.h
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
7639 $as_echo_n "checking type of OS... " >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
7642 $as_echo "$OS" >&6; }
7643 if test "$OS" = "OS/2"; then
7650 if test "x$developer" = "xyes"; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
7652 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
7656 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
7657 if ${ax_cv_wdocumentation_flag+:} false; then :
7658 $as_echo_n "(cached) " >&6
7662 CFLAGS_SAVED=$CFLAGS
7663 CFLAGS="$CFLAGS -Werror -Wdocumentation"
7666 ac_cpp='$CPP $CPPFLAGS'
7667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7682 if ac_fn_c_try_compile "$LINENO"; then :
7683 ax_cv_wdocumentation_flag="yes"
7685 ax_cv_wdocumentation_flag="no"
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 ac_cpp='$CPP $CPPFLAGS'
7690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7695 CFLAGS="$CFLAGS_SAVED"
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_wdocumentation_flag" >&5
7699 $as_echo "$ax_cv_wdocumentation_flag" >&6; }
7701 if test "x$ax_cv_wdocumentation_flag" = "xyes"; then
7702 devflags="-Wdocumentation"
7705 if test "x$GCC" = "xyes"; then
7706 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"
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
7711 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
7713 CFLAGS="$CFLAGS $devflags"
7714 if test "x$EXPERIMENTAL" != "xno"; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
7716 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
7721 CFLAGS="$CFLAGS -DNDEBUG"
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
7724 $as_echo "no." >&6; }
7729 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
7730 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
7732 cat >>confdefs.h <<_ACEOF
7733 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
7740 $as_echo_n "checking for TLS... " >&6; }
7741 if test "$cross_compiling" = yes; then :
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h. */
7746 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
7748 if ac_fn_c_try_run "$LINENO"; then :
7753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7754 conftest.$ac_objext conftest.beam conftest.$ac_ext
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
7758 $as_echo "$have_tls" >&6; }
7759 if test "$have_tls" = "yes"; then
7761 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
7769 # Check whether --with-talloc-include-dir was given.
7770 if test "${with_talloc_include_dir+set}" = set; then :
7771 withval=$with_talloc_include_dir; case "$withval" in
7773 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
7778 talloc_include_dir="$withval"
7784 smart_try_dir="$talloc_include_dir"
7787 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7788 old_CFLAGS="$CFLAGS"
7792 if test "x$smart_try_dir" != "x"; then
7793 for try in $smart_try_dir; do
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7795 $as_echo_n "checking for talloc.h in $try... " >&6; }
7796 CFLAGS="$old_CFLAGS -isystem $try"
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7809 if ac_fn_c_try_compile "$LINENO"; then :
7811 smart_include="-isystem $try"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7813 $as_echo "yes" >&6; }
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 CFLAGS="$old_CFLAGS"
7828 if test "x$smart_include" = "x"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7830 $as_echo_n "checking for talloc.h... " >&6; }
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7843 if ac_fn_c_try_compile "$LINENO"; then :
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7847 $as_echo "yes" >&6; }
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 $as_echo "no" >&6; }
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 if test "x$smart_include" = "x"; then
7863 if test "x$LOCATE" != "x"; then
7867 for x in `${LOCATE} $file 2>/dev/null`; do
7868 base=`echo $x | sed "s%/${file}%%"`
7869 if test "x$x" = "x$base"; then
7873 dir=`${DIRNAME} $x 2>/dev/null`
7874 exclude=`echo ${dir} | ${GREP} /home`
7875 if test "x$exclude" != "x"; then
7879 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7880 if test "x$already" = "x"; then
7886 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7888 for try in $smart_include_dir /usr/local/include /opt/include; do
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7890 $as_echo_n "checking for talloc.h in $try... " >&6; }
7891 CFLAGS="$old_CFLAGS -isystem $try"
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7904 if ac_fn_c_try_compile "$LINENO"; then :
7906 smart_include="-isystem $try"
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7908 $as_echo "yes" >&6; }
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920 CFLAGS="$old_CFLAGS"
7923 if test "x$smart_include" != "x"; then
7924 eval "ac_cv_header_$ac_safe=yes"
7925 CFLAGS="$old_CFLAGS $smart_include"
7926 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
7929 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7931 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7932 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7934 INCLUDE="${SMART_CFLAGS} ${INCLUDE}"
7935 LIBS="-ltalloc ${LIBS}"
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7939 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7940 if ${ac_cv_lib_crypt_crypt+:} false; then :
7941 $as_echo_n "(cached) " >&6
7943 ac_check_lib_save_LIBS=$LIBS
7944 LIBS="-lcrypt $LIBS"
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7948 /* Override any GCC internal prototype to avoid an error.
7949 Use char because int might match the return type of a GCC
7950 builtin and then its argument prototype would still apply. */
7963 if ac_fn_c_try_link "$LINENO"; then :
7964 ac_cv_lib_crypt_crypt=yes
7966 ac_cv_lib_crypt_crypt=no
7968 rm -f core conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970 LIBS=$ac_check_lib_save_LIBS
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7973 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7974 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
7980 if test "$CRYPTLIB" != ""; then
7982 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
7985 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
7986 if test "x$ac_cv_func_crypt" = xyes; then :
7988 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
7995 $as_echo_n "checking for setkey in -lcipher... " >&6; }
7996 if ${ac_cv_lib_cipher_setkey+:} false; then :
7997 $as_echo_n "(cached) " >&6
7999 ac_check_lib_save_LIBS=$LIBS
8000 LIBS="-lcipher $LIBS"
8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h. */
8004 /* Override any GCC internal prototype to avoid an error.
8005 Use char because int might match the return type of a GCC
8006 builtin and then its argument prototype would still apply. */
8019 if ac_fn_c_try_link "$LINENO"; then :
8020 ac_cv_lib_cipher_setkey=yes
8022 ac_cv_lib_cipher_setkey=no
8024 rm -f core conftest.err conftest.$ac_objext \
8025 conftest$ac_exeext conftest.$ac_ext
8026 LIBS=$ac_check_lib_save_LIBS
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
8029 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
8030 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
8031 CRYPTLIB="${CRYPTLIB} -lcipher"
8038 $as_echo "#define GNUSTYLE 1" >>confdefs.h
8042 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
8046 $as_echo "#define BSDSTYLE 3" >>confdefs.h
8049 gethostbyaddrrstyle=""
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
8051 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
8054 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
8060 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
8066 cat >>confdefs.h <<_ACEOF
8067 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
8069 if test $ac_have_decl = 1; then :
8074 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8076 gethostbyaddrrstyle=BSD
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
8078 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
8085 if test "x$gethostbyaddrrstyle" = "x"; then
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8095 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
8100 if ac_fn_c_try_link "$LINENO"; then :
8103 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
8105 gethostbyaddrrstyle=GNU
8109 rm -f core conftest.err conftest.$ac_objext \
8110 conftest$ac_exeext conftest.$ac_ext
8113 if test "x$gethostbyaddrrstyle" = "x"; then
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8123 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
8128 if ac_fn_c_try_link "$LINENO"; then :
8131 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
8133 gethostbyaddrrstyle=SYSV
8137 rm -f core conftest.err conftest.$ac_objext \
8138 conftest$ac_exeext conftest.$ac_ext
8142 if test "x$gethostbyaddrrstyle" = "x"; then
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8152 gethostbyaddr(NULL, 0, 0)
8157 if ac_fn_c_try_link "$LINENO"; then :
8160 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8162 gethostbyaddrrstyle=BSD
8166 rm -f core conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8170 if test "x$gethostbyaddrrstyle" = "x"; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8172 $as_echo "none! It must not exist, here." >&6; }
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
8175 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
8178 if test "x$gethostbyaddrrstyle" = "xBSD"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
8180 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
8183 gethostbynamerstyle=""
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
8185 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187 /* end confdefs.h. */
8195 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
8200 if ac_fn_c_try_link "$LINENO"; then :
8203 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
8205 gethostbynamerstyle=GNU
8209 rm -f core conftest.err conftest.$ac_objext \
8210 conftest$ac_exeext conftest.$ac_ext
8212 if test "x$gethostbynamerstyle" = "x"; then
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8222 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
8227 if ac_fn_c_try_link "$LINENO"; then :
8230 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
8232 gethostbynamerstyle=SYSV
8236 rm -f core conftest.err conftest.$ac_objext \
8237 conftest$ac_exeext conftest.$ac_ext
8240 if test "x$gethostbynamerstyle" = "x"; then
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8255 if ac_fn_c_try_link "$LINENO"; then :
8258 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
8260 gethostbynamerstyle=BSD
8264 rm -f core conftest.err conftest.$ac_objext \
8265 conftest$ac_exeext conftest.$ac_ext
8268 if test "x$gethostbynamerstyle" = "x"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8270 $as_echo "none! It must not exist, here." >&6; }
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
8273 $as_echo "${gethostbynamerstyle}-style" >&6; }
8276 if test "x$gethostbynamerstyle" = "xBSD"; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
8278 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
8282 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
8285 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
8289 $as_echo_n "checking ctime_r() syntax... " >&6; }
8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8298 ctime_r(NULL, NULL, 0)
8303 if ac_fn_c_try_link "$LINENO"; then :
8306 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
8308 ctimerstyle="SOLARIS"
8312 rm -f core conftest.err conftest.$ac_objext \
8313 conftest$ac_exeext conftest.$ac_ext
8315 if test "x$ctimerstyle" = "x"; then
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8329 if ac_fn_c_try_link "$LINENO"; then :
8332 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
8338 rm -f core conftest.err conftest.$ac_objext \
8339 conftest$ac_exeext conftest.$ac_ext
8342 if test "x$ctimerstyle" = "x"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8344 $as_echo "none! It must not exist, here." >&6; }
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
8347 $as_echo "${ctimerstyle}-style" >&6; }
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
8357 $as_echo "top_builddir=$top_builddir" >&6; }
8362 if test "x$EXPERIMENTAL" = "xyes"; then
8363 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
8364 MODULES="$MODULES $foo"
8367 for foo in `cat "${srcdir}"/src/modules/stable`; do
8368 MODULES="$MODULES $foo"
8373 for bar in $MODULES; do
8374 if test -f "${srcdir}"/src/modules/$bar/configure; then
8375 mysubdirs="$mysubdirs src/modules/$bar"
8381 subdirs="$subdirs $mysubdirs"
8385 if test "x$werror" == "xyes"; then
8386 CFLAGS="-Werror $CFLAGS"
8389 ac_config_commands="$ac_config_commands stamp-h"
8391 ac_config_commands="$ac_config_commands build-radpaths-h"
8393 ac_config_commands="$ac_config_commands main-chmod"
8395 ac_config_commands="$ac_config_commands scripts-chmod"
8401 USE_SHARED_LIBS=$enable_shared
8403 USE_STATIC_LIBS=$enable_static
8408 unset ac_cv_env_LIBS_set
8409 unset ac_cv_env_LIBS_value
8411 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"
8413 cat >confcache <<\_ACEOF
8414 # This file is a shell script that caches the results of configure
8415 # tests run on this system so they can be shared between configure
8416 # scripts and configure runs, see configure's option --config-cache.
8417 # It is not useful on other systems. If it contains results you don't
8418 # want to keep, you may remove or edit it.
8420 # config.status only pays attention to the cache file if you give it
8421 # the --recheck option to rerun configure.
8423 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8424 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8429 # The following way of writing the cache mishandles newlines in values,
8430 # but we know of no workaround that is simple, portable, and efficient.
8431 # So, we kill variables containing newlines.
8432 # Ultrix sh set writes to stderr and can't be redirected directly,
8433 # and sets the high bit in the cache file unless we assign to the vars.
8435 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8436 eval ac_val=\$$ac_var
8440 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8441 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8444 _ | IFS | as_nl) ;; #(
8445 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8446 *) { eval $ac_var=; unset $ac_var;} ;;
8452 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8453 *${as_nl}ac_space=\ *)
8454 # `set' does not quote correctly, so add quotes: double-quote
8455 # substitution turns \\\\ into \\, and sed turns \\ into \.
8458 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8461 # `set' quotes correctly as required by POSIX, so do not add quotes.
8462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8471 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8473 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8475 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8476 if test -w "$cache_file"; then
8477 if test "x$cache_file" != "x/dev/null"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8479 $as_echo "$as_me: updating cache $cache_file" >&6;}
8480 if test ! -f "$cache_file" || test -h "$cache_file"; then
8481 cat confcache >"$cache_file"
8483 case $cache_file in #(
8485 mv -f confcache "$cache_file"$$ &&
8486 mv -f "$cache_file"$$ "$cache_file" ;; #(
8488 mv -f confcache "$cache_file" ;;
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8494 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8499 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8500 # Let make expand exec_prefix.
8501 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8503 DEFS=-DHAVE_CONFIG_H
8508 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8509 # 1. Remove the extension, and $U if already installed.
8510 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8511 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8512 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8513 # will be set to the directory where LIBOBJS objects are built.
8514 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8515 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8519 LTLIBOBJS=$ac_ltlibobjs
8524 : "${CONFIG_STATUS=./config.status}"
8526 ac_clean_files_save=$ac_clean_files
8527 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8529 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8531 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8533 # Generated by $as_me.
8534 # Run this file to recreate the current configuration.
8535 # Compiler output produced by configure, useful for debugging
8536 # configure, is in config.log if it exists.
8542 SHELL=\${CONFIG_SHELL-$SHELL}
8545 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8546 ## -------------------- ##
8547 ## M4sh Initialization. ##
8548 ## -------------------- ##
8550 # Be more Bourne compatible
8551 DUALCASE=1; export DUALCASE # for MKS sh
8552 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8555 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8556 # is contrary to our usage. Disable this feature.
8557 alias -g '${1+"$@"}'='"$@"'
8558 setopt NO_GLOB_SUBST
8560 case `(set -o) 2>/dev/null` in #(
8572 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8573 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8574 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8575 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8576 # Prefer a ksh shell builtin over an external printf program on Solaris,
8577 # but without wasting forks for bash or zsh.
8578 if test -z "$BASH_VERSION$ZSH_VERSION" \
8579 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8580 as_echo='print -r --'
8581 as_echo_n='print -rn --'
8582 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8583 as_echo='printf %s\n'
8584 as_echo_n='printf %s'
8586 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8587 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8588 as_echo_n='/usr/ucb/echo -n'
8590 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8591 as_echo_n_body='eval
8595 expr "X$arg" : "X\\(.*\\)$as_nl";
8596 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8598 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8600 export as_echo_n_body
8601 as_echo_n='sh -c $as_echo_n_body as_echo'
8604 as_echo='sh -c $as_echo_body as_echo'
8607 # The user is always right.
8608 if test "${PATH_SEPARATOR+set}" != set; then
8610 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8611 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8618 # We need space, tab and new line, in precisely that order. Quoting is
8619 # there to prevent editors from complaining about space-tab.
8620 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8621 # splitting by setting IFS to empty value.)
8624 # Find who we are. Look in the path if we contain no directory separator.
8627 *[\\/]* ) as_myself=$0 ;;
8628 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632 test -z "$as_dir" && as_dir=.
8633 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8639 # We did not find ourselves, most probably we were run as `sh COMMAND'
8640 # in which case we are not to be found in the path.
8641 if test "x$as_myself" = x; then
8644 if test ! -f "$as_myself"; then
8645 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8649 # Unset variables that we do not need and which cause bugs (e.g. in
8650 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8651 # suppresses any "Segmentation fault" message there. '((' could
8652 # trigger a bug in pdksh 5.2.14.
8653 for as_var in BASH_ENV ENV MAIL MAILPATH
8654 do eval test x\${$as_var+set} = xset \
8655 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8668 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8671 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8672 # ----------------------------------------
8673 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8674 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8675 # script with STATUS, using 1 if that was 0.
8678 as_status=$1; test $as_status -eq 0 && as_status=1
8680 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8681 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8683 $as_echo "$as_me: error: $2" >&2
8684 as_fn_exit $as_status
8688 # as_fn_set_status STATUS
8689 # -----------------------
8690 # Set $? to STATUS, without forking.
8694 } # as_fn_set_status
8698 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8708 # Portably unset VAR.
8711 { eval $1=; unset $1;}
8713 as_unset=as_fn_unset
8714 # as_fn_append VAR VALUE
8715 # ----------------------
8716 # Append the text in VALUE to the end of the definition contained in VAR. Take
8717 # advantage of any shell optimizations that allow amortized linear growth over
8718 # repeated appends, instead of the typical quadratic growth present in naive
8720 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8721 eval 'as_fn_append ()
8732 # as_fn_arith ARG...
8733 # ------------------
8734 # Perform arithmetic evaluation on the ARGs, and store the result in the
8735 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8736 # must be portable across $(()) and expr.
8737 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8738 eval 'as_fn_arith ()
8745 as_val=`expr "$@" || test $? -eq 1`
8750 if expr a : '\(a\)' >/dev/null 2>&1 &&
8751 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8757 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8758 as_basename=basename
8763 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8769 as_me=`$as_basename -- "$0" ||
8770 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8771 X"$0" : 'X\(//\)$' \| \
8772 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8774 sed '/^.*\/\([^/][^/]*\)\/*$/{
8788 # Avoid depending upon Character Ranges.
8789 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8792 as_cr_digits='0123456789'
8793 as_cr_alnum=$as_cr_Letters$as_cr_digits
8795 ECHO_C= ECHO_N= ECHO_T=
8796 case `echo -n x` in #(((((
8798 case `echo 'xy\c'` in
8799 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8801 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8808 rm -f conf$$ conf$$.exe conf$$.file
8809 if test -d conf$$.dir; then
8810 rm -f conf$$.dir/conf$$.file
8813 mkdir conf$$.dir 2>/dev/null
8815 if (echo >conf$$.file) 2>/dev/null; then
8816 if ln -s conf$$.file conf$$ 2>/dev/null; then
8818 # ... but there are two gotchas:
8819 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8820 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8821 # In both cases, we have to default to `cp -pR'.
8822 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8824 elif ln conf$$.file conf$$ 2>/dev/null; then
8832 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8833 rmdir conf$$.dir 2>/dev/null
8838 # Create "$as_dir" as a directory, including parents if necessary.
8843 -*) as_dir=./$as_dir;;
8845 test -d "$as_dir" || eval $as_mkdir_p || {
8849 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8850 *) as_qdir=$as_dir;;
8852 as_dirs="'$as_qdir' $as_dirs"
8853 as_dir=`$as_dirname -- "$as_dir" ||
8854 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8855 X"$as_dir" : 'X\(//\)[^/]' \| \
8856 X"$as_dir" : 'X\(//\)$' \| \
8857 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8858 $as_echo X"$as_dir" |
8859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8876 test -d "$as_dir" && break
8878 test -z "$as_dirs" || eval "mkdir $as_dirs"
8879 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8883 if mkdir -p . 2>/dev/null; then
8884 as_mkdir_p='mkdir -p "$as_dir"'
8886 test -d ./-p && rmdir ./-p
8891 # as_fn_executable_p FILE
8892 # -----------------------
8893 # Test if FILE is an executable regular file.
8894 as_fn_executable_p ()
8896 test -f "$1" && test -x "$1"
8897 } # as_fn_executable_p
8899 as_executable_p=as_fn_executable_p
8901 # Sed expression to map a string onto a valid CPP name.
8902 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8904 # Sed expression to map a string onto a valid variable name.
8905 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8909 ## ----------------------------------- ##
8910 ## Main body of $CONFIG_STATUS script. ##
8911 ## ----------------------------------- ##
8913 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8916 # Save the log message, to keep $0 and so on meaningful, and to
8917 # report actual input values of CONFIG_FILES etc. instead of their
8918 # values after options handling.
8920 This file was extended by freeradius $as_me $Id$, which was
8921 generated by GNU Autoconf 2.69. Invocation command line was
8923 CONFIG_FILES = $CONFIG_FILES
8924 CONFIG_HEADERS = $CONFIG_HEADERS
8925 CONFIG_LINKS = $CONFIG_LINKS
8926 CONFIG_COMMANDS = $CONFIG_COMMANDS
8929 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8934 case $ac_config_files in *"
8935 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8938 case $ac_config_headers in *"
8939 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8944 # Files that config.status was made for.
8945 config_files="$ac_config_files"
8946 config_headers="$ac_config_headers"
8947 config_commands="$ac_config_commands"
8951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8953 \`$as_me' instantiates files and other configuration actions
8954 from templates according to the current configuration. Unless the files
8955 and actions are specified as TAGs, all are instantiated by default.
8957 Usage: $0 [OPTION]... [TAG]...
8959 -h, --help print this help, then exit
8960 -V, --version print version number and configuration settings, then exit
8961 --config print configuration, then exit
8962 -q, --quiet, --silent
8963 do not print progress messages
8964 -d, --debug don't remove temporary files
8965 --recheck update $as_me by reconfiguring in the same conditions
8966 --file=FILE[:TEMPLATE]
8967 instantiate the configuration file FILE
8968 --header=FILE[:TEMPLATE]
8969 instantiate the configuration header FILE
8971 Configuration files:
8974 Configuration headers:
8977 Configuration commands:
8980 Report bugs to <http://bugs.freeradius.org>.
8981 freeradius home page: <http://www.freeradius.org>."
8984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8985 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8987 freeradius config.status $Id$
8988 configured by $0, generated by GNU Autoconf 2.69,
8989 with options \\"\$ac_cs_config\\"
8991 Copyright (C) 2012 Free Software Foundation, Inc.
8992 This config.status script is free software; the Free Software Foundation
8993 gives unlimited permission to copy, distribute and modify it."
8997 test -n "\$AWK" || AWK=awk
9000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9001 # The default lists apply if the user does not specify any file.
9007 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9008 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9012 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9024 # Handling of the options.
9025 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9027 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9028 $as_echo "$ac_cs_version"; exit ;;
9029 --config | --confi | --conf | --con | --co | --c )
9030 $as_echo "$ac_cs_config"; exit ;;
9031 --debug | --debu | --deb | --de | --d | -d )
9033 --file | --fil | --fi | --f )
9036 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9037 '') as_fn_error $? "missing file argument" ;;
9039 as_fn_append CONFIG_FILES " '$ac_optarg'"
9040 ac_need_defaults=false;;
9041 --header | --heade | --head | --hea )
9044 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9046 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9047 ac_need_defaults=false;;
9049 # Conflict between --help and --header
9050 as_fn_error $? "ambiguous option: \`$1'
9051 Try \`$0 --help' for more information.";;
9052 --help | --hel | -h )
9053 $as_echo "$ac_cs_usage"; exit ;;
9054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9055 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9059 -*) as_fn_error $? "unrecognized option: \`$1'
9060 Try \`$0 --help' for more information." ;;
9062 *) as_fn_append ac_config_targets " $1"
9063 ac_need_defaults=false ;;
9069 ac_configure_extra_args=
9071 if $ac_cs_silent; then
9073 ac_configure_extra_args="$ac_configure_extra_args --silent"
9077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9078 if \$ac_cs_recheck; then
9079 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9081 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9082 CONFIG_SHELL='$SHELL'
9088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9092 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9093 ## Running $as_me. ##
9099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9104 # Handling of arguments.
9105 for ac_config_target in $ac_config_targets
9107 case $ac_config_target in
9108 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
9109 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
9110 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
9111 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
9112 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
9113 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
9114 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
9115 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
9116 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
9117 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
9118 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
9119 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
9120 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
9121 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
9122 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
9123 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
9124 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
9125 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
9127 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9132 # If the user did not use the arguments to specify the items to instantiate,
9133 # then the envvar interface is used. Set only those that are not.
9134 # We use the long form for the default assignment because of an extremely
9135 # bizarre bug on SunOS 4.1.3.
9136 if $ac_need_defaults; then
9137 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9138 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9139 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9142 # Have a temporary directory for convenience. Make it in the build tree
9143 # simply because there is no reason against having it here, and in addition,
9144 # creating and moving files from /tmp can sometimes cause problems.
9145 # Hook for its removal unless debugging.
9146 # Note that there is a small window in which the directory will not be cleaned:
9147 # after its creation but before its name has been assigned to `$tmp'.
9151 trap 'exit_status=$?
9153 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9155 trap 'as_fn_exit 1' 1 2 13 15
9157 # Create a (secure) tmp directory for tmp files.
9160 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9164 tmp=./conf$$-$RANDOM
9165 (umask 077 && mkdir "$tmp")
9166 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9169 # Set up the scripts for CONFIG_FILES section.
9170 # No need to generate them if there are no CONFIG_FILES.
9171 # This happens for instance with `./config.status config.h'.
9172 if test -n "$CONFIG_FILES"; then
9175 ac_cr=`echo X | tr X '\015'`
9176 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9177 # But we know of no other shell where ac_cr would be empty at this
9178 # point, so we can use a bashism as a fallback.
9179 if test "x$ac_cr" = x; then
9180 eval ac_cr=\$\'\\r\'
9182 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9183 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9189 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9194 echo "cat >conf$$subs.awk <<_ACEOF" &&
9195 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9198 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9199 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9201 for ac_last_try in false false false false false :; do
9202 . ./conf$$subs.sh ||
9203 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9205 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9206 if test $ac_delim_n = $ac_delim_num; then
9208 elif $ac_last_try; then
9209 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9211 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9217 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9221 s/^/S["/; s/!.*/"]=/
9231 s/\(.\{148\}\)..*/\1/
9233 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9238 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9245 s/\(.\{148\}\)..*/\1/
9247 s/["\\]/\\&/g; s/^/"/; s/$/"/
9251 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9256 ' <conf$$subs.awk | sed '
9261 ' >>$CONFIG_STATUS || ac_write_fail=1
9262 rm -f conf$$subs.awk
9263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9265 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9266 for (key in S) S_is_set[key] = 1
9272 nfields = split(line, field, "@")
9274 len = length(field[1])
9275 for (i = 2; i < nfields; i++) {
9277 keylen = length(key)
9278 if (S_is_set[key]) {
9280 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9281 len += length(value) + length(field[++i])
9292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9293 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9294 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9297 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9298 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9301 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9302 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9303 # trailing colons and then remove the whole line if VPATH becomes empty
9304 # (actually we leave an empty line to preserve line numbers).
9305 if test "x$srcdir" = x.; then
9306 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9325 fi # test -n "$CONFIG_FILES"
9327 # Set up the scripts for CONFIG_HEADERS section.
9328 # No need to generate them if there are no CONFIG_HEADERS.
9329 # This happens for instance with `./config.status Makefile'.
9330 if test -n "$CONFIG_HEADERS"; then
9331 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9335 # Transform confdefs.h into an awk script `defines.awk', embedded as
9336 # here-document in config.status, that substitutes the proper values into
9337 # config.h.in to produce config.h.
9339 # Create a delimiter string that does not exist in confdefs.h, to ease
9340 # handling of long lines.
9342 for ac_last_try in false false :; do
9343 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9344 if test -z "$ac_tt"; then
9346 elif $ac_last_try; then
9347 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9349 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9353 # For the awk script, D is an array of macro values keyed by name,
9354 # likewise P contains macro parameters if any. Preserve backslash
9355 # newline sequences.
9357 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9359 s/.\{148\}/&'"$ac_delim"'/g
9362 s/^[ ]*#[ ]*define[ ][ ]*/ /
9369 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9371 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9375 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9376 D["\1"]=" \3\\\\\\n"\\/p
9378 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9383 s/.\{148\}/&'"$ac_delim"'/g
9388 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9391 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9393 ' <confdefs.h | sed '
9394 s/'"$ac_delim"'/"\\\
9395 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9398 for (key in D) D_is_set[key] = 1
9401 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9403 split(line, arg, " ")
9404 if (arg[1] == "#") {
9408 defundef = substr(arg[1], 2)
9411 split(mac1, mac2, "(") #)
9413 prefix = substr(line, 1, index(line, defundef) - 1)
9414 if (D_is_set[macro]) {
9415 # Preserve the white space surrounding the "#".
9416 print prefix "define", macro P[macro] D[macro]
9419 # Replace #undef with comments. This is necessary, for example,
9420 # in the case of _POSIX_SOURCE, which is predefined and required
9421 # on some systems where configure will not decide to define it.
9422 if (defundef == "undef") {
9423 print "/*", prefix defundef, macro, "*/"
9431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9432 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9433 fi # test -n "$CONFIG_HEADERS"
9436 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9441 :[FHLC]) ac_mode=$ac_tag; continue;;
9443 case $ac_mode$ac_tag in
9445 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9446 :[FH]-) ac_tag=-:-;;
9447 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9464 -) ac_f="$ac_tmp/stdin";;
9465 *) # Look for the file first in the build tree, then in the source tree
9466 # (if the path is not absolute). The absolute path cannot be DOS-style,
9467 # because $ac_f cannot contain `:'.
9471 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9473 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9475 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9476 as_fn_append ac_file_inputs " '$ac_f'"
9479 # Let's still pretend it is `configure' which instantiates (i.e., don't
9480 # use $as_me), people would be surprised to read:
9481 # /* config.h. Generated by config.status. */
9482 configure_input='Generated from '`
9483 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9485 if test x"$ac_file" != x-; then
9486 configure_input="$ac_file. $configure_input"
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9488 $as_echo "$as_me: creating $ac_file" >&6;}
9490 # Neutralize special characters interpreted by sed in replacement strings.
9491 case $configure_input in #(
9492 *\&* | *\|* | *\\* )
9493 ac_sed_conf_input=`$as_echo "$configure_input" |
9494 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9495 *) ac_sed_conf_input=$configure_input;;
9499 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9500 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9505 ac_dir=`$as_dirname -- "$ac_file" ||
9506 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9507 X"$ac_file" : 'X\(//\)[^/]' \| \
9508 X"$ac_file" : 'X\(//\)$' \| \
9509 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9510 $as_echo X"$ac_file" |
9511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9528 as_dir="$ac_dir"; as_fn_mkdir_p
9532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9535 # A ".." for each directory in $ac_dir_suffix.
9536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9537 case $ac_top_builddir_sub in
9538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9542 ac_abs_top_builddir=$ac_pwd
9543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9544 # for backward compatibility:
9545 ac_top_builddir=$ac_top_build_prefix
9548 .) # We are building in place.
9550 ac_top_srcdir=$ac_top_builddir_sub
9551 ac_abs_top_srcdir=$ac_pwd ;;
9552 [\\/]* | ?:[\\/]* ) # Absolute name.
9553 ac_srcdir=$srcdir$ac_dir_suffix;
9554 ac_top_srcdir=$srcdir
9555 ac_abs_top_srcdir=$srcdir ;;
9557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9558 ac_top_srcdir=$ac_top_build_prefix$srcdir
9559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9573 # If the template does not know about datarootdir, expand it.
9574 # FIXME: This hack should be removed a few years after 2.60.
9575 ac_datarootdir_hack=; ac_datarootdir_seen=
9586 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9587 *datarootdir*) ac_datarootdir_seen=yes;;
9588 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9590 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9593 ac_datarootdir_hack='
9594 s&@datadir@&$datadir&g
9595 s&@docdir@&$docdir&g
9596 s&@infodir@&$infodir&g
9597 s&@localedir@&$localedir&g
9598 s&@mandir@&$mandir&g
9599 s&\\\${datarootdir}&$datarootdir&g' ;;
9603 # Neutralize VPATH when `$srcdir' = `.'.
9604 # Shell code in configure.ac might set extrasub.
9605 # FIXME: do we really want to maintain this feature?
9606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9607 ac_sed_extra="$ac_vpsub
9610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9613 s|@configure_input@|$ac_sed_conf_input|;t t
9614 s&@top_builddir@&$ac_top_builddir_sub&;t t
9615 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9616 s&@srcdir@&$ac_srcdir&;t t
9617 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9618 s&@top_srcdir@&$ac_top_srcdir&;t t
9619 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9620 s&@builddir@&$ac_builddir&;t t
9621 s&@abs_builddir@&$ac_abs_builddir&;t t
9622 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9623 $ac_datarootdir_hack
9625 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9626 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9628 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9629 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9630 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9631 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9633 which seems to be undefined. Please make sure it is defined" >&5
9634 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9635 which seems to be undefined. Please make sure it is defined" >&2;}
9637 rm -f "$ac_tmp/stdin"
9639 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9640 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9648 if test x"$ac_file" != x-; then
9650 $as_echo "/* $configure_input */" \
9651 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9652 } >"$ac_tmp/config.h" \
9653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9654 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9656 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9659 mv "$ac_tmp/config.h" "$ac_file" \
9660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9663 $as_echo "/* $configure_input */" \
9664 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9665 || as_fn_error $? "could not create -" "$LINENO" 5
9669 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9670 $as_echo "$as_me: executing $ac_file commands" >&6;}
9675 case $ac_file$ac_mode in
9676 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
9677 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
9678 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
9679 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
9687 ac_clean_files=$ac_clean_files_save
9689 test $ac_write_fail = 0 ||
9690 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9693 # configure is writing to config.log, and then calls config.status.
9694 # config.status does its own redirection, appending to config.log.
9695 # Unfortunately, on DOS this fails, as config.log is still kept open
9696 # by configure, so config.status won't be able to write to it; its
9697 # output is simply discarded. So we exec the FD to /dev/null,
9698 # effectively closing config.log, so it can be properly (re)opened and
9699 # appended to by config.status. When coming back to configure, we
9700 # need to make the FD available again.
9701 if test "$no_create" != yes; then
9703 ac_config_status_args=
9704 test "$silent" = yes &&
9705 ac_config_status_args="$ac_config_status_args --quiet"
9707 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9709 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9710 # would make configure fail if this is the last instruction.
9711 $ac_cs_success || as_fn_exit 1
9715 # CONFIG_SUBDIRS section.
9717 if test "$no_recursion" != yes; then
9719 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9720 # so they do not pile up.
9721 ac_sub_configure_args=
9723 eval "set x $ac_configure_args"
9727 if test -n "$ac_prev"; then
9732 -cache-file | --cache-file | --cache-fil | --cache-fi \
9733 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9734 ac_prev=cache_file ;;
9735 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9736 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9739 --config-cache | -C)
9741 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9743 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9745 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9747 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9749 --disable-option-checking)
9753 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9755 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9759 # Always prepend --prefix to ensure using the same prefix
9760 # in subdir configurations.
9761 ac_arg="--prefix=$prefix"
9763 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9765 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9768 if test "$silent" = yes; then
9769 ac_sub_configure_args="--silent $ac_sub_configure_args"
9772 # Always prepend --disable-option-checking to silence warnings, since
9773 # different subdirs can have different --enable and --with options.
9774 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9777 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9779 # Do not complain, so a configure script can configure whichever
9780 # parts of a large source tree are present.
9781 test -d "$srcdir/$ac_dir" || continue
9783 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9784 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9785 $as_echo "$ac_msg" >&6
9786 as_dir="$ac_dir"; as_fn_mkdir_p
9790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9792 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9793 # A ".." for each directory in $ac_dir_suffix.
9794 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9795 case $ac_top_builddir_sub in
9796 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9797 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9800 ac_abs_top_builddir=$ac_pwd
9801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9802 # for backward compatibility:
9803 ac_top_builddir=$ac_top_build_prefix
9806 .) # We are building in place.
9808 ac_top_srcdir=$ac_top_builddir_sub
9809 ac_abs_top_srcdir=$ac_pwd ;;
9810 [\\/]* | ?:[\\/]* ) # Absolute name.
9811 ac_srcdir=$srcdir$ac_dir_suffix;
9812 ac_top_srcdir=$srcdir
9813 ac_abs_top_srcdir=$srcdir ;;
9815 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9816 ac_top_srcdir=$ac_top_build_prefix$srcdir
9817 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9824 # Check for guested configure; otherwise get Cygnus style configure.
9825 if test -f "$ac_srcdir/configure.gnu"; then
9826 ac_sub_configure=$ac_srcdir/configure.gnu
9827 elif test -f "$ac_srcdir/configure"; then
9828 ac_sub_configure=$ac_srcdir/configure
9829 elif test -f "$ac_srcdir/configure.in"; then
9830 # This should be Cygnus configure.
9831 ac_sub_configure=$ac_aux_dir/configure
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9834 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9838 # The recursion is here.
9839 if test -n "$ac_sub_configure"; then
9840 # Make the cache file name correct relative to the subdirectory.
9842 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9844 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9847 { $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
9848 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9849 # The eval makes quoting arguments work.
9850 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9851 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9852 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9858 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9860 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}