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
688 RADIUSD_VERSION_STRING
716 program_transform_name
729 enable_option_checking
732 enable_strict_dependencies
746 with_experimental_modules
749 with_openssl_includes
750 with_openssl_libraries
752 with_rlm_FOO_include_dir
753 with_talloc_include_dir
755 with_rlm_pcre_lib_dir
756 with_rlm_pcre_include_dir
758 ac_precious_vars='build_alias
770 ac_subdirs_all='$mysubdirs'
772 # Initialize some variables set by options.
774 ac_init_version=false
775 ac_unrecognized_opts=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
786 program_transform_name=s,x,x,
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811 infodir='${datarootdir}/info'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 # Accept the important Cygnus configure options, so we can diagnose typos.
839 case $ac_dashdash$ac_option in
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
861 cache_file=config.cache ;;
863 -datadir | --datadir | --datadi | --datad)
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error $? "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
889 eval enable_$ac_useropt=no ;;
891 -docdir | --docdir | --docdi | --doc | --do)
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901 -enable-* | --enable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
915 eval enable_$ac_useropt=\$ac_optarg ;;
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
930 -help | --help | --hel | --he | -h)
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 htmldir=$ac_optarg ;;
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
960 -libdir | --libdir | --libdi | --libd)
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
972 -localedir | --localedir | --localedi | --localed | --locale)
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990 # Obsolete; use --without-fp.
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1051 -psdir | --psdir | --psdi | --psd | --ps)
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 sbindir=$ac_optarg ;;
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 sharedstatedir=$ac_optarg ;;
1077 -site | --site | --sit)
1079 -site=* | --site=* | --sit=*)
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1119 eval with_$ac_useropt=\$ac_optarg ;;
1121 -without-* | --without-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1135 eval with_$ac_useropt=no ;;
1138 # Obsolete; use --with-x.
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1155 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information"
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' | [0-9]* | *[!_$as_cr_alnum]* )
1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180 if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error $? "missing argument to $ac_option"
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193 # Check all directory arguments for consistency.
1194 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1206 # Be sure to have absolute directory names.
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1219 target=$target_alias
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 elif test "x$build_alias" != "x$host_alias"; then
1231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233 test "$silent" = yes && exec 6>/dev/null
1236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di=`ls -di .` &&
1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 as_fn_error $? "working directory cannot be determined"
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 as_fn_error $? "pwd does not report name of working directory"
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246 ac_srcdir_defaulted=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$as_myself" : 'X\(//\)[^/]' \| \
1251 X"$as_myself" : 'X\(//\)$' \| \
1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1276 ac_srcdir_defaulted=no
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1286 # When building in place, set srcdir=.
1287 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290 # Remove unnecessary trailing slashes from srcdir.
1291 # Double slashes in file names in object file debugging info
1292 # mess up M-x gdb in Emacs.
1294 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 for ac_var in $ac_precious_vars; do
1297 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_env_${ac_var}_value=\$${ac_var}
1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 # Report the --help message.
1306 if test "$ac_init_help" = "long"; then
1307 # Omit some internal or obsolete options to make the list less imposing.
1308 # This message is too long to be a string in the A/UX 3.1 sh.
1310 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1312 Usage: $0 [OPTION]... [VAR=VALUE]...
1314 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315 VAR=VALUE. See below for descriptions of some of the useful variables.
1317 Defaults for the options are specified in brackets.
1320 -h, --help display this help and exit
1321 --help=short display options specific to this package
1322 --help=recursive display the short help of all the included packages
1323 -V, --version display version information and exit
1324 -q, --quiet, --silent do not print \`checking ...' messages
1325 --cache-file=FILE cache test results in FILE [disabled]
1326 -C, --config-cache alias for \`--cache-file=config.cache'
1327 -n, --no-create do not create output files
1328 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1330 Installation directories:
1331 --prefix=PREFIX install architecture-independent files in PREFIX
1332 [$ac_default_prefix]
1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1336 By default, \`make install' will install all the files in
1337 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1338 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339 for instance \`--prefix=\$HOME'.
1341 For better control, use the options below.
1343 Fine tuning of the installation directories:
1344 --bindir=DIR user executables [EPREFIX/bin]
1345 --sbindir=DIR system admin executables [EPREFIX/sbin]
1346 --libexecdir=DIR program executables [EPREFIX/libexec]
1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1350 --libdir=DIR object code libraries [EPREFIX/lib]
1351 --includedir=DIR C header files [PREFIX/include]
1352 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1355 --infodir=DIR info documentation [DATAROOTDIR/info]
1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1357 --mandir=DIR man documentation [DATAROOTDIR/man]
1358 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1368 --build=BUILD configure for building on BUILD [guessed]
1369 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1370 --target=TARGET configure for building compilers for TARGET [HOST]
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of freeradius $Id$:";;
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-developer enables features of interest to developers.
1385 --disable-largefile omit support for large files
1386 --enable-strict-dependencies fail configure on lack of module dependancy.
1387 --enable-werror causes the build to fail if any warnings are generated.
1390 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1391 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1392 --with-docdir=DIR directory for documentation DATADIR/doc/freeradius
1393 --with-logdir=DIR directory for logfiles LOCALSTATEDIR/log/radius
1394 --with-radacctdir=DIR directory for detail files LOGDIR/radacct
1395 --with-raddbdir=DIR directory for config files SYSCONFDIR/raddb
1396 --with-ascend-binary include support for Ascend binary filter attributes (default=yes)
1397 --with-threads use threads, if available. (default=yes)
1398 --with-tcp compile in TCP support. (default=yes)
1399 --with-vmps compile in VMPS support. (default=yes)
1400 --with-dhcp compile in DHCP support. (default=yes)
1401 --with-static-modules=QUOTED-MODULE-LIST
1402 --with-shared-libs build dynamic libraries and link against them. (default=yes)
1403 --with-modules=QUOTED-MODULE-LIST
1404 --with-experimental-modules use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1405 --with-udpfromto compile in UDPFROMTO support. (default=yes)
1406 --with-openssl use OpenSSL. (default=yes)
1407 --with-openssl-includes=DIR directory to look for OpenSSL include files in
1408 --with-openssl-libraries=DIR directory to look for OpenSSL library files in
1409 --with-rlm-FOO-lib-dir=DIR directory to look for library files used by module FOO in
1410 --with-rlm-FOO-include-dir=DIR directory to look for include files used by module FOO in
1411 --with-talloc-include-dir=DIR directory to look for talloc include files in
1412 --with-talloc-lib-dir=DIR directory to look for talloc library files in
1413 --with-pcre-lib-dir=DIR directory to look for PCRE library files in
1414 --with-pcre-include-dir=DIR directory to look for PCRE include files in
1416 Some influential environment variables:
1417 CC C compiler command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420 nonstandard directory <lib dir>
1421 LIBS libraries to pass to the linker, e.g. -l<library>
1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423 you have headers in a nonstandard directory <include dir>
1424 CXX C++ compiler command
1425 CXXFLAGS C++ compiler flags
1428 Use these variables to override the choices made by `configure' or to help
1429 it to find libraries and programs with nonstandard names/locations.
1431 Report bugs to <http://bugs.freeradius.org>.
1432 freeradius home page: <http://www.freeradius.org>.
1437 if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440 test -d "$ac_dir" ||
1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1462 .) # We are building in place.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1495 freeradius configure $Id$
1496 generated by GNU Autoconf 2.69
1498 Copyright (C) 2012 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1509 # ac_fn_c_try_compile LINENO
1510 # --------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_c_try_compile ()
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext
1516 if { { ac_try="$ac_compile"
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_compile") 2>conftest.err
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest.$ac_objext; then :
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1545 } # ac_fn_c_try_compile
1547 # ac_fn_cxx_try_compile LINENO
1548 # ----------------------------
1549 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_cxx_try_compile ()
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 rm -f conftest.$ac_objext
1554 if { { ac_try="$ac_compile"
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_compile") 2>conftest.err
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_cxx_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest.$ac_objext; then :
1575 $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581 as_fn_set_status $ac_retval
1583 } # ac_fn_cxx_try_compile
1585 # ac_fn_c_try_cpp LINENO
1586 # ----------------------
1587 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 if { { ac_try="$ac_cpp conftest.$ac_ext"
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } > conftest.i && {
1607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1622 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1625 # the include files in INCLUDES and setting the cache variable VAR
1627 ac_fn_c_check_header_mongrel ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if eval \${$3+:} false; then :
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632 $as_echo_n "checking for $2... " >&6; }
1633 if eval \${$3+:} false; then :
1634 $as_echo_n "(cached) " >&6
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1640 # Is the header compilable?
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1642 $as_echo_n "checking $2 usability... " >&6; }
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h. */
1648 if ac_fn_c_try_compile "$LINENO"; then :
1649 ac_header_compiler=yes
1651 ac_header_compiler=no
1653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1655 $as_echo "$ac_header_compiler" >&6; }
1657 # Is the header present?
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1659 $as_echo_n "checking $2 presence... " >&6; }
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1664 if ac_fn_c_try_cpp "$LINENO"; then :
1665 ac_header_preproc=yes
1667 ac_header_preproc=no
1669 rm -f conftest.err conftest.i conftest.$ac_ext
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1671 $as_echo "$ac_header_preproc" >&6; }
1673 # So? What about this header?
1674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1677 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1679 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1683 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1685 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1687 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1689 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692 ( $as_echo "## ----------------------------------------- ##
1693 ## Report this to http://bugs.freeradius.org ##
1694 ## ----------------------------------------- ##"
1695 ) | sed "s/^/$as_me: WARNING: /" >&2
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701 $as_echo_n "(cached) " >&6
1703 eval "$3=\$ac_header_compiler"
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 $as_echo "$ac_res" >&6; }
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 } # ac_fn_c_check_header_mongrel
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747 ac_retval=$ac_status
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1755 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756 # -------------------------------------------------------
1757 # Tests whether HEADER exists and can be compiled using the include files in
1758 # INCLUDES, setting the cache variable VAR accordingly.
1759 ac_fn_c_check_header_compile ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1772 if ac_fn_c_try_compile "$LINENO"; then :
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 } # ac_fn_c_check_header_compile
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 test -x conftest$ac_exeext
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1830 } # ac_fn_c_try_link
1832 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1833 # -------------------------------------------
1834 # Tests whether TYPE exists after having included INCLUDES, setting cache
1835 # variable VAR accordingly.
1836 ac_fn_c_check_type ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1870 if ac_fn_c_try_compile "$LINENO"; then :
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 } # ac_fn_c_check_type
1886 # ac_fn_c_check_func LINENO FUNC VAR
1887 # ----------------------------------
1888 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1889 ac_fn_c_check_func ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1901 #define $2 innocuous_$2
1903 /* System header to define __stub macros and hopefully few prototypes,
1904 which can conflict with char $2 (); below.
1905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1906 <limits.h> exists even on freestanding compilers. */
1909 # include <limits.h>
1911 # include <assert.h>
1916 /* Override any GCC internal prototype to avoid an error.
1917 Use char because int might match the return type of a GCC
1918 builtin and then its argument prototype would still apply. */
1923 /* The GNU C library defines this for functions which it implements
1924 to always fail with ENOSYS. Some functions are actually named
1925 something starting with __ and the normal name is an alias. */
1926 #if defined __stub_$2 || defined __stub___$2
1938 if ac_fn_c_try_link "$LINENO"; then :
1943 rm -f core conftest.err conftest.$ac_objext \
1944 conftest$ac_exeext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 } # ac_fn_c_check_func
1953 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1954 # ---------------------------------------------
1955 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1957 ac_fn_c_check_decl ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 as_decl_name=`echo $2|sed 's/ *(.*//'`
1961 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1963 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1964 if eval \${$3+:} false; then :
1965 $as_echo_n "(cached) " >&6
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1973 #ifndef $as_decl_name
1975 (void) $as_decl_use;
1977 (void) $as_decl_name;
1985 if ac_fn_c_try_compile "$LINENO"; then :
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 } # ac_fn_c_check_decl
1998 cat >config.log <<_ACEOF
1999 This file contains any messages produced by compilers while
2000 running configure, to aid debugging if configure makes a mistake.
2002 It was created by freeradius $as_me $Id$, which was
2003 generated by GNU Autoconf 2.69. Invocation command line was
2015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2027 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 test -z "$as_dir" && as_dir=.
2039 $as_echo "PATH: $as_dir"
2055 # Keep a trace of the command line.
2056 # Strip out --no-create and --no-recursion so they do not pile up.
2057 # Strip out --silent because we don't want to record it for future runs.
2058 # Also quote any args containing shell meta-characters.
2059 # Make two passes to allow for proper duplicate-argument suppression.
2063 ac_must_keep_next=false
2069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2071 | -silent | --silent | --silen | --sile | --sil)
2074 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2077 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2079 as_fn_append ac_configure_args1 " '$ac_arg'"
2080 if test $ac_must_keep_next = true; then
2081 ac_must_keep_next=false # Got value, back to normal.
2084 *=* | --config-cache | -C | -disable-* | --disable-* \
2085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2087 | -with-* | --with-* | -without-* | --without-* | --x)
2088 case "$ac_configure_args0 " in
2089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2092 -* ) ac_must_keep_next=true ;;
2095 as_fn_append ac_configure_args " '$ac_arg'"
2100 { ac_configure_args0=; unset ac_configure_args0;}
2101 { ac_configure_args1=; unset ac_configure_args1;}
2103 # When interrupted or exit'd, cleanup temporary files, and complete
2104 # config.log. We remove comments because anyway the quotes in there
2105 # would cause problems or look ugly.
2106 # WARNING: Use '\'' to represent an apostrophe within the trap.
2107 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2108 trap 'exit_status=$?
2109 # Save into config.log some information that might help in debugging.
2113 $as_echo "## ---------------- ##
2114 ## Cache variables. ##
2115 ## ---------------- ##"
2117 # The following way of writing the cache mishandles newlines in values,
2119 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2120 eval ac_val=\$$ac_var
2124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2125 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2128 _ | IFS | as_nl) ;; #(
2129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2130 *) { eval $ac_var=; unset $ac_var;} ;;
2135 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2136 *${as_nl}ac_space=\ *)
2138 "s/'\''/'\''\\\\'\'''\''/g;
2139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2149 $as_echo "## ----------------- ##
2150 ## Output variables. ##
2151 ## ----------------- ##"
2153 for ac_var in $ac_subst_vars
2155 eval ac_val=\$$ac_var
2157 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159 $as_echo "$ac_var='\''$ac_val'\''"
2163 if test -n "$ac_subst_files"; then
2164 $as_echo "## ------------------- ##
2165 ## File substitutions. ##
2166 ## ------------------- ##"
2168 for ac_var in $ac_subst_files
2170 eval ac_val=\$$ac_var
2172 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174 $as_echo "$ac_var='\''$ac_val'\''"
2179 if test -s confdefs.h; then
2180 $as_echo "## ----------- ##
2187 test "$ac_signal" != 0 &&
2188 $as_echo "$as_me: caught signal $ac_signal"
2189 $as_echo "$as_me: exit $exit_status"
2191 rm -f core *.core core.conftest.* &&
2192 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2195 for ac_signal in 1 2 13 15; do
2196 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2201 rm -f -r conftest* confdefs.h
2203 $as_echo "/* confdefs.h */" > confdefs.h
2205 # Predefined preprocessor variables.
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_NAME "$PACKAGE_NAME"
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_STRING "$PACKAGE_STRING"
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_URL "$PACKAGE_URL"
2232 # Let the site file select an alternate cache file if it wants to.
2233 # Prefer an explicitly selected file to automatically selected ones.
2236 if test -n "$CONFIG_SITE"; then
2237 # We do not want a PATH search for config.site.
2238 case $CONFIG_SITE in #((
2239 -*) ac_site_file1=./$CONFIG_SITE;;
2240 */*) ac_site_file1=$CONFIG_SITE;;
2241 *) ac_site_file1=./$CONFIG_SITE;;
2243 elif test "x$prefix" != xNONE; then
2244 ac_site_file1=$prefix/share/config.site
2245 ac_site_file2=$prefix/etc/config.site
2247 ac_site_file1=$ac_default_prefix/share/config.site
2248 ac_site_file2=$ac_default_prefix/etc/config.site
2250 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2252 test "x$ac_site_file" = xNONE && continue
2253 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2255 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2256 sed 's/^/| /' "$ac_site_file" >&5
2258 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2260 as_fn_error $? "failed to load site script $ac_site_file
2261 See \`config.log' for more details" "$LINENO" 5; }
2265 if test -r "$cache_file"; then
2266 # Some versions of bash will fail to source /dev/null (special files
2267 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2268 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2270 $as_echo "$as_me: loading cache $cache_file" >&6;}
2272 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2273 *) . "./$cache_file";;
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2278 $as_echo "$as_me: creating cache $cache_file" >&6;}
2282 # Check that the precious variables saved in the cache have kept the same
2284 ac_cache_corrupted=false
2285 for ac_var in $ac_precious_vars; do
2286 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2287 eval ac_new_set=\$ac_env_${ac_var}_set
2288 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2289 eval ac_new_val=\$ac_env_${ac_var}_value
2290 case $ac_old_set,$ac_new_set in
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2293 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2294 ac_cache_corrupted=: ;;
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2297 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2298 ac_cache_corrupted=: ;;
2301 if test "x$ac_old_val" != "x$ac_new_val"; then
2302 # differences in whitespace do not lead to failure.
2303 ac_old_val_w=`echo x $ac_old_val`
2304 ac_new_val_w=`echo x $ac_new_val`
2305 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2307 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2308 ac_cache_corrupted=:
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2311 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2312 eval $ac_var=\$ac_old_val
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2315 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2317 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2320 # Pass precious variables to config.status.
2321 if test "$ac_new_set" = set; then
2323 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2324 *) ac_arg=$ac_var=$ac_new_val ;;
2326 case " $ac_configure_args " in
2327 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2328 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2332 if $ac_cache_corrupted; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2336 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2337 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2339 ## -------------------- ##
2340 ## Main body of script. ##
2341 ## -------------------- ##
2344 ac_cpp='$CPP $CPPFLAGS'
2345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2364 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2365 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2366 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2368 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2369 -v minor="$RADIUSD_MINOR_VERSION" \
2370 -v incrm="$RADIUSD_INCRM_VERSION" \
2371 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2373 RADIUSD_VERSION_STRING=`cat VERSION`
2378 cat >>confdefs.h <<_ACEOF
2379 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2383 cat >>confdefs.h <<_ACEOF
2384 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2389 # Check whether --enable-developer was given.
2390 if test "${enable_developer+set}" = set; then :
2391 enableval=$enable_developer; case "$enableval" in
2402 if test -d $srcdir/.git; then
2403 if test "x$developer" != "xno"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2405 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2410 if test "x$developer" = "xyes"; then
2416 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2417 if test -f "$ac_dir/install-sh"; then
2419 ac_install_sh="$ac_aux_dir/install-sh -c"
2421 elif test -f "$ac_dir/install.sh"; then
2423 ac_install_sh="$ac_aux_dir/install.sh -c"
2425 elif test -f "$ac_dir/shtool"; then
2427 ac_install_sh="$ac_aux_dir/shtool install -c"
2431 if test -z "$ac_aux_dir"; then
2432 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2435 # These three variables are undocumented and unsupported,
2436 # and are intended to be withdrawn in a future Autoconf release.
2437 # They can cause serious problems if a builder's source tree is in a directory
2438 # whose full name contains unusual characters.
2439 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2440 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2441 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2444 # Make sure we can run config.sub.
2445 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2446 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2449 $as_echo_n "checking build system type... " >&6; }
2450 if ${ac_cv_build+:} false; then :
2451 $as_echo_n "(cached) " >&6
2453 ac_build_alias=$build_alias
2454 test "x$ac_build_alias" = x &&
2455 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2456 test "x$ac_build_alias" = x &&
2457 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2458 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2459 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2463 $as_echo "$ac_cv_build" >&6; }
2464 case $ac_cv_build in
2466 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2469 ac_save_IFS=$IFS; IFS='-'
2475 # Remember, the first character of IFS is used to create $*,
2476 # except with old shells:
2479 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2483 $as_echo_n "checking host system type... " >&6; }
2484 if ${ac_cv_host+:} false; then :
2485 $as_echo_n "(cached) " >&6
2487 if test "x$host_alias" = x; then
2488 ac_cv_host=$ac_cv_build
2490 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2491 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2496 $as_echo "$ac_cv_host" >&6; }
2499 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2502 ac_save_IFS=$IFS; IFS='-'
2508 # Remember, the first character of IFS is used to create $*,
2509 # except with old shells:
2512 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2516 $as_echo_n "checking target system type... " >&6; }
2517 if ${ac_cv_target+:} false; then :
2518 $as_echo_n "(cached) " >&6
2520 if test "x$target_alias" = x; then
2521 ac_cv_target=$ac_cv_host
2523 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2524 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2529 $as_echo "$ac_cv_target" >&6; }
2530 case $ac_cv_target in
2532 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2534 target=$ac_cv_target
2535 ac_save_IFS=$IFS; IFS='-'
2541 # Remember, the first character of IFS is used to create $*,
2542 # except with old shells:
2545 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2548 # The aliases save the names the user supplied, while $host etc.
2549 # will get canonicalized.
2550 test -n "$target_alias" &&
2551 test "$program_prefix$program_suffix$program_transform_name" = \
2553 program_prefix=${target_alias}-
2557 ac_cpp='$CPP $CPPFLAGS'
2558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561 if test -n "$ac_tool_prefix"; then
2562 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2563 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if ${ac_cv_prog_CC+:} false; then :
2567 $as_echo_n "(cached) " >&6
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2579 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 if test -n "$CC"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2592 $as_echo "$CC" >&6; }
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595 $as_echo "no" >&6; }
2600 if test -z "$ac_cv_prog_CC"; then
2602 # Extract the first word of "gcc", so it can be a program name with args.
2603 set dummy gcc; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2607 $as_echo_n "(cached) " >&6
2609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_prog_ac_ct_CC="gcc"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630 if test -n "$ac_ct_CC"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2632 $as_echo "$ac_ct_CC" >&6; }
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2638 if test "x$ac_ct_CC" = x; then
2641 case $cross_compiling:$ac_tool_warned in
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2645 ac_tool_warned=yes ;;
2653 if test -z "$CC"; then
2654 if test -n "$ac_tool_prefix"; then
2655 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2656 set dummy ${ac_tool_prefix}cc; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if ${ac_cv_prog_CC+:} false; then :
2660 $as_echo_n "(cached) " >&6
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2672 ac_cv_prog_CC="${ac_tool_prefix}cc"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 if test -n "$CC"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2685 $as_echo "$CC" >&6; }
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2694 if test -z "$CC"; then
2695 # Extract the first word of "cc", so it can be a program name with args.
2696 set dummy cc; ac_word=$2
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if ${ac_cv_prog_CC+:} false; then :
2700 $as_echo_n "(cached) " >&6
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2714 ac_prog_rejected=yes
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 if test $ac_prog_rejected = yes; then
2726 # We found a bogon in the path, so make sure we never use it.
2727 set dummy $ac_cv_prog_CC
2729 if test $# != 0; then
2730 # We chose a different compiler from the bogus one.
2731 # However, it has the same basename, so the bogon will be chosen
2732 # first if we set CC to just the basename; use the full file name.
2734 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2740 if test -n "$CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2750 if test -z "$CC"; then
2751 if test -n "$ac_tool_prefix"; then
2752 for ac_prog in cl.exe
2754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if ${ac_cv_prog_CC+:} false; then :
2759 $as_echo_n "(cached) " >&6
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 if test -n "$CC"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2784 $as_echo "$CC" >&6; }
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
2791 test -n "$CC" && break
2794 if test -z "$CC"; then
2796 for ac_prog in cl.exe
2798 # Extract the first word of "$ac_prog", so it can be a program name with args.
2799 set dummy $ac_prog; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2803 $as_echo_n "(cached) " >&6
2805 if test -n "$ac_ct_CC"; then
2806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 ac_cv_prog_ac_ct_CC="$ac_prog"
2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826 if test -n "$ac_ct_CC"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2828 $as_echo "$ac_ct_CC" >&6; }
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2835 test -n "$ac_ct_CC" && break
2838 if test "x$ac_ct_CC" = x; then
2841 case $cross_compiling:$ac_tool_warned in
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2845 ac_tool_warned=yes ;;
2854 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2856 as_fn_error $? "no acceptable C compiler found in \$PATH
2857 See \`config.log' for more details" "$LINENO" 5; }
2859 # Provide some information about the compiler.
2860 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2863 for ac_option in --version -v -V -qversion; do
2864 { { ac_try="$ac_compiler $ac_option >&5"
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2870 $as_echo "$ac_try_echo"; } >&5
2871 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2873 if test -s conftest.err; then
2875 ... rest of stderr output deleted ...
2876 10q' conftest.err >conftest.er1
2877 cat conftest.er1 >&5
2879 rm -f conftest.er1 conftest.err
2880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2881 test $ac_status = 0; }
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2895 ac_clean_files_save=$ac_clean_files
2896 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2897 # Try to create an executable without -o first, disregard a.out.
2898 # It will help us diagnose broken compilers, and finding out an intuition
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2901 $as_echo_n "checking whether the C compiler works... " >&6; }
2902 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2904 # The possible output files:
2905 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2908 for ac_file in $ac_files
2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2912 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2917 if { { ac_try="$ac_link_default"
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2923 $as_echo "$ac_try_echo"; } >&5
2924 (eval "$ac_link_default") 2>&5
2926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2927 test $ac_status = 0; }; then :
2928 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2929 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2930 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2931 # so that the user can short-circuit this test for compilers unknown to
2933 for ac_file in $ac_files ''
2935 test -f "$ac_file" || continue
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2940 # We found the default executable, but exeext='' is most
2944 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2946 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2948 # We set ac_cv_exeext here because the later test for it is not
2949 # safe: cross compilers may not add the suffix if given an `-o'
2950 # argument, so we may need to know it at that point already.
2951 # Even if this section looks crufty: it has the advantage of
2958 test "$ac_cv_exeext" = no && ac_cv_exeext=
2963 if test -z "$ac_file"; then :
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 $as_echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971 as_fn_error 77 "C compiler cannot create executables
2972 See \`config.log' for more details" "$LINENO" 5; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2975 $as_echo "yes" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2978 $as_echo_n "checking for C compiler default output file name... " >&6; }
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2980 $as_echo "$ac_file" >&6; }
2981 ac_exeext=$ac_cv_exeext
2983 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2984 ac_clean_files=$ac_clean_files_save
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2986 $as_echo_n "checking for suffix of executables... " >&6; }
2987 if { { ac_try="$ac_link"
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2993 $as_echo "$ac_try_echo"; } >&5
2994 (eval "$ac_link") 2>&5
2996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2997 test $ac_status = 0; }; then :
2998 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2999 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3000 # work properly (i.e., refer to `conftest.exe'), while it won't with
3002 for ac_file in conftest.exe conftest conftest.*; do
3003 test -f "$ac_file" || continue
3005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3006 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3015 See \`config.log' for more details" "$LINENO" 5; }
3017 rm -f conftest conftest$ac_cv_exeext
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3019 $as_echo "$ac_cv_exeext" >&6; }
3021 rm -f conftest.$ac_ext
3022 EXEEXT=$ac_cv_exeext
3024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3025 /* end confdefs.h. */
3030 FILE *f = fopen ("conftest.out", "w");
3031 return ferror (f) || fclose (f) != 0;
3037 ac_clean_files="$ac_clean_files conftest.out"
3038 # Check that the compiler produces executables we can run. If not, either
3039 # the compiler is broken, or we cross compile.
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3041 $as_echo_n "checking whether we are cross compiling... " >&6; }
3042 if test "$cross_compiling" != yes; then
3043 { { ac_try="$ac_link"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3049 $as_echo "$ac_try_echo"; } >&5
3050 (eval "$ac_link") 2>&5
3052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3053 test $ac_status = 0; }
3054 if { ac_try='./conftest$ac_cv_exeext'
3055 { { case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_try") 2>&5
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }; }; then
3067 if test "$cross_compiling" = maybe; then
3070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error $? "cannot run C compiled programs.
3073 If you meant to cross compile, use \`--host'.
3074 See \`config.log' for more details" "$LINENO" 5; }
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3079 $as_echo "$cross_compiling" >&6; }
3081 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3082 ac_clean_files=$ac_clean_files_save
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3084 $as_echo_n "checking for suffix of object files... " >&6; }
3085 if ${ac_cv_objext+:} false; then :
3086 $as_echo_n "(cached) " >&6
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3099 rm -f conftest.o conftest.obj
3100 if { { ac_try="$ac_compile"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107 (eval "$ac_compile") 2>&5
3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110 test $ac_status = 0; }; then :
3111 for ac_file in conftest.o conftest.obj conftest.*; do
3112 test -f "$ac_file" || continue;
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3115 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3120 $as_echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error $? "cannot compute suffix of object files: cannot compile
3126 See \`config.log' for more details" "$LINENO" 5; }
3128 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3131 $as_echo "$ac_cv_objext" >&6; }
3132 OBJEXT=$ac_cv_objext
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3135 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3136 if ${ac_cv_c_compiler_gnu+:} false; then :
3137 $as_echo_n "(cached) " >&6
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3153 if ac_fn_c_try_compile "$LINENO"; then :
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3163 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3164 if test $ac_compiler_gnu = yes; then
3169 ac_test_CFLAGS=${CFLAGS+set}
3170 ac_save_CFLAGS=$CFLAGS
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3172 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3173 if ${ac_cv_prog_cc_g+:} false; then :
3174 $as_echo_n "(cached) " >&6
3176 ac_save_c_werror_flag=$ac_c_werror_flag
3177 ac_c_werror_flag=yes
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h. */
3191 if ac_fn_c_try_compile "$LINENO"; then :
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3206 if ac_fn_c_try_compile "$LINENO"; then :
3209 ac_c_werror_flag=$ac_save_c_werror_flag
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h. */
3222 if ac_fn_c_try_compile "$LINENO"; then :
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3233 $as_echo "$ac_cv_prog_cc_g" >&6; }
3234 if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3243 if test "$GCC" = yes; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3250 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3251 if ${ac_cv_prog_cc_c89+:} false; then :
3252 $as_echo_n "(cached) " >&6
3254 ac_cv_prog_cc_c89=no
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3261 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3262 struct buf { int x; };
3263 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3264 static char *e (p, i)
3270 static char *f (char * (*g) (char **, int), char **p, ...)
3275 s = g (p, va_arg (v,int));
3280 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3281 function prototypes and stuff, but not '\xHH' hex character constants.
3282 These don't provoke an error unfortunately, instead are silently treated
3283 as 'x'. The following induces an error, until -std is added to get
3284 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3285 array size at least. It's necessary to write '\x00'==0 to get something
3286 that's true only with -std. */
3287 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3289 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3290 inside strings and character constants. */
3292 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3294 int test (int i, double x);
3295 struct s1 {int (*f) (int a);};
3296 struct s2 {int (*f) (double a);};
3297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3308 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3309 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3311 CC="$ac_save_CC $ac_arg"
3312 if ac_fn_c_try_compile "$LINENO"; then :
3313 ac_cv_prog_cc_c89=$ac_arg
3315 rm -f core conftest.err conftest.$ac_objext
3316 test "x$ac_cv_prog_cc_c89" != "xno" && break
3318 rm -f conftest.$ac_ext
3323 case "x$ac_cv_prog_cc_c89" in
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3326 $as_echo "none needed" >&6; } ;;
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3329 $as_echo "unsupported" >&6; } ;;
3331 CC="$CC $ac_cv_prog_cc_c89"
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3333 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3335 if test "x$ac_cv_prog_cc_c89" != xno; then :
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3346 ac_cpp='$CXXCPP $CPPFLAGS'
3347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3350 if test -z "$CXX"; then
3351 if test -n "$CCC"; then
3354 if test -n "$ac_tool_prefix"; then
3355 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_CXX+:} false; then :
3362 $as_echo_n "(cached) " >&6
3364 if test -n "$CXX"; then
3365 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 if test -n "$CXX"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3387 $as_echo "$CXX" >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3394 test -n "$CXX" && break
3397 if test -z "$CXX"; then
3399 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3401 # Extract the first word of "$ac_prog", so it can be a program name with args.
3402 set dummy $ac_prog; ac_word=$2
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404 $as_echo_n "checking for $ac_word... " >&6; }
3405 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3406 $as_echo_n "(cached) " >&6
3408 if test -n "$ac_ct_CXX"; then
3409 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 test -z "$as_dir" && as_dir=.
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418 ac_cv_prog_ac_ct_CXX="$ac_prog"
3419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3429 if test -n "$ac_ct_CXX"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3431 $as_echo "$ac_ct_CXX" >&6; }
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3438 test -n "$ac_ct_CXX" && break
3441 if test "x$ac_ct_CXX" = x; then
3444 case $cross_compiling:$ac_tool_warned in
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3448 ac_tool_warned=yes ;;
3456 # Provide some information about the compiler.
3457 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3460 for ac_option in --version -v -V -qversion; do
3461 { { ac_try="$ac_compiler $ac_option >&5"
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3470 if test -s conftest.err; then
3472 ... rest of stderr output deleted ...
3473 10q' conftest.err >conftest.er1
3474 cat conftest.er1 >&5
3476 rm -f conftest.er1 conftest.err
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3482 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3483 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3484 $as_echo_n "(cached) " >&6
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3500 if ac_fn_cxx_try_compile "$LINENO"; then :
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3510 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3511 if test $ac_compiler_gnu = yes; then
3516 ac_test_CXXFLAGS=${CXXFLAGS+set}
3517 ac_save_CXXFLAGS=$CXXFLAGS
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3519 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3520 if ${ac_cv_prog_cxx_g+:} false; then :
3521 $as_echo_n "(cached) " >&6
3523 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3524 ac_cxx_werror_flag=yes
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3538 if ac_fn_cxx_try_compile "$LINENO"; then :
3539 ac_cv_prog_cxx_g=yes
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3553 if ac_fn_cxx_try_compile "$LINENO"; then :
3556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3569 if ac_fn_cxx_try_compile "$LINENO"; then :
3570 ac_cv_prog_cxx_g=yes
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3580 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3581 if test "$ac_test_CXXFLAGS" = set; then
3582 CXXFLAGS=$ac_save_CXXFLAGS
3583 elif test $ac_cv_prog_cxx_g = yes; then
3584 if test "$GXX" = yes; then
3590 if test "$GXX" = yes; then
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605 ac_cpp='$CPP $CPPFLAGS'
3606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3610 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3611 # On Suns, sometimes $CPP names a directory.
3612 if test -n "$CPP" && test -d "$CPP"; then
3615 if test -z "$CPP"; then
3616 if ${ac_cv_prog_CPP+:} false; then :
3617 $as_echo_n "(cached) " >&6
3619 # Double quotes because CPP needs to be expanded
3620 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3623 for ac_c_preproc_warn_flag in '' yes
3625 # Use a header file that comes with gcc, so configuring glibc
3626 # with a fresh cross-compiler works.
3627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3628 # <limits.h> exists even on freestanding compilers.
3629 # On the NeXT, cc -E runs the code through the compiler's parser,
3630 # not just through cpp. "Syntax error" is here to catch this case.
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3634 # include <limits.h>
3636 # include <assert.h>
3640 if ac_fn_c_try_cpp "$LINENO"; then :
3643 # Broken: fails on valid input.
3646 rm -f conftest.err conftest.i conftest.$ac_ext
3648 # OK, works on sane cases. Now check whether nonexistent headers
3649 # can be detected and how.
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3652 #include <ac_nonexistent.h>
3654 if ac_fn_c_try_cpp "$LINENO"; then :
3655 # Broken: success on invalid input.
3658 # Passes both tests.
3662 rm -f conftest.err conftest.i conftest.$ac_ext
3665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3666 rm -f conftest.i conftest.err conftest.$ac_ext
3667 if $ac_preproc_ok; then :
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3680 $as_echo "$CPP" >&6; }
3682 for ac_c_preproc_warn_flag in '' yes
3684 # Use a header file that comes with gcc, so configuring glibc
3685 # with a fresh cross-compiler works.
3686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3687 # <limits.h> exists even on freestanding compilers.
3688 # On the NeXT, cc -E runs the code through the compiler's parser,
3689 # not just through cpp. "Syntax error" is here to catch this case.
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3693 # include <limits.h>
3695 # include <assert.h>
3699 if ac_fn_c_try_cpp "$LINENO"; then :
3702 # Broken: fails on valid input.
3705 rm -f conftest.err conftest.i conftest.$ac_ext
3707 # OK, works on sane cases. Now check whether nonexistent headers
3708 # can be detected and how.
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3711 #include <ac_nonexistent.h>
3713 if ac_fn_c_try_cpp "$LINENO"; then :
3714 # Broken: success on invalid input.
3717 # Passes both tests.
3721 rm -f conftest.err conftest.i conftest.$ac_ext
3724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3725 rm -f conftest.i conftest.err conftest.$ac_ext
3726 if $ac_preproc_ok; then :
3729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3731 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3732 See \`config.log' for more details" "$LINENO" 5; }
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3743 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3744 if ${ac_cv_path_GREP+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 if test -z "$GREP"; then
3748 ac_path_GREP_found=false
3749 # Loop through the user's path and test for each of PROGNAME-LIST
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3754 test -z "$as_dir" && as_dir=.
3755 for ac_prog in grep ggrep; do
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3758 as_fn_executable_p "$ac_path_GREP" || continue
3759 # Check for GNU ac_path_GREP and select it if it is found.
3760 # Check for GNU $ac_path_GREP
3761 case `"$ac_path_GREP" --version 2>&1` in
3763 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3766 $as_echo_n 0123456789 >"conftest.in"
3769 cat "conftest.in" "conftest.in" >"conftest.tmp"
3770 mv "conftest.tmp" "conftest.in"
3771 cp "conftest.in" "conftest.nl"
3772 $as_echo 'GREP' >> "conftest.nl"
3773 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3775 as_fn_arith $ac_count + 1 && ac_count=$as_val
3776 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3777 # Best one so far, save it but keep looking for a better one
3778 ac_cv_path_GREP="$ac_path_GREP"
3779 ac_path_GREP_max=$ac_count
3781 # 10*(2^10) chars as input seems more than enough
3782 test $ac_count -gt 10 && break
3784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3787 $ac_path_GREP_found && break 3
3792 if test -z "$ac_cv_path_GREP"; then
3793 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3796 ac_cv_path_GREP=$GREP
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3801 $as_echo "$ac_cv_path_GREP" >&6; }
3802 GREP="$ac_cv_path_GREP"
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3806 $as_echo_n "checking for egrep... " >&6; }
3807 if ${ac_cv_path_EGREP+:} false; then :
3808 $as_echo_n "(cached) " >&6
3810 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3811 then ac_cv_path_EGREP="$GREP -E"
3813 if test -z "$EGREP"; then
3814 ac_path_EGREP_found=false
3815 # Loop through the user's path and test for each of PROGNAME-LIST
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3820 test -z "$as_dir" && as_dir=.
3821 for ac_prog in egrep; do
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3824 as_fn_executable_p "$ac_path_EGREP" || continue
3825 # Check for GNU ac_path_EGREP and select it if it is found.
3826 # Check for GNU $ac_path_EGREP
3827 case `"$ac_path_EGREP" --version 2>&1` in
3829 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3832 $as_echo_n 0123456789 >"conftest.in"
3835 cat "conftest.in" "conftest.in" >"conftest.tmp"
3836 mv "conftest.tmp" "conftest.in"
3837 cp "conftest.in" "conftest.nl"
3838 $as_echo 'EGREP' >> "conftest.nl"
3839 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3840 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3841 as_fn_arith $ac_count + 1 && ac_count=$as_val
3842 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3843 # Best one so far, save it but keep looking for a better one
3844 ac_cv_path_EGREP="$ac_path_EGREP"
3845 ac_path_EGREP_max=$ac_count
3847 # 10*(2^10) chars as input seems more than enough
3848 test $ac_count -gt 10 && break
3850 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3853 $ac_path_EGREP_found && break 3
3858 if test -z "$ac_cv_path_EGREP"; then
3859 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3862 ac_cv_path_EGREP=$EGREP
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3868 $as_echo "$ac_cv_path_EGREP" >&6; }
3869 EGREP="$ac_cv_path_EGREP"
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3873 $as_echo_n "checking for ANSI C header files... " >&6; }
3874 if ${ac_cv_header_stdc+:} false; then :
3875 $as_echo_n "(cached) " >&6
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3892 if ac_fn_c_try_compile "$LINENO"; then :
3893 ac_cv_header_stdc=yes
3895 ac_cv_header_stdc=no
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 if test $ac_cv_header_stdc = yes; then
3900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3907 $EGREP "memchr" >/dev/null 2>&1; then :
3910 ac_cv_header_stdc=no
3916 if test $ac_cv_header_stdc = yes; then
3917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "free" >/dev/null 2>&1; then :
3927 ac_cv_header_stdc=no
3933 if test $ac_cv_header_stdc = yes; then
3934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3935 if test "$cross_compiling" = yes; then :
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3942 #if ((' ' & 0x0FF) == 0x020)
3943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3946 # define ISLOWER(c) \
3947 (('a' <= (c) && (c) <= 'i') \
3948 || ('j' <= (c) && (c) <= 'r') \
3949 || ('s' <= (c) && (c) <= 'z'))
3950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3958 for (i = 0; i < 256; i++)
3959 if (XOR (islower (i), ISLOWER (i))
3960 || toupper (i) != TOUPPER (i))
3965 if ac_fn_c_try_run "$LINENO"; then :
3968 ac_cv_header_stdc=no
3970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3971 conftest.$ac_objext conftest.beam conftest.$ac_ext
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3977 $as_echo "$ac_cv_header_stdc" >&6; }
3978 if test $ac_cv_header_stdc = yes; then
3980 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3984 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3985 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3986 inttypes.h stdint.h unistd.h
3988 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3989 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3991 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3992 cat >>confdefs.h <<_ACEOF
3993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4002 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4003 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4010 if test "$MINIX" = yes; then
4012 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4015 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4018 $as_echo "#define _MINIX 1" >>confdefs.h
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4024 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4025 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4026 $as_echo_n "(cached) " >&6
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4031 # define __EXTENSIONS__ 1
4032 $ac_includes_default
4041 if ac_fn_c_try_compile "$LINENO"; then :
4042 ac_cv_safe_to_define___extensions__=yes
4044 ac_cv_safe_to_define___extensions__=no
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4049 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4050 test $ac_cv_safe_to_define___extensions__ = yes &&
4051 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4053 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4055 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4057 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4059 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4064 if test $ac_cv_c_compiler_gnu = yes; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4066 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4067 if ${ac_cv_prog_gcc_traditional+:} false; then :
4068 $as_echo_n "(cached) " >&6
4070 ac_pattern="Autoconf.*'x'"
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4077 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4078 ac_cv_prog_gcc_traditional=yes
4080 ac_cv_prog_gcc_traditional=no
4085 if test $ac_cv_prog_gcc_traditional = no; then
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4092 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4093 ac_cv_prog_gcc_traditional=yes
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4100 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4101 if test $ac_cv_prog_gcc_traditional = yes; then
4102 CC="$CC -traditional"
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4107 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4108 if ${ac_cv_prog_suncc+:} false; then :
4109 $as_echo_n "(cached) " >&6
4111 cat > conftest.c <<EOF
4116 if { ac_try='${CC-cc} -E conftest.c'
4117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4122 ac_cv_prog_suncc=yes
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4128 $as_echo "$ac_cv_prog_suncc" >&6; }
4129 if test -n "$ac_tool_prefix"; then
4130 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if ${ac_cv_prog_RANLIB+:} false; then :
4135 $as_echo_n "(cached) " >&6
4137 if test -n "$RANLIB"; then
4138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 RANLIB=$ac_cv_prog_RANLIB
4158 if test -n "$RANLIB"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4160 $as_echo "$RANLIB" >&6; }
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4168 if test -z "$ac_cv_prog_RANLIB"; then
4169 ac_ct_RANLIB=$RANLIB
4170 # Extract the first word of "ranlib", so it can be a program name with args.
4171 set dummy ranlib; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4175 $as_echo_n "(cached) " >&6
4177 if test -n "$ac_ct_RANLIB"; then
4178 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_ac_ct_RANLIB="ranlib"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4198 if test -n "$ac_ct_RANLIB"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4200 $as_echo "$ac_ct_RANLIB" >&6; }
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4206 if test "x$ac_ct_RANLIB" = x; then
4209 case $cross_compiling:$ac_tool_warned in
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4213 ac_tool_warned=yes ;;
4215 RANLIB=$ac_ct_RANLIB
4218 RANLIB="$ac_cv_prog_RANLIB"
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4224 $as_echo_n "checking if compiler is clang... " >&6; }
4225 if ${ax_cv_cc_clang+:} false; then :
4226 $as_echo_n "(cached) " >&6
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4245 if ac_fn_c_try_compile "$LINENO"; then :
4250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4254 $as_echo "$ax_cv_cc_clang" >&6; }
4256 if test "x$ax_cv_cc_clang" = "xyes"; then
4265 if test "x$GCC" = "xyes"; then
4266 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4271 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4272 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4273 $as_echo_n "(cached) " >&6
4277 CFLAGS_SAVED=$CFLAGS
4278 CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298 ax_cv_cc_qunused_arguments_flag="yes"
4300 ax_cv_cc_qunused_arguments_flag="no"
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310 CFLAGS="$CFLAGS_SAVED"
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4314 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4316 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4317 CFLAGS="$CFLAGS -Qunused-arguments"
4318 LDFLAGS="$LDFLAGS -Qunused-arguments"
4321 # Check whether --enable-largefile was given.
4322 if test "${enable_largefile+set}" = set; then :
4323 enableval=$enable_largefile;
4326 if test "$enable_largefile" != no; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4329 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4330 if ${ac_cv_sys_largefile_CC+:} false; then :
4331 $as_echo_n "(cached) " >&6
4333 ac_cv_sys_largefile_CC=no
4334 if test "$GCC" != yes; then
4337 # IRIX 6.2 and later do not support large files by default,
4338 # so use the C compiler's -n32 option if that helps.
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 #include <sys/types.h>
4342 /* Check that off_t can represent 2**63 - 1 correctly.
4343 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4344 since some C++ compilers masquerading as C compilers
4345 incorrectly reject 9223372036854775807. */
4346 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4347 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4348 && LARGE_OFF_T % 2147483647 == 1)
4358 if ac_fn_c_try_compile "$LINENO"; then :
4361 rm -f core conftest.err conftest.$ac_objext
4363 if ac_fn_c_try_compile "$LINENO"; then :
4364 ac_cv_sys_largefile_CC=' -n32'; break
4366 rm -f core conftest.err conftest.$ac_objext
4370 rm -f conftest.$ac_ext
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4374 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4375 if test "$ac_cv_sys_largefile_CC" != no; then
4376 CC=$CC$ac_cv_sys_largefile_CC
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4380 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4381 if ${ac_cv_sys_file_offset_bits+:} false; then :
4382 $as_echo_n "(cached) " >&6
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387 #include <sys/types.h>
4388 /* Check that off_t can represent 2**63 - 1 correctly.
4389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4390 since some C++ compilers masquerading as C compilers
4391 incorrectly reject 9223372036854775807. */
4392 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4394 && LARGE_OFF_T % 2147483647 == 1)
4404 if ac_fn_c_try_compile "$LINENO"; then :
4405 ac_cv_sys_file_offset_bits=no; break
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410 #define _FILE_OFFSET_BITS 64
4411 #include <sys/types.h>
4412 /* Check that off_t can represent 2**63 - 1 correctly.
4413 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4414 since some C++ compilers masquerading as C compilers
4415 incorrectly reject 9223372036854775807. */
4416 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4417 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4418 && LARGE_OFF_T % 2147483647 == 1)
4428 if ac_fn_c_try_compile "$LINENO"; then :
4429 ac_cv_sys_file_offset_bits=64; break
4431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 ac_cv_sys_file_offset_bits=unknown
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4437 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4438 case $ac_cv_sys_file_offset_bits in #(
4441 cat >>confdefs.h <<_ACEOF
4442 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4447 if test $ac_cv_sys_file_offset_bits = unknown; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4449 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4450 if ${ac_cv_sys_large_files+:} false; then :
4451 $as_echo_n "(cached) " >&6
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 #include <sys/types.h>
4457 /* Check that off_t can represent 2**63 - 1 correctly.
4458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4459 since some C++ compilers masquerading as C compilers
4460 incorrectly reject 9223372036854775807. */
4461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4463 && LARGE_OFF_T % 2147483647 == 1)
4473 if ac_fn_c_try_compile "$LINENO"; then :
4474 ac_cv_sys_large_files=no; break
4476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479 #define _LARGE_FILES 1
4480 #include <sys/types.h>
4481 /* Check that off_t can represent 2**63 - 1 correctly.
4482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4483 since some C++ compilers masquerading as C compilers
4484 incorrectly reject 9223372036854775807. */
4485 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4487 && LARGE_OFF_T % 2147483647 == 1)
4497 if ac_fn_c_try_compile "$LINENO"; then :
4498 ac_cv_sys_large_files=1; break
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 ac_cv_sys_large_files=unknown
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4506 $as_echo "$ac_cv_sys_large_files" >&6; }
4507 case $ac_cv_sys_large_files in #(
4510 cat >>confdefs.h <<_ACEOF
4511 #define _LARGE_FILES $ac_cv_sys_large_files
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4523 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4524 if ${ac_cv_c_bigendian+:} false; then :
4525 $as_echo_n "(cached) " >&6
4527 ac_cv_c_bigendian=unknown
4528 # See if we're dealing with a universal compiler.
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531 #ifndef __APPLE_CC__
4532 not a universal capable compiler
4537 if ac_fn_c_try_compile "$LINENO"; then :
4539 # Check for potential -arch flags. It is not universal unless
4540 # there are at least two -arch flags with different values.
4543 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4544 if test -n "$ac_prev"; then
4546 i?86 | x86_64 | ppc | ppc64)
4547 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4550 ac_cv_c_bigendian=universal
4556 elif test "x$ac_word" = "x-arch"; then
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 if test $ac_cv_c_bigendian = unknown; then
4563 # See if sys/param.h defines the BYTE_ORDER macro.
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 #include <sys/types.h>
4567 #include <sys/param.h>
4572 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4573 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4582 if ac_fn_c_try_compile "$LINENO"; then :
4583 # It does; now see whether it defined to BIG_ENDIAN or not.
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586 #include <sys/types.h>
4587 #include <sys/param.h>
4592 #if BYTE_ORDER != BIG_ENDIAN
4600 if ac_fn_c_try_compile "$LINENO"; then :
4601 ac_cv_c_bigendian=yes
4603 ac_cv_c_bigendian=no
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 if test $ac_cv_c_bigendian = unknown; then
4610 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4618 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627 # It does; now see whether it defined to _BIG_ENDIAN or not.
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4643 if ac_fn_c_try_compile "$LINENO"; then :
4644 ac_cv_c_bigendian=yes
4646 ac_cv_c_bigendian=no
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 if test $ac_cv_c_bigendian = unknown; then
4653 # Compile a test program.
4654 if test "$cross_compiling" = yes; then :
4655 # Try to guess by grepping values from an object file.
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658 short int ascii_mm[] =
4659 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4660 short int ascii_ii[] =
4661 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4662 int use_ascii (int i) {
4663 return ascii_mm[i] + ascii_ii[i];
4665 short int ebcdic_ii[] =
4666 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4667 short int ebcdic_mm[] =
4668 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4669 int use_ebcdic (int i) {
4670 return ebcdic_mm[i] + ebcdic_ii[i];
4677 return use_ascii (foo) == use_ebcdic (foo);
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4684 ac_cv_c_bigendian=yes
4686 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4687 if test "$ac_cv_c_bigendian" = unknown; then
4688 ac_cv_c_bigendian=no
4690 # finding both strings is unlikely to happen, but who knows?
4691 ac_cv_c_bigendian=unknown
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 $ac_includes_default
4704 /* Are we little or big endian? From Harbison&Steele. */
4708 char c[sizeof (long int)];
4711 return u.c[sizeof (long int) - 1] == 1;
4717 if ac_fn_c_try_run "$LINENO"; then :
4718 ac_cv_c_bigendian=no
4720 ac_cv_c_bigendian=yes
4722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4723 conftest.$ac_objext conftest.beam conftest.$ac_ext
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4729 $as_echo "$ac_cv_c_bigendian" >&6; }
4730 case $ac_cv_c_bigendian in #(
4732 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4738 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4742 as_fn_error $? "unknown endianness
4743 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4747 # Extract the first word of "gmake", so it can be a program name with args.
4748 set dummy gmake; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if ${ac_cv_prog_GMAKE+:} false; then :
4752 $as_echo_n "(cached) " >&6
4754 if test -n "$GMAKE"; then
4755 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764 ac_cv_prog_GMAKE="yes"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4775 GMAKE=$ac_cv_prog_GMAKE
4776 if test -n "$GMAKE"; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4778 $as_echo "$GMAKE" >&6; }
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4785 if test $GMAKE = no; then
4786 # Extract the first word of "make", so it can be a program name with args.
4787 set dummy make; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_path_MAKE+:} false; then :
4791 $as_echo_n "(cached) " >&6
4795 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4805 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4817 MAKE=$ac_cv_path_MAKE
4818 if test -n "$MAKE"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4820 $as_echo "$MAKE" >&6; }
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4828 # Extract the first word of "gmake", so it can be a program name with args.
4829 set dummy gmake; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if ${ac_cv_path_MAKE+:} false; then :
4833 $as_echo_n "(cached) " >&6
4837 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4847 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4859 MAKE=$ac_cv_path_MAKE
4860 if test -n "$MAKE"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4862 $as_echo "$MAKE" >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4870 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4871 if test -z "$makever"; then
4872 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
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4877 $as_echo_n "checking number of system cores... " >&6; }
4878 if ${ax_cv_system_cores+:} false; then :
4879 $as_echo_n "(cached) " >&6
4883 ac_cpp='$CPP $CPPFLAGS'
4884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888 if test "$cross_compiling" = yes; then :
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4898 # include <windows.h>
4900 # include <sys/param.h>
4901 # include <sys/sysctl.h>
4903 # include <unistd.h>
4906 int main (int argc, char *argv[])
4911 SYSTEM_INFO sysinfo;
4912 GetSystemInfo(&sysinfo);
4914 count = sysinfo.dwNumberOfProcessors;
4921 nm[1] = HW_AVAILCPU;
4922 sysctl(nm, 2, &count, &len, NULL, 0);
4926 sysctl(nm, 2, &count, &len, NULL, 0);
4933 count = sysconf(_SC_NPROCESSORS_ONLN);
4940 if ac_fn_c_try_run "$LINENO"; then :
4941 ax_cv_system_cores=$?
4943 ax_cv_system_cores=$?
4945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4946 conftest.$ac_objext conftest.beam conftest.$ac_ext
4950 ac_cpp='$CPP $CPPFLAGS'
4951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
4958 $as_echo "$ax_cv_system_cores" >&6; }
4963 # Extract the first word of "git", so it can be a program name with args.
4964 set dummy git; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if ${ac_cv_prog_GIT+:} false; then :
4968 $as_echo_n "(cached) " >&6
4970 if test -n "$GIT"; then
4971 ac_cv_prog_GIT="$GIT" # Let the user override the test.
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980 ac_cv_prog_GIT="yes"
4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4992 if test -n "$GIT"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4994 $as_echo "$GIT" >&6; }
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
5003 # Check whether --enable-strict-dependencies was given.
5004 if test "${enable_strict_dependencies+set}" = set; then :
5005 enableval=$enable_strict_dependencies;
5009 # Check whether --enable-werror was given.
5010 if test "${enable_werror+set}" = set; then :
5011 enableval=$enable_werror; case "$enableval" in
5022 docdir='${datadir}/doc/freeradius'
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5024 $as_echo_n "checking docdir... " >&6; }
5026 # Check whether --with-docdir was given.
5027 if test "${with_docdir+set}" = set; then :
5028 withval=$with_docdir; case "$withval" in
5034 [\\/$]* | ?:[\\/]* )
5038 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5046 $as_echo "$docdir" >&6; }
5047 if test "x$docdir" = xno; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5049 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5052 logdir='${localstatedir}/log/radius'
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5054 $as_echo_n "checking logdir... " >&6; }
5056 # Check whether --with-logdir was given.
5057 if test "${with_logdir+set}" = set; then :
5058 withval=$with_logdir; case "$withval" in
5060 as_fn_error $? "Need logdir" "$LINENO" 5
5064 [\\/$]* | ?:[\\/]* )
5068 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5076 $as_echo "$logdir" >&6; }
5078 radacctdir='${logdir}/radacct'
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5080 $as_echo_n "checking radacctdir... " >&6; }
5082 # Check whether --with-radacctdir was given.
5083 if test "${with_radacctdir+set}" = set; then :
5084 withval=$with_radacctdir; case "$withval" in
5086 as_fn_error $? "Need radacctdir" "$LINENO" 5
5090 [\\/$]* | ?:[\\/]* )
5091 radacctdir="$withval"
5094 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5102 $as_echo "$radacctdir" >&6; }
5104 raddbdir='${sysconfdir}/raddb'
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5106 $as_echo_n "checking raddbdir... " >&6; }
5108 # Check whether --with-raddbdir was given.
5109 if test "${with_raddbdir+set}" = set; then :
5110 withval=$with_raddbdir; case "$withval" in
5112 as_fn_error $? "Need raddbdir" "$LINENO" 5
5116 [\\/$]* | ?:[\\/]* )
5120 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5128 $as_echo "$raddbdir" >&6; }
5130 modconfdir='${raddbdir}/mods-config'
5133 WITH_ASCEND_BINARY=yes
5135 # Check whether --with-ascend-binary was given.
5136 if test "${with_ascend_binary+set}" = set; then :
5137 withval=$with_ascend_binary; case "$withval" in
5141 WITH_ASCEND_BINARY=no
5146 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5148 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5154 # Check whether --with-threads was given.
5155 if test "${with_threads+set}" = set; then :
5156 withval=$with_threads; case "$withval" in
5168 # Check whether --with-tcp was given.
5169 if test "${with_tcp+set}" = set; then :
5170 withval=$with_tcp; case "$withval" in
5179 if test "x$WITH_TCP" = "xyes"; then
5181 $as_echo "#define WITH_TCP 1" >>confdefs.h
5187 # Check whether --with-vmps was given.
5188 if test "${with_vmps+set}" = set; then :
5189 withval=$with_vmps; case "$withval" in
5198 if test "x$WITH_VMPS" = "xyes"; then
5200 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5206 # Check whether --with-dhcp was given.
5207 if test "${with_dhcp+set}" = set; then :
5208 withval=$with_dhcp; case "$withval" in
5217 if test "x$WITH_DHCP" = "xyes"; then
5219 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5225 # Check whether --with-static_modules was given.
5226 if test "${with_static_modules+set}" = set; then :
5227 withval=$with_static_modules;
5228 for i in $withval; do
5229 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5237 # Check whether --with-shared-libs was given.
5238 if test "${with_shared_libs+set}" = set; then :
5239 withval=$with_shared_libs; case "$withval" in
5251 # Check whether --with-modules was given.
5252 if test "${with_modules+set}" = set; then :
5253 withval=$with_modules;
5254 for i in $withval; do
5255 MODULES="$MODULES $i"
5263 # Check whether --with-experimental-modules was given.
5264 if test "${with_experimental_modules+set}" = set; then :
5265 withval=$with_experimental_modules; case "$withval" in
5280 # Check whether --with-udpfromto was given.
5281 if test "${with_udpfromto+set}" = set; then :
5282 withval=$with_udpfromto; case "$withval" in
5293 if test "x$WITH_UDPFROMTO" = "xyes"; then
5295 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5301 # Check whether --with-openssl was given.
5302 if test "${with_openssl+set}" = set; then :
5303 withval=$with_openssl; case "$withval" in
5315 OPENSSL_INCLUDE_DIR=
5317 # Check whether --with-openssl-includes was given.
5318 if test "${with_openssl_includes+set}" = set; then :
5319 withval=$with_openssl_includes; case "$withval" in
5320 *) OPENSSL_INCLUDE_DIR="$withval"
5329 # Check whether --with-openssl-libraries was given.
5330 if test "${with_openssl_libraries+set}" = set; then :
5331 withval=$with_openssl_libraries; case "$withval" in
5332 *) OPENSSL_LIB_DIR="$withval"
5341 # Check whether --with-rlm-FOO-lib-dir was given.
5342 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5343 withval=$with_rlm_FOO_lib_dir; case "$withval" in
5352 # Check whether --with-rlm-FOO-include-dir was given.
5353 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5354 withval=$with_rlm_FOO_include_dir; case "$withval" in
5364 # Extract the first word of "perl", so it can be a program name with args.
5365 set dummy perl; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if ${ac_cv_path_PERL+:} false; then :
5369 $as_echo_n "(cached) " >&6
5373 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5395 PERL=$ac_cv_path_PERL
5396 if test -n "$PERL"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5398 $as_echo "$PERL" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5405 if test "x$ac_cv_path_PERL" = "x"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5407 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5409 # Extract the first word of "snmpget", so it can be a program name with args.
5410 set dummy snmpget; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_path_SNMPGET+:} false; then :
5414 $as_echo_n "(cached) " >&6
5418 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 SNMPGET=$ac_cv_path_SNMPGET
5440 if test -n "$SNMPGET"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5442 $as_echo "$SNMPGET" >&6; }
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5449 if test "x$ac_cv_path_SNMPGET" = "x"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5451 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5454 # Extract the first word of "snmpwalk", so it can be a program name with args.
5455 set dummy snmpwalk; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_path_SNMPWALK+:} false; then :
5459 $as_echo_n "(cached) " >&6
5463 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 SNMPWALK=$ac_cv_path_SNMPWALK
5485 if test -n "$SNMPWALK"; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5487 $as_echo "$SNMPWALK" >&6; }
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5494 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5496 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5499 # Extract the first word of "rusers", so it can be a program name with args.
5500 set dummy rusers; ac_word=$2
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if ${ac_cv_path_RUSERS+:} false; then :
5504 $as_echo_n "(cached) " >&6
5508 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5530 RUSERS=$ac_cv_path_RUSERS
5531 if test -n "$RUSERS"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5533 $as_echo "$RUSERS" >&6; }
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5541 missing_dir=`cd $ac_aux_dir && pwd`
5542 # expand $ac_aux_dir to an absolute path
5543 am_aux_dir=`cd $ac_aux_dir && pwd`
5545 if test x"${MISSING+set}" != xset; then
5548 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5550 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5553 # Use eval to expand $SHELL
5554 if eval "$MISSING --run true"; then
5555 am_missing_run="$MISSING --run "
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5559 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5563 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5566 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5569 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5572 # Extract the first word of "locate", so it can be a program name with args.
5573 set dummy locate; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_path_LOCATE+:} false; then :
5577 $as_echo_n "(cached) " >&6
5581 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 LOCATE=$ac_cv_path_LOCATE
5603 if test -n "$LOCATE"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5605 $as_echo "$LOCATE" >&6; }
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5612 # Extract the first word of "dirname", so it can be a program name with args.
5613 set dummy dirname; ac_word=$2
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if ${ac_cv_path_DIRNAME+:} false; then :
5617 $as_echo_n "(cached) " >&6
5621 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5631 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 DIRNAME=$ac_cv_path_DIRNAME
5643 if test -n "$DIRNAME"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5645 $as_echo "$DIRNAME" >&6; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5652 # Extract the first word of "grep", so it can be a program name with args.
5653 set dummy grep; ac_word=$2
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if ${ac_cv_path_GREP+:} false; then :
5657 $as_echo_n "(cached) " >&6
5661 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 GREP=$ac_cv_path_GREP
5683 if test -n "$GREP"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5685 $as_echo "$GREP" >&6; }
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 $as_echo "no" >&6; }
5695 if test "x$WITH_THREADS" = "xyes"; then
5696 if test $ac_cv_prog_suncc = "yes"; then
5697 CFLAGS="$CFLAGS -mt"
5700 for ac_header in pthread.h
5702 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5703 if test "x$ac_cv_header_pthread_h" = xyes; then :
5704 cat >>confdefs.h <<_ACEOF
5705 #define HAVE_PTHREAD_H 1
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5716 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5717 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5718 $as_echo_n "(cached) " >&6
5720 ac_check_lib_save_LIBS=$LIBS
5721 LIBS="-lpthread $LIBS"
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5725 /* Override any GCC internal prototype to avoid an error.
5726 Use char because int might match the return type of a GCC
5727 builtin and then its argument prototype would still apply. */
5731 char pthread_create ();
5735 return pthread_create ();
5740 if ac_fn_c_try_link "$LINENO"; then :
5741 ac_cv_lib_pthread_pthread_create=yes
5743 ac_cv_lib_pthread_pthread_create=no
5745 rm -f core conftest.err conftest.$ac_objext \
5746 conftest$ac_exeext conftest.$ac_ext
5747 LIBS=$ac_check_lib_save_LIBS
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5750 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5751 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5753 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
5754 LIBS="-lpthread $LIBS"
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5759 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5760 if ${ac_cv_lib_c_r_pthread_create+:} 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. */
5774 char pthread_create ();
5778 return pthread_create ();
5783 if ac_fn_c_try_link "$LINENO"; then :
5784 ac_cv_lib_c_r_pthread_create=yes
5786 ac_cv_lib_c_r_pthread_create=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_c_r_pthread_create" >&5
5793 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5794 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5795 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
5807 if test "x$WITH_THREADS" != "xyes"; then
5809 ac_cv_header_pthread_h="no"
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5814 $as_echo_n "checking for library containing sem_init... " >&6; }
5815 if ${ac_cv_search_sem_init+:} false; then :
5816 $as_echo_n "(cached) " >&6
5818 ac_func_search_save_LIBS=$LIBS
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5822 /* Override any GCC internal prototype to avoid an error.
5823 Use char because int might match the return type of a GCC
5824 builtin and then its argument prototype would still apply. */
5837 for ac_lib in '' pthread sem posix4 rt semaphore; do
5838 if test -z "$ac_lib"; then
5839 ac_res="none required"
5842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5844 if ac_fn_c_try_link "$LINENO"; then :
5845 ac_cv_search_sem_init=$ac_res
5847 rm -f core conftest.err conftest.$ac_objext \
5849 if ${ac_cv_search_sem_init+:} false; then :
5853 if ${ac_cv_search_sem_init+:} false; then :
5856 ac_cv_search_sem_init=no
5859 LIBS=$ac_func_search_save_LIBS
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5862 $as_echo "$ac_cv_search_sem_init" >&6; }
5863 ac_res=$ac_cv_search_sem_init
5864 if test "$ac_res" != no; then :
5865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5868 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
5874 if test "x$WITH_THREADS" = "xyes"; then
5876 $as_echo "#define WITH_THREADS 1" >>confdefs.h
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5881 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5882 if ${ac_cv_lib_dl_dlopen+:} false; then :
5883 $as_echo_n "(cached) " >&6
5885 ac_check_lib_save_LIBS=$LIBS
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5890 /* Override any GCC internal prototype to avoid an error.
5891 Use char because int might match the return type of a GCC
5892 builtin and then its argument prototype would still apply. */
5905 if ac_fn_c_try_link "$LINENO"; then :
5906 ac_cv_lib_dl_dlopen=yes
5908 ac_cv_lib_dl_dlopen=no
5910 rm -f core conftest.err conftest.$ac_objext \
5911 conftest$ac_exeext conftest.$ac_ext
5912 LIBS=$ac_check_lib_save_LIBS
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5915 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5916 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5917 cat >>confdefs.h <<_ACEOF
5918 #define HAVE_LIBDL 1
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
5927 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
5928 if ${ac_cv_lib_socket_getsockname+:} false; then :
5929 $as_echo_n "(cached) " >&6
5931 ac_check_lib_save_LIBS=$LIBS
5932 LIBS="-lsocket $LIBS"
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5936 /* Override any GCC internal prototype to avoid an error.
5937 Use char because int might match the return type of a GCC
5938 builtin and then its argument prototype would still apply. */
5942 char getsockname ();
5946 return getsockname ();
5951 if ac_fn_c_try_link "$LINENO"; then :
5952 ac_cv_lib_socket_getsockname=yes
5954 ac_cv_lib_socket_getsockname=no
5956 rm -f core conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5958 LIBS=$ac_check_lib_save_LIBS
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
5961 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
5962 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
5963 cat >>confdefs.h <<_ACEOF
5964 #define HAVE_LIBSOCKET 1
5967 LIBS="-lsocket $LIBS"
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
5973 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
5974 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
5975 $as_echo_n "(cached) " >&6
5977 ac_check_lib_save_LIBS=$LIBS
5978 LIBS="-lresolv $LIBS"
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5982 /* Override any GCC internal prototype to avoid an error.
5983 Use char because int might match the return type of a GCC
5984 builtin and then its argument prototype would still apply. */
5992 return inet_aton ();
5997 if ac_fn_c_try_link "$LINENO"; then :
5998 ac_cv_lib_resolv_inet_aton=yes
6000 ac_cv_lib_resolv_inet_aton=no
6002 rm -f core conftest.err conftest.$ac_objext \
6003 conftest$ac_exeext conftest.$ac_ext
6004 LIBS=$ac_check_lib_save_LIBS
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6007 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6008 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6009 cat >>confdefs.h <<_ACEOF
6010 #define HAVE_LIBRESOLV 1
6013 LIBS="-lresolv $LIBS"
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6019 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6020 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6021 $as_echo_n "(cached) " >&6
6023 ac_check_lib_save_LIBS=$LIBS
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6028 /* Override any GCC internal prototype to avoid an error.
6029 Use char because int might match the return type of a GCC
6030 builtin and then its argument prototype would still apply. */
6038 return inet_ntoa ();
6043 if ac_fn_c_try_link "$LINENO"; then :
6044 ac_cv_lib_nsl_inet_ntoa=yes
6046 ac_cv_lib_nsl_inet_ntoa=no
6048 rm -f core conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext conftest.$ac_ext
6050 LIBS=$ac_check_lib_save_LIBS
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6053 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6054 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6055 cat >>confdefs.h <<_ACEOF
6056 #define HAVE_LIBNSL 1
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6064 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6065 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6066 $as_echo_n "(cached) " >&6
6068 ac_check_lib_save_LIBS=$LIBS
6069 LIBS="-lws2_32 $LIBS"
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6073 /* Override any GCC internal prototype to avoid an error.
6074 Use char because int might match the return type of a GCC
6075 builtin and then its argument prototype would still apply. */
6088 if ac_fn_c_try_link "$LINENO"; then :
6089 ac_cv_lib_ws2_32_htonl=yes
6091 ac_cv_lib_ws2_32_htonl=no
6093 rm -f core conftest.err conftest.$ac_objext \
6094 conftest$ac_exeext conftest.$ac_ext
6095 LIBS=$ac_check_lib_save_LIBS
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6098 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6099 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6100 cat >>confdefs.h <<_ACEOF
6101 #define HAVE_LIBWS2_32 1
6104 LIBS="-lws2_32 $LIBS"
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6111 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6112 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
6113 $as_echo_n "(cached) " >&6
6115 ac_check_lib_save_LIBS=$LIBS
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6120 /* Override any GCC internal prototype to avoid an error.
6121 Use char because int might match the return type of a GCC
6122 builtin and then its argument prototype would still apply. */
6126 char pcap_open_live ();
6130 return pcap_open_live ();
6135 if ac_fn_c_try_link "$LINENO"; then :
6136 ac_cv_lib_pcap_pcap_open_live=yes
6138 ac_cv_lib_pcap_pcap_open_live=no
6140 rm -f core conftest.err conftest.$ac_objext \
6141 conftest$ac_exeext conftest.$ac_ext
6142 LIBS=$ac_check_lib_save_LIBS
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
6145 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
6146 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
6150 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
6156 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6164 $as_echo_n "checking for a readline compatible library... " >&6; }
6165 if ${vl_cv_lib_readline+:} false; then :
6166 $as_echo_n "(cached) " >&6
6170 for readline_lib in readline edit editline; do
6171 for termcap_lib in "" termcap curses ncurses; do
6172 if test -z "$termcap_lib"; then
6173 TRY_LIB="-l$readline_lib"
6175 TRY_LIB="-l$readline_lib -l$termcap_lib"
6177 LIBS="$ORIG_LIBS $TRY_LIB"
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6181 /* Override any GCC internal prototype to avoid an error.
6182 Use char because int might match the return type of a GCC
6183 builtin and then its argument prototype would still apply. */
6196 if ac_fn_c_try_link "$LINENO"; then :
6197 vl_cv_lib_readline="$TRY_LIB"
6199 rm -f core conftest.err conftest.$ac_objext \
6200 conftest$ac_exeext conftest.$ac_ext
6201 if test -n "$vl_cv_lib_readline"; then
6205 if test -n "$vl_cv_lib_readline"; then
6209 if test -z "$vl_cv_lib_readline"; then
6210 vl_cv_lib_readline="no"
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
6216 $as_echo "$vl_cv_lib_readline" >&6; }
6218 if test "$vl_cv_lib_readline" != "no"; then
6219 LIBREADLINE="$vl_cv_lib_readline"
6221 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
6223 for ac_header in readline.h readline/readline.h
6225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6226 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6227 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6228 cat >>confdefs.h <<_ACEOF
6229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6237 $as_echo_n "checking whether readline supports history... " >&6; }
6238 if ${vl_cv_lib_readline_history+:} false; then :
6239 $as_echo_n "(cached) " >&6
6242 vl_cv_lib_readline_history="no"
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6246 /* Override any GCC internal prototype to avoid an error.
6247 Use char because int might match the return type of a GCC
6248 builtin and then its argument prototype would still apply. */
6252 char add_history ();
6256 return add_history ();
6261 if ac_fn_c_try_link "$LINENO"; then :
6262 vl_cv_lib_readline_history="yes"
6264 rm -f core conftest.err conftest.$ac_objext \
6265 conftest$ac_exeext conftest.$ac_ext
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
6269 $as_echo "$vl_cv_lib_readline_history" >&6; }
6270 if test "$vl_cv_lib_readline_history" = "yes"; then
6272 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6274 for ac_header in history.h readline/history.h
6276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6277 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6278 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6279 cat >>confdefs.h <<_ACEOF
6280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6295 CFLAGS="$CFLAGS -D_ALL_SOURCE"
6298 CFLAGS="$CFLAGS -DDARWIN"
6299 LIBS="-framework DirectoryService $LIBS"
6304 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6305 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6307 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6308 if eval \${$as_ac_Header+:} false; then :
6309 $as_echo_n "(cached) " >&6
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 #include <sys/types.h>
6325 if ac_fn_c_try_compile "$LINENO"; then :
6326 eval "$as_ac_Header=yes"
6328 eval "$as_ac_Header=no"
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332 eval ac_res=\$$as_ac_Header
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6334 $as_echo "$ac_res" >&6; }
6335 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6336 cat >>confdefs.h <<_ACEOF
6337 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6340 ac_header_dirent=$ac_hdr; break
6344 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6345 if test $ac_header_dirent = dirent.h; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6347 $as_echo_n "checking for library containing opendir... " >&6; }
6348 if ${ac_cv_search_opendir+:} false; then :
6349 $as_echo_n "(cached) " >&6
6351 ac_func_search_save_LIBS=$LIBS
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6355 /* Override any GCC internal prototype to avoid an error.
6356 Use char because int might match the return type of a GCC
6357 builtin and then its argument prototype would still apply. */
6370 for ac_lib in '' dir; do
6371 if test -z "$ac_lib"; then
6372 ac_res="none required"
6375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6377 if ac_fn_c_try_link "$LINENO"; then :
6378 ac_cv_search_opendir=$ac_res
6380 rm -f core conftest.err conftest.$ac_objext \
6382 if ${ac_cv_search_opendir+:} false; then :
6386 if ${ac_cv_search_opendir+:} false; then :
6389 ac_cv_search_opendir=no
6392 LIBS=$ac_func_search_save_LIBS
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6395 $as_echo "$ac_cv_search_opendir" >&6; }
6396 ac_res=$ac_cv_search_opendir
6397 if test "$ac_res" != no; then :
6398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6404 $as_echo_n "checking for library containing opendir... " >&6; }
6405 if ${ac_cv_search_opendir+:} false; then :
6406 $as_echo_n "(cached) " >&6
6408 ac_func_search_save_LIBS=$LIBS
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6412 /* Override any GCC internal prototype to avoid an error.
6413 Use char because int might match the return type of a GCC
6414 builtin and then its argument prototype would still apply. */
6427 for ac_lib in '' x; do
6428 if test -z "$ac_lib"; then
6429 ac_res="none required"
6432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6434 if ac_fn_c_try_link "$LINENO"; then :
6435 ac_cv_search_opendir=$ac_res
6437 rm -f core conftest.err conftest.$ac_objext \
6439 if ${ac_cv_search_opendir+:} false; then :
6443 if ${ac_cv_search_opendir+:} false; then :
6446 ac_cv_search_opendir=no
6449 LIBS=$ac_func_search_save_LIBS
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6452 $as_echo "$ac_cv_search_opendir" >&6; }
6453 ac_res=$ac_cv_search_opendir
6454 if test "$ac_res" != no; then :
6455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6462 $as_echo_n "checking for ANSI C header files... " >&6; }
6463 if ${ac_cv_header_stdc+:} false; then :
6464 $as_echo_n "(cached) " >&6
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6481 if ac_fn_c_try_compile "$LINENO"; then :
6482 ac_cv_header_stdc=yes
6484 ac_cv_header_stdc=no
6486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 if test $ac_cv_header_stdc = yes; then
6489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6496 $EGREP "memchr" >/dev/null 2>&1; then :
6499 ac_cv_header_stdc=no
6505 if test $ac_cv_header_stdc = yes; then
6506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6513 $EGREP "free" >/dev/null 2>&1; then :
6516 ac_cv_header_stdc=no
6522 if test $ac_cv_header_stdc = yes; then
6523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6524 if test "$cross_compiling" = yes; then :
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6531 #if ((' ' & 0x0FF) == 0x020)
6532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6535 # define ISLOWER(c) \
6536 (('a' <= (c) && (c) <= 'i') \
6537 || ('j' <= (c) && (c) <= 'r') \
6538 || ('s' <= (c) && (c) <= 'z'))
6539 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6542 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6547 for (i = 0; i < 256; i++)
6548 if (XOR (islower (i), ISLOWER (i))
6549 || toupper (i) != TOUPPER (i))
6554 if ac_fn_c_try_run "$LINENO"; then :
6557 ac_cv_header_stdc=no
6559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6560 conftest.$ac_objext conftest.beam conftest.$ac_ext
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6566 $as_echo "$ac_cv_header_stdc" >&6; }
6567 if test $ac_cv_header_stdc = yes; then
6569 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6574 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6575 if ${ac_cv_header_time+:} false; then :
6576 $as_echo_n "(cached) " >&6
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 #include <sys/types.h>
6581 #include <sys/time.h>
6587 if ((struct tm *) 0)
6593 if ac_fn_c_try_compile "$LINENO"; then :
6594 ac_cv_header_time=yes
6596 ac_cv_header_time=no
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6601 $as_echo "$ac_cv_header_time" >&6; }
6602 if test $ac_cv_header_time = yes; then
6604 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6609 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6610 if ${ac_cv_header_sys_wait_h+:} false; then :
6611 $as_echo_n "(cached) " >&6
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615 #include <sys/types.h>
6616 #include <sys/wait.h>
6618 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6621 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6629 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6634 if ac_fn_c_try_compile "$LINENO"; then :
6635 ac_cv_header_sys_wait_h=yes
6637 ac_cv_header_sys_wait_h=no
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6642 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6643 if test $ac_cv_header_sys_wait_h = yes; then
6645 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6693 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6694 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6695 cat >>confdefs.h <<_ACEOF
6696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6704 for ac_header in net/if.h
6706 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
6707 # include <sys/socket.h>
6711 if test "x$ac_cv_header_net_if_h" = xyes; then :
6712 cat >>confdefs.h <<_ACEOF
6713 #define HAVE_NET_IF_H 1
6721 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6724 $as_echo "#define OSFC2 /**/" >>confdefs.h
6728 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6731 $as_echo "#define OSFSIA /**/" >>confdefs.h
6735 if test "x$WITH_OPENSSL" = xyes; then
6737 old_LDFLAGS="$LDFLAGS"
6739 OPENSSL_INCLUDE="-DNO_OPENSSL"
6741 if test "x$OPENSSL_LIB_DIR" != "x"; then
6742 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
6746 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
6747 if ${ac_cv_lib_crypto_DH_new+:} false; then :
6748 $as_echo_n "(cached) " >&6
6750 ac_check_lib_save_LIBS=$LIBS
6751 LIBS="-lcrypto $LIBS"
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h. */
6755 /* Override any GCC internal prototype to avoid an error.
6756 Use char because int might match the return type of a GCC
6757 builtin and then its argument prototype would still apply. */
6770 if ac_fn_c_try_link "$LINENO"; then :
6771 ac_cv_lib_crypto_DH_new=yes
6773 ac_cv_lib_crypto_DH_new=no
6775 rm -f core conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
6777 LIBS=$ac_check_lib_save_LIBS
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
6780 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
6781 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
6783 LIBS="-lcrypto $LIBS"
6785 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
6788 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
6789 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
6790 $as_echo_n "(cached) " >&6
6792 ac_check_lib_save_LIBS=$LIBS
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6797 /* Override any GCC internal prototype to avoid an error.
6798 Use char because int might match the return type of a GCC
6799 builtin and then its argument prototype would still apply. */
6812 if ac_fn_c_try_link "$LINENO"; then :
6813 ac_cv_lib_ssl_SSL_new=yes
6815 ac_cv_lib_ssl_SSL_new=no
6817 rm -f core conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
6819 LIBS=$ac_check_lib_save_LIBS
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
6822 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
6823 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
6826 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
6828 if test "x$OPENSSL_LIB_DIR" != "x"; then
6829 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
6831 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
6835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6837 as_fn_error $? "failed linking to libssl
6838 See \`config.log' for more details" "$LINENO" 5; }
6847 old_CPPFLAGS=$CPPFLAGS
6848 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6849 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
6852 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
6864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6865 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6866 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6867 cat >>confdefs.h <<_ACEOF
6868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6875 as_fn_error $? "failed locating OpenSSL headers
6876 See \`config.log' for more details" "$LINENO" 5; }
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
6885 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 #include <openssl/crypto.h>
6889 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
6894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6895 $EGREP "yes" >/dev/null 2>&1; then :
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6898 $as_echo "yes" >&6; }
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6906 as_fn_error $? "OpenSSL version too old
6907 See \`config.log' for more details" "$LINENO" 5; }
6914 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6915 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
6917 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
6921 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
6922 if test "$cross_compiling" = yes; then :
6923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6925 as_fn_error $? "cannot run test program while cross compiling
6926 See \`config.log' for more details" "$LINENO" 5; }
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6932 #include <openssl/opensslv.h>
6933 #include <openssl/crypto.h>
6939 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
6942 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
6951 if ac_fn_c_try_run "$LINENO"; then :
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6954 $as_echo "yes" >&6; }
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6962 as_fn_error $? "OpenSSL library version does not match header version
6963 See \`config.log' for more details" "$LINENO" 5; }
6967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6968 conftest.$ac_objext conftest.beam conftest.$ac_ext
6972 CPPFLAGS=$old_CPPFLAGS
6974 LDFLAGS="$old_LDFLAGS"
6981 if test "x$PCAP_LIBS" = x; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
6983 $as_echo "$as_me: skipping test for pcap.h." >&6;}
6985 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
6986 if test "x$ac_cv_header_pcap_h" = xyes; then :
6989 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
6993 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
6994 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
6995 $as_echo_n "(cached) " >&6
6997 ac_check_lib_save_LIBS=$LIBS
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7002 /* Override any GCC internal prototype to avoid an error.
7003 Use char because int might match the return type of a GCC
7004 builtin and then its argument prototype would still apply. */
7008 char pcap_fopen_offline ();
7012 return pcap_fopen_offline ();
7017 if ac_fn_c_try_link "$LINENO"; then :
7018 ac_cv_lib_pcap_pcap_fopen_offline=yes
7020 ac_cv_lib_pcap_pcap_fopen_offline=no
7022 rm -f core conftest.err conftest.$ac_objext \
7023 conftest$ac_exeext conftest.$ac_ext
7024 LIBS=$ac_check_lib_save_LIBS
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
7027 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
7028 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
7031 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
7039 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
7040 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
7041 $as_echo_n "(cached) " >&6
7043 ac_check_lib_save_LIBS=$LIBS
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7048 /* Override any GCC internal prototype to avoid an error.
7049 Use char because int might match the return type of a GCC
7050 builtin and then its argument prototype would still apply. */
7054 char pcap_dump_fopen ();
7058 return pcap_dump_fopen ();
7063 if ac_fn_c_try_link "$LINENO"; then :
7064 ac_cv_lib_pcap_pcap_dump_fopen=yes
7066 ac_cv_lib_pcap_pcap_dump_fopen=no
7068 rm -f core conftest.err conftest.$ac_objext \
7069 conftest$ac_exeext conftest.$ac_ext
7070 LIBS=$ac_check_lib_save_LIBS
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
7073 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
7074 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
7077 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
7088 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
7098 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7099 if test "x$ac_cv_type_off_t" = xyes; then :
7103 cat >>confdefs.h <<_ACEOF
7104 #define off_t long int
7109 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7110 if test "x$ac_cv_type_pid_t" = xyes; then :
7114 cat >>confdefs.h <<_ACEOF
7120 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7121 if test "x$ac_cv_type_size_t" = xyes; then :
7125 cat >>confdefs.h <<_ACEOF
7126 #define size_t unsigned int
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7132 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7133 if ${ac_cv_type_uid_t+:} false; then :
7134 $as_echo_n "(cached) " >&6
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138 #include <sys/types.h>
7141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7142 $EGREP "uid_t" >/dev/null 2>&1; then :
7143 ac_cv_type_uid_t=yes
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7151 $as_echo "$ac_cv_type_uid_t" >&6; }
7152 if test $ac_cv_type_uid_t = no; then
7154 $as_echo "#define uid_t int" >>confdefs.h
7157 $as_echo "#define gid_t int" >>confdefs.h
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7164 $as_echo_n "checking for socklen_t... " >&6; }
7165 if ${ac_cv_type_socklen_t+:} false; then :
7166 $as_echo_n "(cached) " >&6
7168 ac_cv_type_socklen_t=no
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7171 #ifdef HAVE_SYS_TYPES_H
7172 # include <sys/types.h>
7175 #ifdef HAVE_SYS_SOCKET_H
7176 # include <sys/socket.h>
7187 if ac_fn_c_try_compile "$LINENO"; then :
7188 ac_cv_type_socklen_t=yes
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7195 $as_echo "$ac_cv_type_socklen_t" >&6; }
7197 if test "$ac_cv_type_socklen_t" != "yes"; then
7199 $as_echo "#define socklen_t int" >>confdefs.h
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
7206 $as_echo_n "checking for uint8_t... " >&6; }
7207 if ${ac_cv_type_uint8_t+:} false; then :
7208 $as_echo_n "(cached) " >&6
7210 ac_cv_type_uint8_t=no
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 #ifdef HAVE_INTTYPES_H
7214 # include <inttypes.h>
7217 #ifdef HAVE_STDINT_H
7218 # include <stdint.h>
7229 if ac_fn_c_try_compile "$LINENO"; then :
7230 ac_cv_type_uint8_t=yes
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
7237 $as_echo "$ac_cv_type_uint8_t" >&6; }
7239 if test "$ac_cv_type_uint8_t" != "yes"; then
7241 $as_echo "#define uint8_t unsigned char" >>confdefs.h
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
7248 $as_echo_n "checking for uint16_t... " >&6; }
7249 if ${ac_cv_type_uint16_t+:} false; then :
7250 $as_echo_n "(cached) " >&6
7252 ac_cv_type_uint16_t=no
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7255 #ifdef HAVE_INTTYPES_H
7256 # include <inttypes.h>
7259 #ifdef HAVE_STDINT_H
7260 # include <stdint.h>
7271 if ac_fn_c_try_compile "$LINENO"; then :
7272 ac_cv_type_uint16_t=yes
7274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
7279 $as_echo "$ac_cv_type_uint16_t" >&6; }
7281 if test "$ac_cv_type_uint16_t" != "yes"; then
7283 $as_echo "#define uint16_t unsigned short" >>confdefs.h
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
7290 $as_echo_n "checking for uint32_t... " >&6; }
7291 if ${ac_cv_type_uint32_t+:} false; then :
7292 $as_echo_n "(cached) " >&6
7294 ac_cv_type_uint32_t=no
7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296 /* end confdefs.h. */
7297 #ifdef HAVE_INTTYPES_H
7298 # include <inttypes.h>
7301 #ifdef HAVE_STDINT_H
7302 # include <stdint.h>
7313 if ac_fn_c_try_compile "$LINENO"; then :
7314 ac_cv_type_uint32_t=yes
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
7321 $as_echo "$ac_cv_type_uint32_t" >&6; }
7323 if test "$ac_cv_type_uint32_t" != "yes"; then
7325 $as_echo "#define uint32_t unsigned int" >>confdefs.h
7330 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
7331 #ifdef HAVE_NETINET_IN_H
7332 # include <netinet/in.h>
7337 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
7339 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7344 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7345 #ifdef HAVE_NETINET_IN_H
7346 # include <netinet/in.h>
7349 #ifdef HAVE_SYS_SOCKET_H
7350 # include <sys/socket.h>
7354 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7356 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
7361 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7362 #ifdef HAVE_NETINET_IN_H
7363 # include <netinet/in.h>
7367 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7369 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7374 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
7375 #ifdef HAVE_SYS_TYPES_H
7376 # include <sys/types.h>
7379 #ifdef HAVE_SYS_SOCKET_H
7380 # include <sys/socket.h>
7389 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
7391 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7431 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7432 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7433 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7434 cat >>confdefs.h <<_ACEOF
7435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7443 $as_echo_n "checking return type of signal handlers... " >&6; }
7444 if ${ac_cv_type_signal+:} false; then :
7445 $as_echo_n "(cached) " >&6
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7449 #include <sys/types.h>
7455 return *(signal (0, 0)) (0) == 1;
7460 if ac_fn_c_try_compile "$LINENO"; then :
7461 ac_cv_type_signal=int
7463 ac_cv_type_signal=void
7465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7468 $as_echo "$ac_cv_type_signal" >&6; }
7470 cat >>confdefs.h <<_ACEOF
7471 #define RETSIGTYPE $ac_cv_type_signal
7476 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7479 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7486 #ifdef HAVE_STDDEF_H
7490 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7496 int foo = offsetof(struct utmpx, ut_xtime)
7501 if ac_fn_c_try_compile "$LINENO"; then :
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7509 if test "x$has_element" != "x"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7511 $as_echo "yes" >&6; }
7512 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7516 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7519 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
7521 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7528 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7534 #include <netinet/in.h>
7535 #ifdef HAVE_STDDEF_H
7539 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7545 int foo = offsetof(struct in_pktinfo, ipi_addr)
7550 if ac_fn_c_try_compile "$LINENO"; then :
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7558 if test "x$has_element" != "x"; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7560 $as_echo "yes" >&6; }
7561 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7565 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7568 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
7570 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7576 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7582 #include <netinet/in.h>
7583 #ifdef HAVE_STDDEF_H
7587 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7593 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7598 if ac_fn_c_try_compile "$LINENO"; then :
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7606 if test "x$has_element" != "x"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7608 $as_echo "yes" >&6; }
7609 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7613 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
7616 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
7618 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7624 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7625 if ${ac_cv_c_const+:} false; then :
7626 $as_echo_n "(cached) " >&6
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7636 /* Ultrix mips cc rejects this sort of thing. */
7637 typedef int charset[2];
7638 const charset cs = { 0, 0 };
7639 /* SunOS 4.1.1 cc rejects this. */
7640 char const *const *pcpcc;
7642 /* NEC SVR4.0.2 mips cc rejects this. */
7643 struct point {int x, y;};
7644 static struct point const zero = {0,0};
7645 /* AIX XL C 1.02.0.0 rejects this.
7646 It does not let you subtract one const X* pointer from another in
7647 an arm of an if-expression whose if-part is not a constant
7649 const char *g = "string";
7650 pcpcc = &g + (g ? g-g : 0);
7651 /* HPUX 7.0 cc rejects these. */
7653 ppc = (char**) pcpcc;
7654 pcpcc = (char const *const *) ppc;
7655 { /* SCO 3.2v4 cc rejects this sort of thing. */
7658 char const *s = 0 ? (char *) 0 : (char const *) 0;
7663 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7665 const int *foo = &x[0];
7668 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7669 typedef const int *iptr;
7673 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7674 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7675 struct s { int j; const int *ap[3]; } bx;
7676 struct s *b = &bx; b->j = 5;
7678 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7682 return !cs[0] && !zero.x;
7689 if ac_fn_c_try_compile "$LINENO"; then :
7694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7697 $as_echo "$ac_cv_c_const" >&6; }
7698 if test $ac_cv_c_const = no; then
7700 $as_echo "#define const /**/" >>confdefs.h
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
7706 $as_echo_n "checking type of OS... " >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
7709 $as_echo "$OS" >&6; }
7710 if test "$OS" = "OS/2"; then
7717 if test "x$developer" = "xyes"; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
7719 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
7723 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
7724 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
7725 $as_echo_n "(cached) " >&6
7729 CFLAGS_SAVED=$CFLAGS
7730 CFLAGS="$CFLAGS -Werror -Wdocumentation"
7733 ac_cpp='$CPP $CPPFLAGS'
7734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7749 if ac_fn_c_try_compile "$LINENO"; then :
7750 ax_cv_cc_wdocumentation_flag="yes"
7752 ax_cv_cc_wdocumentation_flag="no"
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 ac_cpp='$CPP $CPPFLAGS'
7757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762 CFLAGS="$CFLAGS_SAVED"
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
7766 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
7768 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
7769 devflags="-Wdocumentation"
7772 if test "x$GCC" = "xyes"; then
7773 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"
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
7778 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
7780 CFLAGS="$CFLAGS $devflags"
7781 if test "x$EXPERIMENTAL" != "xno"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
7783 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
7788 CFLAGS="$CFLAGS -DNDEBUG"
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
7793 $as_echo_n "checking if building with -DNDEBUG... " >&6; }
7794 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7796 $as_echo "yes" >&6; }
7798 $as_echo "#define WITH_NDEBUG 1" >>confdefs.h
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7807 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
7808 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
7810 cat >>confdefs.h <<_ACEOF
7811 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
7818 $as_echo_n "checking for __thread support in compiler... " >&6; }
7819 if test "$cross_compiling" = yes; then :
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7825 static __thread int val;
7826 int main(int argc, char **argv) {
7833 if ac_fn_c_try_run "$LINENO"; then :
7838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7839 conftest.$ac_objext conftest.beam conftest.$ac_ext
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
7843 $as_echo "$have_tls" >&6; }
7844 if test "x$have_tls" = "xyes"; then
7846 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
7854 # Check whether --with-talloc-include-dir was given.
7855 if test "${with_talloc_include_dir+set}" = set; then :
7856 withval=$with_talloc_include_dir; case "$withval" in
7858 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
7863 talloc_include_dir="$withval"
7871 # Check whether --with-talloc-lib-dir was given.
7872 if test "${with_talloc_lib_dir+set}" = set; then :
7873 withval=$with_talloc_lib_dir; case "$withval" in
7875 as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
7880 talloc_lib_dir="$withval"
7886 smart_try_dir="$talloc_include_dir"
7889 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7890 old_CFLAGS="$CFLAGS"
7894 if test "x$smart_try_dir" != "x"; then
7895 for try in $smart_try_dir; do
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7897 $as_echo_n "checking for talloc.h in $try... " >&6; }
7898 CFLAGS="$old_CFLAGS -isystem $try"
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7911 if ac_fn_c_try_compile "$LINENO"; then :
7913 smart_include="-isystem $try"
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7915 $as_echo "yes" >&6; }
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927 CFLAGS="$old_CFLAGS"
7930 if test "x$smart_include" = "x"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7932 $as_echo_n "checking for talloc.h... " >&6; }
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7945 if ac_fn_c_try_compile "$LINENO"; then :
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7949 $as_echo "yes" >&6; }
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 if test "x$smart_include" = "x"; then
7965 if test "x$LOCATE" != "x"; then
7969 for x in `${LOCATE} $file 2>/dev/null`; do
7970 base=`echo $x | sed "s%/${file}%%"`
7971 if test "x$x" = "x$base"; then
7975 dir=`${DIRNAME} $x 2>/dev/null`
7976 exclude=`echo ${dir} | ${GREP} /home`
7977 if test "x$exclude" != "x"; then
7981 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7982 if test "x$already" = "x"; then
7988 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7990 for try in $smart_include_dir /usr/local/include /opt/include; do
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7992 $as_echo_n "checking for talloc.h in $try... " >&6; }
7993 CFLAGS="$old_CFLAGS -isystem $try"
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
8006 if ac_fn_c_try_compile "$LINENO"; then :
8008 smart_include="-isystem $try"
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8010 $as_echo "yes" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 CFLAGS="$old_CFLAGS"
8025 if test "x$smart_include" != "x"; then
8026 eval "ac_cv_header_$ac_safe=yes"
8027 CFLAGS="$old_CFLAGS $smart_include"
8028 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8031 if test "x$ac_cv_header_talloc_h" != "xyes"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
8033 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
8034 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8037 smart_try_dir="$talloc_lib_dir"
8040 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
8041 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
8047 if test "x$smart_try_dir" != "x"; then
8048 for try in $smart_try_dir; do
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
8050 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
8051 LIBS="-L$try -ltalloc $old_LIBS -Wl,-rpath,$try"
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8054 extern char _talloc();
8063 if ac_fn_c_try_link "$LINENO"; then :
8065 smart_lib="-L$try -ltalloc -Wl,-rpath,$try"
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8067 $as_echo "yes" >&6; }
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072 $as_echo "no" >&6; }
8074 rm -f core conftest.err conftest.$ac_objext \
8075 conftest$ac_exeext conftest.$ac_ext
8080 if test "x$smart_lib" = "x"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
8082 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
8083 LIBS="-ltalloc $old_LIBS"
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8086 extern char _talloc();
8095 if ac_fn_c_try_link "$LINENO"; then :
8097 smart_lib="-ltalloc"
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8099 $as_echo "yes" >&6; }
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8105 rm -f core conftest.err conftest.$ac_objext \
8106 conftest$ac_exeext conftest.$ac_ext
8110 if test "x$smart_lib" = "x"; then
8113 if test "x$LOCATE" != "x"; then
8115 file=libtalloc${libltdl_cv_shlibext}
8117 for x in `${LOCATE} $file 2>/dev/null`; do
8118 base=`echo $x | sed "s%/${file}%%"`
8119 if test "x$x" = "x$base"; then
8123 dir=`${DIRNAME} $x 2>/dev/null`
8124 exclude=`echo ${dir} | ${GREP} /home`
8125 if test "x$exclude" != "x"; then
8129 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8130 if test "x$already" = "x"; then
8136 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8140 if test "x$LOCATE" != "x"; then
8144 for x in `${LOCATE} $file 2>/dev/null`; do
8145 base=`echo $x | sed "s%/${file}%%"`
8146 if test "x$x" = "x$base"; then
8150 dir=`${DIRNAME} $x 2>/dev/null`
8151 exclude=`echo ${dir} | ${GREP} /home`
8152 if test "x$exclude" != "x"; then
8156 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8157 if test "x$already" = "x"; then
8163 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8166 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
8168 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
8169 LIBS="-L$try -ltalloc $old_LIBS -Wl,-rpath,$try"
8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171 /* end confdefs.h. */
8172 extern char _talloc();
8181 if ac_fn_c_try_link "$LINENO"; then :
8183 smart_lib="-L$try -ltalloc -Wl,-rpath,$try"
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8185 $as_echo "yes" >&6; }
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8192 rm -f core conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
8198 if test "x$smart_lib" != "x"; then
8199 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8200 LIBS="$smart_lib $old_LIBS"
8201 SMART_LIBS="$smart_lib $SMART_LIBS"
8204 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
8206 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
8207 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
8211 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
8212 if ${ac_cv_lib_crypt_crypt+:} false; then :
8213 $as_echo_n "(cached) " >&6
8215 ac_check_lib_save_LIBS=$LIBS
8216 LIBS="-lcrypt $LIBS"
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8220 /* Override any GCC internal prototype to avoid an error.
8221 Use char because int might match the return type of a GCC
8222 builtin and then its argument prototype would still apply. */
8235 if ac_fn_c_try_link "$LINENO"; then :
8236 ac_cv_lib_crypt_crypt=yes
8238 ac_cv_lib_crypt_crypt=no
8240 rm -f core conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 LIBS=$ac_check_lib_save_LIBS
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
8245 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
8246 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
8252 if test "$CRYPTLIB" != ""; then
8254 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8257 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
8258 if test "x$ac_cv_func_crypt" = xyes; then :
8260 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
8267 $as_echo_n "checking for setkey in -lcipher... " >&6; }
8268 if ${ac_cv_lib_cipher_setkey+:} false; then :
8269 $as_echo_n "(cached) " >&6
8271 ac_check_lib_save_LIBS=$LIBS
8272 LIBS="-lcipher $LIBS"
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8276 /* Override any GCC internal prototype to avoid an error.
8277 Use char because int might match the return type of a GCC
8278 builtin and then its argument prototype would still apply. */
8291 if ac_fn_c_try_link "$LINENO"; then :
8292 ac_cv_lib_cipher_setkey=yes
8294 ac_cv_lib_cipher_setkey=no
8296 rm -f core conftest.err conftest.$ac_objext \
8297 conftest$ac_exeext conftest.$ac_ext
8298 LIBS=$ac_check_lib_save_LIBS
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
8301 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
8302 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
8303 CRYPTLIB="${CRYPTLIB} -lcipher"
8312 # Check whether --with-rlm-pcre-lib-dir was given.
8313 if test "${with_rlm_pcre_lib_dir+set}" = set; then :
8314 withval=$with_rlm_pcre_lib_dir; case "$withval" in
8316 as_fn_error $? "Need rlm-pcre-lib-dir" "$LINENO" 5
8321 pcre_lib_dir="$withval"
8330 # Check whether --with-rlm-pcre-include-dir was given.
8331 if test "${with_rlm_pcre_include_dir+set}" = set; then :
8332 withval=$with_rlm_pcre_include_dir; case "$withval" in
8334 as_fn_error $? "Need rlm-pcre-include-dir" "$LINENO" 5
8339 pcre_include_dir="$withval"
8350 smart_try_dir=$pcre_include_dir
8353 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__pm%'`
8354 old_CFLAGS="$CFLAGS"
8358 if test "x$smart_try_dir" != "x"; then
8359 for try in $smart_try_dir; do
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8361 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8362 CFLAGS="$old_CFLAGS -isystem $try"
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8366 #include <pcreposix.h>
8375 if ac_fn_c_try_compile "$LINENO"; then :
8377 smart_include="-isystem $try"
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8379 $as_echo "yes" >&6; }
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 CFLAGS="$old_CFLAGS"
8394 if test "x$smart_include" = "x"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h" >&5
8396 $as_echo_n "checking for pcreposix.h... " >&6; }
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8400 #include <pcreposix.h>
8409 if ac_fn_c_try_compile "$LINENO"; then :
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8413 $as_echo "yes" >&6; }
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426 if test "x$smart_include" = "x"; then
8429 if test "x$LOCATE" != "x"; then
8433 for x in `${LOCATE} $file 2>/dev/null`; do
8434 base=`echo $x | sed "s%/${file}%%"`
8435 if test "x$x" = "x$base"; then
8439 dir=`${DIRNAME} $x 2>/dev/null`
8440 exclude=`echo ${dir} | ${GREP} /home`
8441 if test "x$exclude" != "x"; then
8445 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8446 if test "x$already" = "x"; then
8452 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8454 for try in $smart_include_dir /usr/local/include /opt/include; do
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8456 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8457 CFLAGS="$old_CFLAGS -isystem $try"
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8461 #include <pcreposix.h>
8470 if ac_fn_c_try_compile "$LINENO"; then :
8472 smart_include="-isystem $try"
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8474 $as_echo "yes" >&6; }
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8486 CFLAGS="$old_CFLAGS"
8489 if test "x$smart_include" != "x"; then
8490 eval "ac_cv_header_$ac_safe=yes"
8491 CFLAGS="$old_CFLAGS $smart_include"
8492 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8495 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
8497 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
8500 $as_echo "#define HAVE_PCREPOSIX_H 1" >>confdefs.h
8505 LIBS="-lpcre -lpcreposix $LIBS"
8511 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
8512 old_CFLAGS="$CFLAGS"
8516 if test "x$smart_try_dir" != "x"; then
8517 for try in $smart_try_dir; do
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
8519 $as_echo_n "checking for regex.h in $try... " >&6; }
8520 CFLAGS="$old_CFLAGS -isystem $try"
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8533 if ac_fn_c_try_compile "$LINENO"; then :
8535 smart_include="-isystem $try"
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8537 $as_echo "yes" >&6; }
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 CFLAGS="$old_CFLAGS"
8552 if test "x$smart_include" = "x"; then
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
8554 $as_echo_n "checking for regex.h... " >&6; }
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8567 if ac_fn_c_try_compile "$LINENO"; then :
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8571 $as_echo "yes" >&6; }
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8584 if test "x$smart_include" = "x"; then
8587 if test "x$LOCATE" != "x"; then
8591 for x in `${LOCATE} $file 2>/dev/null`; do
8592 base=`echo $x | sed "s%/${file}%%"`
8593 if test "x$x" = "x$base"; then
8597 dir=`${DIRNAME} $x 2>/dev/null`
8598 exclude=`echo ${dir} | ${GREP} /home`
8599 if test "x$exclude" != "x"; then
8603 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8604 if test "x$already" = "x"; then
8610 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8612 for try in $smart_include_dir /usr/local/include /opt/include; do
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
8614 $as_echo_n "checking for regex.h in $try... " >&6; }
8615 CFLAGS="$old_CFLAGS -isystem $try"
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8628 if ac_fn_c_try_compile "$LINENO"; then :
8630 smart_include="-isystem $try"
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8632 $as_echo "yes" >&6; }
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 CFLAGS="$old_CFLAGS"
8647 if test "x$smart_include" != "x"; then
8648 eval "ac_cv_header_$ac_safe=yes"
8649 CFLAGS="$old_CFLAGS $smart_include"
8650 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8653 if test "x$ac_cv_header_regex_h" = "xyes"; then
8655 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8668 $EGREP "yes" >/dev/null 2>&1; then :
8670 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
8684 $as_echo "#define GNUSTYLE 1" >>confdefs.h
8688 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
8692 $as_echo "#define BSDSTYLE 3" >>confdefs.h
8695 gethostbyaddrrstyle=""
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
8697 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
8700 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
8706 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
8712 cat >>confdefs.h <<_ACEOF
8713 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
8715 if test $ac_have_decl = 1; then :
8720 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8722 gethostbyaddrrstyle=BSD
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
8724 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
8731 if test "x$gethostbyaddrrstyle" = "x"; then
8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h. */
8741 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
8746 if ac_fn_c_try_link "$LINENO"; then :
8749 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
8751 gethostbyaddrrstyle=GNU
8755 rm -f core conftest.err conftest.$ac_objext \
8756 conftest$ac_exeext conftest.$ac_ext
8759 if test "x$gethostbyaddrrstyle" = "x"; then
8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8769 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
8774 if ac_fn_c_try_link "$LINENO"; then :
8777 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
8779 gethostbyaddrrstyle=SYSV
8783 rm -f core conftest.err conftest.$ac_objext \
8784 conftest$ac_exeext conftest.$ac_ext
8788 if test "x$gethostbyaddrrstyle" = "x"; then
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8798 gethostbyaddr(NULL, 0, 0)
8803 if ac_fn_c_try_link "$LINENO"; then :
8806 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8808 gethostbyaddrrstyle=BSD
8812 rm -f core conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext conftest.$ac_ext
8816 if test "x$gethostbyaddrrstyle" = "x"; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8818 $as_echo "none! It must not exist, here." >&6; }
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
8821 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
8824 if test "x$gethostbyaddrrstyle" = "xBSD"; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
8826 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
8829 gethostbynamerstyle=""
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
8831 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8841 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
8846 if ac_fn_c_try_link "$LINENO"; then :
8849 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
8851 gethostbynamerstyle=GNU
8855 rm -f core conftest.err conftest.$ac_objext \
8856 conftest$ac_exeext conftest.$ac_ext
8858 if test "x$gethostbynamerstyle" = "x"; then
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8868 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
8873 if ac_fn_c_try_link "$LINENO"; then :
8876 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
8878 gethostbynamerstyle=SYSV
8882 rm -f core conftest.err conftest.$ac_objext \
8883 conftest$ac_exeext conftest.$ac_ext
8886 if test "x$gethostbynamerstyle" = "x"; then
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8901 if ac_fn_c_try_link "$LINENO"; then :
8904 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
8906 gethostbynamerstyle=BSD
8910 rm -f core conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
8914 if test "x$gethostbynamerstyle" = "x"; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8916 $as_echo "none! It must not exist, here." >&6; }
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
8919 $as_echo "${gethostbynamerstyle}-style" >&6; }
8922 if test "x$gethostbynamerstyle" = "xBSD"; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
8924 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
8928 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
8931 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
8935 $as_echo_n "checking ctime_r() syntax... " >&6; }
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8944 ctime_r(NULL, NULL, 0)
8949 if ac_fn_c_try_link "$LINENO"; then :
8952 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
8954 ctimerstyle="SOLARIS"
8958 rm -f core conftest.err conftest.$ac_objext \
8959 conftest$ac_exeext conftest.$ac_ext
8961 if test "x$ctimerstyle" = "x"; then
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8975 if ac_fn_c_try_link "$LINENO"; then :
8978 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
8984 rm -f core conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8988 if test "x$ctimerstyle" = "x"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8990 $as_echo "none! It must not exist, here." >&6; }
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
8993 $as_echo "${ctimerstyle}-style" >&6; }
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
9003 $as_echo "top_builddir=$top_builddir" >&6; }
9008 if test "x$EXPERIMENTAL" = "xyes"; then
9009 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
9010 MODULES="$MODULES $foo"
9013 for foo in `cat "${srcdir}"/src/modules/stable`; do
9014 MODULES="$MODULES $foo"
9019 for bar in $MODULES; do
9020 if test -f "${srcdir}"/src/modules/$bar/configure; then
9021 mysubdirs="$mysubdirs src/modules/$bar"
9027 subdirs="$subdirs $mysubdirs"
9031 if test "x$werror" == "xyes"; then
9032 CFLAGS="-Werror $CFLAGS"
9035 ac_config_commands="$ac_config_commands stamp-h"
9037 ac_config_commands="$ac_config_commands build-radpaths-h"
9039 ac_config_commands="$ac_config_commands main-chmod"
9041 ac_config_commands="$ac_config_commands scripts-chmod"
9048 USE_STATIC_LIBS="yes"
9053 unset ac_cv_env_LIBS_set
9054 unset ac_cv_env_LIBS_value
9056 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"
9058 cat >confcache <<\_ACEOF
9059 # This file is a shell script that caches the results of configure
9060 # tests run on this system so they can be shared between configure
9061 # scripts and configure runs, see configure's option --config-cache.
9062 # It is not useful on other systems. If it contains results you don't
9063 # want to keep, you may remove or edit it.
9065 # config.status only pays attention to the cache file if you give it
9066 # the --recheck option to rerun configure.
9068 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9074 # The following way of writing the cache mishandles newlines in values,
9075 # but we know of no workaround that is simple, portable, and efficient.
9076 # So, we kill variables containing newlines.
9077 # Ultrix sh set writes to stderr and can't be redirected directly,
9078 # and sets the high bit in the cache file unless we assign to the vars.
9080 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9081 eval ac_val=\$$ac_var
9085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9089 _ | IFS | as_nl) ;; #(
9090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9091 *) { eval $ac_var=; unset $ac_var;} ;;
9097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9098 *${as_nl}ac_space=\ *)
9099 # `set' does not quote correctly, so add quotes: double-quote
9100 # substitution turns \\\\ into \\, and sed turns \\ into \.
9103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9106 # `set' quotes correctly as required by POSIX, so do not add quotes.
9107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9121 if test -w "$cache_file"; then
9122 if test "x$cache_file" != "x/dev/null"; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9124 $as_echo "$as_me: updating cache $cache_file" >&6;}
9125 if test ! -f "$cache_file" || test -h "$cache_file"; then
9126 cat confcache >"$cache_file"
9128 case $cache_file in #(
9130 mv -f confcache "$cache_file"$$ &&
9131 mv -f "$cache_file"$$ "$cache_file" ;; #(
9133 mv -f confcache "$cache_file" ;;
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9139 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9144 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9145 # Let make expand exec_prefix.
9146 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9148 DEFS=-DHAVE_CONFIG_H
9153 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9154 # 1. Remove the extension, and $U if already installed.
9155 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9156 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9157 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9158 # will be set to the directory where LIBOBJS objects are built.
9159 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9160 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9164 LTLIBOBJS=$ac_ltlibobjs
9169 : "${CONFIG_STATUS=./config.status}"
9171 ac_clean_files_save=$ac_clean_files
9172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9174 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9176 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9178 # Generated by $as_me.
9179 # Run this file to recreate the current configuration.
9180 # Compiler output produced by configure, useful for debugging
9181 # configure, is in config.log if it exists.
9187 SHELL=\${CONFIG_SHELL-$SHELL}
9190 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9191 ## -------------------- ##
9192 ## M4sh Initialization. ##
9193 ## -------------------- ##
9195 # Be more Bourne compatible
9196 DUALCASE=1; export DUALCASE # for MKS sh
9197 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9200 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9201 # is contrary to our usage. Disable this feature.
9202 alias -g '${1+"$@"}'='"$@"'
9203 setopt NO_GLOB_SUBST
9205 case `(set -o) 2>/dev/null` in #(
9217 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9218 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9219 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9220 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9221 # Prefer a ksh shell builtin over an external printf program on Solaris,
9222 # but without wasting forks for bash or zsh.
9223 if test -z "$BASH_VERSION$ZSH_VERSION" \
9224 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9225 as_echo='print -r --'
9226 as_echo_n='print -rn --'
9227 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9228 as_echo='printf %s\n'
9229 as_echo_n='printf %s'
9231 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9232 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9233 as_echo_n='/usr/ucb/echo -n'
9235 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9236 as_echo_n_body='eval
9240 expr "X$arg" : "X\\(.*\\)$as_nl";
9241 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9243 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9245 export as_echo_n_body
9246 as_echo_n='sh -c $as_echo_n_body as_echo'
9249 as_echo='sh -c $as_echo_body as_echo'
9252 # The user is always right.
9253 if test "${PATH_SEPARATOR+set}" != set; then
9255 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9256 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9263 # We need space, tab and new line, in precisely that order. Quoting is
9264 # there to prevent editors from complaining about space-tab.
9265 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9266 # splitting by setting IFS to empty value.)
9269 # Find who we are. Look in the path if we contain no directory separator.
9272 *[\\/]* ) as_myself=$0 ;;
9273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 test -z "$as_dir" && as_dir=.
9278 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9284 # We did not find ourselves, most probably we were run as `sh COMMAND'
9285 # in which case we are not to be found in the path.
9286 if test "x$as_myself" = x; then
9289 if test ! -f "$as_myself"; then
9290 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9294 # Unset variables that we do not need and which cause bugs (e.g. in
9295 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9296 # suppresses any "Segmentation fault" message there. '((' could
9297 # trigger a bug in pdksh 5.2.14.
9298 for as_var in BASH_ENV ENV MAIL MAILPATH
9299 do eval test x\${$as_var+set} = xset \
9300 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9313 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9316 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9317 # ----------------------------------------
9318 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9319 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9320 # script with STATUS, using 1 if that was 0.
9323 as_status=$1; test $as_status -eq 0 && as_status=1
9325 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9326 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9328 $as_echo "$as_me: error: $2" >&2
9329 as_fn_exit $as_status
9333 # as_fn_set_status STATUS
9334 # -----------------------
9335 # Set $? to STATUS, without forking.
9339 } # as_fn_set_status
9343 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9353 # Portably unset VAR.
9356 { eval $1=; unset $1;}
9358 as_unset=as_fn_unset
9359 # as_fn_append VAR VALUE
9360 # ----------------------
9361 # Append the text in VALUE to the end of the definition contained in VAR. Take
9362 # advantage of any shell optimizations that allow amortized linear growth over
9363 # repeated appends, instead of the typical quadratic growth present in naive
9365 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9366 eval 'as_fn_append ()
9377 # as_fn_arith ARG...
9378 # ------------------
9379 # Perform arithmetic evaluation on the ARGs, and store the result in the
9380 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9381 # must be portable across $(()) and expr.
9382 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9383 eval 'as_fn_arith ()
9390 as_val=`expr "$@" || test $? -eq 1`
9395 if expr a : '\(a\)' >/dev/null 2>&1 &&
9396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9403 as_basename=basename
9408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9414 as_me=`$as_basename -- "$0" ||
9415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9416 X"$0" : 'X\(//\)$' \| \
9417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9419 sed '/^.*\/\([^/][^/]*\)\/*$/{
9433 # Avoid depending upon Character Ranges.
9434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9437 as_cr_digits='0123456789'
9438 as_cr_alnum=$as_cr_Letters$as_cr_digits
9440 ECHO_C= ECHO_N= ECHO_T=
9441 case `echo -n x` in #(((((
9443 case `echo 'xy\c'` in
9444 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9446 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9453 rm -f conf$$ conf$$.exe conf$$.file
9454 if test -d conf$$.dir; then
9455 rm -f conf$$.dir/conf$$.file
9458 mkdir conf$$.dir 2>/dev/null
9460 if (echo >conf$$.file) 2>/dev/null; then
9461 if ln -s conf$$.file conf$$ 2>/dev/null; then
9463 # ... but there are two gotchas:
9464 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9465 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9466 # In both cases, we have to default to `cp -pR'.
9467 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9469 elif ln conf$$.file conf$$ 2>/dev/null; then
9477 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9478 rmdir conf$$.dir 2>/dev/null
9483 # Create "$as_dir" as a directory, including parents if necessary.
9488 -*) as_dir=./$as_dir;;
9490 test -d "$as_dir" || eval $as_mkdir_p || {
9494 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9495 *) as_qdir=$as_dir;;
9497 as_dirs="'$as_qdir' $as_dirs"
9498 as_dir=`$as_dirname -- "$as_dir" ||
9499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9500 X"$as_dir" : 'X\(//\)[^/]' \| \
9501 X"$as_dir" : 'X\(//\)$' \| \
9502 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9503 $as_echo X"$as_dir" |
9504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9521 test -d "$as_dir" && break
9523 test -z "$as_dirs" || eval "mkdir $as_dirs"
9524 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9528 if mkdir -p . 2>/dev/null; then
9529 as_mkdir_p='mkdir -p "$as_dir"'
9531 test -d ./-p && rmdir ./-p
9536 # as_fn_executable_p FILE
9537 # -----------------------
9538 # Test if FILE is an executable regular file.
9539 as_fn_executable_p ()
9541 test -f "$1" && test -x "$1"
9542 } # as_fn_executable_p
9544 as_executable_p=as_fn_executable_p
9546 # Sed expression to map a string onto a valid CPP name.
9547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9549 # Sed expression to map a string onto a valid variable name.
9550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9554 ## ----------------------------------- ##
9555 ## Main body of $CONFIG_STATUS script. ##
9556 ## ----------------------------------- ##
9558 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9561 # Save the log message, to keep $0 and so on meaningful, and to
9562 # report actual input values of CONFIG_FILES etc. instead of their
9563 # values after options handling.
9565 This file was extended by freeradius $as_me $Id$, which was
9566 generated by GNU Autoconf 2.69. Invocation command line was
9568 CONFIG_FILES = $CONFIG_FILES
9569 CONFIG_HEADERS = $CONFIG_HEADERS
9570 CONFIG_LINKS = $CONFIG_LINKS
9571 CONFIG_COMMANDS = $CONFIG_COMMANDS
9574 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9579 case $ac_config_files in *"
9580 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9583 case $ac_config_headers in *"
9584 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9589 # Files that config.status was made for.
9590 config_files="$ac_config_files"
9591 config_headers="$ac_config_headers"
9592 config_commands="$ac_config_commands"
9596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9598 \`$as_me' instantiates files and other configuration actions
9599 from templates according to the current configuration. Unless the files
9600 and actions are specified as TAGs, all are instantiated by default.
9602 Usage: $0 [OPTION]... [TAG]...
9604 -h, --help print this help, then exit
9605 -V, --version print version number and configuration settings, then exit
9606 --config print configuration, then exit
9607 -q, --quiet, --silent
9608 do not print progress messages
9609 -d, --debug don't remove temporary files
9610 --recheck update $as_me by reconfiguring in the same conditions
9611 --file=FILE[:TEMPLATE]
9612 instantiate the configuration file FILE
9613 --header=FILE[:TEMPLATE]
9614 instantiate the configuration header FILE
9616 Configuration files:
9619 Configuration headers:
9622 Configuration commands:
9625 Report bugs to <http://bugs.freeradius.org>.
9626 freeradius home page: <http://www.freeradius.org>."
9629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9630 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9632 freeradius config.status $Id$
9633 configured by $0, generated by GNU Autoconf 2.69,
9634 with options \\"\$ac_cs_config\\"
9636 Copyright (C) 2012 Free Software Foundation, Inc.
9637 This config.status script is free software; the Free Software Foundation
9638 gives unlimited permission to copy, distribute and modify it."
9642 test -n "\$AWK" || AWK=awk
9645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9646 # The default lists apply if the user does not specify any file.
9652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9669 # Handling of the options.
9670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9672 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9673 $as_echo "$ac_cs_version"; exit ;;
9674 --config | --confi | --conf | --con | --co | --c )
9675 $as_echo "$ac_cs_config"; exit ;;
9676 --debug | --debu | --deb | --de | --d | -d )
9678 --file | --fil | --fi | --f )
9681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9682 '') as_fn_error $? "missing file argument" ;;
9684 as_fn_append CONFIG_FILES " '$ac_optarg'"
9685 ac_need_defaults=false;;
9686 --header | --heade | --head | --hea )
9689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9691 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9692 ac_need_defaults=false;;
9694 # Conflict between --help and --header
9695 as_fn_error $? "ambiguous option: \`$1'
9696 Try \`$0 --help' for more information.";;
9697 --help | --hel | -h )
9698 $as_echo "$ac_cs_usage"; exit ;;
9699 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9700 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9704 -*) as_fn_error $? "unrecognized option: \`$1'
9705 Try \`$0 --help' for more information." ;;
9707 *) as_fn_append ac_config_targets " $1"
9708 ac_need_defaults=false ;;
9714 ac_configure_extra_args=
9716 if $ac_cs_silent; then
9718 ac_configure_extra_args="$ac_configure_extra_args --silent"
9722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9723 if \$ac_cs_recheck; then
9724 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9726 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9727 CONFIG_SHELL='$SHELL'
9733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9737 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9738 ## Running $as_me. ##
9744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9749 # Handling of arguments.
9750 for ac_config_target in $ac_config_targets
9752 case $ac_config_target in
9753 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
9754 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
9755 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
9756 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
9757 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
9758 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
9759 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
9760 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
9761 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
9762 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
9763 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
9764 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
9765 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
9766 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
9767 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
9768 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
9769 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
9770 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
9772 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9777 # If the user did not use the arguments to specify the items to instantiate,
9778 # then the envvar interface is used. Set only those that are not.
9779 # We use the long form for the default assignment because of an extremely
9780 # bizarre bug on SunOS 4.1.3.
9781 if $ac_need_defaults; then
9782 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9783 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9784 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9787 # Have a temporary directory for convenience. Make it in the build tree
9788 # simply because there is no reason against having it here, and in addition,
9789 # creating and moving files from /tmp can sometimes cause problems.
9790 # Hook for its removal unless debugging.
9791 # Note that there is a small window in which the directory will not be cleaned:
9792 # after its creation but before its name has been assigned to `$tmp'.
9796 trap 'exit_status=$?
9798 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9800 trap 'as_fn_exit 1' 1 2 13 15
9802 # Create a (secure) tmp directory for tmp files.
9805 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9809 tmp=./conf$$-$RANDOM
9810 (umask 077 && mkdir "$tmp")
9811 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9814 # Set up the scripts for CONFIG_FILES section.
9815 # No need to generate them if there are no CONFIG_FILES.
9816 # This happens for instance with `./config.status config.h'.
9817 if test -n "$CONFIG_FILES"; then
9820 ac_cr=`echo X | tr X '\015'`
9821 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9822 # But we know of no other shell where ac_cr would be empty at this
9823 # point, so we can use a bashism as a fallback.
9824 if test "x$ac_cr" = x; then
9825 eval ac_cr=\$\'\\r\'
9827 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9828 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9834 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9839 echo "cat >conf$$subs.awk <<_ACEOF" &&
9840 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9844 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9846 for ac_last_try in false false false false false :; do
9847 . ./conf$$subs.sh ||
9848 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9850 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9851 if test $ac_delim_n = $ac_delim_num; then
9853 elif $ac_last_try; then
9854 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9862 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9866 s/^/S["/; s/!.*/"]=/
9876 s/\(.\{148\}\)..*/\1/
9878 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9883 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9890 s/\(.\{148\}\)..*/\1/
9892 s/["\\]/\\&/g; s/^/"/; s/$/"/
9896 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9901 ' <conf$$subs.awk | sed '
9906 ' >>$CONFIG_STATUS || ac_write_fail=1
9907 rm -f conf$$subs.awk
9908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9910 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9911 for (key in S) S_is_set[key] = 1
9917 nfields = split(line, field, "@")
9919 len = length(field[1])
9920 for (i = 2; i < nfields; i++) {
9922 keylen = length(key)
9923 if (S_is_set[key]) {
9925 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9926 len += length(value) + length(field[++i])
9937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9938 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9939 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9942 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9943 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9946 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9947 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9948 # trailing colons and then remove the whole line if VPATH becomes empty
9949 # (actually we leave an empty line to preserve line numbers).
9950 if test "x$srcdir" = x.; then
9951 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9970 fi # test -n "$CONFIG_FILES"
9972 # Set up the scripts for CONFIG_HEADERS section.
9973 # No need to generate them if there are no CONFIG_HEADERS.
9974 # This happens for instance with `./config.status Makefile'.
9975 if test -n "$CONFIG_HEADERS"; then
9976 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9980 # Transform confdefs.h into an awk script `defines.awk', embedded as
9981 # here-document in config.status, that substitutes the proper values into
9982 # config.h.in to produce config.h.
9984 # Create a delimiter string that does not exist in confdefs.h, to ease
9985 # handling of long lines.
9987 for ac_last_try in false false :; do
9988 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9989 if test -z "$ac_tt"; then
9991 elif $ac_last_try; then
9992 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9994 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9998 # For the awk script, D is an array of macro values keyed by name,
9999 # likewise P contains macro parameters if any. Preserve backslash
10000 # newline sequences.
10002 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10004 s/.\{148\}/&'"$ac_delim"'/g
10007 s/^[ ]*#[ ]*define[ ][ ]*/ /
10014 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10016 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10020 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10021 D["\1"]=" \3\\\\\\n"\\/p
10023 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10028 s/.\{148\}/&'"$ac_delim"'/g
10033 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10036 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10038 ' <confdefs.h | sed '
10039 s/'"$ac_delim"'/"\\\
10040 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10043 for (key in D) D_is_set[key] = 1
10046 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10048 split(line, arg, " ")
10049 if (arg[1] == "#") {
10053 defundef = substr(arg[1], 2)
10056 split(mac1, mac2, "(") #)
10058 prefix = substr(line, 1, index(line, defundef) - 1)
10059 if (D_is_set[macro]) {
10060 # Preserve the white space surrounding the "#".
10061 print prefix "define", macro P[macro] D[macro]
10064 # Replace #undef with comments. This is necessary, for example,
10065 # in the case of _POSIX_SOURCE, which is predefined and required
10066 # on some systems where configure will not decide to define it.
10067 if (defundef == "undef") {
10068 print "/*", prefix defundef, macro, "*/"
10076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10077 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10078 fi # test -n "$CONFIG_HEADERS"
10081 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10086 :[FHLC]) ac_mode=$ac_tag; continue;;
10088 case $ac_mode$ac_tag in
10090 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10091 :[FH]-) ac_tag=-:-;;
10092 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10109 -) ac_f="$ac_tmp/stdin";;
10110 *) # Look for the file first in the build tree, then in the source tree
10111 # (if the path is not absolute). The absolute path cannot be DOS-style,
10112 # because $ac_f cannot contain `:'.
10116 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10118 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10120 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10121 as_fn_append ac_file_inputs " '$ac_f'"
10124 # Let's still pretend it is `configure' which instantiates (i.e., don't
10125 # use $as_me), people would be surprised to read:
10126 # /* config.h. Generated by config.status. */
10127 configure_input='Generated from '`
10128 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10130 if test x"$ac_file" != x-; then
10131 configure_input="$ac_file. $configure_input"
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10133 $as_echo "$as_me: creating $ac_file" >&6;}
10135 # Neutralize special characters interpreted by sed in replacement strings.
10136 case $configure_input in #(
10137 *\&* | *\|* | *\\* )
10138 ac_sed_conf_input=`$as_echo "$configure_input" |
10139 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10140 *) ac_sed_conf_input=$configure_input;;
10144 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10150 ac_dir=`$as_dirname -- "$ac_file" ||
10151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10152 X"$ac_file" : 'X\(//\)[^/]' \| \
10153 X"$ac_file" : 'X\(//\)$' \| \
10154 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10155 $as_echo X"$ac_file" |
10156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10160 /^X\(\/\/\)[^/].*/{
10173 as_dir="$ac_dir"; as_fn_mkdir_p
10177 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10179 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10180 # A ".." for each directory in $ac_dir_suffix.
10181 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10182 case $ac_top_builddir_sub in
10183 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10184 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10187 ac_abs_top_builddir=$ac_pwd
10188 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10189 # for backward compatibility:
10190 ac_top_builddir=$ac_top_build_prefix
10193 .) # We are building in place.
10195 ac_top_srcdir=$ac_top_builddir_sub
10196 ac_abs_top_srcdir=$ac_pwd ;;
10197 [\\/]* | ?:[\\/]* ) # Absolute name.
10198 ac_srcdir=$srcdir$ac_dir_suffix;
10199 ac_top_srcdir=$srcdir
10200 ac_abs_top_srcdir=$srcdir ;;
10201 *) # Relative name.
10202 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10203 ac_top_srcdir=$ac_top_build_prefix$srcdir
10204 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10206 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10218 # If the template does not know about datarootdir, expand it.
10219 # FIXME: This hack should be removed a few years after 2.60.
10220 ac_datarootdir_hack=; ac_datarootdir_seen=
10231 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10232 *datarootdir*) ac_datarootdir_seen=yes;;
10233 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10235 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10238 ac_datarootdir_hack='
10239 s&@datadir@&$datadir&g
10240 s&@docdir@&$docdir&g
10241 s&@infodir@&$infodir&g
10242 s&@localedir@&$localedir&g
10243 s&@mandir@&$mandir&g
10244 s&\\\${datarootdir}&$datarootdir&g' ;;
10248 # Neutralize VPATH when `$srcdir' = `.'.
10249 # Shell code in configure.ac might set extrasub.
10250 # FIXME: do we really want to maintain this feature?
10251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10252 ac_sed_extra="$ac_vpsub
10255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10258 s|@configure_input@|$ac_sed_conf_input|;t t
10259 s&@top_builddir@&$ac_top_builddir_sub&;t t
10260 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10261 s&@srcdir@&$ac_srcdir&;t t
10262 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10263 s&@top_srcdir@&$ac_top_srcdir&;t t
10264 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10265 s&@builddir@&$ac_builddir&;t t
10266 s&@abs_builddir@&$ac_abs_builddir&;t t
10267 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10268 $ac_datarootdir_hack
10270 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10271 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10273 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10274 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10275 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10276 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10278 which seems to be undefined. Please make sure it is defined" >&5
10279 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10280 which seems to be undefined. Please make sure it is defined" >&2;}
10282 rm -f "$ac_tmp/stdin"
10284 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10285 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10293 if test x"$ac_file" != x-; then
10295 $as_echo "/* $configure_input */" \
10296 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10297 } >"$ac_tmp/config.h" \
10298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10299 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10301 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10304 mv "$ac_tmp/config.h" "$ac_file" \
10305 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10308 $as_echo "/* $configure_input */" \
10309 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10310 || as_fn_error $? "could not create -" "$LINENO" 5
10314 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10315 $as_echo "$as_me: executing $ac_file commands" >&6;}
10320 case $ac_file$ac_mode in
10321 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
10322 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
10323 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
10324 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
10332 ac_clean_files=$ac_clean_files_save
10334 test $ac_write_fail = 0 ||
10335 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10338 # configure is writing to config.log, and then calls config.status.
10339 # config.status does its own redirection, appending to config.log.
10340 # Unfortunately, on DOS this fails, as config.log is still kept open
10341 # by configure, so config.status won't be able to write to it; its
10342 # output is simply discarded. So we exec the FD to /dev/null,
10343 # effectively closing config.log, so it can be properly (re)opened and
10344 # appended to by config.status. When coming back to configure, we
10345 # need to make the FD available again.
10346 if test "$no_create" != yes; then
10348 ac_config_status_args=
10349 test "$silent" = yes &&
10350 ac_config_status_args="$ac_config_status_args --quiet"
10352 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10354 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10355 # would make configure fail if this is the last instruction.
10356 $ac_cs_success || as_fn_exit 1
10360 # CONFIG_SUBDIRS section.
10362 if test "$no_recursion" != yes; then
10364 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10365 # so they do not pile up.
10366 ac_sub_configure_args=
10368 eval "set x $ac_configure_args"
10372 if test -n "$ac_prev"; then
10377 -cache-file | --cache-file | --cache-fil | --cache-fi \
10378 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10379 ac_prev=cache_file ;;
10380 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10381 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10384 --config-cache | -C)
10386 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10388 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10390 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10392 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10394 --disable-option-checking)
10398 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10400 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10404 # Always prepend --prefix to ensure using the same prefix
10405 # in subdir configurations.
10406 ac_arg="--prefix=$prefix"
10408 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10410 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10413 if test "$silent" = yes; then
10414 ac_sub_configure_args="--silent $ac_sub_configure_args"
10417 # Always prepend --disable-option-checking to silence warnings, since
10418 # different subdirs can have different --enable and --with options.
10419 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10422 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10424 # Do not complain, so a configure script can configure whichever
10425 # parts of a large source tree are present.
10426 test -d "$srcdir/$ac_dir" || continue
10428 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10429 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10430 $as_echo "$ac_msg" >&6
10431 as_dir="$ac_dir"; as_fn_mkdir_p
10435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10438 # A ".." for each directory in $ac_dir_suffix.
10439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10440 case $ac_top_builddir_sub in
10441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10445 ac_abs_top_builddir=$ac_pwd
10446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10447 # for backward compatibility:
10448 ac_top_builddir=$ac_top_build_prefix
10451 .) # We are building in place.
10453 ac_top_srcdir=$ac_top_builddir_sub
10454 ac_abs_top_srcdir=$ac_pwd ;;
10455 [\\/]* | ?:[\\/]* ) # Absolute name.
10456 ac_srcdir=$srcdir$ac_dir_suffix;
10457 ac_top_srcdir=$srcdir
10458 ac_abs_top_srcdir=$srcdir ;;
10459 *) # Relative name.
10460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10461 ac_top_srcdir=$ac_top_build_prefix$srcdir
10462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10469 # Check for guested configure; otherwise get Cygnus style configure.
10470 if test -f "$ac_srcdir/configure.gnu"; then
10471 ac_sub_configure=$ac_srcdir/configure.gnu
10472 elif test -f "$ac_srcdir/configure"; then
10473 ac_sub_configure=$ac_srcdir/configure
10474 elif test -f "$ac_srcdir/configure.in"; then
10475 # This should be Cygnus configure.
10476 ac_sub_configure=$ac_aux_dir/configure
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10479 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10483 # The recursion is here.
10484 if test -n "$ac_sub_configure"; then
10485 # Make the cache file name correct relative to the subdirectory.
10486 case $cache_file in
10487 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10488 *) # Relative name.
10489 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10492 { $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
10493 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10494 # The eval makes quoting arguments work.
10495 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10496 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10497 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10503 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10505 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}