Fix -Werror causing test scripts to fail
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
4 #
5 # Report bugs to <http://bugs.freeradius.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
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 ## -------------------- ##
16
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 :
20   emulate sh
21   NULLCMD=:
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+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
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
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
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'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
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.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
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
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
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 || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
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
158 as_fn_exit 255
159   fi
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 :
164   emulate sh
165   NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
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; }
184
185 exitcode=0
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 :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || 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 :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
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 :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
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
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
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.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
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
259 exit 255
260 fi
261
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."
268   else
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."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
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
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
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 :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
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.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
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
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
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
466
467
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.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
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; }
490
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).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
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 ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
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'"
555
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'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
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`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
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'
587
588 ac_unique_file="src/main/radiusd.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 enable_option_checking=no
626 ac_subst_vars='LTLIBOBJS
627 LIBOBJS
628 STATIC_MODULES
629 USE_STATIC_LIBS
630 USE_SHARED_LIBS
631 INSTALLSTRIP
632 MODULES
633 subdirs
634 HOSTINFO
635 CRYPTLIB
636 LIBPREFIX
637 PCAP_LIBS
638 OPENSSL_LIBS
639 OPENSSL_INCLUDE
640 REGEX_EXTENDED
641 REGEX_PCRE
642 REGEX
643 LIBREADLINE
644 DIRNAME
645 LOCATE
646 AUTOHEADER
647 AUTOCONF
648 ACLOCAL
649 RUSERS
650 SNMPWALK
651 SNMPGET
652 PERL
653 raddbdir
654 radacctdir
655 logdir
656 GIT
657 MAKE
658 GMAKE
659 RANLIB
660 EGREP
661 GREP
662 CPP
663 ac_ct_CXX
664 CXXFLAGS
665 CXX
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
672 CC
673 target_os
674 target_vendor
675 target_cpu
676 target
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 MAKEFLAGS
686 RADIUSD_VERSION_STRING
687 target_alias
688 host_alias
689 build_alias
690 LIBS
691 ECHO_T
692 ECHO_N
693 ECHO_C
694 DEFS
695 mandir
696 localedir
697 libdir
698 psdir
699 pdfdir
700 dvidir
701 htmldir
702 infodir
703 docdir
704 oldincludedir
705 includedir
706 localstatedir
707 sharedstatedir
708 sysconfdir
709 datadir
710 datarootdir
711 libexecdir
712 sbindir
713 bindir
714 program_transform_name
715 prefix
716 exec_prefix
717 PACKAGE_URL
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files=''
726 ac_user_opts='
727 enable_option_checking
728 enable_developer
729 enable_largefile
730 enable_strict_dependencies
731 enable_werror
732 with_docdir
733 with_logdir
734 with_radacctdir
735 with_raddbdir
736 with_ascend_binary
737 with_threads
738 with_tcp
739 with_vmps
740 with_dhcp
741 with_static_modules
742 with_modules
743 with_experimental_modules
744 with_openssl
745 with_openssl_includes
746 with_openssl_libraries
747 with_rlm_FOO_lib_dir
748 with_rlm_FOO_include_dir
749 with_udpfromto
750 with_talloc_include_dir
751 '
752       ac_precious_vars='build_alias
753 host_alias
754 target_alias
755 CC
756 CFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS
760 CXX
761 CXXFLAGS
762 CCC
763 CPP'
764 ac_subdirs_all='$mysubdirs'
765
766 # Initialize some variables set by options.
767 ac_init_help=
768 ac_init_version=false
769 ac_unrecognized_opts=
770 ac_unrecognized_sep=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
773 cache_file=/dev/null
774 exec_prefix=NONE
775 no_create=
776 no_recursion=
777 prefix=NONE
778 program_prefix=NONE
779 program_suffix=NONE
780 program_transform_name=s,x,x,
781 silent=
782 site=
783 srcdir=
784 verbose=
785 x_includes=NONE
786 x_libraries=NONE
787
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir='${exec_prefix}/bin'
795 sbindir='${exec_prefix}/sbin'
796 libexecdir='${exec_prefix}/libexec'
797 datarootdir='${prefix}/share'
798 datadir='${datarootdir}'
799 sysconfdir='${prefix}/etc'
800 sharedstatedir='${prefix}/com'
801 localstatedir='${prefix}/var'
802 includedir='${prefix}/include'
803 oldincludedir='/usr/include'
804 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805 infodir='${datarootdir}/info'
806 htmldir='${docdir}'
807 dvidir='${docdir}'
808 pdfdir='${docdir}'
809 psdir='${docdir}'
810 libdir='${exec_prefix}/lib'
811 localedir='${datarootdir}/locale'
812 mandir='${datarootdir}/man'
813
814 ac_prev=
815 ac_dashdash=
816 for ac_option
817 do
818   # If the previous option needs an argument, assign it.
819   if test -n "$ac_prev"; then
820     eval $ac_prev=\$ac_option
821     ac_prev=
822     continue
823   fi
824
825   case $ac_option in
826   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827   *=)   ac_optarg= ;;
828   *)    ac_optarg=yes ;;
829   esac
830
831   # Accept the important Cygnus configure options, so we can diagnose typos.
832
833   case $ac_dashdash$ac_option in
834   --)
835     ac_dashdash=yes ;;
836
837   -bindir | --bindir | --bindi | --bind | --bin | --bi)
838     ac_prev=bindir ;;
839   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840     bindir=$ac_optarg ;;
841
842   -build | --build | --buil | --bui | --bu)
843     ac_prev=build_alias ;;
844   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845     build_alias=$ac_optarg ;;
846
847   -cache-file | --cache-file | --cache-fil | --cache-fi \
848   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849     ac_prev=cache_file ;;
850   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852     cache_file=$ac_optarg ;;
853
854   --config-cache | -C)
855     cache_file=config.cache ;;
856
857   -datadir | --datadir | --datadi | --datad)
858     ac_prev=datadir ;;
859   -datadir=* | --datadir=* | --datadi=* | --datad=*)
860     datadir=$ac_optarg ;;
861
862   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863   | --dataroo | --dataro | --datar)
864     ac_prev=datarootdir ;;
865   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867     datarootdir=$ac_optarg ;;
868
869   -disable-* | --disable-*)
870     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871     # Reject names that are not valid shell variable names.
872     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873       as_fn_error $? "invalid feature name: $ac_useropt"
874     ac_useropt_orig=$ac_useropt
875     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876     case $ac_user_opts in
877       *"
878 "enable_$ac_useropt"
879 "*) ;;
880       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881          ac_unrecognized_sep=', ';;
882     esac
883     eval enable_$ac_useropt=no ;;
884
885   -docdir | --docdir | --docdi | --doc | --do)
886     ac_prev=docdir ;;
887   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888     docdir=$ac_optarg ;;
889
890   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891     ac_prev=dvidir ;;
892   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893     dvidir=$ac_optarg ;;
894
895   -enable-* | --enable-*)
896     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897     # Reject names that are not valid shell variable names.
898     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899       as_fn_error $? "invalid feature name: $ac_useropt"
900     ac_useropt_orig=$ac_useropt
901     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902     case $ac_user_opts in
903       *"
904 "enable_$ac_useropt"
905 "*) ;;
906       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907          ac_unrecognized_sep=', ';;
908     esac
909     eval enable_$ac_useropt=\$ac_optarg ;;
910
911   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913   | --exec | --exe | --ex)
914     ac_prev=exec_prefix ;;
915   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917   | --exec=* | --exe=* | --ex=*)
918     exec_prefix=$ac_optarg ;;
919
920   -gas | --gas | --ga | --g)
921     # Obsolete; use --with-gas.
922     with_gas=yes ;;
923
924   -help | --help | --hel | --he | -h)
925     ac_init_help=long ;;
926   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927     ac_init_help=recursive ;;
928   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929     ac_init_help=short ;;
930
931   -host | --host | --hos | --ho)
932     ac_prev=host_alias ;;
933   -host=* | --host=* | --hos=* | --ho=*)
934     host_alias=$ac_optarg ;;
935
936   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937     ac_prev=htmldir ;;
938   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939   | --ht=*)
940     htmldir=$ac_optarg ;;
941
942   -includedir | --includedir | --includedi | --included | --include \
943   | --includ | --inclu | --incl | --inc)
944     ac_prev=includedir ;;
945   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946   | --includ=* | --inclu=* | --incl=* | --inc=*)
947     includedir=$ac_optarg ;;
948
949   -infodir | --infodir | --infodi | --infod | --info | --inf)
950     ac_prev=infodir ;;
951   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952     infodir=$ac_optarg ;;
953
954   -libdir | --libdir | --libdi | --libd)
955     ac_prev=libdir ;;
956   -libdir=* | --libdir=* | --libdi=* | --libd=*)
957     libdir=$ac_optarg ;;
958
959   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960   | --libexe | --libex | --libe)
961     ac_prev=libexecdir ;;
962   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963   | --libexe=* | --libex=* | --libe=*)
964     libexecdir=$ac_optarg ;;
965
966   -localedir | --localedir | --localedi | --localed | --locale)
967     ac_prev=localedir ;;
968   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969     localedir=$ac_optarg ;;
970
971   -localstatedir | --localstatedir | --localstatedi | --localstated \
972   | --localstate | --localstat | --localsta | --localst | --locals)
973     ac_prev=localstatedir ;;
974   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976     localstatedir=$ac_optarg ;;
977
978   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979     ac_prev=mandir ;;
980   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981     mandir=$ac_optarg ;;
982
983   -nfp | --nfp | --nf)
984     # Obsolete; use --without-fp.
985     with_fp=no ;;
986
987   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988   | --no-cr | --no-c | -n)
989     no_create=yes ;;
990
991   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993     no_recursion=yes ;;
994
995   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997   | --oldin | --oldi | --old | --ol | --o)
998     ac_prev=oldincludedir ;;
999   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002     oldincludedir=$ac_optarg ;;
1003
1004   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005     ac_prev=prefix ;;
1006   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007     prefix=$ac_optarg ;;
1008
1009   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010   | --program-pre | --program-pr | --program-p)
1011     ac_prev=program_prefix ;;
1012   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014     program_prefix=$ac_optarg ;;
1015
1016   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017   | --program-suf | --program-su | --program-s)
1018     ac_prev=program_suffix ;;
1019   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021     program_suffix=$ac_optarg ;;
1022
1023   -program-transform-name | --program-transform-name \
1024   | --program-transform-nam | --program-transform-na \
1025   | --program-transform-n | --program-transform- \
1026   | --program-transform | --program-transfor \
1027   | --program-transfo | --program-transf \
1028   | --program-trans | --program-tran \
1029   | --progr-tra | --program-tr | --program-t)
1030     ac_prev=program_transform_name ;;
1031   -program-transform-name=* | --program-transform-name=* \
1032   | --program-transform-nam=* | --program-transform-na=* \
1033   | --program-transform-n=* | --program-transform-=* \
1034   | --program-transform=* | --program-transfor=* \
1035   | --program-transfo=* | --program-transf=* \
1036   | --program-trans=* | --program-tran=* \
1037   | --progr-tra=* | --program-tr=* | --program-t=*)
1038     program_transform_name=$ac_optarg ;;
1039
1040   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041     ac_prev=pdfdir ;;
1042   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043     pdfdir=$ac_optarg ;;
1044
1045   -psdir | --psdir | --psdi | --psd | --ps)
1046     ac_prev=psdir ;;
1047   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048     psdir=$ac_optarg ;;
1049
1050   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051   | -silent | --silent | --silen | --sile | --sil)
1052     silent=yes ;;
1053
1054   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055     ac_prev=sbindir ;;
1056   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057   | --sbi=* | --sb=*)
1058     sbindir=$ac_optarg ;;
1059
1060   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062   | --sharedst | --shareds | --shared | --share | --shar \
1063   | --sha | --sh)
1064     ac_prev=sharedstatedir ;;
1065   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068   | --sha=* | --sh=*)
1069     sharedstatedir=$ac_optarg ;;
1070
1071   -site | --site | --sit)
1072     ac_prev=site ;;
1073   -site=* | --site=* | --sit=*)
1074     site=$ac_optarg ;;
1075
1076   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077     ac_prev=srcdir ;;
1078   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079     srcdir=$ac_optarg ;;
1080
1081   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082   | --syscon | --sysco | --sysc | --sys | --sy)
1083     ac_prev=sysconfdir ;;
1084   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086     sysconfdir=$ac_optarg ;;
1087
1088   -target | --target | --targe | --targ | --tar | --ta | --t)
1089     ac_prev=target_alias ;;
1090   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091     target_alias=$ac_optarg ;;
1092
1093   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094     verbose=yes ;;
1095
1096   -version | --version | --versio | --versi | --vers | -V)
1097     ac_init_version=: ;;
1098
1099   -with-* | --with-*)
1100     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101     # Reject names that are not valid shell variable names.
1102     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103       as_fn_error $? "invalid package name: $ac_useropt"
1104     ac_useropt_orig=$ac_useropt
1105     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106     case $ac_user_opts in
1107       *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111          ac_unrecognized_sep=', ';;
1112     esac
1113     eval with_$ac_useropt=\$ac_optarg ;;
1114
1115   -without-* | --without-*)
1116     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117     # Reject names that are not valid shell variable names.
1118     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119       as_fn_error $? "invalid package name: $ac_useropt"
1120     ac_useropt_orig=$ac_useropt
1121     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122     case $ac_user_opts in
1123       *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127          ac_unrecognized_sep=', ';;
1128     esac
1129     eval with_$ac_useropt=no ;;
1130
1131   --x)
1132     # Obsolete; use --with-x.
1133     with_x=yes ;;
1134
1135   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136   | --x-incl | --x-inc | --x-in | --x-i)
1137     ac_prev=x_includes ;;
1138   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140     x_includes=$ac_optarg ;;
1141
1142   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144     ac_prev=x_libraries ;;
1145   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147     x_libraries=$ac_optarg ;;
1148
1149   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1150 Try \`$0 --help' for more information"
1151     ;;
1152
1153   *=*)
1154     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155     # Reject names that are not valid shell variable names.
1156     case $ac_envvar in #(
1157       '' | [0-9]* | *[!_$as_cr_alnum]* )
1158       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1159     esac
1160     eval $ac_envvar=\$ac_optarg
1161     export $ac_envvar ;;
1162
1163   *)
1164     # FIXME: should be removed in autoconf 3.0.
1165     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1169     ;;
1170
1171   esac
1172 done
1173
1174 if test -n "$ac_prev"; then
1175   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176   as_fn_error $? "missing argument to $ac_option"
1177 fi
1178
1179 if test -n "$ac_unrecognized_opts"; then
1180   case $enable_option_checking in
1181     no) ;;
1182     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1183     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184   esac
1185 fi
1186
1187 # Check all directory arguments for consistency.
1188 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189                 datadir sysconfdir sharedstatedir localstatedir includedir \
1190                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191                 libdir localedir mandir
1192 do
1193   eval ac_val=\$$ac_var
1194   # Remove trailing slashes.
1195   case $ac_val in
1196     */ )
1197       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198       eval $ac_var=\$ac_val;;
1199   esac
1200   # Be sure to have absolute directory names.
1201   case $ac_val in
1202     [\\/$]* | ?:[\\/]* )  continue;;
1203     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204   esac
1205   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1206 done
1207
1208 # There might be people who depend on the old broken behavior: `$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1211 build=$build_alias
1212 host=$host_alias
1213 target=$target_alias
1214
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x; then
1217   if test "x$build_alias" = x; then
1218     cross_compiling=maybe
1219   elif test "x$build_alias" != "x$host_alias"; then
1220     cross_compiling=yes
1221   fi
1222 fi
1223
1224 ac_tool_prefix=
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227 test "$silent" = yes && exec 6>/dev/null
1228
1229
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233   as_fn_error $? "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235   as_fn_error $? "pwd does not report name of working directory"
1236
1237
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240   ac_srcdir_defaulted=yes
1241   # Try the directory containing this script, then the parent directory.
1242   ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244          X"$as_myself" : 'X\(//\)[^/]' \| \
1245          X"$as_myself" : 'X\(//\)$' \| \
1246          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249             s//\1/
1250             q
1251           }
1252           /^X\(\/\/\)[^/].*/{
1253             s//\1/
1254             q
1255           }
1256           /^X\(\/\/\)$/{
1257             s//\1/
1258             q
1259           }
1260           /^X\(\/\).*/{
1261             s//\1/
1262             q
1263           }
1264           s/.*/./; q'`
1265   srcdir=$ac_confdir
1266   if test ! -r "$srcdir/$ac_unique_file"; then
1267     srcdir=..
1268   fi
1269 else
1270   ac_srcdir_defaulted=no
1271 fi
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279         pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282   srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292   eval ac_env_${ac_var}_value=\$${ac_var}
1293   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301   # Omit some internal or obsolete options to make the list less imposing.
1302   # This message is too long to be a string in the A/UX 3.1 sh.
1303   cat <<_ACEOF
1304 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE.  See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314   -h, --help              display this help and exit
1315       --help=short        display options specific to this package
1316       --help=recursive    display the short help of all the included packages
1317   -V, --version           display version information and exit
1318   -q, --quiet, --silent   do not print \`checking ...' messages
1319       --cache-file=FILE   cache test results in FILE [disabled]
1320   -C, --config-cache      alias for \`--cache-file=config.cache'
1321   -n, --no-create         do not create output files
1322       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325   --prefix=PREFIX         install architecture-independent files in PREFIX
1326                           [$ac_default_prefix]
1327   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1328                           [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338   --bindir=DIR            user executables [EPREFIX/bin]
1339   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1340   --libexecdir=DIR        program executables [EPREFIX/libexec]
1341   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1342   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1343   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1344   --libdir=DIR            object code libraries [EPREFIX/lib]
1345   --includedir=DIR        C header files [PREFIX/include]
1346   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1347   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1348   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1349   --infodir=DIR           info documentation [DATAROOTDIR/info]
1350   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1351   --mandir=DIR            man documentation [DATAROOTDIR/man]
1352   --docdir=DIR            documentation root [DATAROOTDIR/doc/freeradius]
1353   --htmldir=DIR           html documentation [DOCDIR]
1354   --dvidir=DIR            dvi documentation [DOCDIR]
1355   --pdfdir=DIR            pdf documentation [DOCDIR]
1356   --psdir=DIR             ps documentation [DOCDIR]
1357 _ACEOF
1358
1359   cat <<\_ACEOF
1360
1361 System types:
1362   --build=BUILD     configure for building on BUILD [guessed]
1363   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364   --target=TARGET   configure for building compilers for TARGET [HOST]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369   case $ac_init_help in
1370      short | recursive ) echo "Configuration of freeradius $Id$:";;
1371    esac
1372   cat <<\_ACEOF
1373
1374 Optional Features:
1375   --disable-option-checking  ignore unrecognized --enable/--with options
1376   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378   --enable-developer      enables features of interest to developers.
1379   --disable-largefile     omit support for large files
1380   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1381   --enable-werror         causes the build to fail if any warnings are generated.
1382
1383 Optional Packages:
1384   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1385   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1386   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1387   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1388   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1389   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1390   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1391   --with-threads          Use threads, if available.  (default=yes)
1392   --with-tcp              Compile in TCP support. (default=yes)
1393   --with-vmps             Compile in VMPS support. (default=yes)
1394   --with-dhcp             Compile in DHCP support. (default=yes)
1395   --with-static-modules=QUOTED-MODULE-LIST
1396   --with-modules=QUOTED-MODULE-LIST
1397   --with-experimental-modules      Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1398   --with-openssl                   Use OpenSSL. (default=yes)
1399   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1400   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1401   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1402   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1403   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1404   --with-talloc-include-dir=DIR
1405                           Directory where the talloc includes may be found
1406
1407 Some influential environment variables:
1408   CC          C compiler command
1409   CFLAGS      C compiler flags
1410   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1411               nonstandard directory <lib dir>
1412   LIBS        libraries to pass to the linker, e.g. -l<library>
1413   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1414               you have headers in a nonstandard directory <include dir>
1415   CXX         C++ compiler command
1416   CXXFLAGS    C++ compiler flags
1417   CPP         C preprocessor
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 Report bugs to <http://bugs.freeradius.org>.
1423 freeradius home page: <http://www.freeradius.org>.
1424 _ACEOF
1425 ac_status=$?
1426 fi
1427
1428 if test "$ac_init_help" = "recursive"; then
1429   # If there are subdirs, report their specific --help.
1430   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431     test -d "$ac_dir" ||
1432       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433       continue
1434     ac_builddir=.
1435
1436 case "$ac_dir" in
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *)
1439   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440   # A ".." for each directory in $ac_dir_suffix.
1441   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442   case $ac_top_builddir_sub in
1443   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445   esac ;;
1446 esac
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1451
1452 case $srcdir in
1453   .)  # We are building in place.
1454     ac_srcdir=.
1455     ac_top_srcdir=$ac_top_builddir_sub
1456     ac_abs_top_srcdir=$ac_pwd ;;
1457   [\\/]* | ?:[\\/]* )  # Absolute name.
1458     ac_srcdir=$srcdir$ac_dir_suffix;
1459     ac_top_srcdir=$srcdir
1460     ac_abs_top_srcdir=$srcdir ;;
1461   *) # Relative name.
1462     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463     ac_top_srcdir=$ac_top_build_prefix$srcdir
1464     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 esac
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468     cd "$ac_dir" || { ac_status=$?; continue; }
1469     # Check for guested configure.
1470     if test -f "$ac_srcdir/configure.gnu"; then
1471       echo &&
1472       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473     elif test -f "$ac_srcdir/configure"; then
1474       echo &&
1475       $SHELL "$ac_srcdir/configure" --help=recursive
1476     else
1477       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478     fi || ac_status=$?
1479     cd "$ac_pwd" || { ac_status=$?; break; }
1480   done
1481 fi
1482
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1485   cat <<\_ACEOF
1486 freeradius configure $Id$
1487 generated by GNU Autoconf 2.69
1488
1489 Copyright (C) 2012 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1492 _ACEOF
1493   exit
1494 fi
1495
1496 ## ------------------------ ##
1497 ## Autoconf initialization. ##
1498 ## ------------------------ ##
1499
1500 # ac_fn_c_try_compile LINENO
1501 # --------------------------
1502 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_compile ()
1504 {
1505   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506   rm -f conftest.$ac_objext
1507   if { { ac_try="$ac_compile"
1508 case "(($ac_try" in
1509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510   *) ac_try_echo=$ac_try;;
1511 esac
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514   (eval "$ac_compile") 2>conftest.err
1515   ac_status=$?
1516   if test -s conftest.err; then
1517     grep -v '^ *+' conftest.err >conftest.er1
1518     cat conftest.er1 >&5
1519     mv -f conftest.er1 conftest.err
1520   fi
1521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522   test $ac_status = 0; } && {
1523          test -z "$ac_c_werror_flag" ||
1524          test ! -s conftest.err
1525        } && test -s conftest.$ac_objext; then :
1526   ac_retval=0
1527 else
1528   $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1530
1531         ac_retval=1
1532 fi
1533   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534   as_fn_set_status $ac_retval
1535
1536 } # ac_fn_c_try_compile
1537
1538 # ac_fn_cxx_try_compile LINENO
1539 # ----------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_cxx_try_compile ()
1542 {
1543   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544   rm -f conftest.$ac_objext
1545   if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548   *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552   (eval "$ac_compile") 2>conftest.err
1553   ac_status=$?
1554   if test -s conftest.err; then
1555     grep -v '^ *+' conftest.err >conftest.er1
1556     cat conftest.er1 >&5
1557     mv -f conftest.er1 conftest.err
1558   fi
1559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560   test $ac_status = 0; } && {
1561          test -z "$ac_cxx_werror_flag" ||
1562          test ! -s conftest.err
1563        } && test -s conftest.$ac_objext; then :
1564   ac_retval=0
1565 else
1566   $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1568
1569         ac_retval=1
1570 fi
1571   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572   as_fn_set_status $ac_retval
1573
1574 } # ac_fn_cxx_try_compile
1575
1576 # ac_fn_c_try_cpp LINENO
1577 # ----------------------
1578 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_cpp ()
1580 {
1581   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582   if { { ac_try="$ac_cpp conftest.$ac_ext"
1583 case "(($ac_try" in
1584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585   *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1590   ac_status=$?
1591   if test -s conftest.err; then
1592     grep -v '^ *+' conftest.err >conftest.er1
1593     cat conftest.er1 >&5
1594     mv -f conftest.er1 conftest.err
1595   fi
1596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597   test $ac_status = 0; } > conftest.i && {
1598          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599          test ! -s conftest.err
1600        }; then :
1601   ac_retval=0
1602 else
1603   $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1605
1606     ac_retval=1
1607 fi
1608   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609   as_fn_set_status $ac_retval
1610
1611 } # ac_fn_c_try_cpp
1612
1613 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1614 # -------------------------------------------------------
1615 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1616 # the include files in INCLUDES and setting the cache variable VAR
1617 # accordingly.
1618 ac_fn_c_check_header_mongrel ()
1619 {
1620   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621   if eval \${$3+:} false; then :
1622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 $as_echo_n "checking for $2... " >&6; }
1624 if eval \${$3+:} false; then :
1625   $as_echo_n "(cached) " >&6
1626 fi
1627 eval ac_res=\$$3
1628                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
1630 else
1631   # Is the header compilable?
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1633 $as_echo_n "checking $2 usability... " >&6; }
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h.  */
1636 $4
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640   ac_header_compiler=yes
1641 else
1642   ac_header_compiler=no
1643 fi
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1646 $as_echo "$ac_header_compiler" >&6; }
1647
1648 # Is the header present?
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1650 $as_echo_n "checking $2 presence... " >&6; }
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h.  */
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_cpp "$LINENO"; then :
1656   ac_header_preproc=yes
1657 else
1658   ac_header_preproc=no
1659 fi
1660 rm -f conftest.err conftest.i conftest.$ac_ext
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1662 $as_echo "$ac_header_preproc" >&6; }
1663
1664 # So?  What about this header?
1665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1666   yes:no: )
1667     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1668 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1669     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1670 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1671     ;;
1672   no:yes:* )
1673     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1674 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1675     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1676 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1677     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1678 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1679     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1680 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1681     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1682 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1683 ( $as_echo "## ----------------------------------------- ##
1684 ## Report this to http://bugs.freeradius.org ##
1685 ## ----------------------------------------- ##"
1686      ) | sed "s/^/$as_me: WARNING:     /" >&2
1687     ;;
1688 esac
1689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if eval \${$3+:} false; then :
1692   $as_echo_n "(cached) " >&6
1693 else
1694   eval "$3=\$ac_header_compiler"
1695 fi
1696 eval ac_res=\$$3
1697                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 fi
1700   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701
1702 } # ac_fn_c_check_header_mongrel
1703
1704 # ac_fn_c_try_run LINENO
1705 # ----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707 # that executables *can* be run.
1708 ac_fn_c_try_run ()
1709 {
1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711   if { { ac_try="$ac_link"
1712 case "(($ac_try" in
1713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714   *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718   (eval "$ac_link") 2>&5
1719   ac_status=$?
1720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722   { { case "(($ac_try" in
1723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724   *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728   (eval "$ac_try") 2>&5
1729   ac_status=$?
1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731   test $ac_status = 0; }; }; then :
1732   ac_retval=0
1733 else
1734   $as_echo "$as_me: program exited with status $ac_status" >&5
1735        $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738        ac_retval=$ac_status
1739 fi
1740   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742   as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_run
1745
1746 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1747 # -------------------------------------------------------
1748 # Tests whether HEADER exists and can be compiled using the include files in
1749 # INCLUDES, setting the cache variable VAR accordingly.
1750 ac_fn_c_check_header_compile ()
1751 {
1752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if eval \${$3+:} false; then :
1756   $as_echo_n "(cached) " >&6
1757 else
1758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h.  */
1760 $4
1761 #include <$2>
1762 _ACEOF
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764   eval "$3=yes"
1765 else
1766   eval "$3=no"
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 fi
1770 eval ac_res=\$$3
1771                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775 } # ac_fn_c_check_header_compile
1776
1777 # ac_fn_c_try_link LINENO
1778 # -----------------------
1779 # Try to link conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_link ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   rm -f conftest.$ac_objext conftest$ac_exeext
1784   if { { ac_try="$ac_link"
1785 case "(($ac_try" in
1786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787   *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791   (eval "$ac_link") 2>conftest.err
1792   ac_status=$?
1793   if test -s conftest.err; then
1794     grep -v '^ *+' conftest.err >conftest.er1
1795     cat conftest.er1 >&5
1796     mv -f conftest.er1 conftest.err
1797   fi
1798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799   test $ac_status = 0; } && {
1800          test -z "$ac_c_werror_flag" ||
1801          test ! -s conftest.err
1802        } && test -s conftest$ac_exeext && {
1803          test "$cross_compiling" = yes ||
1804          test -x conftest$ac_exeext
1805        }; then :
1806   ac_retval=0
1807 else
1808   $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811         ac_retval=1
1812 fi
1813   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1814   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1815   # interfere with the next link command; also delete a directory that is
1816   # left behind by Apple's compiler.  We do this before executing the actions.
1817   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819   as_fn_set_status $ac_retval
1820
1821 } # ac_fn_c_try_link
1822
1823 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1824 # -------------------------------------------
1825 # Tests whether TYPE exists after having included INCLUDES, setting cache
1826 # variable VAR accordingly.
1827 ac_fn_c_check_type ()
1828 {
1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833   $as_echo_n "(cached) " >&6
1834 else
1835   eval "$3=no"
1836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h.  */
1838 $4
1839 int
1840 main ()
1841 {
1842 if (sizeof ($2))
1843          return 0;
1844   ;
1845   return 0;
1846 }
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h.  */
1851 $4
1852 int
1853 main ()
1854 {
1855 if (sizeof (($2)))
1856             return 0;
1857   ;
1858   return 0;
1859 }
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862
1863 else
1864   eval "$3=yes"
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 fi
1870 eval ac_res=\$$3
1871                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
1875 } # ac_fn_c_check_type
1876
1877 # ac_fn_c_check_func LINENO FUNC VAR
1878 # ----------------------------------
1879 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1880 ac_fn_c_check_func ()
1881 {
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886   $as_echo_n "(cached) " >&6
1887 else
1888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1892 #define $2 innocuous_$2
1893
1894 /* System header to define __stub macros and hopefully few prototypes,
1895     which can conflict with char $2 (); below.
1896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897     <limits.h> exists even on freestanding compilers.  */
1898
1899 #ifdef __STDC__
1900 # include <limits.h>
1901 #else
1902 # include <assert.h>
1903 #endif
1904
1905 #undef $2
1906
1907 /* Override any GCC internal prototype to avoid an error.
1908    Use char because int might match the return type of a GCC
1909    builtin and then its argument prototype would still apply.  */
1910 #ifdef __cplusplus
1911 extern "C"
1912 #endif
1913 char $2 ();
1914 /* The GNU C library defines this for functions which it implements
1915     to always fail with ENOSYS.  Some functions are actually named
1916     something starting with __ and the normal name is an alias.  */
1917 #if defined __stub_$2 || defined __stub___$2
1918 choke me
1919 #endif
1920
1921 int
1922 main ()
1923 {
1924 return $2 ();
1925   ;
1926   return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_link "$LINENO"; then :
1930   eval "$3=yes"
1931 else
1932   eval "$3=no"
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext \
1935     conftest$ac_exeext conftest.$ac_ext
1936 fi
1937 eval ac_res=\$$3
1938                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942 } # ac_fn_c_check_func
1943
1944 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1945 # ---------------------------------------------
1946 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1947 # accordingly.
1948 ac_fn_c_check_decl ()
1949 {
1950   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951   as_decl_name=`echo $2|sed 's/ *(.*//'`
1952   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1954 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1955 if eval \${$3+:} false; then :
1956   $as_echo_n "(cached) " >&6
1957 else
1958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h.  */
1960 $4
1961 int
1962 main ()
1963 {
1964 #ifndef $as_decl_name
1965 #ifdef __cplusplus
1966   (void) $as_decl_use;
1967 #else
1968   (void) $as_decl_name;
1969 #endif
1970 #endif
1971
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977   eval "$3=yes"
1978 else
1979   eval "$3=no"
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 fi
1983 eval ac_res=\$$3
1984                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988 } # ac_fn_c_check_decl
1989 cat >config.log <<_ACEOF
1990 This file contains any messages produced by compilers while
1991 running configure, to aid debugging if configure makes a mistake.
1992
1993 It was created by freeradius $as_me $Id$, which was
1994 generated by GNU Autoconf 2.69.  Invocation command line was
1995
1996   $ $0 $@
1997
1998 _ACEOF
1999 exec 5>>config.log
2000 {
2001 cat <<_ASUNAME
2002 ## --------- ##
2003 ## Platform. ##
2004 ## --------- ##
2005
2006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2011
2012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2013 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2014
2015 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2016 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2018 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2019 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2020 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2021 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2022
2023 _ASUNAME
2024
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2027 do
2028   IFS=$as_save_IFS
2029   test -z "$as_dir" && as_dir=.
2030     $as_echo "PATH: $as_dir"
2031   done
2032 IFS=$as_save_IFS
2033
2034 } >&5
2035
2036 cat >&5 <<_ACEOF
2037
2038
2039 ## ----------- ##
2040 ## Core tests. ##
2041 ## ----------- ##
2042
2043 _ACEOF
2044
2045
2046 # Keep a trace of the command line.
2047 # Strip out --no-create and --no-recursion so they do not pile up.
2048 # Strip out --silent because we don't want to record it for future runs.
2049 # Also quote any args containing shell meta-characters.
2050 # Make two passes to allow for proper duplicate-argument suppression.
2051 ac_configure_args=
2052 ac_configure_args0=
2053 ac_configure_args1=
2054 ac_must_keep_next=false
2055 for ac_pass in 1 2
2056 do
2057   for ac_arg
2058   do
2059     case $ac_arg in
2060     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2061     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2062     | -silent | --silent | --silen | --sile | --sil)
2063       continue ;;
2064     *\'*)
2065       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2066     esac
2067     case $ac_pass in
2068     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2069     2)
2070       as_fn_append ac_configure_args1 " '$ac_arg'"
2071       if test $ac_must_keep_next = true; then
2072         ac_must_keep_next=false # Got value, back to normal.
2073       else
2074         case $ac_arg in
2075           *=* | --config-cache | -C | -disable-* | --disable-* \
2076           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2077           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2078           | -with-* | --with-* | -without-* | --without-* | --x)
2079             case "$ac_configure_args0 " in
2080               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2081             esac
2082             ;;
2083           -* ) ac_must_keep_next=true ;;
2084         esac
2085       fi
2086       as_fn_append ac_configure_args " '$ac_arg'"
2087       ;;
2088     esac
2089   done
2090 done
2091 { ac_configure_args0=; unset ac_configure_args0;}
2092 { ac_configure_args1=; unset ac_configure_args1;}
2093
2094 # When interrupted or exit'd, cleanup temporary files, and complete
2095 # config.log.  We remove comments because anyway the quotes in there
2096 # would cause problems or look ugly.
2097 # WARNING: Use '\'' to represent an apostrophe within the trap.
2098 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2099 trap 'exit_status=$?
2100   # Save into config.log some information that might help in debugging.
2101   {
2102     echo
2103
2104     $as_echo "## ---------------- ##
2105 ## Cache variables. ##
2106 ## ---------------- ##"
2107     echo
2108     # The following way of writing the cache mishandles newlines in values,
2109 (
2110   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2111     eval ac_val=\$$ac_var
2112     case $ac_val in #(
2113     *${as_nl}*)
2114       case $ac_var in #(
2115       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2116 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2117       esac
2118       case $ac_var in #(
2119       _ | IFS | as_nl) ;; #(
2120       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2121       *) { eval $ac_var=; unset $ac_var;} ;;
2122       esac ;;
2123     esac
2124   done
2125   (set) 2>&1 |
2126     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2127     *${as_nl}ac_space=\ *)
2128       sed -n \
2129         "s/'\''/'\''\\\\'\'''\''/g;
2130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2131       ;; #(
2132     *)
2133       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2134       ;;
2135     esac |
2136     sort
2137 )
2138     echo
2139
2140     $as_echo "## ----------------- ##
2141 ## Output variables. ##
2142 ## ----------------- ##"
2143     echo
2144     for ac_var in $ac_subst_vars
2145     do
2146       eval ac_val=\$$ac_var
2147       case $ac_val in
2148       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2149       esac
2150       $as_echo "$ac_var='\''$ac_val'\''"
2151     done | sort
2152     echo
2153
2154     if test -n "$ac_subst_files"; then
2155       $as_echo "## ------------------- ##
2156 ## File substitutions. ##
2157 ## ------------------- ##"
2158       echo
2159       for ac_var in $ac_subst_files
2160       do
2161         eval ac_val=\$$ac_var
2162         case $ac_val in
2163         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164         esac
2165         $as_echo "$ac_var='\''$ac_val'\''"
2166       done | sort
2167       echo
2168     fi
2169
2170     if test -s confdefs.h; then
2171       $as_echo "## ----------- ##
2172 ## confdefs.h. ##
2173 ## ----------- ##"
2174       echo
2175       cat confdefs.h
2176       echo
2177     fi
2178     test "$ac_signal" != 0 &&
2179       $as_echo "$as_me: caught signal $ac_signal"
2180     $as_echo "$as_me: exit $exit_status"
2181   } >&5
2182   rm -f core *.core core.conftest.* &&
2183     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2184     exit $exit_status
2185 ' 0
2186 for ac_signal in 1 2 13 15; do
2187   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2188 done
2189 ac_signal=0
2190
2191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2192 rm -f -r conftest* confdefs.h
2193
2194 $as_echo "/* confdefs.h */" > confdefs.h
2195
2196 # Predefined preprocessor variables.
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_NAME "$PACKAGE_NAME"
2200 _ACEOF
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2204 _ACEOF
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2208 _ACEOF
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_STRING "$PACKAGE_STRING"
2212 _ACEOF
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_URL "$PACKAGE_URL"
2220 _ACEOF
2221
2222
2223 # Let the site file select an alternate cache file if it wants to.
2224 # Prefer an explicitly selected file to automatically selected ones.
2225 ac_site_file1=NONE
2226 ac_site_file2=NONE
2227 if test -n "$CONFIG_SITE"; then
2228   # We do not want a PATH search for config.site.
2229   case $CONFIG_SITE in #((
2230     -*)  ac_site_file1=./$CONFIG_SITE;;
2231     */*) ac_site_file1=$CONFIG_SITE;;
2232     *)   ac_site_file1=./$CONFIG_SITE;;
2233   esac
2234 elif test "x$prefix" != xNONE; then
2235   ac_site_file1=$prefix/share/config.site
2236   ac_site_file2=$prefix/etc/config.site
2237 else
2238   ac_site_file1=$ac_default_prefix/share/config.site
2239   ac_site_file2=$ac_default_prefix/etc/config.site
2240 fi
2241 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2242 do
2243   test "x$ac_site_file" = xNONE && continue
2244   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2245     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2246 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2247     sed 's/^/| /' "$ac_site_file" >&5
2248     . "$ac_site_file" \
2249       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 as_fn_error $? "failed to load site script $ac_site_file
2252 See \`config.log' for more details" "$LINENO" 5; }
2253   fi
2254 done
2255
2256 if test -r "$cache_file"; then
2257   # Some versions of bash will fail to source /dev/null (special files
2258   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2259   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2260     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2261 $as_echo "$as_me: loading cache $cache_file" >&6;}
2262     case $cache_file in
2263       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2264       *)                      . "./$cache_file";;
2265     esac
2266   fi
2267 else
2268   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2269 $as_echo "$as_me: creating cache $cache_file" >&6;}
2270   >$cache_file
2271 fi
2272
2273 # Check that the precious variables saved in the cache have kept the same
2274 # value.
2275 ac_cache_corrupted=false
2276 for ac_var in $ac_precious_vars; do
2277   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2278   eval ac_new_set=\$ac_env_${ac_var}_set
2279   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2280   eval ac_new_val=\$ac_env_${ac_var}_value
2281   case $ac_old_set,$ac_new_set in
2282     set,)
2283       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2284 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2285       ac_cache_corrupted=: ;;
2286     ,set)
2287       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2288 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2289       ac_cache_corrupted=: ;;
2290     ,);;
2291     *)
2292       if test "x$ac_old_val" != "x$ac_new_val"; then
2293         # differences in whitespace do not lead to failure.
2294         ac_old_val_w=`echo x $ac_old_val`
2295         ac_new_val_w=`echo x $ac_new_val`
2296         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2297           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2298 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2299           ac_cache_corrupted=:
2300         else
2301           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2302 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2303           eval $ac_var=\$ac_old_val
2304         fi
2305         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2306 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2307         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2308 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2309       fi;;
2310   esac
2311   # Pass precious variables to config.status.
2312   if test "$ac_new_set" = set; then
2313     case $ac_new_val in
2314     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2315     *) ac_arg=$ac_var=$ac_new_val ;;
2316     esac
2317     case " $ac_configure_args " in
2318       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2319       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2320     esac
2321   fi
2322 done
2323 if $ac_cache_corrupted; then
2324   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2326   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2327 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2328   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2329 fi
2330 ## -------------------- ##
2331 ## Main body of script. ##
2332 ## -------------------- ##
2333
2334 ac_ext=c
2335 ac_cpp='$CPP $CPPFLAGS'
2336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2339
2340
2341
2342 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2343
2344
2345
2346 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2347 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2348 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2349
2350 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2351 -v minor="$RADIUSD_MINOR_VERSION" \
2352 -v incrm="$RADIUSD_INCRM_VERSION" \
2353 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2354
2355 RADIUSD_VERSION_STRING=`cat VERSION`
2356
2357
2358
2359
2360 cat >>confdefs.h <<_ACEOF
2361 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2362 _ACEOF
2363
2364
2365 cat >>confdefs.h <<_ACEOF
2366 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2367 _ACEOF
2368
2369
2370
2371 # Check whether --enable-developer was given.
2372 if test "${enable_developer+set}" = set; then :
2373   enableval=$enable_developer;  case "$enableval" in
2374     no)
2375         developer=no
2376         ;;
2377     *)
2378         developer=yes
2379   esac
2380
2381 fi
2382
2383
2384 if test -d $srcdir/.git; then
2385   if test "x$developer" != "xno"; then
2386         developer="yes"
2387   fi
2388 fi
2389
2390 if test "x$developer" = "xyes"; then
2391   : ${CFLAGS=-g3}
2392   : ${MAKEFLAGS=-j8}
2393 fi
2394
2395
2396
2397
2398 ac_aux_dir=
2399 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2400   if test -f "$ac_dir/install-sh"; then
2401     ac_aux_dir=$ac_dir
2402     ac_install_sh="$ac_aux_dir/install-sh -c"
2403     break
2404   elif test -f "$ac_dir/install.sh"; then
2405     ac_aux_dir=$ac_dir
2406     ac_install_sh="$ac_aux_dir/install.sh -c"
2407     break
2408   elif test -f "$ac_dir/shtool"; then
2409     ac_aux_dir=$ac_dir
2410     ac_install_sh="$ac_aux_dir/shtool install -c"
2411     break
2412   fi
2413 done
2414 if test -z "$ac_aux_dir"; then
2415   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2416 fi
2417
2418 # These three variables are undocumented and unsupported,
2419 # and are intended to be withdrawn in a future Autoconf release.
2420 # They can cause serious problems if a builder's source tree is in a directory
2421 # whose full name contains unusual characters.
2422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2424 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2425
2426
2427 # Make sure we can run config.sub.
2428 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2429   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2430
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2432 $as_echo_n "checking build system type... " >&6; }
2433 if ${ac_cv_build+:} false; then :
2434   $as_echo_n "(cached) " >&6
2435 else
2436   ac_build_alias=$build_alias
2437 test "x$ac_build_alias" = x &&
2438   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2439 test "x$ac_build_alias" = x &&
2440   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2441 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2442   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2443
2444 fi
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2446 $as_echo "$ac_cv_build" >&6; }
2447 case $ac_cv_build in
2448 *-*-*) ;;
2449 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2450 esac
2451 build=$ac_cv_build
2452 ac_save_IFS=$IFS; IFS='-'
2453 set x $ac_cv_build
2454 shift
2455 build_cpu=$1
2456 build_vendor=$2
2457 shift; shift
2458 # Remember, the first character of IFS is used to create $*,
2459 # except with old shells:
2460 build_os=$*
2461 IFS=$ac_save_IFS
2462 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2463
2464
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2466 $as_echo_n "checking host system type... " >&6; }
2467 if ${ac_cv_host+:} false; then :
2468   $as_echo_n "(cached) " >&6
2469 else
2470   if test "x$host_alias" = x; then
2471   ac_cv_host=$ac_cv_build
2472 else
2473   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2474     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2475 fi
2476
2477 fi
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2479 $as_echo "$ac_cv_host" >&6; }
2480 case $ac_cv_host in
2481 *-*-*) ;;
2482 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2483 esac
2484 host=$ac_cv_host
2485 ac_save_IFS=$IFS; IFS='-'
2486 set x $ac_cv_host
2487 shift
2488 host_cpu=$1
2489 host_vendor=$2
2490 shift; shift
2491 # Remember, the first character of IFS is used to create $*,
2492 # except with old shells:
2493 host_os=$*
2494 IFS=$ac_save_IFS
2495 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2496
2497
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2499 $as_echo_n "checking target system type... " >&6; }
2500 if ${ac_cv_target+:} false; then :
2501   $as_echo_n "(cached) " >&6
2502 else
2503   if test "x$target_alias" = x; then
2504   ac_cv_target=$ac_cv_host
2505 else
2506   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2507     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2508 fi
2509
2510 fi
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2512 $as_echo "$ac_cv_target" >&6; }
2513 case $ac_cv_target in
2514 *-*-*) ;;
2515 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2516 esac
2517 target=$ac_cv_target
2518 ac_save_IFS=$IFS; IFS='-'
2519 set x $ac_cv_target
2520 shift
2521 target_cpu=$1
2522 target_vendor=$2
2523 shift; shift
2524 # Remember, the first character of IFS is used to create $*,
2525 # except with old shells:
2526 target_os=$*
2527 IFS=$ac_save_IFS
2528 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2529
2530
2531 # The aliases save the names the user supplied, while $host etc.
2532 # will get canonicalized.
2533 test -n "$target_alias" &&
2534   test "$program_prefix$program_suffix$program_transform_name" = \
2535     NONENONEs,x,x, &&
2536   program_prefix=${target_alias}-
2537
2538
2539 ac_ext=c
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 if test -n "$ac_tool_prefix"; then
2545   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2546 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if ${ac_cv_prog_CC+:} false; then :
2550   $as_echo_n "(cached) " >&6
2551 else
2552   if test -n "$CC"; then
2553   ac_cv_prog_CC="$CC" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558   IFS=$as_save_IFS
2559   test -z "$as_dir" && as_dir=.
2560     for ac_exec_ext in '' $ac_executable_extensions; do
2561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564     break 2
2565   fi
2566 done
2567   done
2568 IFS=$as_save_IFS
2569
2570 fi
2571 fi
2572 CC=$ac_cv_prog_CC
2573 if test -n "$CC"; then
2574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2575 $as_echo "$CC" >&6; }
2576 else
2577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2579 fi
2580
2581
2582 fi
2583 if test -z "$ac_cv_prog_CC"; then
2584   ac_ct_CC=$CC
2585   # Extract the first word of "gcc", so it can be a program name with args.
2586 set dummy gcc; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2590   $as_echo_n "(cached) " >&6
2591 else
2592   if test -n "$ac_ct_CC"; then
2593   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598   IFS=$as_save_IFS
2599   test -z "$as_dir" && as_dir=.
2600     for ac_exec_ext in '' $ac_executable_extensions; do
2601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602     ac_cv_prog_ac_ct_CC="gcc"
2603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604     break 2
2605   fi
2606 done
2607   done
2608 IFS=$as_save_IFS
2609
2610 fi
2611 fi
2612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2613 if test -n "$ac_ct_CC"; then
2614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2615 $as_echo "$ac_ct_CC" >&6; }
2616 else
2617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2619 fi
2620
2621   if test "x$ac_ct_CC" = x; then
2622     CC=""
2623   else
2624     case $cross_compiling:$ac_tool_warned in
2625 yes:)
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2628 ac_tool_warned=yes ;;
2629 esac
2630     CC=$ac_ct_CC
2631   fi
2632 else
2633   CC="$ac_cv_prog_CC"
2634 fi
2635
2636 if test -z "$CC"; then
2637           if test -n "$ac_tool_prefix"; then
2638     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}cc; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if ${ac_cv_prog_CC+:} false; then :
2643   $as_echo_n "(cached) " >&6
2644 else
2645   if test -n "$CC"; then
2646   ac_cv_prog_CC="$CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651   IFS=$as_save_IFS
2652   test -z "$as_dir" && as_dir=.
2653     for ac_exec_ext in '' $ac_executable_extensions; do
2654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655     ac_cv_prog_CC="${ac_tool_prefix}cc"
2656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657     break 2
2658   fi
2659 done
2660   done
2661 IFS=$as_save_IFS
2662
2663 fi
2664 fi
2665 CC=$ac_cv_prog_CC
2666 if test -n "$CC"; then
2667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2668 $as_echo "$CC" >&6; }
2669 else
2670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2672 fi
2673
2674
2675   fi
2676 fi
2677 if test -z "$CC"; then
2678   # Extract the first word of "cc", so it can be a program name with args.
2679 set dummy cc; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if ${ac_cv_prog_CC+:} false; then :
2683   $as_echo_n "(cached) " >&6
2684 else
2685   if test -n "$CC"; then
2686   ac_cv_prog_CC="$CC" # Let the user override the test.
2687 else
2688   ac_prog_rejected=no
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692   IFS=$as_save_IFS
2693   test -z "$as_dir" && as_dir=.
2694     for ac_exec_ext in '' $ac_executable_extensions; do
2695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2697        ac_prog_rejected=yes
2698        continue
2699      fi
2700     ac_cv_prog_CC="cc"
2701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702     break 2
2703   fi
2704 done
2705   done
2706 IFS=$as_save_IFS
2707
2708 if test $ac_prog_rejected = yes; then
2709   # We found a bogon in the path, so make sure we never use it.
2710   set dummy $ac_cv_prog_CC
2711   shift
2712   if test $# != 0; then
2713     # We chose a different compiler from the bogus one.
2714     # However, it has the same basename, so the bogon will be chosen
2715     # first if we set CC to just the basename; use the full file name.
2716     shift
2717     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2718   fi
2719 fi
2720 fi
2721 fi
2722 CC=$ac_cv_prog_CC
2723 if test -n "$CC"; then
2724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2725 $as_echo "$CC" >&6; }
2726 else
2727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2729 fi
2730
2731
2732 fi
2733 if test -z "$CC"; then
2734   if test -n "$ac_tool_prefix"; then
2735   for ac_prog in cl.exe
2736   do
2737     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if ${ac_cv_prog_CC+:} false; then :
2742   $as_echo_n "(cached) " >&6
2743 else
2744   if test -n "$CC"; then
2745   ac_cv_prog_CC="$CC" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750   IFS=$as_save_IFS
2751   test -z "$as_dir" && as_dir=.
2752     for ac_exec_ext in '' $ac_executable_extensions; do
2753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756     break 2
2757   fi
2758 done
2759   done
2760 IFS=$as_save_IFS
2761
2762 fi
2763 fi
2764 CC=$ac_cv_prog_CC
2765 if test -n "$CC"; then
2766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767 $as_echo "$CC" >&6; }
2768 else
2769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2771 fi
2772
2773
2774     test -n "$CC" && break
2775   done
2776 fi
2777 if test -z "$CC"; then
2778   ac_ct_CC=$CC
2779   for ac_prog in cl.exe
2780 do
2781   # Extract the first word of "$ac_prog", so it can be a program name with args.
2782 set dummy $ac_prog; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2786   $as_echo_n "(cached) " >&6
2787 else
2788   if test -n "$ac_ct_CC"; then
2789   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794   IFS=$as_save_IFS
2795   test -z "$as_dir" && as_dir=.
2796     for ac_exec_ext in '' $ac_executable_extensions; do
2797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2798     ac_cv_prog_ac_ct_CC="$ac_prog"
2799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800     break 2
2801   fi
2802 done
2803   done
2804 IFS=$as_save_IFS
2805
2806 fi
2807 fi
2808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2809 if test -n "$ac_ct_CC"; then
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2811 $as_echo "$ac_ct_CC" >&6; }
2812 else
2813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2815 fi
2816
2817
2818   test -n "$ac_ct_CC" && break
2819 done
2820
2821   if test "x$ac_ct_CC" = x; then
2822     CC=""
2823   else
2824     case $cross_compiling:$ac_tool_warned in
2825 yes:)
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2828 ac_tool_warned=yes ;;
2829 esac
2830     CC=$ac_ct_CC
2831   fi
2832 fi
2833
2834 fi
2835
2836
2837 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2839 as_fn_error $? "no acceptable C compiler found in \$PATH
2840 See \`config.log' for more details" "$LINENO" 5; }
2841
2842 # Provide some information about the compiler.
2843 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2844 set X $ac_compile
2845 ac_compiler=$2
2846 for ac_option in --version -v -V -qversion; do
2847   { { ac_try="$ac_compiler $ac_option >&5"
2848 case "(($ac_try" in
2849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850   *) ac_try_echo=$ac_try;;
2851 esac
2852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2855   ac_status=$?
2856   if test -s conftest.err; then
2857     sed '10a\
2858 ... rest of stderr output deleted ...
2859          10q' conftest.err >conftest.er1
2860     cat conftest.er1 >&5
2861   fi
2862   rm -f conftest.er1 conftest.err
2863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2864   test $ac_status = 0; }
2865 done
2866
2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h.  */
2869
2870 int
2871 main ()
2872 {
2873
2874   ;
2875   return 0;
2876 }
2877 _ACEOF
2878 ac_clean_files_save=$ac_clean_files
2879 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2880 # Try to create an executable without -o first, disregard a.out.
2881 # It will help us diagnose broken compilers, and finding out an intuition
2882 # of exeext.
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2884 $as_echo_n "checking whether the C compiler works... " >&6; }
2885 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2886
2887 # The possible output files:
2888 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2889
2890 ac_rmfiles=
2891 for ac_file in $ac_files
2892 do
2893   case $ac_file in
2894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2895     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2896   esac
2897 done
2898 rm -f $ac_rmfiles
2899
2900 if { { ac_try="$ac_link_default"
2901 case "(($ac_try" in
2902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903   *) ac_try_echo=$ac_try;;
2904 esac
2905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2906 $as_echo "$ac_try_echo"; } >&5
2907   (eval "$ac_link_default") 2>&5
2908   ac_status=$?
2909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2910   test $ac_status = 0; }; then :
2911   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2912 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2913 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2914 # so that the user can short-circuit this test for compilers unknown to
2915 # Autoconf.
2916 for ac_file in $ac_files ''
2917 do
2918   test -f "$ac_file" || continue
2919   case $ac_file in
2920     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2921         ;;
2922     [ab].out )
2923         # We found the default executable, but exeext='' is most
2924         # certainly right.
2925         break;;
2926     *.* )
2927         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2928         then :; else
2929            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2930         fi
2931         # We set ac_cv_exeext here because the later test for it is not
2932         # safe: cross compilers may not add the suffix if given an `-o'
2933         # argument, so we may need to know it at that point already.
2934         # Even if this section looks crufty: it has the advantage of
2935         # actually working.
2936         break;;
2937     * )
2938         break;;
2939   esac
2940 done
2941 test "$ac_cv_exeext" = no && ac_cv_exeext=
2942
2943 else
2944   ac_file=''
2945 fi
2946 if test -z "$ac_file"; then :
2947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 $as_echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2951
2952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954 as_fn_error 77 "C compiler cannot create executables
2955 See \`config.log' for more details" "$LINENO" 5; }
2956 else
2957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2958 $as_echo "yes" >&6; }
2959 fi
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2961 $as_echo_n "checking for C compiler default output file name... " >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2963 $as_echo "$ac_file" >&6; }
2964 ac_exeext=$ac_cv_exeext
2965
2966 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2967 ac_clean_files=$ac_clean_files_save
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2969 $as_echo_n "checking for suffix of executables... " >&6; }
2970 if { { ac_try="$ac_link"
2971 case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976 $as_echo "$ac_try_echo"; } >&5
2977   (eval "$ac_link") 2>&5
2978   ac_status=$?
2979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980   test $ac_status = 0; }; then :
2981   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2982 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2983 # work properly (i.e., refer to `conftest.exe'), while it won't with
2984 # `rm'.
2985 for ac_file in conftest.exe conftest conftest.*; do
2986   test -f "$ac_file" || continue
2987   case $ac_file in
2988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2989     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2990           break;;
2991     * ) break;;
2992   esac
2993 done
2994 else
2995   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2998 See \`config.log' for more details" "$LINENO" 5; }
2999 fi
3000 rm -f conftest conftest$ac_cv_exeext
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3002 $as_echo "$ac_cv_exeext" >&6; }
3003
3004 rm -f conftest.$ac_ext
3005 EXEEXT=$ac_cv_exeext
3006 ac_exeext=$EXEEXT
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h.  */
3009 #include <stdio.h>
3010 int
3011 main ()
3012 {
3013 FILE *f = fopen ("conftest.out", "w");
3014  return ferror (f) || fclose (f) != 0;
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 ac_clean_files="$ac_clean_files conftest.out"
3021 # Check that the compiler produces executables we can run.  If not, either
3022 # the compiler is broken, or we cross compile.
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3024 $as_echo_n "checking whether we are cross compiling... " >&6; }
3025 if test "$cross_compiling" != yes; then
3026   { { ac_try="$ac_link"
3027 case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032 $as_echo "$ac_try_echo"; } >&5
3033   (eval "$ac_link") 2>&5
3034   ac_status=$?
3035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036   test $ac_status = 0; }
3037   if { ac_try='./conftest$ac_cv_exeext'
3038   { { case "(($ac_try" in
3039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040   *) ac_try_echo=$ac_try;;
3041 esac
3042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043 $as_echo "$ac_try_echo"; } >&5
3044   (eval "$ac_try") 2>&5
3045   ac_status=$?
3046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047   test $ac_status = 0; }; }; then
3048     cross_compiling=no
3049   else
3050     if test "$cross_compiling" = maybe; then
3051         cross_compiling=yes
3052     else
3053         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055 as_fn_error $? "cannot run C compiled programs.
3056 If you meant to cross compile, use \`--host'.
3057 See \`config.log' for more details" "$LINENO" 5; }
3058     fi
3059   fi
3060 fi
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3062 $as_echo "$cross_compiling" >&6; }
3063
3064 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3065 ac_clean_files=$ac_clean_files_save
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3067 $as_echo_n "checking for suffix of object files... " >&6; }
3068 if ${ac_cv_objext+:} false; then :
3069   $as_echo_n "(cached) " >&6
3070 else
3071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h.  */
3073
3074 int
3075 main ()
3076 {
3077
3078   ;
3079   return 0;
3080 }
3081 _ACEOF
3082 rm -f conftest.o conftest.obj
3083 if { { ac_try="$ac_compile"
3084 case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090   (eval "$ac_compile") 2>&5
3091   ac_status=$?
3092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093   test $ac_status = 0; }; then :
3094   for ac_file in conftest.o conftest.obj conftest.*; do
3095   test -f "$ac_file" || continue;
3096   case $ac_file in
3097     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3098     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3099        break;;
3100   esac
3101 done
3102 else
3103   $as_echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 as_fn_error $? "cannot compute suffix of object files: cannot compile
3109 See \`config.log' for more details" "$LINENO" 5; }
3110 fi
3111 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3112 fi
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3114 $as_echo "$ac_cv_objext" >&6; }
3115 OBJEXT=$ac_cv_objext
3116 ac_objext=$OBJEXT
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3118 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3119 if ${ac_cv_c_compiler_gnu+:} false; then :
3120   $as_echo_n "(cached) " >&6
3121 else
3122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123 /* end confdefs.h.  */
3124
3125 int
3126 main ()
3127 {
3128 #ifndef __GNUC__
3129        choke me
3130 #endif
3131
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 if ac_fn_c_try_compile "$LINENO"; then :
3137   ac_compiler_gnu=yes
3138 else
3139   ac_compiler_gnu=no
3140 fi
3141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3143
3144 fi
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3146 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3147 if test $ac_compiler_gnu = yes; then
3148   GCC=yes
3149 else
3150   GCC=
3151 fi
3152 ac_test_CFLAGS=${CFLAGS+set}
3153 ac_save_CFLAGS=$CFLAGS
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3155 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3156 if ${ac_cv_prog_cc_g+:} false; then :
3157   $as_echo_n "(cached) " >&6
3158 else
3159   ac_save_c_werror_flag=$ac_c_werror_flag
3160    ac_c_werror_flag=yes
3161    ac_cv_prog_cc_g=no
3162    CFLAGS="-g"
3163    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 if ac_fn_c_try_compile "$LINENO"; then :
3175   ac_cv_prog_cc_g=yes
3176 else
3177   CFLAGS=""
3178       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h.  */
3180
3181 int
3182 main ()
3183 {
3184
3185   ;
3186   return 0;
3187 }
3188 _ACEOF
3189 if ac_fn_c_try_compile "$LINENO"; then :
3190
3191 else
3192   ac_c_werror_flag=$ac_save_c_werror_flag
3193          CFLAGS="-g"
3194          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h.  */
3196
3197 int
3198 main ()
3199 {
3200
3201   ;
3202   return 0;
3203 }
3204 _ACEOF
3205 if ac_fn_c_try_compile "$LINENO"; then :
3206   ac_cv_prog_cc_g=yes
3207 fi
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 fi
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 fi
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213    ac_c_werror_flag=$ac_save_c_werror_flag
3214 fi
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3216 $as_echo "$ac_cv_prog_cc_g" >&6; }
3217 if test "$ac_test_CFLAGS" = set; then
3218   CFLAGS=$ac_save_CFLAGS
3219 elif test $ac_cv_prog_cc_g = yes; then
3220   if test "$GCC" = yes; then
3221     CFLAGS="-g -O2"
3222   else
3223     CFLAGS="-g"
3224   fi
3225 else
3226   if test "$GCC" = yes; then
3227     CFLAGS="-O2"
3228   else
3229     CFLAGS=
3230   fi
3231 fi
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3233 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3234 if ${ac_cv_prog_cc_c89+:} false; then :
3235   $as_echo_n "(cached) " >&6
3236 else
3237   ac_cv_prog_cc_c89=no
3238 ac_save_CC=$CC
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h.  */
3241 #include <stdarg.h>
3242 #include <stdio.h>
3243 struct stat;
3244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3245 struct buf { int x; };
3246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3247 static char *e (p, i)
3248      char **p;
3249      int i;
3250 {
3251   return p[i];
3252 }
3253 static char *f (char * (*g) (char **, int), char **p, ...)
3254 {
3255   char *s;
3256   va_list v;
3257   va_start (v,p);
3258   s = g (p, va_arg (v,int));
3259   va_end (v);
3260   return s;
3261 }
3262
3263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3264    function prototypes and stuff, but not '\xHH' hex character constants.
3265    These don't provoke an error unfortunately, instead are silently treated
3266    as 'x'.  The following induces an error, until -std is added to get
3267    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3268    array size at least.  It's necessary to write '\x00'==0 to get something
3269    that's true only with -std.  */
3270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3271
3272 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3273    inside strings and character constants.  */
3274 #define FOO(x) 'x'
3275 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3276
3277 int test (int i, double x);
3278 struct s1 {int (*f) (int a);};
3279 struct s2 {int (*f) (double a);};
3280 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281 int argc;
3282 char **argv;
3283 int
3284 main ()
3285 {
3286 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3287   ;
3288   return 0;
3289 }
3290 _ACEOF
3291 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3292         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3293 do
3294   CC="$ac_save_CC $ac_arg"
3295   if ac_fn_c_try_compile "$LINENO"; then :
3296   ac_cv_prog_cc_c89=$ac_arg
3297 fi
3298 rm -f core conftest.err conftest.$ac_objext
3299   test "x$ac_cv_prog_cc_c89" != "xno" && break
3300 done
3301 rm -f conftest.$ac_ext
3302 CC=$ac_save_CC
3303
3304 fi
3305 # AC_CACHE_VAL
3306 case "x$ac_cv_prog_cc_c89" in
3307   x)
3308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3309 $as_echo "none needed" >&6; } ;;
3310   xno)
3311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3312 $as_echo "unsupported" >&6; } ;;
3313   *)
3314     CC="$CC $ac_cv_prog_cc_c89"
3315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3316 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3317 esac
3318 if test "x$ac_cv_prog_cc_c89" != xno; then :
3319
3320 fi
3321
3322 ac_ext=c
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327
3328 ac_ext=cpp
3329 ac_cpp='$CXXCPP $CPPFLAGS'
3330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3333 if test -z "$CXX"; then
3334   if test -n "$CCC"; then
3335     CXX=$CCC
3336   else
3337     if test -n "$ac_tool_prefix"; then
3338   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3339   do
3340     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if ${ac_cv_prog_CXX+:} false; then :
3345   $as_echo_n "(cached) " >&6
3346 else
3347   if test -n "$CXX"; then
3348   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355     for ac_exec_ext in '' $ac_executable_extensions; do
3356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362   done
3363 IFS=$as_save_IFS
3364
3365 fi
3366 fi
3367 CXX=$ac_cv_prog_CXX
3368 if test -n "$CXX"; then
3369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3370 $as_echo "$CXX" >&6; }
3371 else
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3374 fi
3375
3376
3377     test -n "$CXX" && break
3378   done
3379 fi
3380 if test -z "$CXX"; then
3381   ac_ct_CXX=$CXX
3382   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3383 do
3384   # Extract the first word of "$ac_prog", so it can be a program name with args.
3385 set dummy $ac_prog; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3389   $as_echo_n "(cached) " >&6
3390 else
3391   if test -n "$ac_ct_CXX"; then
3392   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397   IFS=$as_save_IFS
3398   test -z "$as_dir" && as_dir=.
3399     for ac_exec_ext in '' $ac_executable_extensions; do
3400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3401     ac_cv_prog_ac_ct_CXX="$ac_prog"
3402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403     break 2
3404   fi
3405 done
3406   done
3407 IFS=$as_save_IFS
3408
3409 fi
3410 fi
3411 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3412 if test -n "$ac_ct_CXX"; then
3413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3414 $as_echo "$ac_ct_CXX" >&6; }
3415 else
3416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 fi
3419
3420
3421   test -n "$ac_ct_CXX" && break
3422 done
3423
3424   if test "x$ac_ct_CXX" = x; then
3425     CXX="g++"
3426   else
3427     case $cross_compiling:$ac_tool_warned in
3428 yes:)
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431 ac_tool_warned=yes ;;
3432 esac
3433     CXX=$ac_ct_CXX
3434   fi
3435 fi
3436
3437   fi
3438 fi
3439 # Provide some information about the compiler.
3440 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3441 set X $ac_compile
3442 ac_compiler=$2
3443 for ac_option in --version -v -V -qversion; do
3444   { { ac_try="$ac_compiler $ac_option >&5"
3445 case "(($ac_try" in
3446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447   *) ac_try_echo=$ac_try;;
3448 esac
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3452   ac_status=$?
3453   if test -s conftest.err; then
3454     sed '10a\
3455 ... rest of stderr output deleted ...
3456          10q' conftest.err >conftest.er1
3457     cat conftest.er1 >&5
3458   fi
3459   rm -f conftest.er1 conftest.err
3460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461   test $ac_status = 0; }
3462 done
3463
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3465 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3466 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3467   $as_echo_n "(cached) " >&6
3468 else
3469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475 #ifndef __GNUC__
3476        choke me
3477 #endif
3478
3479   ;
3480   return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_cxx_try_compile "$LINENO"; then :
3484   ac_compiler_gnu=yes
3485 else
3486   ac_compiler_gnu=no
3487 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3490
3491 fi
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3493 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3494 if test $ac_compiler_gnu = yes; then
3495   GXX=yes
3496 else
3497   GXX=
3498 fi
3499 ac_test_CXXFLAGS=${CXXFLAGS+set}
3500 ac_save_CXXFLAGS=$CXXFLAGS
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3502 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3503 if ${ac_cv_prog_cxx_g+:} false; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3507    ac_cxx_werror_flag=yes
3508    ac_cv_prog_cxx_g=no
3509    CXXFLAGS="-g"
3510    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h.  */
3512
3513 int
3514 main ()
3515 {
3516
3517   ;
3518   return 0;
3519 }
3520 _ACEOF
3521 if ac_fn_cxx_try_compile "$LINENO"; then :
3522   ac_cv_prog_cxx_g=yes
3523 else
3524   CXXFLAGS=""
3525       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h.  */
3527
3528 int
3529 main ()
3530 {
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 if ac_fn_cxx_try_compile "$LINENO"; then :
3537
3538 else
3539   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3540          CXXFLAGS="-g"
3541          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h.  */
3543
3544 int
3545 main ()
3546 {
3547
3548   ;
3549   return 0;
3550 }
3551 _ACEOF
3552 if ac_fn_cxx_try_compile "$LINENO"; then :
3553   ac_cv_prog_cxx_g=yes
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 fi
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3561 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3563 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3564 if test "$ac_test_CXXFLAGS" = set; then
3565   CXXFLAGS=$ac_save_CXXFLAGS
3566 elif test $ac_cv_prog_cxx_g = yes; then
3567   if test "$GXX" = yes; then
3568     CXXFLAGS="-g -O2"
3569   else
3570     CXXFLAGS="-g"
3571   fi
3572 else
3573   if test "$GXX" = yes; then
3574     CXXFLAGS="-O2"
3575   else
3576     CXXFLAGS=
3577   fi
3578 fi
3579 ac_ext=c
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584
3585
3586
3587 ac_ext=c
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3593 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3594 # On Suns, sometimes $CPP names a directory.
3595 if test -n "$CPP" && test -d "$CPP"; then
3596   CPP=
3597 fi
3598 if test -z "$CPP"; then
3599   if ${ac_cv_prog_CPP+:} false; then :
3600   $as_echo_n "(cached) " >&6
3601 else
3602       # Double quotes because CPP needs to be expanded
3603     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3604     do
3605       ac_preproc_ok=false
3606 for ac_c_preproc_warn_flag in '' yes
3607 do
3608   # Use a header file that comes with gcc, so configuring glibc
3609   # with a fresh cross-compiler works.
3610   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3611   # <limits.h> exists even on freestanding compilers.
3612   # On the NeXT, cc -E runs the code through the compiler's parser,
3613   # not just through cpp. "Syntax error" is here to catch this case.
3614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h.  */
3616 #ifdef __STDC__
3617 # include <limits.h>
3618 #else
3619 # include <assert.h>
3620 #endif
3621                      Syntax error
3622 _ACEOF
3623 if ac_fn_c_try_cpp "$LINENO"; then :
3624
3625 else
3626   # Broken: fails on valid input.
3627 continue
3628 fi
3629 rm -f conftest.err conftest.i conftest.$ac_ext
3630
3631   # OK, works on sane cases.  Now check whether nonexistent headers
3632   # can be detected and how.
3633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h.  */
3635 #include <ac_nonexistent.h>
3636 _ACEOF
3637 if ac_fn_c_try_cpp "$LINENO"; then :
3638   # Broken: success on invalid input.
3639 continue
3640 else
3641   # Passes both tests.
3642 ac_preproc_ok=:
3643 break
3644 fi
3645 rm -f conftest.err conftest.i conftest.$ac_ext
3646
3647 done
3648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3649 rm -f conftest.i conftest.err conftest.$ac_ext
3650 if $ac_preproc_ok; then :
3651   break
3652 fi
3653
3654     done
3655     ac_cv_prog_CPP=$CPP
3656
3657 fi
3658   CPP=$ac_cv_prog_CPP
3659 else
3660   ac_cv_prog_CPP=$CPP
3661 fi
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3663 $as_echo "$CPP" >&6; }
3664 ac_preproc_ok=false
3665 for ac_c_preproc_warn_flag in '' yes
3666 do
3667   # Use a header file that comes with gcc, so configuring glibc
3668   # with a fresh cross-compiler works.
3669   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3670   # <limits.h> exists even on freestanding compilers.
3671   # On the NeXT, cc -E runs the code through the compiler's parser,
3672   # not just through cpp. "Syntax error" is here to catch this case.
3673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h.  */
3675 #ifdef __STDC__
3676 # include <limits.h>
3677 #else
3678 # include <assert.h>
3679 #endif
3680                      Syntax error
3681 _ACEOF
3682 if ac_fn_c_try_cpp "$LINENO"; then :
3683
3684 else
3685   # Broken: fails on valid input.
3686 continue
3687 fi
3688 rm -f conftest.err conftest.i conftest.$ac_ext
3689
3690   # OK, works on sane cases.  Now check whether nonexistent headers
3691   # can be detected and how.
3692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h.  */
3694 #include <ac_nonexistent.h>
3695 _ACEOF
3696 if ac_fn_c_try_cpp "$LINENO"; then :
3697   # Broken: success on invalid input.
3698 continue
3699 else
3700   # Passes both tests.
3701 ac_preproc_ok=:
3702 break
3703 fi
3704 rm -f conftest.err conftest.i conftest.$ac_ext
3705
3706 done
3707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3708 rm -f conftest.i conftest.err conftest.$ac_ext
3709 if $ac_preproc_ok; then :
3710
3711 else
3712   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3715 See \`config.log' for more details" "$LINENO" 5; }
3716 fi
3717
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3726 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3727 if ${ac_cv_path_GREP+:} false; then :
3728   $as_echo_n "(cached) " >&6
3729 else
3730   if test -z "$GREP"; then
3731   ac_path_GREP_found=false
3732   # Loop through the user's path and test for each of PROGNAME-LIST
3733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3735 do
3736   IFS=$as_save_IFS
3737   test -z "$as_dir" && as_dir=.
3738     for ac_prog in grep ggrep; do
3739     for ac_exec_ext in '' $ac_executable_extensions; do
3740       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3741       as_fn_executable_p "$ac_path_GREP" || continue
3742 # Check for GNU ac_path_GREP and select it if it is found.
3743   # Check for GNU $ac_path_GREP
3744 case `"$ac_path_GREP" --version 2>&1` in
3745 *GNU*)
3746   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3747 *)
3748   ac_count=0
3749   $as_echo_n 0123456789 >"conftest.in"
3750   while :
3751   do
3752     cat "conftest.in" "conftest.in" >"conftest.tmp"
3753     mv "conftest.tmp" "conftest.in"
3754     cp "conftest.in" "conftest.nl"
3755     $as_echo 'GREP' >> "conftest.nl"
3756     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3757     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3758     as_fn_arith $ac_count + 1 && ac_count=$as_val
3759     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3760       # Best one so far, save it but keep looking for a better one
3761       ac_cv_path_GREP="$ac_path_GREP"
3762       ac_path_GREP_max=$ac_count
3763     fi
3764     # 10*(2^10) chars as input seems more than enough
3765     test $ac_count -gt 10 && break
3766   done
3767   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3768 esac
3769
3770       $ac_path_GREP_found && break 3
3771     done
3772   done
3773   done
3774 IFS=$as_save_IFS
3775   if test -z "$ac_cv_path_GREP"; then
3776     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3777   fi
3778 else
3779   ac_cv_path_GREP=$GREP
3780 fi
3781
3782 fi
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3784 $as_echo "$ac_cv_path_GREP" >&6; }
3785  GREP="$ac_cv_path_GREP"
3786
3787
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3789 $as_echo_n "checking for egrep... " >&6; }
3790 if ${ac_cv_path_EGREP+:} false; then :
3791   $as_echo_n "(cached) " >&6
3792 else
3793   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3794    then ac_cv_path_EGREP="$GREP -E"
3795    else
3796      if test -z "$EGREP"; then
3797   ac_path_EGREP_found=false
3798   # Loop through the user's path and test for each of PROGNAME-LIST
3799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3801 do
3802   IFS=$as_save_IFS
3803   test -z "$as_dir" && as_dir=.
3804     for ac_prog in egrep; do
3805     for ac_exec_ext in '' $ac_executable_extensions; do
3806       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3807       as_fn_executable_p "$ac_path_EGREP" || continue
3808 # Check for GNU ac_path_EGREP and select it if it is found.
3809   # Check for GNU $ac_path_EGREP
3810 case `"$ac_path_EGREP" --version 2>&1` in
3811 *GNU*)
3812   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3813 *)
3814   ac_count=0
3815   $as_echo_n 0123456789 >"conftest.in"
3816   while :
3817   do
3818     cat "conftest.in" "conftest.in" >"conftest.tmp"
3819     mv "conftest.tmp" "conftest.in"
3820     cp "conftest.in" "conftest.nl"
3821     $as_echo 'EGREP' >> "conftest.nl"
3822     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3823     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3824     as_fn_arith $ac_count + 1 && ac_count=$as_val
3825     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3826       # Best one so far, save it but keep looking for a better one
3827       ac_cv_path_EGREP="$ac_path_EGREP"
3828       ac_path_EGREP_max=$ac_count
3829     fi
3830     # 10*(2^10) chars as input seems more than enough
3831     test $ac_count -gt 10 && break
3832   done
3833   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3834 esac
3835
3836       $ac_path_EGREP_found && break 3
3837     done
3838   done
3839   done
3840 IFS=$as_save_IFS
3841   if test -z "$ac_cv_path_EGREP"; then
3842     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3843   fi
3844 else
3845   ac_cv_path_EGREP=$EGREP
3846 fi
3847
3848    fi
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3851 $as_echo "$ac_cv_path_EGREP" >&6; }
3852  EGREP="$ac_cv_path_EGREP"
3853
3854
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3856 $as_echo_n "checking for ANSI C header files... " >&6; }
3857 if ${ac_cv_header_stdc+:} false; then :
3858   $as_echo_n "(cached) " >&6
3859 else
3860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h.  */
3862 #include <stdlib.h>
3863 #include <stdarg.h>
3864 #include <string.h>
3865 #include <float.h>
3866
3867 int
3868 main ()
3869 {
3870
3871   ;
3872   return 0;
3873 }
3874 _ACEOF
3875 if ac_fn_c_try_compile "$LINENO"; then :
3876   ac_cv_header_stdc=yes
3877 else
3878   ac_cv_header_stdc=no
3879 fi
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881
3882 if test $ac_cv_header_stdc = yes; then
3883   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h.  */
3886 #include <string.h>
3887
3888 _ACEOF
3889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3890   $EGREP "memchr" >/dev/null 2>&1; then :
3891
3892 else
3893   ac_cv_header_stdc=no
3894 fi
3895 rm -f conftest*
3896
3897 fi
3898
3899 if test $ac_cv_header_stdc = yes; then
3900   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h.  */
3903 #include <stdlib.h>
3904
3905 _ACEOF
3906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3907   $EGREP "free" >/dev/null 2>&1; then :
3908
3909 else
3910   ac_cv_header_stdc=no
3911 fi
3912 rm -f conftest*
3913
3914 fi
3915
3916 if test $ac_cv_header_stdc = yes; then
3917   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3918   if test "$cross_compiling" = yes; then :
3919   :
3920 else
3921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h.  */
3923 #include <ctype.h>
3924 #include <stdlib.h>
3925 #if ((' ' & 0x0FF) == 0x020)
3926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3928 #else
3929 # define ISLOWER(c) \
3930                    (('a' <= (c) && (c) <= 'i') \
3931                      || ('j' <= (c) && (c) <= 'r') \
3932                      || ('s' <= (c) && (c) <= 'z'))
3933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3934 #endif
3935
3936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3937 int
3938 main ()
3939 {
3940   int i;
3941   for (i = 0; i < 256; i++)
3942     if (XOR (islower (i), ISLOWER (i))
3943         || toupper (i) != TOUPPER (i))
3944       return 2;
3945   return 0;
3946 }
3947 _ACEOF
3948 if ac_fn_c_try_run "$LINENO"; then :
3949
3950 else
3951   ac_cv_header_stdc=no
3952 fi
3953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3954   conftest.$ac_objext conftest.beam conftest.$ac_ext
3955 fi
3956
3957 fi
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3960 $as_echo "$ac_cv_header_stdc" >&6; }
3961 if test $ac_cv_header_stdc = yes; then
3962
3963 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3964
3965 fi
3966
3967 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3968 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3969                   inttypes.h stdint.h unistd.h
3970 do :
3971   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3972 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3973 "
3974 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3975   cat >>confdefs.h <<_ACEOF
3976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3977 _ACEOF
3978
3979 fi
3980
3981 done
3982
3983
3984
3985   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3986 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3987   MINIX=yes
3988 else
3989   MINIX=
3990 fi
3991
3992
3993   if test "$MINIX" = yes; then
3994
3995 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3996
3997
3998 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3999
4000
4001 $as_echo "#define _MINIX 1" >>confdefs.h
4002
4003   fi
4004
4005
4006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4007 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4008 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4009   $as_echo_n "(cached) " >&6
4010 else
4011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h.  */
4013
4014 #         define __EXTENSIONS__ 1
4015           $ac_includes_default
4016 int
4017 main ()
4018 {
4019
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025   ac_cv_safe_to_define___extensions__=yes
4026 else
4027   ac_cv_safe_to_define___extensions__=no
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4032 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4033   test $ac_cv_safe_to_define___extensions__ = yes &&
4034     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4035
4036   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4037
4038   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4039
4040   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4041
4042   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4043
4044
4045
4046
4047 if test $ac_cv_c_compiler_gnu = yes; then
4048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4049 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4050 if ${ac_cv_prog_gcc_traditional+:} false; then :
4051   $as_echo_n "(cached) " >&6
4052 else
4053     ac_pattern="Autoconf.*'x'"
4054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h.  */
4056 #include <sgtty.h>
4057 Autoconf TIOCGETP
4058 _ACEOF
4059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4060   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4061   ac_cv_prog_gcc_traditional=yes
4062 else
4063   ac_cv_prog_gcc_traditional=no
4064 fi
4065 rm -f conftest*
4066
4067
4068   if test $ac_cv_prog_gcc_traditional = no; then
4069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h.  */
4071 #include <termio.h>
4072 Autoconf TCGETA
4073 _ACEOF
4074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4075   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4076   ac_cv_prog_gcc_traditional=yes
4077 fi
4078 rm -f conftest*
4079
4080   fi
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4083 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4084   if test $ac_cv_prog_gcc_traditional = yes; then
4085     CC="$CC -traditional"
4086   fi
4087 fi
4088
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4090 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4091 if ${ac_cv_prog_suncc+:} false; then :
4092   $as_echo_n "(cached) " >&6
4093 else
4094   cat > conftest.c <<EOF
4095 #ifdef __SUNPRO_C
4096   yes;
4097 #endif
4098 EOF
4099 if { ac_try='${CC-cc} -E conftest.c'
4100   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4101   (eval $ac_try) 2>&5
4102   ac_status=$?
4103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4105   ac_cv_prog_suncc=yes
4106 else
4107   ac_cv_prog_suncc=no
4108 fi
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4111 $as_echo "$ac_cv_prog_suncc" >&6; }
4112 if test -n "$ac_tool_prefix"; then
4113   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_prog_RANLIB+:} false; then :
4118   $as_echo_n "(cached) " >&6
4119 else
4120   if test -n "$RANLIB"; then
4121   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126   IFS=$as_save_IFS
4127   test -z "$as_dir" && as_dir=.
4128     for ac_exec_ext in '' $ac_executable_extensions; do
4129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132     break 2
4133   fi
4134 done
4135   done
4136 IFS=$as_save_IFS
4137
4138 fi
4139 fi
4140 RANLIB=$ac_cv_prog_RANLIB
4141 if test -n "$RANLIB"; then
4142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4143 $as_echo "$RANLIB" >&6; }
4144 else
4145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4147 fi
4148
4149
4150 fi
4151 if test -z "$ac_cv_prog_RANLIB"; then
4152   ac_ct_RANLIB=$RANLIB
4153   # Extract the first word of "ranlib", so it can be a program name with args.
4154 set dummy ranlib; ac_word=$2
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156 $as_echo_n "checking for $ac_word... " >&6; }
4157 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4158   $as_echo_n "(cached) " >&6
4159 else
4160   if test -n "$ac_ct_RANLIB"; then
4161   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4162 else
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH
4165 do
4166   IFS=$as_save_IFS
4167   test -z "$as_dir" && as_dir=.
4168     for ac_exec_ext in '' $ac_executable_extensions; do
4169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4170     ac_cv_prog_ac_ct_RANLIB="ranlib"
4171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172     break 2
4173   fi
4174 done
4175   done
4176 IFS=$as_save_IFS
4177
4178 fi
4179 fi
4180 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4181 if test -n "$ac_ct_RANLIB"; then
4182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4183 $as_echo "$ac_ct_RANLIB" >&6; }
4184 else
4185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 $as_echo "no" >&6; }
4187 fi
4188
4189   if test "x$ac_ct_RANLIB" = x; then
4190     RANLIB=":"
4191   else
4192     case $cross_compiling:$ac_tool_warned in
4193 yes:)
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4196 ac_tool_warned=yes ;;
4197 esac
4198     RANLIB=$ac_ct_RANLIB
4199   fi
4200 else
4201   RANLIB="$ac_cv_prog_RANLIB"
4202 fi
4203
4204
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5
4206 $as_echo_n "checking if compiling with clang... " >&6; }
4207
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h.  */
4210
4211 int
4212 main ()
4213 {
4214
4215 #ifndef __clang__
4216        not clang
4217 #endif
4218
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 if ac_fn_c_try_compile "$LINENO"; then :
4224   CLANG=yes
4225 else
4226   CLANG=no
4227 fi
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
4231 $as_echo "$CLANG" >&6; }
4232
4233 if test "x$GCC" = "xyes"; then
4234     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4235 fi
4236
4237 if test "x$CLANG" = "xyes"; then
4238     CFLAGS="$CFLAGS -Qunused-arguments"
4239     LDFLAGS="$LDFLAGS -Qunused-arguments"
4240 fi
4241
4242 # Check whether --enable-largefile was given.
4243 if test "${enable_largefile+set}" = set; then :
4244   enableval=$enable_largefile;
4245 fi
4246
4247 if test "$enable_largefile" != no; then
4248
4249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4250 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4251 if ${ac_cv_sys_largefile_CC+:} false; then :
4252   $as_echo_n "(cached) " >&6
4253 else
4254   ac_cv_sys_largefile_CC=no
4255      if test "$GCC" != yes; then
4256        ac_save_CC=$CC
4257        while :; do
4258          # IRIX 6.2 and later do not support large files by default,
4259          # so use the C compiler's -n32 option if that helps.
4260          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h.  */
4262 #include <sys/types.h>
4263  /* Check that off_t can represent 2**63 - 1 correctly.
4264     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4265     since some C++ compilers masquerading as C compilers
4266     incorrectly reject 9223372036854775807.  */
4267 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4268   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4269                        && LARGE_OFF_T % 2147483647 == 1)
4270                       ? 1 : -1];
4271 int
4272 main ()
4273 {
4274
4275   ;
4276   return 0;
4277 }
4278 _ACEOF
4279          if ac_fn_c_try_compile "$LINENO"; then :
4280   break
4281 fi
4282 rm -f core conftest.err conftest.$ac_objext
4283          CC="$CC -n32"
4284          if ac_fn_c_try_compile "$LINENO"; then :
4285   ac_cv_sys_largefile_CC=' -n32'; break
4286 fi
4287 rm -f core conftest.err conftest.$ac_objext
4288          break
4289        done
4290        CC=$ac_save_CC
4291        rm -f conftest.$ac_ext
4292     fi
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4295 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4296   if test "$ac_cv_sys_largefile_CC" != no; then
4297     CC=$CC$ac_cv_sys_largefile_CC
4298   fi
4299
4300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4301 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4302 if ${ac_cv_sys_file_offset_bits+:} false; then :
4303   $as_echo_n "(cached) " >&6
4304 else
4305   while :; do
4306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h.  */
4308 #include <sys/types.h>
4309  /* Check that off_t can represent 2**63 - 1 correctly.
4310     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4311     since some C++ compilers masquerading as C compilers
4312     incorrectly reject 9223372036854775807.  */
4313 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4314   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4315                        && LARGE_OFF_T % 2147483647 == 1)
4316                       ? 1 : -1];
4317 int
4318 main ()
4319 {
4320
4321   ;
4322   return 0;
4323 }
4324 _ACEOF
4325 if ac_fn_c_try_compile "$LINENO"; then :
4326   ac_cv_sys_file_offset_bits=no; break
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h.  */
4331 #define _FILE_OFFSET_BITS 64
4332 #include <sys/types.h>
4333  /* Check that off_t can represent 2**63 - 1 correctly.
4334     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4335     since some C++ compilers masquerading as C compilers
4336     incorrectly reject 9223372036854775807.  */
4337 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4338   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4339                        && LARGE_OFF_T % 2147483647 == 1)
4340                       ? 1 : -1];
4341 int
4342 main ()
4343 {
4344
4345   ;
4346   return 0;
4347 }
4348 _ACEOF
4349 if ac_fn_c_try_compile "$LINENO"; then :
4350   ac_cv_sys_file_offset_bits=64; break
4351 fi
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353   ac_cv_sys_file_offset_bits=unknown
4354   break
4355 done
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4358 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4359 case $ac_cv_sys_file_offset_bits in #(
4360   no | unknown) ;;
4361   *)
4362 cat >>confdefs.h <<_ACEOF
4363 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4364 _ACEOF
4365 ;;
4366 esac
4367 rm -rf conftest*
4368   if test $ac_cv_sys_file_offset_bits = unknown; then
4369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4370 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4371 if ${ac_cv_sys_large_files+:} false; then :
4372   $as_echo_n "(cached) " >&6
4373 else
4374   while :; do
4375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h.  */
4377 #include <sys/types.h>
4378  /* Check that off_t can represent 2**63 - 1 correctly.
4379     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4380     since some C++ compilers masquerading as C compilers
4381     incorrectly reject 9223372036854775807.  */
4382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4383   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4384                        && LARGE_OFF_T % 2147483647 == 1)
4385                       ? 1 : -1];
4386 int
4387 main ()
4388 {
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 if ac_fn_c_try_compile "$LINENO"; then :
4395   ac_cv_sys_large_files=no; break
4396 fi
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h.  */
4400 #define _LARGE_FILES 1
4401 #include <sys/types.h>
4402  /* Check that off_t can represent 2**63 - 1 correctly.
4403     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4404     since some C++ compilers masquerading as C compilers
4405     incorrectly reject 9223372036854775807.  */
4406 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4407   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4408                        && LARGE_OFF_T % 2147483647 == 1)
4409                       ? 1 : -1];
4410 int
4411 main ()
4412 {
4413
4414   ;
4415   return 0;
4416 }
4417 _ACEOF
4418 if ac_fn_c_try_compile "$LINENO"; then :
4419   ac_cv_sys_large_files=1; break
4420 fi
4421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422   ac_cv_sys_large_files=unknown
4423   break
4424 done
4425 fi
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4427 $as_echo "$ac_cv_sys_large_files" >&6; }
4428 case $ac_cv_sys_large_files in #(
4429   no | unknown) ;;
4430   *)
4431 cat >>confdefs.h <<_ACEOF
4432 #define _LARGE_FILES $ac_cv_sys_large_files
4433 _ACEOF
4434 ;;
4435 esac
4436 rm -rf conftest*
4437   fi
4438
4439
4440 fi
4441
4442
4443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4444 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4445 if ${ac_cv_c_bigendian+:} false; then :
4446   $as_echo_n "(cached) " >&6
4447 else
4448   ac_cv_c_bigendian=unknown
4449     # See if we're dealing with a universal compiler.
4450     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h.  */
4452 #ifndef __APPLE_CC__
4453                not a universal capable compiler
4454              #endif
4455              typedef int dummy;
4456
4457 _ACEOF
4458 if ac_fn_c_try_compile "$LINENO"; then :
4459
4460         # Check for potential -arch flags.  It is not universal unless
4461         # there are at least two -arch flags with different values.
4462         ac_arch=
4463         ac_prev=
4464         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4465          if test -n "$ac_prev"; then
4466            case $ac_word in
4467              i?86 | x86_64 | ppc | ppc64)
4468                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4469                  ac_arch=$ac_word
4470                else
4471                  ac_cv_c_bigendian=universal
4472                  break
4473                fi
4474                ;;
4475            esac
4476            ac_prev=
4477          elif test "x$ac_word" = "x-arch"; then
4478            ac_prev=arch
4479          fi
4480        done
4481 fi
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483     if test $ac_cv_c_bigendian = unknown; then
4484       # See if sys/param.h defines the BYTE_ORDER macro.
4485       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h.  */
4487 #include <sys/types.h>
4488              #include <sys/param.h>
4489
4490 int
4491 main ()
4492 {
4493 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4494                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4495                      && LITTLE_ENDIAN)
4496               bogus endian macros
4497              #endif
4498
4499   ;
4500   return 0;
4501 }
4502 _ACEOF
4503 if ac_fn_c_try_compile "$LINENO"; then :
4504   # It does; now see whether it defined to BIG_ENDIAN or not.
4505          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h.  */
4507 #include <sys/types.h>
4508                 #include <sys/param.h>
4509
4510 int
4511 main ()
4512 {
4513 #if BYTE_ORDER != BIG_ENDIAN
4514                  not big endian
4515                 #endif
4516
4517   ;
4518   return 0;
4519 }
4520 _ACEOF
4521 if ac_fn_c_try_compile "$LINENO"; then :
4522   ac_cv_c_bigendian=yes
4523 else
4524   ac_cv_c_bigendian=no
4525 fi
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 fi
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529     fi
4530     if test $ac_cv_c_bigendian = unknown; then
4531       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4532       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h.  */
4534 #include <limits.h>
4535
4536 int
4537 main ()
4538 {
4539 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4540               bogus endian macros
4541              #endif
4542
4543   ;
4544   return 0;
4545 }
4546 _ACEOF
4547 if ac_fn_c_try_compile "$LINENO"; then :
4548   # It does; now see whether it defined to _BIG_ENDIAN or not.
4549          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h.  */
4551 #include <limits.h>
4552
4553 int
4554 main ()
4555 {
4556 #ifndef _BIG_ENDIAN
4557                  not big endian
4558                 #endif
4559
4560   ;
4561   return 0;
4562 }
4563 _ACEOF
4564 if ac_fn_c_try_compile "$LINENO"; then :
4565   ac_cv_c_bigendian=yes
4566 else
4567   ac_cv_c_bigendian=no
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572     fi
4573     if test $ac_cv_c_bigendian = unknown; then
4574       # Compile a test program.
4575       if test "$cross_compiling" = yes; then :
4576   # Try to guess by grepping values from an object file.
4577          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h.  */
4579 short int ascii_mm[] =
4580                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4581                 short int ascii_ii[] =
4582                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4583                 int use_ascii (int i) {
4584                   return ascii_mm[i] + ascii_ii[i];
4585                 }
4586                 short int ebcdic_ii[] =
4587                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4588                 short int ebcdic_mm[] =
4589                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4590                 int use_ebcdic (int i) {
4591                   return ebcdic_mm[i] + ebcdic_ii[i];
4592                 }
4593                 extern int foo;
4594
4595 int
4596 main ()
4597 {
4598 return use_ascii (foo) == use_ebcdic (foo);
4599   ;
4600   return 0;
4601 }
4602 _ACEOF
4603 if ac_fn_c_try_compile "$LINENO"; then :
4604   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4605               ac_cv_c_bigendian=yes
4606             fi
4607             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4608               if test "$ac_cv_c_bigendian" = unknown; then
4609                 ac_cv_c_bigendian=no
4610               else
4611                 # finding both strings is unlikely to happen, but who knows?
4612                 ac_cv_c_bigendian=unknown
4613               fi
4614             fi
4615 fi
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 else
4618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h.  */
4620 $ac_includes_default
4621 int
4622 main ()
4623 {
4624
4625              /* Are we little or big endian?  From Harbison&Steele.  */
4626              union
4627              {
4628                long int l;
4629                char c[sizeof (long int)];
4630              } u;
4631              u.l = 1;
4632              return u.c[sizeof (long int) - 1] == 1;
4633
4634   ;
4635   return 0;
4636 }
4637 _ACEOF
4638 if ac_fn_c_try_run "$LINENO"; then :
4639   ac_cv_c_bigendian=no
4640 else
4641   ac_cv_c_bigendian=yes
4642 fi
4643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4644   conftest.$ac_objext conftest.beam conftest.$ac_ext
4645 fi
4646
4647     fi
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4650 $as_echo "$ac_cv_c_bigendian" >&6; }
4651  case $ac_cv_c_bigendian in #(
4652    yes)
4653      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4654 ;; #(
4655    no)
4656       ;; #(
4657    universal)
4658
4659 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4660
4661      ;; #(
4662    *)
4663      as_fn_error $? "unknown endianness
4664  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4665  esac
4666
4667
4668 # Extract the first word of "gmake", so it can be a program name with args.
4669 set dummy gmake; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if ${ac_cv_prog_GMAKE+:} false; then :
4673   $as_echo_n "(cached) " >&6
4674 else
4675   if test -n "$GMAKE"; then
4676   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681   IFS=$as_save_IFS
4682   test -z "$as_dir" && as_dir=.
4683     for ac_exec_ext in '' $ac_executable_extensions; do
4684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685     ac_cv_prog_GMAKE="yes"
4686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687     break 2
4688   fi
4689 done
4690   done
4691 IFS=$as_save_IFS
4692
4693   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4694 fi
4695 fi
4696 GMAKE=$ac_cv_prog_GMAKE
4697 if test -n "$GMAKE"; then
4698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4699 $as_echo "$GMAKE" >&6; }
4700 else
4701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 $as_echo "no" >&6; }
4703 fi
4704
4705
4706 if test $GMAKE = no; then
4707   # Extract the first word of "make", so it can be a program name with args.
4708 set dummy make; ac_word=$2
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if ${ac_cv_path_MAKE+:} false; then :
4712   $as_echo_n "(cached) " >&6
4713 else
4714   case $MAKE in
4715   [\\/]* | ?:[\\/]*)
4716   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4717   ;;
4718   *)
4719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722   IFS=$as_save_IFS
4723   test -z "$as_dir" && as_dir=.
4724     for ac_exec_ext in '' $ac_executable_extensions; do
4725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728     break 2
4729   fi
4730 done
4731   done
4732 IFS=$as_save_IFS
4733
4734   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4735   ;;
4736 esac
4737 fi
4738 MAKE=$ac_cv_path_MAKE
4739 if test -n "$MAKE"; then
4740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4741 $as_echo "$MAKE" >&6; }
4742 else
4743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4745 fi
4746
4747
4748 else
4749   # Extract the first word of "gmake", so it can be a program name with args.
4750 set dummy gmake; ac_word=$2
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if ${ac_cv_path_MAKE+:} false; then :
4754   $as_echo_n "(cached) " >&6
4755 else
4756   case $MAKE in
4757   [\\/]* | ?:[\\/]*)
4758   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4759   ;;
4760   *)
4761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4763 do
4764   IFS=$as_save_IFS
4765   test -z "$as_dir" && as_dir=.
4766     for ac_exec_ext in '' $ac_executable_extensions; do
4767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4768     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770     break 2
4771   fi
4772 done
4773   done
4774 IFS=$as_save_IFS
4775
4776   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4777   ;;
4778 esac
4779 fi
4780 MAKE=$ac_cv_path_MAKE
4781 if test -n "$MAKE"; then
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4783 $as_echo "$MAKE" >&6; }
4784 else
4785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789
4790 fi
4791 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4792 if test -z "$makever"; then
4793   as_fn_error $? "GNU Make is not installed.  Please download and install it
4794                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4795 fi
4796
4797 # Extract the first word of "git", so it can be a program name with args.
4798 set dummy git; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_prog_GIT+:} false; then :
4802   $as_echo_n "(cached) " >&6
4803 else
4804   if test -n "$GIT"; then
4805   ac_cv_prog_GIT="$GIT" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4809 do
4810   IFS=$as_save_IFS
4811   test -z "$as_dir" && as_dir=.
4812     for ac_exec_ext in '' $ac_executable_extensions; do
4813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814     ac_cv_prog_GIT="yes"
4815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816     break 2
4817   fi
4818 done
4819   done
4820 IFS=$as_save_IFS
4821
4822   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4823 fi
4824 fi
4825 GIT=$ac_cv_prog_GIT
4826 if test -n "$GIT"; then
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4828 $as_echo "$GIT" >&6; }
4829 else
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 fi
4833
4834
4835
4836
4837 # Check whether --enable-strict-dependencies was given.
4838 if test "${enable_strict_dependencies+set}" = set; then :
4839   enableval=$enable_strict_dependencies;
4840 fi
4841
4842
4843 # Check whether --enable-werror was given.
4844 if test "${enable_werror+set}" = set; then :
4845   enableval=$enable_werror;  case "$enableval" in
4846     no)
4847         werror=no
4848         ;;
4849     *)
4850         werror=yes
4851   esac
4852
4853 fi
4854
4855
4856 docdir='${datadir}/doc/freeradius'
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
4858 $as_echo_n "checking docdir... " >&6; }
4859
4860 # Check whether --with-docdir was given.
4861 if test "${with_docdir+set}" = set; then :
4862   withval=$with_docdir;  case "$withval" in
4863     no)
4864         docdir=no
4865         ;;
4866     yes)
4867         ;;
4868     [\\/$]* | ?:[\\/]* )
4869         docdir="$withval"
4870         ;;
4871     *)
4872         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
4873         ;;
4874   esac
4875
4876 fi
4877
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
4880 $as_echo "$docdir" >&6; }
4881 if test "x$docdir" = xno; then
4882         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
4883 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
4884 fi
4885
4886 logdir='${localstatedir}/log/radius'
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
4888 $as_echo_n "checking logdir... " >&6; }
4889
4890 # Check whether --with-logdir was given.
4891 if test "${with_logdir+set}" = set; then :
4892   withval=$with_logdir;  case "$withval" in
4893     no)
4894         as_fn_error $? "Need logdir" "$LINENO" 5
4895         ;;
4896     yes)
4897         ;;
4898     [\\/$]* | ?:[\\/]* )
4899         logdir="$withval"
4900         ;;
4901     *)
4902         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
4903         ;;
4904   esac
4905
4906 fi
4907
4908
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
4910 $as_echo "$logdir" >&6; }
4911
4912 radacctdir='${logdir}/radacct'
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
4914 $as_echo_n "checking radacctdir... " >&6; }
4915
4916 # Check whether --with-radacctdir was given.
4917 if test "${with_radacctdir+set}" = set; then :
4918   withval=$with_radacctdir;  case "$withval" in
4919     no)
4920         as_fn_error $? "Need radacctdir" "$LINENO" 5
4921         ;;
4922     yes)
4923         ;;
4924     [\\/$]* | ?:[\\/]* )
4925         radacctdir="$withval"
4926         ;;
4927     *)
4928         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
4929         ;;
4930   esac
4931
4932 fi
4933
4934
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
4936 $as_echo "$radacctdir" >&6; }
4937
4938 raddbdir='${sysconfdir}/raddb'
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
4940 $as_echo_n "checking raddbdir... " >&6; }
4941
4942 # Check whether --with-raddbdir was given.
4943 if test "${with_raddbdir+set}" = set; then :
4944   withval=$with_raddbdir;  case "$withval" in
4945     no)
4946         as_fn_error $? "Need raddbdir" "$LINENO" 5
4947         ;;
4948     yes)
4949         ;;
4950     [\\/$]* | ?:[\\/]* )
4951         raddbdir="$withval"
4952         ;;
4953     *)
4954         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
4955         ;;
4956   esac
4957
4958 fi
4959
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
4962 $as_echo "$raddbdir" >&6; }
4963
4964 WITH_ASCEND_BINARY=yes
4965
4966 # Check whether --with-ascend-binary was given.
4967 if test "${with_ascend_binary+set}" = set; then :
4968   withval=$with_ascend_binary;  case "$withval" in
4969     yes)
4970         ;;
4971     *)
4972         WITH_ASCEND_BINARY=no
4973   esac
4974
4975 fi
4976
4977 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
4978
4979 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
4980
4981 fi
4982
4983 WITH_THREADS=yes
4984
4985 # Check whether --with-threads was given.
4986 if test "${with_threads+set}" = set; then :
4987   withval=$with_threads;  case "$withval" in
4988     yes)
4989         ;;
4990     *)
4991         WITH_THREADS=no
4992   esac
4993
4994 fi
4995
4996
4997 WITH_TCP=yes
4998
4999 # Check whether --with-tcp was given.
5000 if test "${with_tcp+set}" = set; then :
5001   withval=$with_tcp;  case "$withval" in
5002     yes)
5003         ;;
5004     *)
5005         WITH_TCP=no
5006   esac
5007
5008 fi
5009
5010 if test "x$WITH_TCP" = "xyes"; then
5011
5012 $as_echo "#define WITH_TCP 1" >>confdefs.h
5013
5014 fi
5015
5016 WITH_VMPS=yes
5017
5018 # Check whether --with-vmps was given.
5019 if test "${with_vmps+set}" = set; then :
5020   withval=$with_vmps;  case "$withval" in
5021     yes)
5022         ;;
5023     *)
5024         WITH_VMPS=no
5025   esac
5026
5027 fi
5028
5029 if test "x$WITH_VMPS" = "xyes"; then
5030
5031 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5032
5033 fi
5034
5035 WITH_DHCP=yes
5036
5037 # Check whether --with-dhcp was given.
5038 if test "${with_dhcp+set}" = set; then :
5039   withval=$with_dhcp;  case "$withval" in
5040     yes)
5041         ;;
5042     *)
5043         WITH_DHCP=no
5044   esac
5045
5046 fi
5047
5048 if test "x$WITH_DHCP" = "xyes"; then
5049
5050 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5051
5052 fi
5053
5054 STATIC_MODULES=
5055
5056 # Check whether --with-static_modules was given.
5057 if test "${with_static_modules+set}" = set; then :
5058   withval=$with_static_modules;
5059   for i in $withval; do
5060     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5061   done
5062
5063 fi
5064
5065
5066 MODULES=
5067
5068 # Check whether --with-modules was given.
5069 if test "${with_modules+set}" = set; then :
5070   withval=$with_modules;
5071  for i in $withval; do
5072    MODULES="$MODULES $i"
5073  done
5074
5075 fi
5076
5077
5078 EXPERIMENTAL=
5079
5080 # Check whether --with-experimental-modules was given.
5081 if test "${with_experimental_modules+set}" = set; then :
5082   withval=$with_experimental_modules;  case "$withval" in
5083     yes)
5084         EXPERIMENTAL=yes
5085         ;;
5086     no)
5087         EXPERIMENTAL=no
5088         ;;
5089     *)
5090   esac
5091
5092 fi
5093
5094
5095 WITH_OPENSSL=yes
5096
5097 # Check whether --with-openssl was given.
5098 if test "${with_openssl+set}" = set; then :
5099   withval=$with_openssl;  case "$withval" in
5100     no)
5101         WITH_OPENSSL=no
5102         ;;
5103     *)
5104         WITH_OPENSSL=yes
5105         ;;
5106   esac
5107
5108 fi
5109
5110
5111 OPENSSL_INCLUDE_DIR=
5112
5113 # Check whether --with-openssl-includes was given.
5114 if test "${with_openssl_includes+set}" = set; then :
5115   withval=$with_openssl_includes;  case "$withval" in
5116     *) OPENSSL_INCLUDE_DIR="$withval"
5117         ;;
5118   esac
5119
5120 fi
5121
5122
5123 OPENSSL_LIB_DIR=
5124
5125 # Check whether --with-openssl-libraries was given.
5126 if test "${with_openssl_libraries+set}" = set; then :
5127   withval=$with_openssl_libraries;  case "$withval" in
5128     *) OPENSSL_LIB_DIR="$withval"
5129         ;;
5130   esac
5131
5132 fi
5133
5134
5135
5136
5137 # Check whether --with-rlm-FOO-lib-dir was given.
5138 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5139   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
5140     *)
5141         ;;
5142   esac
5143
5144 fi
5145
5146
5147
5148 # Check whether --with-rlm-FOO-include-dir was given.
5149 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5150   withval=$with_rlm_FOO_include_dir;  case "$withval" in
5151     *)
5152         ;;
5153   esac
5154
5155 fi
5156
5157
5158
5159 WITH_UDPFROMTO=no
5160
5161 # Check whether --with-udpfromto was given.
5162 if test "${with_udpfromto+set}" = set; then :
5163   withval=$with_udpfromto;  case "$withval" in
5164     yes)
5165         WITH_UDPFROMTO=yes
5166         ;;
5167     *)
5168         WITH_UDPFROMTO=no
5169   esac
5170
5171 fi
5172
5173
5174 if test "x$WITH_UDPFROMTO" = "xyes"; then
5175
5176 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5177
5178 fi
5179
5180
5181 CHECKRAD=checkrad
5182 # Extract the first word of "perl", so it can be a program name with args.
5183 set dummy perl; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if ${ac_cv_path_PERL+:} false; then :
5187   $as_echo_n "(cached) " >&6
5188 else
5189   case $PERL in
5190   [\\/]* | ?:[\\/]*)
5191   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5192   ;;
5193   *)
5194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197   IFS=$as_save_IFS
5198   test -z "$as_dir" && as_dir=.
5199     for ac_exec_ext in '' $ac_executable_extensions; do
5200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203     break 2
5204   fi
5205 done
5206   done
5207 IFS=$as_save_IFS
5208
5209   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5210   ;;
5211 esac
5212 fi
5213 PERL=$ac_cv_path_PERL
5214 if test -n "$PERL"; then
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5216 $as_echo "$PERL" >&6; }
5217 else
5218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 fi
5221
5222
5223 if test "x$ac_cv_path_PERL" = "x"; then
5224   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5225 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5226 fi
5227 # Extract the first word of "snmpget", so it can be a program name with args.
5228 set dummy snmpget; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_path_SNMPGET+:} false; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   case $SNMPGET in
5235   [\\/]* | ?:[\\/]*)
5236   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5237   ;;
5238   *)
5239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242   IFS=$as_save_IFS
5243   test -z "$as_dir" && as_dir=.
5244     for ac_exec_ext in '' $ac_executable_extensions; do
5245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5246     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248     break 2
5249   fi
5250 done
5251   done
5252 IFS=$as_save_IFS
5253
5254   ;;
5255 esac
5256 fi
5257 SNMPGET=$ac_cv_path_SNMPGET
5258 if test -n "$SNMPGET"; then
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5260 $as_echo "$SNMPGET" >&6; }
5261 else
5262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5264 fi
5265
5266
5267 if test "x$ac_cv_path_SNMPGET" = "x"; then
5268   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5269 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5270 fi
5271
5272 # Extract the first word of "snmpwalk", so it can be a program name with args.
5273 set dummy snmpwalk; ac_word=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if ${ac_cv_path_SNMPWALK+:} false; then :
5277   $as_echo_n "(cached) " >&6
5278 else
5279   case $SNMPWALK in
5280   [\\/]* | ?:[\\/]*)
5281   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5282   ;;
5283   *)
5284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287   IFS=$as_save_IFS
5288   test -z "$as_dir" && as_dir=.
5289     for ac_exec_ext in '' $ac_executable_extensions; do
5290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293     break 2
5294   fi
5295 done
5296   done
5297 IFS=$as_save_IFS
5298
5299   ;;
5300 esac
5301 fi
5302 SNMPWALK=$ac_cv_path_SNMPWALK
5303 if test -n "$SNMPWALK"; then
5304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5305 $as_echo "$SNMPWALK" >&6; }
5306 else
5307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310
5311
5312 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5314 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5315 fi
5316
5317 # Extract the first word of "rusers", so it can be a program name with args.
5318 set dummy rusers; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if ${ac_cv_path_RUSERS+:} false; then :
5322   $as_echo_n "(cached) " >&6
5323 else
5324   case $RUSERS in
5325   [\\/]* | ?:[\\/]*)
5326   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5327   ;;
5328   *)
5329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332   IFS=$as_save_IFS
5333   test -z "$as_dir" && as_dir=.
5334     for ac_exec_ext in '' $ac_executable_extensions; do
5335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338     break 2
5339   fi
5340 done
5341   done
5342 IFS=$as_save_IFS
5343
5344   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5345   ;;
5346 esac
5347 fi
5348 RUSERS=$ac_cv_path_RUSERS
5349 if test -n "$RUSERS"; then
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5351 $as_echo "$RUSERS" >&6; }
5352 else
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5355 fi
5356
5357
5358
5359 missing_dir=`cd $ac_aux_dir && pwd`
5360 # expand $ac_aux_dir to an absolute path
5361 am_aux_dir=`cd $ac_aux_dir && pwd`
5362
5363 if test x"${MISSING+set}" != xset; then
5364   case $am_aux_dir in
5365   *\ * | *\     *)
5366     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5367   *)
5368     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5369   esac
5370 fi
5371 # Use eval to expand $SHELL
5372 if eval "$MISSING --run true"; then
5373   am_missing_run="$MISSING --run "
5374 else
5375   am_missing_run=
5376   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5377 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5378 fi
5379
5380
5381 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5382
5383
5384 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5385
5386
5387 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5388
5389
5390 # Extract the first word of "locate", so it can be a program name with args.
5391 set dummy locate; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if ${ac_cv_path_LOCATE+:} false; then :
5395   $as_echo_n "(cached) " >&6
5396 else
5397   case $LOCATE in
5398   [\\/]* | ?:[\\/]*)
5399   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5400   ;;
5401   *)
5402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405   IFS=$as_save_IFS
5406   test -z "$as_dir" && as_dir=.
5407     for ac_exec_ext in '' $ac_executable_extensions; do
5408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411     break 2
5412   fi
5413 done
5414   done
5415 IFS=$as_save_IFS
5416
5417   ;;
5418 esac
5419 fi
5420 LOCATE=$ac_cv_path_LOCATE
5421 if test -n "$LOCATE"; then
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5423 $as_echo "$LOCATE" >&6; }
5424 else
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429
5430 # Extract the first word of "dirname", so it can be a program name with args.
5431 set dummy dirname; ac_word=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if ${ac_cv_path_DIRNAME+:} false; then :
5435   $as_echo_n "(cached) " >&6
5436 else
5437   case $DIRNAME in
5438   [\\/]* | ?:[\\/]*)
5439   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5440   ;;
5441   *)
5442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445   IFS=$as_save_IFS
5446   test -z "$as_dir" && as_dir=.
5447     for ac_exec_ext in '' $ac_executable_extensions; do
5448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451     break 2
5452   fi
5453 done
5454   done
5455 IFS=$as_save_IFS
5456
5457   ;;
5458 esac
5459 fi
5460 DIRNAME=$ac_cv_path_DIRNAME
5461 if test -n "$DIRNAME"; then
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5463 $as_echo "$DIRNAME" >&6; }
5464 else
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 fi
5468
5469
5470 # Extract the first word of "grep", so it can be a program name with args.
5471 set dummy grep; ac_word=$2
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473 $as_echo_n "checking for $ac_word... " >&6; }
5474 if ${ac_cv_path_GREP+:} false; then :
5475   $as_echo_n "(cached) " >&6
5476 else
5477   case $GREP in
5478   [\\/]* | ?:[\\/]*)
5479   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5480   ;;
5481   *)
5482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485   IFS=$as_save_IFS
5486   test -z "$as_dir" && as_dir=.
5487     for ac_exec_ext in '' $ac_executable_extensions; do
5488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491     break 2
5492   fi
5493 done
5494   done
5495 IFS=$as_save_IFS
5496
5497   ;;
5498 esac
5499 fi
5500 GREP=$ac_cv_path_GREP
5501 if test -n "$GREP"; then
5502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5503 $as_echo "$GREP" >&6; }
5504 else
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 fi
5508
5509
5510
5511
5512 old_CFLAGS=$CFLAGS
5513 if test "x$WITH_THREADS" = "xyes"; then
5514   if test $ac_cv_prog_suncc = "yes"; then
5515     CFLAGS="$CFLAGS -mt"
5516   fi
5517
5518   for ac_header in pthread.h
5519 do :
5520   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5521 if test "x$ac_cv_header_pthread_h" = xyes; then :
5522   cat >>confdefs.h <<_ACEOF
5523 #define HAVE_PTHREAD_H 1
5524 _ACEOF
5525
5526 else
5527    WITH_THREADS="no"
5528 fi
5529
5530 done
5531
5532
5533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5534 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5535 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5536   $as_echo_n "(cached) " >&6
5537 else
5538   ac_check_lib_save_LIBS=$LIBS
5539 LIBS="-lpthread  $LIBS"
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h.  */
5542
5543 /* Override any GCC internal prototype to avoid an error.
5544    Use char because int might match the return type of a GCC
5545    builtin and then its argument prototype would still apply.  */
5546 #ifdef __cplusplus
5547 extern "C"
5548 #endif
5549 char pthread_create ();
5550 int
5551 main ()
5552 {
5553 return pthread_create ();
5554   ;
5555   return 0;
5556 }
5557 _ACEOF
5558 if ac_fn_c_try_link "$LINENO"; then :
5559   ac_cv_lib_pthread_pthread_create=yes
5560 else
5561   ac_cv_lib_pthread_pthread_create=no
5562 fi
5563 rm -f core conftest.err conftest.$ac_objext \
5564     conftest$ac_exeext conftest.$ac_ext
5565 LIBS=$ac_check_lib_save_LIBS
5566 fi
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5568 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5569 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5570    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
5571                   LIBS="-lpthread $LIBS"
5572 else
5573    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5574 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5575 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   ac_check_lib_save_LIBS=$LIBS
5579 LIBS="-lc_r  $LIBS"
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h.  */
5582
5583 /* Override any GCC internal prototype to avoid an error.
5584    Use char because int might match the return type of a GCC
5585    builtin and then its argument prototype would still apply.  */
5586 #ifdef __cplusplus
5587 extern "C"
5588 #endif
5589 char pthread_create ();
5590 int
5591 main ()
5592 {
5593 return pthread_create ();
5594   ;
5595   return 0;
5596 }
5597 _ACEOF
5598 if ac_fn_c_try_link "$LINENO"; then :
5599   ac_cv_lib_c_r_pthread_create=yes
5600 else
5601   ac_cv_lib_c_r_pthread_create=no
5602 fi
5603 rm -f core conftest.err conftest.$ac_objext \
5604     conftest$ac_exeext conftest.$ac_ext
5605 LIBS=$ac_check_lib_save_LIBS
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
5608 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5609 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5610    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
5611 else
5612    WITH_THREADS="no"
5613
5614 fi
5615
5616
5617 fi
5618
5619 fi
5620
5621 if test "x$WITH_THREADS" != "xyes"; then
5622   CFLAGS=$old_CFLAGS
5623   ac_cv_header_pthread_h="no"
5624   WITH_THREADS=no
5625 else
5626
5627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5628 $as_echo_n "checking for library containing sem_init... " >&6; }
5629 if ${ac_cv_search_sem_init+:} false; then :
5630   $as_echo_n "(cached) " >&6
5631 else
5632   ac_func_search_save_LIBS=$LIBS
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h.  */
5635
5636 /* Override any GCC internal prototype to avoid an error.
5637    Use char because int might match the return type of a GCC
5638    builtin and then its argument prototype would still apply.  */
5639 #ifdef __cplusplus
5640 extern "C"
5641 #endif
5642 char sem_init ();
5643 int
5644 main ()
5645 {
5646 return sem_init ();
5647   ;
5648   return 0;
5649 }
5650 _ACEOF
5651 for ac_lib in '' pthread sem posix4 rt semaphore; do
5652   if test -z "$ac_lib"; then
5653     ac_res="none required"
5654   else
5655     ac_res=-l$ac_lib
5656     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5657   fi
5658   if ac_fn_c_try_link "$LINENO"; then :
5659   ac_cv_search_sem_init=$ac_res
5660 fi
5661 rm -f core conftest.err conftest.$ac_objext \
5662     conftest$ac_exeext
5663   if ${ac_cv_search_sem_init+:} false; then :
5664   break
5665 fi
5666 done
5667 if ${ac_cv_search_sem_init+:} false; then :
5668
5669 else
5670   ac_cv_search_sem_init=no
5671 fi
5672 rm conftest.$ac_ext
5673 LIBS=$ac_func_search_save_LIBS
5674 fi
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5676 $as_echo "$ac_cv_search_sem_init" >&6; }
5677 ac_res=$ac_cv_search_sem_init
5678 if test "$ac_res" != no; then :
5679   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5680
5681 else
5682   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
5683
5684 fi
5685
5686 fi
5687
5688 if test "x$WITH_THREADS" = "xyes"; then
5689
5690 $as_echo "#define WITH_THREADS 1" >>confdefs.h
5691
5692 fi
5693
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5695 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5696 if ${ac_cv_lib_dl_dlopen+:} false; then :
5697   $as_echo_n "(cached) " >&6
5698 else
5699   ac_check_lib_save_LIBS=$LIBS
5700 LIBS="-ldl  $LIBS"
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h.  */
5703
5704 /* Override any GCC internal prototype to avoid an error.
5705    Use char because int might match the return type of a GCC
5706    builtin and then its argument prototype would still apply.  */
5707 #ifdef __cplusplus
5708 extern "C"
5709 #endif
5710 char dlopen ();
5711 int
5712 main ()
5713 {
5714 return dlopen ();
5715   ;
5716   return 0;
5717 }
5718 _ACEOF
5719 if ac_fn_c_try_link "$LINENO"; then :
5720   ac_cv_lib_dl_dlopen=yes
5721 else
5722   ac_cv_lib_dl_dlopen=no
5723 fi
5724 rm -f core conftest.err conftest.$ac_objext \
5725     conftest$ac_exeext conftest.$ac_ext
5726 LIBS=$ac_check_lib_save_LIBS
5727 fi
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5729 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5730 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5731   cat >>confdefs.h <<_ACEOF
5732 #define HAVE_LIBDL 1
5733 _ACEOF
5734
5735   LIBS="-ldl $LIBS"
5736
5737 fi
5738
5739
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
5741 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
5742 if ${ac_cv_lib_socket_getsockname+:} false; then :
5743   $as_echo_n "(cached) " >&6
5744 else
5745   ac_check_lib_save_LIBS=$LIBS
5746 LIBS="-lsocket  $LIBS"
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h.  */
5749
5750 /* Override any GCC internal prototype to avoid an error.
5751    Use char because int might match the return type of a GCC
5752    builtin and then its argument prototype would still apply.  */
5753 #ifdef __cplusplus
5754 extern "C"
5755 #endif
5756 char getsockname ();
5757 int
5758 main ()
5759 {
5760 return getsockname ();
5761   ;
5762   return 0;
5763 }
5764 _ACEOF
5765 if ac_fn_c_try_link "$LINENO"; then :
5766   ac_cv_lib_socket_getsockname=yes
5767 else
5768   ac_cv_lib_socket_getsockname=no
5769 fi
5770 rm -f core conftest.err conftest.$ac_objext \
5771     conftest$ac_exeext conftest.$ac_ext
5772 LIBS=$ac_check_lib_save_LIBS
5773 fi
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
5775 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
5776 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
5777   cat >>confdefs.h <<_ACEOF
5778 #define HAVE_LIBSOCKET 1
5779 _ACEOF
5780
5781   LIBS="-lsocket $LIBS"
5782
5783 fi
5784
5785
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
5787 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
5788 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
5789   $as_echo_n "(cached) " >&6
5790 else
5791   ac_check_lib_save_LIBS=$LIBS
5792 LIBS="-lresolv  $LIBS"
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h.  */
5795
5796 /* Override any GCC internal prototype to avoid an error.
5797    Use char because int might match the return type of a GCC
5798    builtin and then its argument prototype would still apply.  */
5799 #ifdef __cplusplus
5800 extern "C"
5801 #endif
5802 char inet_aton ();
5803 int
5804 main ()
5805 {
5806 return inet_aton ();
5807   ;
5808   return 0;
5809 }
5810 _ACEOF
5811 if ac_fn_c_try_link "$LINENO"; then :
5812   ac_cv_lib_resolv_inet_aton=yes
5813 else
5814   ac_cv_lib_resolv_inet_aton=no
5815 fi
5816 rm -f core conftest.err conftest.$ac_objext \
5817     conftest$ac_exeext conftest.$ac_ext
5818 LIBS=$ac_check_lib_save_LIBS
5819 fi
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
5821 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
5822 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
5823   cat >>confdefs.h <<_ACEOF
5824 #define HAVE_LIBRESOLV 1
5825 _ACEOF
5826
5827   LIBS="-lresolv $LIBS"
5828
5829 fi
5830
5831
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
5833 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
5834 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   ac_check_lib_save_LIBS=$LIBS
5838 LIBS="-lnsl  $LIBS"
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h.  */
5841
5842 /* Override any GCC internal prototype to avoid an error.
5843    Use char because int might match the return type of a GCC
5844    builtin and then its argument prototype would still apply.  */
5845 #ifdef __cplusplus
5846 extern "C"
5847 #endif
5848 char inet_ntoa ();
5849 int
5850 main ()
5851 {
5852 return inet_ntoa ();
5853   ;
5854   return 0;
5855 }
5856 _ACEOF
5857 if ac_fn_c_try_link "$LINENO"; then :
5858   ac_cv_lib_nsl_inet_ntoa=yes
5859 else
5860   ac_cv_lib_nsl_inet_ntoa=no
5861 fi
5862 rm -f core conftest.err conftest.$ac_objext \
5863     conftest$ac_exeext conftest.$ac_ext
5864 LIBS=$ac_check_lib_save_LIBS
5865 fi
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
5867 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
5868 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
5869   cat >>confdefs.h <<_ACEOF
5870 #define HAVE_LIBNSL 1
5871 _ACEOF
5872
5873   LIBS="-lnsl $LIBS"
5874
5875 fi
5876
5877
5878 OPENSSL_LIBS=
5879 if test "x$WITH_OPENSSL" = xyes; then
5880   old_LIBS=$LIBS
5881   old_LDFLAGS="$LDFLAGS"
5882   if test "x$OPENSSL_LIB_DIR" != "x"; then
5883     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
5884   fi
5885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
5886 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
5887 if ${ac_cv_lib_crypto_DH_new+:} false; then :
5888   $as_echo_n "(cached) " >&6
5889 else
5890   ac_check_lib_save_LIBS=$LIBS
5891 LIBS="-lcrypto  $LIBS"
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h.  */
5894
5895 /* Override any GCC internal prototype to avoid an error.
5896    Use char because int might match the return type of a GCC
5897    builtin and then its argument prototype would still apply.  */
5898 #ifdef __cplusplus
5899 extern "C"
5900 #endif
5901 char DH_new ();
5902 int
5903 main ()
5904 {
5905 return DH_new ();
5906   ;
5907   return 0;
5908 }
5909 _ACEOF
5910 if ac_fn_c_try_link "$LINENO"; then :
5911   ac_cv_lib_crypto_DH_new=yes
5912 else
5913   ac_cv_lib_crypto_DH_new=no
5914 fi
5915 rm -f core conftest.err conftest.$ac_objext \
5916     conftest$ac_exeext conftest.$ac_ext
5917 LIBS=$ac_check_lib_save_LIBS
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
5920 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
5921 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
5922
5923         LIBS="-lcrypto $LIBS"
5924
5925 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
5926
5927         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
5928 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
5929 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   ac_check_lib_save_LIBS=$LIBS
5933 LIBS="-lssl  $LIBS"
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h.  */
5936
5937 /* Override any GCC internal prototype to avoid an error.
5938    Use char because int might match the return type of a GCC
5939    builtin and then its argument prototype would still apply.  */
5940 #ifdef __cplusplus
5941 extern "C"
5942 #endif
5943 char SSL_new ();
5944 int
5945 main ()
5946 {
5947 return SSL_new ();
5948   ;
5949   return 0;
5950 }
5951 _ACEOF
5952 if ac_fn_c_try_link "$LINENO"; then :
5953   ac_cv_lib_ssl_SSL_new=yes
5954 else
5955   ac_cv_lib_ssl_SSL_new=no
5956 fi
5957 rm -f core conftest.err conftest.$ac_objext \
5958     conftest$ac_exeext conftest.$ac_ext
5959 LIBS=$ac_check_lib_save_LIBS
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
5962 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
5963 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
5964
5965
5966 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
5967
5968                 if test "x$OPENSSL_LIB_DIR" != "x"; then
5969                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
5970                 fi
5971                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
5972
5973 fi
5974
5975
5976 fi
5977
5978   LIBS=$old_LIBS
5979   LDFLAGS="$old_LDFLAGS"
5980 fi
5981
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
5983 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
5984 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
5985   $as_echo_n "(cached) " >&6
5986 else
5987   ac_check_lib_save_LIBS=$LIBS
5988 LIBS="-lws2_32  $LIBS"
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h.  */
5991
5992 /* Override any GCC internal prototype to avoid an error.
5993    Use char because int might match the return type of a GCC
5994    builtin and then its argument prototype would still apply.  */
5995 #ifdef __cplusplus
5996 extern "C"
5997 #endif
5998 char htonl ();
5999 int
6000 main ()
6001 {
6002 return htonl ();
6003   ;
6004   return 0;
6005 }
6006 _ACEOF
6007 if ac_fn_c_try_link "$LINENO"; then :
6008   ac_cv_lib_ws2_32_htonl=yes
6009 else
6010   ac_cv_lib_ws2_32_htonl=no
6011 fi
6012 rm -f core conftest.err conftest.$ac_objext \
6013     conftest$ac_exeext conftest.$ac_ext
6014 LIBS=$ac_check_lib_save_LIBS
6015 fi
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6017 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6018 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6019   cat >>confdefs.h <<_ACEOF
6020 #define HAVE_LIBWS2_32 1
6021 _ACEOF
6022
6023   LIBS="-lws2_32 $LIBS"
6024
6025 fi
6026
6027
6028 PCAP_LIBS=
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6030 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6031 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
6032   $as_echo_n "(cached) " >&6
6033 else
6034   ac_check_lib_save_LIBS=$LIBS
6035 LIBS="-lpcap  $LIBS"
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h.  */
6038
6039 /* Override any GCC internal prototype to avoid an error.
6040    Use char because int might match the return type of a GCC
6041    builtin and then its argument prototype would still apply.  */
6042 #ifdef __cplusplus
6043 extern "C"
6044 #endif
6045 char pcap_open_live ();
6046 int
6047 main ()
6048 {
6049 return pcap_open_live ();
6050   ;
6051   return 0;
6052 }
6053 _ACEOF
6054 if ac_fn_c_try_link "$LINENO"; then :
6055   ac_cv_lib_pcap_pcap_open_live=yes
6056 else
6057   ac_cv_lib_pcap_pcap_open_live=no
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext \
6060     conftest$ac_exeext conftest.$ac_ext
6061 LIBS=$ac_check_lib_save_LIBS
6062 fi
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
6064 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
6065 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
6066    PCAP_LIBS="-lpcap"
6067
6068 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6069
6070
6071 else
6072    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
6073 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
6074 fi
6075
6076
6077
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6079 $as_echo_n "checking for a readline compatible library... " >&6; }
6080 if ${vl_cv_lib_readline+:} false; then :
6081   $as_echo_n "(cached) " >&6
6082 else
6083
6084     ORIG_LIBS="$LIBS"
6085     for readline_lib in readline edit editline; do
6086       for termcap_lib in "" termcap curses ncurses; do
6087         if test -z "$termcap_lib"; then
6088           TRY_LIB="-l$readline_lib"
6089         else
6090           TRY_LIB="-l$readline_lib -l$termcap_lib"
6091         fi
6092         LIBS="$ORIG_LIBS $TRY_LIB"
6093         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h.  */
6095
6096 /* Override any GCC internal prototype to avoid an error.
6097    Use char because int might match the return type of a GCC
6098    builtin and then its argument prototype would still apply.  */
6099 #ifdef __cplusplus
6100 extern "C"
6101 #endif
6102 char readline ();
6103 int
6104 main ()
6105 {
6106 return readline ();
6107   ;
6108   return 0;
6109 }
6110 _ACEOF
6111 if ac_fn_c_try_link "$LINENO"; then :
6112   vl_cv_lib_readline="$TRY_LIB"
6113 fi
6114 rm -f core conftest.err conftest.$ac_objext \
6115     conftest$ac_exeext conftest.$ac_ext
6116         if test -n "$vl_cv_lib_readline"; then
6117           LIBREADLINE="$TRY_LIB"
6118           break
6119         fi
6120       done
6121       if test -n "$vl_cv_lib_readline"; then
6122         break
6123       fi
6124     done
6125     if test -z "$vl_cv_lib_readline"; then
6126       vl_cv_lib_readline="no"
6127       LIBS="$ORIG_LIBS"
6128     fi
6129
6130 fi
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
6132 $as_echo "$vl_cv_lib_readline" >&6; }
6133
6134   if test "$vl_cv_lib_readline" != "no"; then
6135
6136 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
6137
6138     for ac_header in readline.h readline/readline.h
6139 do :
6140   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6141 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6143   cat >>confdefs.h <<_ACEOF
6144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6145 _ACEOF
6146
6147 fi
6148
6149 done
6150
6151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6152 $as_echo_n "checking whether readline supports history... " >&6; }
6153 if ${vl_cv_lib_readline_history+:} false; then :
6154   $as_echo_n "(cached) " >&6
6155 else
6156
6157       vl_cv_lib_readline_history="no"
6158       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h.  */
6160
6161 /* Override any GCC internal prototype to avoid an error.
6162    Use char because int might match the return type of a GCC
6163    builtin and then its argument prototype would still apply.  */
6164 #ifdef __cplusplus
6165 extern "C"
6166 #endif
6167 char add_history ();
6168 int
6169 main ()
6170 {
6171 return add_history ();
6172   ;
6173   return 0;
6174 }
6175 _ACEOF
6176 if ac_fn_c_try_link "$LINENO"; then :
6177   vl_cv_lib_readline_history="yes"
6178 fi
6179 rm -f core conftest.err conftest.$ac_objext \
6180     conftest$ac_exeext conftest.$ac_ext
6181
6182 fi
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
6184 $as_echo "$vl_cv_lib_readline_history" >&6; }
6185     if test "$vl_cv_lib_readline_history" = "yes"; then
6186
6187 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6188
6189       for ac_header in history.h readline/history.h
6190 do :
6191   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6192 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6193 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6194   cat >>confdefs.h <<_ACEOF
6195 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6196 _ACEOF
6197
6198 fi
6199
6200 done
6201
6202     fi
6203   fi
6204
6205
6206
6207
6208 case "$host" in
6209 *-interix*)
6210         CFLAGS="$CFLAGS -D_ALL_SOURCE"
6211         ;;
6212 *-darwin*)
6213         CFLAGS="$CFLAGS -DDARWIN"
6214         LIBS="-framework DirectoryService $LIBS"
6215         ;;
6216 esac
6217
6218 ac_header_dirent=no
6219 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6220   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6222 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6223 if eval \${$as_ac_Header+:} false; then :
6224   $as_echo_n "(cached) " >&6
6225 else
6226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h.  */
6228 #include <sys/types.h>
6229 #include <$ac_hdr>
6230
6231 int
6232 main ()
6233 {
6234 if ((DIR *) 0)
6235 return 0;
6236   ;
6237   return 0;
6238 }
6239 _ACEOF
6240 if ac_fn_c_try_compile "$LINENO"; then :
6241   eval "$as_ac_Header=yes"
6242 else
6243   eval "$as_ac_Header=no"
6244 fi
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246 fi
6247 eval ac_res=\$$as_ac_Header
6248                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6249 $as_echo "$ac_res" >&6; }
6250 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6251   cat >>confdefs.h <<_ACEOF
6252 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6253 _ACEOF
6254
6255 ac_header_dirent=$ac_hdr; break
6256 fi
6257
6258 done
6259 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6260 if test $ac_header_dirent = dirent.h; then
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6262 $as_echo_n "checking for library containing opendir... " >&6; }
6263 if ${ac_cv_search_opendir+:} false; then :
6264   $as_echo_n "(cached) " >&6
6265 else
6266   ac_func_search_save_LIBS=$LIBS
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h.  */
6269
6270 /* Override any GCC internal prototype to avoid an error.
6271    Use char because int might match the return type of a GCC
6272    builtin and then its argument prototype would still apply.  */
6273 #ifdef __cplusplus
6274 extern "C"
6275 #endif
6276 char opendir ();
6277 int
6278 main ()
6279 {
6280 return opendir ();
6281   ;
6282   return 0;
6283 }
6284 _ACEOF
6285 for ac_lib in '' dir; do
6286   if test -z "$ac_lib"; then
6287     ac_res="none required"
6288   else
6289     ac_res=-l$ac_lib
6290     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6291   fi
6292   if ac_fn_c_try_link "$LINENO"; then :
6293   ac_cv_search_opendir=$ac_res
6294 fi
6295 rm -f core conftest.err conftest.$ac_objext \
6296     conftest$ac_exeext
6297   if ${ac_cv_search_opendir+:} false; then :
6298   break
6299 fi
6300 done
6301 if ${ac_cv_search_opendir+:} false; then :
6302
6303 else
6304   ac_cv_search_opendir=no
6305 fi
6306 rm conftest.$ac_ext
6307 LIBS=$ac_func_search_save_LIBS
6308 fi
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6310 $as_echo "$ac_cv_search_opendir" >&6; }
6311 ac_res=$ac_cv_search_opendir
6312 if test "$ac_res" != no; then :
6313   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6314
6315 fi
6316
6317 else
6318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6319 $as_echo_n "checking for library containing opendir... " >&6; }
6320 if ${ac_cv_search_opendir+:} false; then :
6321   $as_echo_n "(cached) " >&6
6322 else
6323   ac_func_search_save_LIBS=$LIBS
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h.  */
6326
6327 /* Override any GCC internal prototype to avoid an error.
6328    Use char because int might match the return type of a GCC
6329    builtin and then its argument prototype would still apply.  */
6330 #ifdef __cplusplus
6331 extern "C"
6332 #endif
6333 char opendir ();
6334 int
6335 main ()
6336 {
6337 return opendir ();
6338   ;
6339   return 0;
6340 }
6341 _ACEOF
6342 for ac_lib in '' x; do
6343   if test -z "$ac_lib"; then
6344     ac_res="none required"
6345   else
6346     ac_res=-l$ac_lib
6347     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6348   fi
6349   if ac_fn_c_try_link "$LINENO"; then :
6350   ac_cv_search_opendir=$ac_res
6351 fi
6352 rm -f core conftest.err conftest.$ac_objext \
6353     conftest$ac_exeext
6354   if ${ac_cv_search_opendir+:} false; then :
6355   break
6356 fi
6357 done
6358 if ${ac_cv_search_opendir+:} false; then :
6359
6360 else
6361   ac_cv_search_opendir=no
6362 fi
6363 rm conftest.$ac_ext
6364 LIBS=$ac_func_search_save_LIBS
6365 fi
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6367 $as_echo "$ac_cv_search_opendir" >&6; }
6368 ac_res=$ac_cv_search_opendir
6369 if test "$ac_res" != no; then :
6370   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6371
6372 fi
6373
6374 fi
6375
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6377 $as_echo_n "checking for ANSI C header files... " >&6; }
6378 if ${ac_cv_header_stdc+:} false; then :
6379   $as_echo_n "(cached) " >&6
6380 else
6381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h.  */
6383 #include <stdlib.h>
6384 #include <stdarg.h>
6385 #include <string.h>
6386 #include <float.h>
6387
6388 int
6389 main ()
6390 {
6391
6392   ;
6393   return 0;
6394 }
6395 _ACEOF
6396 if ac_fn_c_try_compile "$LINENO"; then :
6397   ac_cv_header_stdc=yes
6398 else
6399   ac_cv_header_stdc=no
6400 fi
6401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402
6403 if test $ac_cv_header_stdc = yes; then
6404   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h.  */
6407 #include <string.h>
6408
6409 _ACEOF
6410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6411   $EGREP "memchr" >/dev/null 2>&1; then :
6412
6413 else
6414   ac_cv_header_stdc=no
6415 fi
6416 rm -f conftest*
6417
6418 fi
6419
6420 if test $ac_cv_header_stdc = yes; then
6421   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h.  */
6424 #include <stdlib.h>
6425
6426 _ACEOF
6427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6428   $EGREP "free" >/dev/null 2>&1; then :
6429
6430 else
6431   ac_cv_header_stdc=no
6432 fi
6433 rm -f conftest*
6434
6435 fi
6436
6437 if test $ac_cv_header_stdc = yes; then
6438   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6439   if test "$cross_compiling" = yes; then :
6440   :
6441 else
6442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h.  */
6444 #include <ctype.h>
6445 #include <stdlib.h>
6446 #if ((' ' & 0x0FF) == 0x020)
6447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6449 #else
6450 # define ISLOWER(c) \
6451                    (('a' <= (c) && (c) <= 'i') \
6452                      || ('j' <= (c) && (c) <= 'r') \
6453                      || ('s' <= (c) && (c) <= 'z'))
6454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6455 #endif
6456
6457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6458 int
6459 main ()
6460 {
6461   int i;
6462   for (i = 0; i < 256; i++)
6463     if (XOR (islower (i), ISLOWER (i))
6464         || toupper (i) != TOUPPER (i))
6465       return 2;
6466   return 0;
6467 }
6468 _ACEOF
6469 if ac_fn_c_try_run "$LINENO"; then :
6470
6471 else
6472   ac_cv_header_stdc=no
6473 fi
6474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6475   conftest.$ac_objext conftest.beam conftest.$ac_ext
6476 fi
6477
6478 fi
6479 fi
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6481 $as_echo "$ac_cv_header_stdc" >&6; }
6482 if test $ac_cv_header_stdc = yes; then
6483
6484 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6485
6486 fi
6487
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6489 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6490 if ${ac_cv_header_time+:} false; then :
6491   $as_echo_n "(cached) " >&6
6492 else
6493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h.  */
6495 #include <sys/types.h>
6496 #include <sys/time.h>
6497 #include <time.h>
6498
6499 int
6500 main ()
6501 {
6502 if ((struct tm *) 0)
6503 return 0;
6504   ;
6505   return 0;
6506 }
6507 _ACEOF
6508 if ac_fn_c_try_compile "$LINENO"; then :
6509   ac_cv_header_time=yes
6510 else
6511   ac_cv_header_time=no
6512 fi
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 fi
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6516 $as_echo "$ac_cv_header_time" >&6; }
6517 if test $ac_cv_header_time = yes; then
6518
6519 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6520
6521 fi
6522
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6524 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6525 if ${ac_cv_header_sys_wait_h+:} false; then :
6526   $as_echo_n "(cached) " >&6
6527 else
6528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h.  */
6530 #include <sys/types.h>
6531 #include <sys/wait.h>
6532 #ifndef WEXITSTATUS
6533 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6534 #endif
6535 #ifndef WIFEXITED
6536 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6537 #endif
6538
6539 int
6540 main ()
6541 {
6542   int s;
6543   wait (&s);
6544   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6545   ;
6546   return 0;
6547 }
6548 _ACEOF
6549 if ac_fn_c_try_compile "$LINENO"; then :
6550   ac_cv_header_sys_wait_h=yes
6551 else
6552   ac_cv_header_sys_wait_h=no
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 fi
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6557 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6558 if test $ac_cv_header_sys_wait_h = yes; then
6559
6560 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6561
6562 fi
6563
6564
6565 for ac_header in \
6566         dlfcn.h \
6567         unistd.h \
6568         crypt.h \
6569         errno.h \
6570         resource.h \
6571         sys/resource.h \
6572         getopt.h \
6573         malloc.h \
6574         utmp.h \
6575         utmpx.h \
6576         signal.h \
6577         sys/select.h \
6578         syslog.h \
6579         inttypes.h \
6580         stdint.h \
6581         stdio.h \
6582         netdb.h \
6583         semaphore.h \
6584         arpa/inet.h \
6585         netinet/in.h \
6586         sys/types.h \
6587         sys/socket.h \
6588         winsock.h \
6589         utime.h \
6590         sys/time.h \
6591         sys/wait.h \
6592         sys/security.h \
6593         fcntl.h \
6594         sys/fcntl.h \
6595         sys/prctl.h \
6596         sys/un.h \
6597         glob.h \
6598         prot.h \
6599         pwd.h \
6600         grp.h \
6601         stddef.h \
6602         fnmatch.h \
6603         sia.h \
6604         siad.h
6605
6606 do :
6607   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6608 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6610   cat >>confdefs.h <<_ACEOF
6611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6612 _ACEOF
6613
6614 fi
6615
6616 done
6617
6618
6619 for ac_header in net/if.h
6620 do :
6621   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
6622 # include <sys/socket.h>
6623 # endif
6624
6625 "
6626 if test "x$ac_cv_header_net_if_h" = xyes; then :
6627   cat >>confdefs.h <<_ACEOF
6628 #define HAVE_NET_IF_H 1
6629 _ACEOF
6630
6631 fi
6632
6633 done
6634
6635
6636 REGEX=no
6637 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
6638 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
6639
6640 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
6641
6642 fi
6643
6644
6645 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
6646
6647 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
6648
6649   REGEX_EXTENDED=yes
6650   REGEX_PCRE=yes
6651   REGEX=yes
6652   LIBS="$LIBS -lpcreposix"
6653 else
6654
6655 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
6656 if test "x$ac_cv_header_regex_h" = xyes; then :
6657
6658 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
6659
6660 fi
6661
6662
6663 if test "x$ac_cv_header_regex_h" = "xyes"; then
6664   REGEX_EXTENDED=no
6665   REGEX_PCRE=no
6666   REGEX=yes
6667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h.  */
6669 #include <regex.h>
6670      #ifdef REG_EXTENDED
6671        yes
6672      #endif
6673
6674 _ACEOF
6675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6676   $EGREP "yes" >/dev/null 2>&1; then :
6677
6678 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
6679  REGEX_EXTENDED=yes
6680 fi
6681 rm -f conftest*
6682
6683 fi
6684 fi
6685
6686
6687
6688
6689
6690 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6691 then
6692
6693 $as_echo "#define OSFC2 /**/" >>confdefs.h
6694
6695 fi
6696
6697 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6698 then
6699
6700 $as_echo "#define OSFSIA /**/" >>confdefs.h
6701
6702 fi
6703
6704 OPENSSL_INCLUDE="-DNO_OPENSSL"
6705 if test "x$WITH_OPENSSL" = xyes; then
6706   if test "x$OPENSSL_LIBS" = "x"; then
6707     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
6708 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
6709   else
6710     old_CPPFLAGS=$CPPFLAGS
6711     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6712         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
6713     fi
6714         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
6715     for ac_header in \
6716         openssl/ssl.h \
6717         openssl/crypto.h \
6718         openssl/err.h \
6719         openssl/evp.h \
6720         openssl/md5.h \
6721         openssl/md4.h \
6722         openssl/sha.h \
6723         openssl/ocsp.h \
6724         openssl/engine.h
6725 do :
6726   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6727 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6728 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6729   cat >>confdefs.h <<_ACEOF
6730 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6731 _ACEOF
6732
6733 else
6734   OPENSSL_LIBS=
6735
6736 fi
6737
6738 done
6739
6740     if test "x$OPENSSL_LIBS" != "x"; then
6741         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
6742 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
6743         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h.  */
6745 #include <openssl/crypto.h>
6746              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
6747              yes
6748              #endif
6749
6750 _ACEOF
6751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6752   $EGREP "yes" >/dev/null 2>&1; then :
6753   goodssl="yes"
6754 fi
6755 rm -f conftest*
6756
6757         if test "x$goodssl" != "xyes"; then
6758             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6760             OPENSSL_LIBS=
6761         else
6762             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6763 $as_echo "yes" >&6; }
6764             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6765                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
6766             else
6767                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
6768             fi
6769         fi
6770     fi
6771     CPPFLAGS=$old_CPPFLAGS
6772   fi
6773 fi
6774
6775
6776 export OPENSSL_LIBS
6777
6778 if test "x$PCAP_LIBS" = x; then
6779     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
6780 $as_echo "$as_me: skipping test for pcap.h." >&6;}
6781 else
6782     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
6783 if test "x$ac_cv_header_pcap_h" = xyes; then :
6784
6785 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
6786
6787 else
6788    PCAP_LIBS=
6789         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
6790 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
6791
6792 fi
6793
6794
6795
6796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
6797 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
6798 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
6799   $as_echo_n "(cached) " >&6
6800 else
6801   ac_check_lib_save_LIBS=$LIBS
6802 LIBS="-lpcap  $LIBS"
6803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h.  */
6805
6806 /* Override any GCC internal prototype to avoid an error.
6807    Use char because int might match the return type of a GCC
6808    builtin and then its argument prototype would still apply.  */
6809 #ifdef __cplusplus
6810 extern "C"
6811 #endif
6812 char pcap_fopen_offline ();
6813 int
6814 main ()
6815 {
6816 return pcap_fopen_offline ();
6817   ;
6818   return 0;
6819 }
6820 _ACEOF
6821 if ac_fn_c_try_link "$LINENO"; then :
6822   ac_cv_lib_pcap_pcap_fopen_offline=yes
6823 else
6824   ac_cv_lib_pcap_pcap_fopen_offline=no
6825 fi
6826 rm -f core conftest.err conftest.$ac_objext \
6827     conftest$ac_exeext conftest.$ac_ext
6828 LIBS=$ac_check_lib_save_LIBS
6829 fi
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
6831 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
6832 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
6833
6834 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
6835
6836
6837 fi
6838
6839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
6840 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
6841 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
6842   $as_echo_n "(cached) " >&6
6843 else
6844   ac_check_lib_save_LIBS=$LIBS
6845 LIBS="-lpcap  $LIBS"
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h.  */
6848
6849 /* Override any GCC internal prototype to avoid an error.
6850    Use char because int might match the return type of a GCC
6851    builtin and then its argument prototype would still apply.  */
6852 #ifdef __cplusplus
6853 extern "C"
6854 #endif
6855 char pcap_dump_fopen ();
6856 int
6857 main ()
6858 {
6859 return pcap_dump_fopen ();
6860   ;
6861   return 0;
6862 }
6863 _ACEOF
6864 if ac_fn_c_try_link "$LINENO"; then :
6865   ac_cv_lib_pcap_pcap_dump_fopen=yes
6866 else
6867   ac_cv_lib_pcap_pcap_dump_fopen=no
6868 fi
6869 rm -f core conftest.err conftest.$ac_objext \
6870     conftest$ac_exeext conftest.$ac_ext
6871 LIBS=$ac_check_lib_save_LIBS
6872 fi
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
6874 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
6875 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
6876
6877 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
6878
6879
6880 fi
6881
6882 fi
6883
6884
6885
6886 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6887 if test "x$ac_cv_type_off_t" = xyes; then :
6888
6889 else
6890
6891 cat >>confdefs.h <<_ACEOF
6892 #define off_t long int
6893 _ACEOF
6894
6895 fi
6896
6897 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6898 if test "x$ac_cv_type_pid_t" = xyes; then :
6899
6900 else
6901
6902 cat >>confdefs.h <<_ACEOF
6903 #define pid_t int
6904 _ACEOF
6905
6906 fi
6907
6908 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6909 if test "x$ac_cv_type_size_t" = xyes; then :
6910
6911 else
6912
6913 cat >>confdefs.h <<_ACEOF
6914 #define size_t unsigned int
6915 _ACEOF
6916
6917 fi
6918
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6920 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6921 if ${ac_cv_type_uid_t+:} false; then :
6922   $as_echo_n "(cached) " >&6
6923 else
6924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h.  */
6926 #include <sys/types.h>
6927
6928 _ACEOF
6929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6930   $EGREP "uid_t" >/dev/null 2>&1; then :
6931   ac_cv_type_uid_t=yes
6932 else
6933   ac_cv_type_uid_t=no
6934 fi
6935 rm -f conftest*
6936
6937 fi
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6939 $as_echo "$ac_cv_type_uid_t" >&6; }
6940 if test $ac_cv_type_uid_t = no; then
6941
6942 $as_echo "#define uid_t int" >>confdefs.h
6943
6944
6945 $as_echo "#define gid_t int" >>confdefs.h
6946
6947 fi
6948
6949
6950
6951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6952 $as_echo_n "checking for socklen_t... " >&6; }
6953 if ${ac_cv_type_socklen_t+:} false; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956    ac_cv_type_socklen_t=no
6957       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h.  */
6959 #ifdef HAVE_SYS_TYPES_H
6960 #include <sys/types.h>
6961 #endif
6962 #ifdef HAVE_SYS_SOCKET_H
6963 #include <sys/socket.h>
6964 #endif
6965
6966 int
6967 main ()
6968 {
6969 socklen_t foo
6970   ;
6971   return 0;
6972 }
6973 _ACEOF
6974 if ac_fn_c_try_compile "$LINENO"; then :
6975   ac_cv_type_socklen_t=yes
6976 fi
6977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978
6979
6980 fi
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
6982 $as_echo "$ac_cv_type_socklen_t" >&6; }
6983
6984   if test "$ac_cv_type_socklen_t" != "yes"; then
6985
6986 $as_echo "#define socklen_t int" >>confdefs.h
6987
6988   fi
6989
6990
6991
6992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
6993 $as_echo_n "checking for uint8_t... " >&6; }
6994 if ${ac_cv_type_uint8_t+:} false; then :
6995   $as_echo_n "(cached) " >&6
6996 else
6997    ac_cv_type_uint8_t=no
6998       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h.  */
7000 #ifdef HAVE_INTTYPES_H
7001 #include <inttypes.h>
7002 #endif
7003 #ifdef HAVE_STDINT_H
7004 #include <stdint.h>
7005 #endif
7006
7007 int
7008 main ()
7009 {
7010 uint8_t foo
7011   ;
7012   return 0;
7013 }
7014 _ACEOF
7015 if ac_fn_c_try_compile "$LINENO"; then :
7016   ac_cv_type_uint8_t=yes
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019
7020
7021 fi
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
7023 $as_echo "$ac_cv_type_uint8_t" >&6; }
7024
7025   if test "$ac_cv_type_uint8_t" != "yes"; then
7026
7027 $as_echo "#define uint8_t unsigned char" >>confdefs.h
7028
7029   fi
7030
7031
7032
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
7034 $as_echo_n "checking for uint16_t... " >&6; }
7035 if ${ac_cv_type_uint16_t+:} false; then :
7036   $as_echo_n "(cached) " >&6
7037 else
7038    ac_cv_type_uint16_t=no
7039       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h.  */
7041 #ifdef HAVE_INTTYPES_H
7042 #include <inttypes.h>
7043 #endif
7044 #ifdef HAVE_STDINT_H
7045 #include <stdint.h>
7046 #endif
7047
7048 int
7049 main ()
7050 {
7051 uint16_t foo
7052   ;
7053   return 0;
7054 }
7055 _ACEOF
7056 if ac_fn_c_try_compile "$LINENO"; then :
7057   ac_cv_type_uint16_t=yes
7058 fi
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060
7061
7062 fi
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
7064 $as_echo "$ac_cv_type_uint16_t" >&6; }
7065
7066   if test "$ac_cv_type_uint16_t" != "yes"; then
7067
7068 $as_echo "#define uint16_t unsigned short" >>confdefs.h
7069
7070   fi
7071
7072
7073
7074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
7075 $as_echo_n "checking for uint32_t... " >&6; }
7076 if ${ac_cv_type_uint32_t+:} false; then :
7077   $as_echo_n "(cached) " >&6
7078 else
7079    ac_cv_type_uint32_t=no
7080       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h.  */
7082 #ifdef HAVE_INTTYPES_H
7083 #include <inttypes.h>
7084 #endif
7085 #ifdef HAVE_STDINT_H
7086 #include <stdint.h>
7087 #endif
7088
7089 int
7090 main ()
7091 {
7092 uint32_t foo
7093   ;
7094   return 0;
7095 }
7096 _ACEOF
7097 if ac_fn_c_try_compile "$LINENO"; then :
7098   ac_cv_type_uint32_t=yes
7099 fi
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101
7102
7103 fi
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
7105 $as_echo "$ac_cv_type_uint32_t" >&6; }
7106
7107   if test "$ac_cv_type_uint32_t" != "yes"; then
7108
7109 $as_echo "#define uint32_t unsigned int" >>confdefs.h
7110
7111   fi
7112
7113
7114 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
7115 #ifdef HAVE_NETINET_IN_H
7116 #include <netinet/in.h>
7117 #endif
7118
7119 "
7120 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
7121
7122 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7123
7124 fi
7125
7126
7127 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7128 #ifdef HAVE_NETINET_IN_H
7129 #include <netinet/in.h>
7130 #endif
7131 #ifdef HAVE_SYS_SOCKET_H
7132 #include <sys/socket.h>
7133 #endif
7134
7135 "
7136 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7137
7138 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
7139
7140 fi
7141
7142
7143 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7144 #ifdef HAVE_NETINET_IN_H
7145 #include <netinet/in.h>
7146 #endif
7147
7148 "
7149 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7150
7151 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7152
7153 fi
7154
7155
7156 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
7157 #ifdef HAVE_SYS_TYPES_H
7158 #include <sys/types.h>
7159 #endif
7160 #ifdef HAVE_SYS_SOCKET_H
7161 #include <sys/socket.h>
7162 #endif
7163 #ifdef HAVE_NETDB_H
7164 #include <netdb.h>
7165 #endif
7166
7167 "
7168 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
7169
7170 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7171
7172 fi
7173
7174
7175 for ac_func in \
7176         getopt_long \
7177         fcntl \
7178         strsignal \
7179         sigaction \
7180         sigprocmask \
7181         pthread_sigmask \
7182         snprintf \
7183         vsnprintf \
7184         setsid \
7185         strncasecmp \
7186         strcasecmp \
7187         localtime_r \
7188         ctime_r \
7189         gmtime_r \
7190         strsep \
7191         inet_aton \
7192         inet_pton \
7193         inet_ntop \
7194         setlinebuf \
7195         setvbuf \
7196         getusershell \
7197         initgroups \
7198         getaddrinfo \
7199         getnameinfo \
7200         closefrom \
7201         gettimeofday \
7202         getpeereid \
7203         setuid \
7204         setresuid \
7205         getresuid \
7206         strlcat \
7207         strlcpy
7208
7209 do :
7210   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7212 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7213   cat >>confdefs.h <<_ACEOF
7214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7215 _ACEOF
7216
7217 fi
7218 done
7219
7220
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7222 $as_echo_n "checking return type of signal handlers... " >&6; }
7223 if ${ac_cv_type_signal+:} false; then :
7224   $as_echo_n "(cached) " >&6
7225 else
7226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h.  */
7228 #include <sys/types.h>
7229 #include <signal.h>
7230
7231 int
7232 main ()
7233 {
7234 return *(signal (0, 0)) (0) == 1;
7235   ;
7236   return 0;
7237 }
7238 _ACEOF
7239 if ac_fn_c_try_compile "$LINENO"; then :
7240   ac_cv_type_signal=int
7241 else
7242   ac_cv_type_signal=void
7243 fi
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 fi
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7247 $as_echo "$ac_cv_type_signal" >&6; }
7248
7249 cat >>confdefs.h <<_ACEOF
7250 #define RETSIGTYPE $ac_cv_type_signal
7251 _ACEOF
7252
7253
7254
7255 if test "x$ac_cv_header_utmpx_h" = "xyes"
7256 then
7257
7258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7259 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7260
7261
7262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h.  */
7264
7265 #include <utmpx.h>
7266 #ifdef HAVE_STDDEF_H
7267 #include <stddef.h>
7268 #endif
7269 #ifndef offsetof
7270 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7271 #endif
7272
7273 int
7274 main ()
7275 {
7276  int foo = offsetof(struct utmpx, ut_xtime)
7277   ;
7278   return 0;
7279 }
7280 _ACEOF
7281 if ac_fn_c_try_compile "$LINENO"; then :
7282   has_element=" "
7283 else
7284   has_element=
7285 fi
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287
7288   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7289   if test "x$has_element" != "x"; then
7290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7291 $as_echo "yes" >&6; }
7292     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7293   else
7294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7297  fi
7298
7299  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
7300  then
7301
7302 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7303
7304  fi
7305 fi
7306
7307
7308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7309 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7310
7311
7312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h.  */
7314
7315 #include <netinet/in.h>
7316 #ifdef HAVE_STDDEF_H
7317 #include <stddef.h>
7318 #endif
7319 #ifndef offsetof
7320 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7321 #endif
7322
7323 int
7324 main ()
7325 {
7326  int foo = offsetof(struct in_pktinfo, ipi_addr)
7327   ;
7328   return 0;
7329 }
7330 _ACEOF
7331 if ac_fn_c_try_compile "$LINENO"; then :
7332   has_element=" "
7333 else
7334   has_element=
7335 fi
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337
7338   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7339   if test "x$has_element" != "x"; then
7340     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341 $as_echo "yes" >&6; }
7342     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7343   else
7344     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7347  fi
7348
7349 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
7350 then
7351
7352 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7353
7354 fi
7355
7356
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7358 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7359
7360
7361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h.  */
7363
7364 #include <netinet/in.h>
7365 #ifdef HAVE_STDDEF_H
7366 #include <stddef.h>
7367 #endif
7368 #ifndef offsetof
7369 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7370 #endif
7371
7372 int
7373 main ()
7374 {
7375  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7376   ;
7377   return 0;
7378 }
7379 _ACEOF
7380 if ac_fn_c_try_compile "$LINENO"; then :
7381   has_element=" "
7382 else
7383   has_element=
7384 fi
7385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386
7387   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7388   if test "x$has_element" != "x"; then
7389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7390 $as_echo "yes" >&6; }
7391     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7392   else
7393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
7396  fi
7397
7398 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
7399 then
7400
7401 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
7402
7403 fi
7404
7405
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7407 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7408 if ${ac_cv_c_const+:} false; then :
7409   $as_echo_n "(cached) " >&6
7410 else
7411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h.  */
7413
7414 int
7415 main ()
7416 {
7417
7418 #ifndef __cplusplus
7419   /* Ultrix mips cc rejects this sort of thing.  */
7420   typedef int charset[2];
7421   const charset cs = { 0, 0 };
7422   /* SunOS 4.1.1 cc rejects this.  */
7423   char const *const *pcpcc;
7424   char **ppc;
7425   /* NEC SVR4.0.2 mips cc rejects this.  */
7426   struct point {int x, y;};
7427   static struct point const zero = {0,0};
7428   /* AIX XL C 1.02.0.0 rejects this.
7429      It does not let you subtract one const X* pointer from another in
7430      an arm of an if-expression whose if-part is not a constant
7431      expression */
7432   const char *g = "string";
7433   pcpcc = &g + (g ? g-g : 0);
7434   /* HPUX 7.0 cc rejects these. */
7435   ++pcpcc;
7436   ppc = (char**) pcpcc;
7437   pcpcc = (char const *const *) ppc;
7438   { /* SCO 3.2v4 cc rejects this sort of thing.  */
7439     char tx;
7440     char *t = &tx;
7441     char const *s = 0 ? (char *) 0 : (char const *) 0;
7442
7443     *t++ = 0;
7444     if (s) return 0;
7445   }
7446   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7447     int x[] = {25, 17};
7448     const int *foo = &x[0];
7449     ++foo;
7450   }
7451   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7452     typedef const int *iptr;
7453     iptr p = 0;
7454     ++p;
7455   }
7456   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7457        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7458     struct s { int j; const int *ap[3]; } bx;
7459     struct s *b = &bx; b->j = 5;
7460   }
7461   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7462     const int foo = 10;
7463     if (!foo) return 0;
7464   }
7465   return !cs[0] && !zero.x;
7466 #endif
7467
7468   ;
7469   return 0;
7470 }
7471 _ACEOF
7472 if ac_fn_c_try_compile "$LINENO"; then :
7473   ac_cv_c_const=yes
7474 else
7475   ac_cv_c_const=no
7476 fi
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7480 $as_echo "$ac_cv_c_const" >&6; }
7481 if test $ac_cv_c_const = no; then
7482
7483 $as_echo "#define const /**/" >>confdefs.h
7484
7485 fi
7486
7487
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
7489 $as_echo_n "checking type of OS... " >&6; }
7490 OS=`uname -s`
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
7492 $as_echo "$OS" >&6; }
7493 if test "$OS" = "OS/2"; then
7494         LIBPREFIX=
7495 else
7496         LIBPREFIX=lib
7497 fi
7498
7499
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
7501 $as_echo_n "checking for developer gcc flags... " >&6; }
7502
7503
7504 if test "x$developer" = "xyes"; then
7505   if test "x$GCC" = "xyes"; then
7506     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"
7507     CFLAGS="$CFLAGS $devflags"
7508     INSTALLSTRIP=""
7509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
7510 $as_echo "yes.  Using $devflags" >&6; }
7511   fi
7512
7513   if test "x$EXPERIMENTAL" != "xno"; then
7514     EXPERIMENTAL=yes
7515   fi
7516 else
7517   devflags=""
7518   CFLAGS="$CFLAGS -DNDEBUG"
7519   INSTALLSTRIP=""
7520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
7521 $as_echo "no." >&6; }
7522 fi
7523
7524 export EXPERIMENTAL
7525
7526 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
7527   RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
7528
7529 cat >>confdefs.h <<_ACEOF
7530 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
7531 _ACEOF
7532
7533 fi
7534
7535
7536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
7537 $as_echo_n "checking for TLS... " >&6; }
7538     if test "$cross_compiling" = yes; then :
7539   have_tls=no
7540 else
7541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h.  */
7543  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
7544 _ACEOF
7545 if ac_fn_c_try_run "$LINENO"; then :
7546   have_tls=yes
7547 else
7548   have_tls=no
7549 fi
7550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7551   conftest.$ac_objext conftest.beam conftest.$ac_ext
7552 fi
7553
7554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
7555 $as_echo "$have_tls" >&6; }
7556     if test "$have_tls" = "yes"; then
7557
7558 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
7559
7560     fi
7561
7562
7563
7564 talloc_include_dir=
7565
7566 # Check whether --with-talloc-include-dir was given.
7567 if test "${with_talloc_include_dir+set}" = set; then :
7568   withval=$with_talloc_include_dir; case "$withval" in
7569             no)
7570                 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
7571             ;;
7572                 yes)
7573             ;;
7574             *)
7575                 talloc_include_dir="$withval"
7576             ;;
7577         esac
7578 fi
7579
7580
7581
7582 smart_try_dir="$talloc_include_dir"
7583
7584
7585 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7586 old_CFLAGS="$CFLAGS"
7587 smart_include=
7588 smart_include_dir=
7589
7590 if test "x$smart_try_dir" != "x"; then
7591   for try in $smart_try_dir; do
7592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7593 $as_echo_n "checking for talloc.h in $try... " >&6; }
7594     CFLAGS="$old_CFLAGS -isystem $try"
7595     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h.  */
7597
7598                     #include <talloc.h>
7599 int
7600 main ()
7601 {
7602 int a = 1;
7603   ;
7604   return 0;
7605 }
7606 _ACEOF
7607 if ac_fn_c_try_compile "$LINENO"; then :
7608
7609                      smart_include="-isystem $try"
7610                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7611 $as_echo "yes" >&6; }
7612                      break
7613
7614 else
7615
7616                      smart_include=
7617                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619
7620 fi
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622   done
7623   CFLAGS="$old_CFLAGS"
7624 fi
7625
7626 if test "x$smart_include" = "x"; then
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7628 $as_echo_n "checking for talloc.h... " >&6; }
7629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h.  */
7631
7632                   #include <talloc.h>
7633 int
7634 main ()
7635 {
7636 int a = 1;
7637   ;
7638   return 0;
7639 }
7640 _ACEOF
7641 if ac_fn_c_try_compile "$LINENO"; then :
7642
7643                    smart_include=" "
7644                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7645 $as_echo "yes" >&6; }
7646                    break
7647
7648 else
7649
7650                    smart_include=
7651                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7653
7654 fi
7655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7656 fi
7657
7658 if test "x$smart_include" = "x"; then
7659
7660
7661 if test "x$LOCATE" != "x"; then
7662         DIRS=
7663   file=talloc.h
7664
7665   for x in `${LOCATE} $file 2>/dev/null`; do
7666                                         base=`echo $x | sed "s%/${file}%%"`
7667     if test "x$x" = "x$base"; then
7668       continue;
7669     fi
7670
7671     dir=`${DIRNAME} $x 2>/dev/null`
7672                 exclude=`echo ${dir} | ${GREP} /home`
7673     if test "x$exclude" != "x"; then
7674       continue
7675     fi
7676
7677                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7678     if test "x$already" = "x"; then
7679       DIRS="$DIRS $dir"
7680     fi
7681   done
7682 fi
7683
7684 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7685
7686   for try in $smart_include_dir /usr/local/include /opt/include; do
7687     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7688 $as_echo_n "checking for talloc.h in $try... " >&6; }
7689     CFLAGS="$old_CFLAGS -isystem $try"
7690     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h.  */
7692
7693                     #include <talloc.h>
7694 int
7695 main ()
7696 {
7697 int a = 1;
7698   ;
7699   return 0;
7700 }
7701 _ACEOF
7702 if ac_fn_c_try_compile "$LINENO"; then :
7703
7704                      smart_include="-isystem $try"
7705                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7706 $as_echo "yes" >&6; }
7707                      break
7708
7709 else
7710
7711                      smart_include=
7712                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7714
7715 fi
7716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717   done
7718   CFLAGS="$old_CFLAGS"
7719 fi
7720
7721 if test "x$smart_include" != "x"; then
7722   eval "ac_cv_header_$ac_safe=yes"
7723   CFLAGS="$old_CFLAGS $smart_include"
7724   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
7725 fi
7726
7727 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7728         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7729 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7730         as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7731 else
7732         INCLUDE="${SMART_CFLAGS} ${INCLUDE}"
7733         LIBS="-ltalloc ${LIBS}"
7734 fi
7735
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7737 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7738 if ${ac_cv_lib_crypt_crypt+:} false; then :
7739   $as_echo_n "(cached) " >&6
7740 else
7741   ac_check_lib_save_LIBS=$LIBS
7742 LIBS="-lcrypt  $LIBS"
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h.  */
7745
7746 /* Override any GCC internal prototype to avoid an error.
7747    Use char because int might match the return type of a GCC
7748    builtin and then its argument prototype would still apply.  */
7749 #ifdef __cplusplus
7750 extern "C"
7751 #endif
7752 char crypt ();
7753 int
7754 main ()
7755 {
7756 return crypt ();
7757   ;
7758   return 0;
7759 }
7760 _ACEOF
7761 if ac_fn_c_try_link "$LINENO"; then :
7762   ac_cv_lib_crypt_crypt=yes
7763 else
7764   ac_cv_lib_crypt_crypt=no
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext \
7767     conftest$ac_exeext conftest.$ac_ext
7768 LIBS=$ac_check_lib_save_LIBS
7769 fi
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7771 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7772 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
7773   CRYPTLIB="-lcrypt"
7774
7775 fi
7776
7777 if test "$CRYPTLIB" != ""; then
7778
7779 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
7780
7781 else
7782   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
7783 if test "x$ac_cv_func_crypt" = xyes; then :
7784
7785 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
7786
7787 fi
7788
7789 fi
7790
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
7792 $as_echo_n "checking for setkey in -lcipher... " >&6; }
7793 if ${ac_cv_lib_cipher_setkey+:} false; then :
7794   $as_echo_n "(cached) " >&6
7795 else
7796   ac_check_lib_save_LIBS=$LIBS
7797 LIBS="-lcipher  $LIBS"
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h.  */
7800
7801 /* Override any GCC internal prototype to avoid an error.
7802    Use char because int might match the return type of a GCC
7803    builtin and then its argument prototype would still apply.  */
7804 #ifdef __cplusplus
7805 extern "C"
7806 #endif
7807 char setkey ();
7808 int
7809 main ()
7810 {
7811 return setkey ();
7812   ;
7813   return 0;
7814 }
7815 _ACEOF
7816 if ac_fn_c_try_link "$LINENO"; then :
7817   ac_cv_lib_cipher_setkey=yes
7818 else
7819   ac_cv_lib_cipher_setkey=no
7820 fi
7821 rm -f core conftest.err conftest.$ac_objext \
7822     conftest$ac_exeext conftest.$ac_ext
7823 LIBS=$ac_check_lib_save_LIBS
7824 fi
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
7826 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
7827 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
7828   CRYPTLIB="${CRYPTLIB} -lcipher"
7829
7830 fi
7831
7832
7833
7834
7835 $as_echo "#define GNUSTYLE 1" >>confdefs.h
7836
7837
7838 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
7839
7840
7841 $as_echo "#define BSDSTYLE 3" >>confdefs.h
7842
7843 gethostbyaddrrstyle=""
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
7845 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
7846 case "$host" in
7847 *-freebsd*)
7848         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
7849 #ifdef HAVE_NETDB_H
7850 #include <netdb.h>
7851 #endif
7852
7853 "
7854 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
7855   ac_have_decl=1
7856 else
7857   ac_have_decl=0
7858 fi
7859
7860 cat >>confdefs.h <<_ACEOF
7861 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
7862 _ACEOF
7863 if test $ac_have_decl = 1; then :
7864
7865 else
7866
7867
7868 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
7869
7870                 gethostbyaddrrstyle=BSD
7871                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
7872 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
7873
7874 fi
7875
7876         ;;
7877 esac
7878 if test "x$gethostbyaddrrstyle" = "x"; then
7879         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h.  */
7881
7882 #include <stdio.h>
7883 #include <netdb.h>
7884
7885 int
7886 main ()
7887 {
7888  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
7889   ;
7890   return 0;
7891 }
7892 _ACEOF
7893 if ac_fn_c_try_link "$LINENO"; then :
7894
7895
7896 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
7897
7898         gethostbyaddrrstyle=GNU
7899
7900 fi
7901 rm -f core conftest.err conftest.$ac_objext \
7902     conftest$ac_exeext conftest.$ac_ext
7903 fi
7904 if test "x$gethostbyaddrrstyle" = "x"; then
7905         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h.  */
7907
7908 #include <stdio.h>
7909 #include <netdb.h>
7910
7911 int
7912 main ()
7913 {
7914  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
7915   ;
7916   return 0;
7917 }
7918 _ACEOF
7919 if ac_fn_c_try_link "$LINENO"; then :
7920
7921
7922 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
7923
7924                 gethostbyaddrrstyle=SYSV
7925
7926 fi
7927 rm -f core conftest.err conftest.$ac_objext \
7928     conftest$ac_exeext conftest.$ac_ext
7929 fi
7930 if test "x$gethostbyaddrrstyle" = "x"; then
7931         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h.  */
7933
7934 #include <stdio.h>
7935 #include <netdb.h>
7936
7937 int
7938 main ()
7939 {
7940  gethostbyaddr(NULL, 0, 0)
7941   ;
7942   return 0;
7943 }
7944 _ACEOF
7945 if ac_fn_c_try_link "$LINENO"; then :
7946
7947
7948 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
7949
7950                 gethostbyaddrrstyle=BSD
7951
7952 fi
7953 rm -f core conftest.err conftest.$ac_objext \
7954     conftest$ac_exeext conftest.$ac_ext
7955 fi
7956
7957 if test "x$gethostbyaddrrstyle" = "x"; then
7958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
7959 $as_echo "none!  It must not exist, here." >&6; }
7960 else
7961         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
7962 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
7963 fi
7964
7965 if test "x$gethostbyaddrrstyle" = "xBSD"; then
7966         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
7967 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
7968 fi
7969
7970 gethostbynamerstyle=""
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
7972 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h.  */
7975
7976 #include <stdio.h>
7977 #include <netdb.h>
7978
7979 int
7980 main ()
7981 {
7982  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
7983   ;
7984   return 0;
7985 }
7986 _ACEOF
7987 if ac_fn_c_try_link "$LINENO"; then :
7988
7989
7990 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
7991
7992         gethostbynamerstyle=GNU
7993
7994 fi
7995 rm -f core conftest.err conftest.$ac_objext \
7996     conftest$ac_exeext conftest.$ac_ext
7997 if test "x$gethostbynamerstyle" = "x"; then
7998         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h.  */
8000
8001 #include <stdio.h>
8002 #include <netdb.h>
8003
8004 int
8005 main ()
8006 {
8007  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
8008   ;
8009   return 0;
8010 }
8011 _ACEOF
8012 if ac_fn_c_try_link "$LINENO"; then :
8013
8014
8015 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
8016
8017                 gethostbynamerstyle=SYSV
8018
8019 fi
8020 rm -f core conftest.err conftest.$ac_objext \
8021     conftest$ac_exeext conftest.$ac_ext
8022 fi
8023 if test "x$gethostbynamerstyle" = "x"; then
8024         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h.  */
8026
8027 #include <stdio.h>
8028 #include <netdb.h>
8029
8030 int
8031 main ()
8032 {
8033  gethostbyname(NULL)
8034   ;
8035   return 0;
8036 }
8037 _ACEOF
8038 if ac_fn_c_try_link "$LINENO"; then :
8039
8040
8041 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
8042
8043                 gethostbynamerstyle=BSD
8044
8045 fi
8046 rm -f core conftest.err conftest.$ac_objext \
8047     conftest$ac_exeext conftest.$ac_ext
8048 fi
8049
8050 if test "x$gethostbynamerstyle" = "x"; then
8051         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
8052 $as_echo "none!  It must not exist, here." >&6; }
8053 else
8054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
8055 $as_echo "${gethostbynamerstyle}-style" >&6; }
8056 fi
8057
8058 if test "x$gethostbynamerstyle" = "xBSD"; then
8059         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
8060 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
8061 fi
8062
8063
8064 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
8065
8066
8067 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
8068
8069 ctimerstyle=""
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
8071 $as_echo_n "checking ctime_r() syntax... " >&6; }
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h.  */
8074
8075 #include <time.h>
8076
8077 int
8078 main ()
8079 {
8080  ctime_r(NULL, NULL, 0)
8081   ;
8082   return 0;
8083 }
8084 _ACEOF
8085 if ac_fn_c_try_link "$LINENO"; then :
8086
8087
8088 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
8089
8090         ctimerstyle="SOLARIS"
8091
8092 fi
8093 rm -f core conftest.err conftest.$ac_objext \
8094     conftest$ac_exeext conftest.$ac_ext
8095 if test "x$ctimerstyle" = "x"; then
8096         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h.  */
8098
8099 #include <time.h>
8100
8101 int
8102 main ()
8103 {
8104  ctime_r(NULL, NULL)
8105   ;
8106   return 0;
8107 }
8108 _ACEOF
8109 if ac_fn_c_try_link "$LINENO"; then :
8110
8111
8112 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
8113
8114                 ctimerstyle="POSIX"
8115
8116 fi
8117 rm -f core conftest.err conftest.$ac_objext \
8118     conftest$ac_exeext conftest.$ac_ext
8119 fi
8120
8121 if test "x$ctimerstyle" = "x"; then
8122         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
8123 $as_echo "none!  It must not exist, here." >&6; }
8124 else
8125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
8126 $as_echo "${ctimerstyle}-style" >&6; }
8127 fi
8128
8129 HOSTINFO=$host
8130
8131
8132
8133 top_builddir=`pwd`
8134 export top_builddir
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
8136 $as_echo "top_builddir=$top_builddir" >&6; }
8137
8138
8139
8140
8141
8142 if test "x$EXPERIMENTAL" = "xyes"; then
8143   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
8144     MODULES="$MODULES $foo"
8145   done
8146 else
8147             for foo in `cat "${srcdir}"/src/modules/stable`; do
8148     MODULES="$MODULES $foo"
8149    done
8150 fi
8151
8152 mysubdirs=""
8153 for bar in $MODULES; do
8154   if test -f "${srcdir}"/src/modules/$bar/configure; then
8155     mysubdirs="$mysubdirs src/modules/$bar"
8156   fi
8157 done
8158
8159
8160
8161 subdirs="$subdirs $mysubdirs"
8162
8163
8164
8165
8166 if test "x$werror" == "xyes"; then
8167   CFLAGS="-Werror $CFLAGS"
8168 fi
8169
8170
8171 ac_config_commands="$ac_config_commands stamp-h"
8172
8173 ac_config_commands="$ac_config_commands build-radpaths-h"
8174
8175 ac_config_commands="$ac_config_commands main-chmod"
8176
8177 ac_config_commands="$ac_config_commands scripts-chmod"
8178
8179
8180
8181
8182
8183 USE_SHARED_LIBS=$enable_shared
8184
8185 USE_STATIC_LIBS=$enable_static
8186
8187
8188
8189
8190   unset ac_cv_env_LIBS_set
8191   unset ac_cv_env_LIBS_value
8192
8193   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"
8194
8195 cat >confcache <<\_ACEOF
8196 # This file is a shell script that caches the results of configure
8197 # tests run on this system so they can be shared between configure
8198 # scripts and configure runs, see configure's option --config-cache.
8199 # It is not useful on other systems.  If it contains results you don't
8200 # want to keep, you may remove or edit it.
8201 #
8202 # config.status only pays attention to the cache file if you give it
8203 # the --recheck option to rerun configure.
8204 #
8205 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8206 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8207 # following values.
8208
8209 _ACEOF
8210
8211 # The following way of writing the cache mishandles newlines in values,
8212 # but we know of no workaround that is simple, portable, and efficient.
8213 # So, we kill variables containing newlines.
8214 # Ultrix sh set writes to stderr and can't be redirected directly,
8215 # and sets the high bit in the cache file unless we assign to the vars.
8216 (
8217   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8218     eval ac_val=\$$ac_var
8219     case $ac_val in #(
8220     *${as_nl}*)
8221       case $ac_var in #(
8222       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8223 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8224       esac
8225       case $ac_var in #(
8226       _ | IFS | as_nl) ;; #(
8227       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8228       *) { eval $ac_var=; unset $ac_var;} ;;
8229       esac ;;
8230     esac
8231   done
8232
8233   (set) 2>&1 |
8234     case $as_nl`(ac_space=' '; set) 2>&1` in #(
8235     *${as_nl}ac_space=\ *)
8236       # `set' does not quote correctly, so add quotes: double-quote
8237       # substitution turns \\\\ into \\, and sed turns \\ into \.
8238       sed -n \
8239         "s/'/'\\\\''/g;
8240           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8241       ;; #(
8242     *)
8243       # `set' quotes correctly as required by POSIX, so do not add quotes.
8244       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8245       ;;
8246     esac |
8247     sort
8248 ) |
8249   sed '
8250      /^ac_cv_env_/b end
8251      t clear
8252      :clear
8253      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8254      t end
8255      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8256      :end' >>confcache
8257 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8258   if test -w "$cache_file"; then
8259     if test "x$cache_file" != "x/dev/null"; then
8260       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8261 $as_echo "$as_me: updating cache $cache_file" >&6;}
8262       if test ! -f "$cache_file" || test -h "$cache_file"; then
8263         cat confcache >"$cache_file"
8264       else
8265         case $cache_file in #(
8266         */* | ?:*)
8267           mv -f confcache "$cache_file"$$ &&
8268           mv -f "$cache_file"$$ "$cache_file" ;; #(
8269         *)
8270           mv -f confcache "$cache_file" ;;
8271         esac
8272       fi
8273     fi
8274   else
8275     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8276 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8277   fi
8278 fi
8279 rm -f confcache
8280
8281 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8282 # Let make expand exec_prefix.
8283 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8284
8285 DEFS=-DHAVE_CONFIG_H
8286
8287 ac_libobjs=
8288 ac_ltlibobjs=
8289 U=
8290 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8291   # 1. Remove the extension, and $U if already installed.
8292   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8293   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8294   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8295   #    will be set to the directory where LIBOBJS objects are built.
8296   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8297   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8298 done
8299 LIBOBJS=$ac_libobjs
8300
8301 LTLIBOBJS=$ac_ltlibobjs
8302
8303
8304
8305
8306 : "${CONFIG_STATUS=./config.status}"
8307 ac_write_fail=0
8308 ac_clean_files_save=$ac_clean_files
8309 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8311 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8312 as_write_fail=0
8313 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8314 #! $SHELL
8315 # Generated by $as_me.
8316 # Run this file to recreate the current configuration.
8317 # Compiler output produced by configure, useful for debugging
8318 # configure, is in config.log if it exists.
8319
8320 debug=false
8321 ac_cs_recheck=false
8322 ac_cs_silent=false
8323
8324 SHELL=\${CONFIG_SHELL-$SHELL}
8325 export SHELL
8326 _ASEOF
8327 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8328 ## -------------------- ##
8329 ## M4sh Initialization. ##
8330 ## -------------------- ##
8331
8332 # Be more Bourne compatible
8333 DUALCASE=1; export DUALCASE # for MKS sh
8334 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8335   emulate sh
8336   NULLCMD=:
8337   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8338   # is contrary to our usage.  Disable this feature.
8339   alias -g '${1+"$@"}'='"$@"'
8340   setopt NO_GLOB_SUBST
8341 else
8342   case `(set -o) 2>/dev/null` in #(
8343   *posix*) :
8344     set -o posix ;; #(
8345   *) :
8346      ;;
8347 esac
8348 fi
8349
8350
8351 as_nl='
8352 '
8353 export as_nl
8354 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8355 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8356 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8357 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8358 # Prefer a ksh shell builtin over an external printf program on Solaris,
8359 # but without wasting forks for bash or zsh.
8360 if test -z "$BASH_VERSION$ZSH_VERSION" \
8361     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8362   as_echo='print -r --'
8363   as_echo_n='print -rn --'
8364 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8365   as_echo='printf %s\n'
8366   as_echo_n='printf %s'
8367 else
8368   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8369     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8370     as_echo_n='/usr/ucb/echo -n'
8371   else
8372     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8373     as_echo_n_body='eval
8374       arg=$1;
8375       case $arg in #(
8376       *"$as_nl"*)
8377         expr "X$arg" : "X\\(.*\\)$as_nl";
8378         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8379       esac;
8380       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8381     '
8382     export as_echo_n_body
8383     as_echo_n='sh -c $as_echo_n_body as_echo'
8384   fi
8385   export as_echo_body
8386   as_echo='sh -c $as_echo_body as_echo'
8387 fi
8388
8389 # The user is always right.
8390 if test "${PATH_SEPARATOR+set}" != set; then
8391   PATH_SEPARATOR=:
8392   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8393     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8394       PATH_SEPARATOR=';'
8395   }
8396 fi
8397
8398
8399 # IFS
8400 # We need space, tab and new line, in precisely that order.  Quoting is
8401 # there to prevent editors from complaining about space-tab.
8402 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8403 # splitting by setting IFS to empty value.)
8404 IFS=" ""        $as_nl"
8405
8406 # Find who we are.  Look in the path if we contain no directory separator.
8407 as_myself=
8408 case $0 in #((
8409   *[\\/]* ) as_myself=$0 ;;
8410   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413   IFS=$as_save_IFS
8414   test -z "$as_dir" && as_dir=.
8415     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8416   done
8417 IFS=$as_save_IFS
8418
8419      ;;
8420 esac
8421 # We did not find ourselves, most probably we were run as `sh COMMAND'
8422 # in which case we are not to be found in the path.
8423 if test "x$as_myself" = x; then
8424   as_myself=$0
8425 fi
8426 if test ! -f "$as_myself"; then
8427   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8428   exit 1
8429 fi
8430
8431 # Unset variables that we do not need and which cause bugs (e.g. in
8432 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8433 # suppresses any "Segmentation fault" message there.  '((' could
8434 # trigger a bug in pdksh 5.2.14.
8435 for as_var in BASH_ENV ENV MAIL MAILPATH
8436 do eval test x\${$as_var+set} = xset \
8437   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8438 done
8439 PS1='$ '
8440 PS2='> '
8441 PS4='+ '
8442
8443 # NLS nuisances.
8444 LC_ALL=C
8445 export LC_ALL
8446 LANGUAGE=C
8447 export LANGUAGE
8448
8449 # CDPATH.
8450 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8451
8452
8453 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8454 # ----------------------------------------
8455 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8456 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8457 # script with STATUS, using 1 if that was 0.
8458 as_fn_error ()
8459 {
8460   as_status=$1; test $as_status -eq 0 && as_status=1
8461   if test "$4"; then
8462     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8463     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8464   fi
8465   $as_echo "$as_me: error: $2" >&2
8466   as_fn_exit $as_status
8467 } # as_fn_error
8468
8469
8470 # as_fn_set_status STATUS
8471 # -----------------------
8472 # Set $? to STATUS, without forking.
8473 as_fn_set_status ()
8474 {
8475   return $1
8476 } # as_fn_set_status
8477
8478 # as_fn_exit STATUS
8479 # -----------------
8480 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8481 as_fn_exit ()
8482 {
8483   set +e
8484   as_fn_set_status $1
8485   exit $1
8486 } # as_fn_exit
8487
8488 # as_fn_unset VAR
8489 # ---------------
8490 # Portably unset VAR.
8491 as_fn_unset ()
8492 {
8493   { eval $1=; unset $1;}
8494 }
8495 as_unset=as_fn_unset
8496 # as_fn_append VAR VALUE
8497 # ----------------------
8498 # Append the text in VALUE to the end of the definition contained in VAR. Take
8499 # advantage of any shell optimizations that allow amortized linear growth over
8500 # repeated appends, instead of the typical quadratic growth present in naive
8501 # implementations.
8502 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8503   eval 'as_fn_append ()
8504   {
8505     eval $1+=\$2
8506   }'
8507 else
8508   as_fn_append ()
8509   {
8510     eval $1=\$$1\$2
8511   }
8512 fi # as_fn_append
8513
8514 # as_fn_arith ARG...
8515 # ------------------
8516 # Perform arithmetic evaluation on the ARGs, and store the result in the
8517 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8518 # must be portable across $(()) and expr.
8519 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8520   eval 'as_fn_arith ()
8521   {
8522     as_val=$(( $* ))
8523   }'
8524 else
8525   as_fn_arith ()
8526   {
8527     as_val=`expr "$@" || test $? -eq 1`
8528   }
8529 fi # as_fn_arith
8530
8531
8532 if expr a : '\(a\)' >/dev/null 2>&1 &&
8533    test "X`expr 00001 : '.*\(...\)'`" = X001; then
8534   as_expr=expr
8535 else
8536   as_expr=false
8537 fi
8538
8539 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8540   as_basename=basename
8541 else
8542   as_basename=false
8543 fi
8544
8545 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8546   as_dirname=dirname
8547 else
8548   as_dirname=false
8549 fi
8550
8551 as_me=`$as_basename -- "$0" ||
8552 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8553          X"$0" : 'X\(//\)$' \| \
8554          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8555 $as_echo X/"$0" |
8556     sed '/^.*\/\([^/][^/]*\)\/*$/{
8557             s//\1/
8558             q
8559           }
8560           /^X\/\(\/\/\)$/{
8561             s//\1/
8562             q
8563           }
8564           /^X\/\(\/\).*/{
8565             s//\1/
8566             q
8567           }
8568           s/.*/./; q'`
8569
8570 # Avoid depending upon Character Ranges.
8571 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8572 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8573 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8574 as_cr_digits='0123456789'
8575 as_cr_alnum=$as_cr_Letters$as_cr_digits
8576
8577 ECHO_C= ECHO_N= ECHO_T=
8578 case `echo -n x` in #(((((
8579 -n*)
8580   case `echo 'xy\c'` in
8581   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8582   xy)  ECHO_C='\c';;
8583   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8584        ECHO_T=' ';;
8585   esac;;
8586 *)
8587   ECHO_N='-n';;
8588 esac
8589
8590 rm -f conf$$ conf$$.exe conf$$.file
8591 if test -d conf$$.dir; then
8592   rm -f conf$$.dir/conf$$.file
8593 else
8594   rm -f conf$$.dir
8595   mkdir conf$$.dir 2>/dev/null
8596 fi
8597 if (echo >conf$$.file) 2>/dev/null; then
8598   if ln -s conf$$.file conf$$ 2>/dev/null; then
8599     as_ln_s='ln -s'
8600     # ... but there are two gotchas:
8601     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8602     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8603     # In both cases, we have to default to `cp -pR'.
8604     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8605       as_ln_s='cp -pR'
8606   elif ln conf$$.file conf$$ 2>/dev/null; then
8607     as_ln_s=ln
8608   else
8609     as_ln_s='cp -pR'
8610   fi
8611 else
8612   as_ln_s='cp -pR'
8613 fi
8614 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8615 rmdir conf$$.dir 2>/dev/null
8616
8617
8618 # as_fn_mkdir_p
8619 # -------------
8620 # Create "$as_dir" as a directory, including parents if necessary.
8621 as_fn_mkdir_p ()
8622 {
8623
8624   case $as_dir in #(
8625   -*) as_dir=./$as_dir;;
8626   esac
8627   test -d "$as_dir" || eval $as_mkdir_p || {
8628     as_dirs=
8629     while :; do
8630       case $as_dir in #(
8631       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8632       *) as_qdir=$as_dir;;
8633       esac
8634       as_dirs="'$as_qdir' $as_dirs"
8635       as_dir=`$as_dirname -- "$as_dir" ||
8636 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8637          X"$as_dir" : 'X\(//\)[^/]' \| \
8638          X"$as_dir" : 'X\(//\)$' \| \
8639          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8640 $as_echo X"$as_dir" |
8641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8642             s//\1/
8643             q
8644           }
8645           /^X\(\/\/\)[^/].*/{
8646             s//\1/
8647             q
8648           }
8649           /^X\(\/\/\)$/{
8650             s//\1/
8651             q
8652           }
8653           /^X\(\/\).*/{
8654             s//\1/
8655             q
8656           }
8657           s/.*/./; q'`
8658       test -d "$as_dir" && break
8659     done
8660     test -z "$as_dirs" || eval "mkdir $as_dirs"
8661   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8662
8663
8664 } # as_fn_mkdir_p
8665 if mkdir -p . 2>/dev/null; then
8666   as_mkdir_p='mkdir -p "$as_dir"'
8667 else
8668   test -d ./-p && rmdir ./-p
8669   as_mkdir_p=false
8670 fi
8671
8672
8673 # as_fn_executable_p FILE
8674 # -----------------------
8675 # Test if FILE is an executable regular file.
8676 as_fn_executable_p ()
8677 {
8678   test -f "$1" && test -x "$1"
8679 } # as_fn_executable_p
8680 as_test_x='test -x'
8681 as_executable_p=as_fn_executable_p
8682
8683 # Sed expression to map a string onto a valid CPP name.
8684 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8685
8686 # Sed expression to map a string onto a valid variable name.
8687 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8688
8689
8690 exec 6>&1
8691 ## ----------------------------------- ##
8692 ## Main body of $CONFIG_STATUS script. ##
8693 ## ----------------------------------- ##
8694 _ASEOF
8695 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8696
8697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8698 # Save the log message, to keep $0 and so on meaningful, and to
8699 # report actual input values of CONFIG_FILES etc. instead of their
8700 # values after options handling.
8701 ac_log="
8702 This file was extended by freeradius $as_me $Id$, which was
8703 generated by GNU Autoconf 2.69.  Invocation command line was
8704
8705   CONFIG_FILES    = $CONFIG_FILES
8706   CONFIG_HEADERS  = $CONFIG_HEADERS
8707   CONFIG_LINKS    = $CONFIG_LINKS
8708   CONFIG_COMMANDS = $CONFIG_COMMANDS
8709   $ $0 $@
8710
8711 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8712 "
8713
8714 _ACEOF
8715
8716 case $ac_config_files in *"
8717 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8718 esac
8719
8720 case $ac_config_headers in *"
8721 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8722 esac
8723
8724
8725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8726 # Files that config.status was made for.
8727 config_files="$ac_config_files"
8728 config_headers="$ac_config_headers"
8729 config_commands="$ac_config_commands"
8730
8731 _ACEOF
8732
8733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8734 ac_cs_usage="\
8735 \`$as_me' instantiates files and other configuration actions
8736 from templates according to the current configuration.  Unless the files
8737 and actions are specified as TAGs, all are instantiated by default.
8738
8739 Usage: $0 [OPTION]... [TAG]...
8740
8741   -h, --help       print this help, then exit
8742   -V, --version    print version number and configuration settings, then exit
8743       --config     print configuration, then exit
8744   -q, --quiet, --silent
8745                    do not print progress messages
8746   -d, --debug      don't remove temporary files
8747       --recheck    update $as_me by reconfiguring in the same conditions
8748       --file=FILE[:TEMPLATE]
8749                    instantiate the configuration file FILE
8750       --header=FILE[:TEMPLATE]
8751                    instantiate the configuration header FILE
8752
8753 Configuration files:
8754 $config_files
8755
8756 Configuration headers:
8757 $config_headers
8758
8759 Configuration commands:
8760 $config_commands
8761
8762 Report bugs to <http://bugs.freeradius.org>.
8763 freeradius home page: <http://www.freeradius.org>."
8764
8765 _ACEOF
8766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8767 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8768 ac_cs_version="\\
8769 freeradius config.status $Id$
8770 configured by $0, generated by GNU Autoconf 2.69,
8771   with options \\"\$ac_cs_config\\"
8772
8773 Copyright (C) 2012 Free Software Foundation, Inc.
8774 This config.status script is free software; the Free Software Foundation
8775 gives unlimited permission to copy, distribute and modify it."
8776
8777 ac_pwd='$ac_pwd'
8778 srcdir='$srcdir'
8779 test -n "\$AWK" || AWK=awk
8780 _ACEOF
8781
8782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8783 # The default lists apply if the user does not specify any file.
8784 ac_need_defaults=:
8785 while test $# != 0
8786 do
8787   case $1 in
8788   --*=?*)
8789     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8790     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8791     ac_shift=:
8792     ;;
8793   --*=)
8794     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8795     ac_optarg=
8796     ac_shift=:
8797     ;;
8798   *)
8799     ac_option=$1
8800     ac_optarg=$2
8801     ac_shift=shift
8802     ;;
8803   esac
8804
8805   case $ac_option in
8806   # Handling of the options.
8807   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8808     ac_cs_recheck=: ;;
8809   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8810     $as_echo "$ac_cs_version"; exit ;;
8811   --config | --confi | --conf | --con | --co | --c )
8812     $as_echo "$ac_cs_config"; exit ;;
8813   --debug | --debu | --deb | --de | --d | -d )
8814     debug=: ;;
8815   --file | --fil | --fi | --f )
8816     $ac_shift
8817     case $ac_optarg in
8818     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8819     '') as_fn_error $? "missing file argument" ;;
8820     esac
8821     as_fn_append CONFIG_FILES " '$ac_optarg'"
8822     ac_need_defaults=false;;
8823   --header | --heade | --head | --hea )
8824     $ac_shift
8825     case $ac_optarg in
8826     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8827     esac
8828     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8829     ac_need_defaults=false;;
8830   --he | --h)
8831     # Conflict between --help and --header
8832     as_fn_error $? "ambiguous option: \`$1'
8833 Try \`$0 --help' for more information.";;
8834   --help | --hel | -h )
8835     $as_echo "$ac_cs_usage"; exit ;;
8836   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8837   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8838     ac_cs_silent=: ;;
8839
8840   # This is an error.
8841   -*) as_fn_error $? "unrecognized option: \`$1'
8842 Try \`$0 --help' for more information." ;;
8843
8844   *) as_fn_append ac_config_targets " $1"
8845      ac_need_defaults=false ;;
8846
8847   esac
8848   shift
8849 done
8850
8851 ac_configure_extra_args=
8852
8853 if $ac_cs_silent; then
8854   exec 6>/dev/null
8855   ac_configure_extra_args="$ac_configure_extra_args --silent"
8856 fi
8857
8858 _ACEOF
8859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8860 if \$ac_cs_recheck; then
8861   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8862   shift
8863   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8864   CONFIG_SHELL='$SHELL'
8865   export CONFIG_SHELL
8866   exec "\$@"
8867 fi
8868
8869 _ACEOF
8870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8871 exec 5>>config.log
8872 {
8873   echo
8874   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8875 ## Running $as_me. ##
8876 _ASBOX
8877   $as_echo "$ac_log"
8878 } >&5
8879
8880 _ACEOF
8881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8882 _ACEOF
8883
8884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8885
8886 # Handling of arguments.
8887 for ac_config_target in $ac_config_targets
8888 do
8889   case $ac_config_target in
8890     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
8891     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
8892     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
8893     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
8894     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
8895     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
8896     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
8897     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
8898     "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
8899     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
8900     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
8901     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
8902     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
8903     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
8904     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
8905     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
8906     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
8907     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
8908
8909   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8910   esac
8911 done
8912
8913
8914 # If the user did not use the arguments to specify the items to instantiate,
8915 # then the envvar interface is used.  Set only those that are not.
8916 # We use the long form for the default assignment because of an extremely
8917 # bizarre bug on SunOS 4.1.3.
8918 if $ac_need_defaults; then
8919   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8920   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8921   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8922 fi
8923
8924 # Have a temporary directory for convenience.  Make it in the build tree
8925 # simply because there is no reason against having it here, and in addition,
8926 # creating and moving files from /tmp can sometimes cause problems.
8927 # Hook for its removal unless debugging.
8928 # Note that there is a small window in which the directory will not be cleaned:
8929 # after its creation but before its name has been assigned to `$tmp'.
8930 $debug ||
8931 {
8932   tmp= ac_tmp=
8933   trap 'exit_status=$?
8934   : "${ac_tmp:=$tmp}"
8935   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8936 ' 0
8937   trap 'as_fn_exit 1' 1 2 13 15
8938 }
8939 # Create a (secure) tmp directory for tmp files.
8940
8941 {
8942   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8943   test -d "$tmp"
8944 }  ||
8945 {
8946   tmp=./conf$$-$RANDOM
8947   (umask 077 && mkdir "$tmp")
8948 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8949 ac_tmp=$tmp
8950
8951 # Set up the scripts for CONFIG_FILES section.
8952 # No need to generate them if there are no CONFIG_FILES.
8953 # This happens for instance with `./config.status config.h'.
8954 if test -n "$CONFIG_FILES"; then
8955
8956
8957 ac_cr=`echo X | tr X '\015'`
8958 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8959 # But we know of no other shell where ac_cr would be empty at this
8960 # point, so we can use a bashism as a fallback.
8961 if test "x$ac_cr" = x; then
8962   eval ac_cr=\$\'\\r\'
8963 fi
8964 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8965 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8966   ac_cs_awk_cr='\\r'
8967 else
8968   ac_cs_awk_cr=$ac_cr
8969 fi
8970
8971 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8972 _ACEOF
8973
8974
8975 {
8976   echo "cat >conf$$subs.awk <<_ACEOF" &&
8977   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8978   echo "_ACEOF"
8979 } >conf$$subs.sh ||
8980   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8981 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8982 ac_delim='%!_!# '
8983 for ac_last_try in false false false false false :; do
8984   . ./conf$$subs.sh ||
8985     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8986
8987   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8988   if test $ac_delim_n = $ac_delim_num; then
8989     break
8990   elif $ac_last_try; then
8991     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8992   else
8993     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8994   fi
8995 done
8996 rm -f conf$$subs.sh
8997
8998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8999 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9000 _ACEOF
9001 sed -n '
9002 h
9003 s/^/S["/; s/!.*/"]=/
9004 p
9005 g
9006 s/^[^!]*!//
9007 :repl
9008 t repl
9009 s/'"$ac_delim"'$//
9010 t delim
9011 :nl
9012 h
9013 s/\(.\{148\}\)..*/\1/
9014 t more1
9015 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9016 p
9017 n
9018 b repl
9019 :more1
9020 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9021 p
9022 g
9023 s/.\{148\}//
9024 t nl
9025 :delim
9026 h
9027 s/\(.\{148\}\)..*/\1/
9028 t more2
9029 s/["\\]/\\&/g; s/^/"/; s/$/"/
9030 p
9031 b
9032 :more2
9033 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9034 p
9035 g
9036 s/.\{148\}//
9037 t delim
9038 ' <conf$$subs.awk | sed '
9039 /^[^""]/{
9040   N
9041   s/\n//
9042 }
9043 ' >>$CONFIG_STATUS || ac_write_fail=1
9044 rm -f conf$$subs.awk
9045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9046 _ACAWK
9047 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9048   for (key in S) S_is_set[key] = 1
9049   FS = "\a"
9050
9051 }
9052 {
9053   line = $ 0
9054   nfields = split(line, field, "@")
9055   substed = 0
9056   len = length(field[1])
9057   for (i = 2; i < nfields; i++) {
9058     key = field[i]
9059     keylen = length(key)
9060     if (S_is_set[key]) {
9061       value = S[key]
9062       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9063       len += length(value) + length(field[++i])
9064       substed = 1
9065     } else
9066       len += 1 + keylen
9067   }
9068
9069   print line
9070 }
9071
9072 _ACAWK
9073 _ACEOF
9074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9075 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9076   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9077 else
9078   cat
9079 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9080   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9081 _ACEOF
9082
9083 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9084 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9085 # trailing colons and then remove the whole line if VPATH becomes empty
9086 # (actually we leave an empty line to preserve line numbers).
9087 if test "x$srcdir" = x.; then
9088   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
9089 h
9090 s///
9091 s/^/:/
9092 s/[      ]*$/:/
9093 s/:\$(srcdir):/:/g
9094 s/:\${srcdir}:/:/g
9095 s/:@srcdir@:/:/g
9096 s/^:*//
9097 s/:*$//
9098 x
9099 s/\(=[   ]*\).*/\1/
9100 G
9101 s/\n//
9102 s/^[^=]*=[       ]*$//
9103 }'
9104 fi
9105
9106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9107 fi # test -n "$CONFIG_FILES"
9108
9109 # Set up the scripts for CONFIG_HEADERS section.
9110 # No need to generate them if there are no CONFIG_HEADERS.
9111 # This happens for instance with `./config.status Makefile'.
9112 if test -n "$CONFIG_HEADERS"; then
9113 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9114 BEGIN {
9115 _ACEOF
9116
9117 # Transform confdefs.h into an awk script `defines.awk', embedded as
9118 # here-document in config.status, that substitutes the proper values into
9119 # config.h.in to produce config.h.
9120
9121 # Create a delimiter string that does not exist in confdefs.h, to ease
9122 # handling of long lines.
9123 ac_delim='%!_!# '
9124 for ac_last_try in false false :; do
9125   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9126   if test -z "$ac_tt"; then
9127     break
9128   elif $ac_last_try; then
9129     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9130   else
9131     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9132   fi
9133 done
9134
9135 # For the awk script, D is an array of macro values keyed by name,
9136 # likewise P contains macro parameters if any.  Preserve backslash
9137 # newline sequences.
9138
9139 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9140 sed -n '
9141 s/.\{148\}/&'"$ac_delim"'/g
9142 t rset
9143 :rset
9144 s/^[     ]*#[    ]*define[       ][      ]*/ /
9145 t def
9146 d
9147 :def
9148 s/\\$//
9149 t bsnl
9150 s/["\\]/\\&/g
9151 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9152 D["\1"]=" \3"/p
9153 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
9154 d
9155 :bsnl
9156 s/["\\]/\\&/g
9157 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9158 D["\1"]=" \3\\\\\\n"\\/p
9159 t cont
9160 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9161 t cont
9162 d
9163 :cont
9164 n
9165 s/.\{148\}/&'"$ac_delim"'/g
9166 t clear
9167 :clear
9168 s/\\$//
9169 t bsnlc
9170 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9171 d
9172 :bsnlc
9173 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9174 b cont
9175 ' <confdefs.h | sed '
9176 s/'"$ac_delim"'/"\\\
9177 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9178
9179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9180   for (key in D) D_is_set[key] = 1
9181   FS = "\a"
9182 }
9183 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9184   line = \$ 0
9185   split(line, arg, " ")
9186   if (arg[1] == "#") {
9187     defundef = arg[2]
9188     mac1 = arg[3]
9189   } else {
9190     defundef = substr(arg[1], 2)
9191     mac1 = arg[2]
9192   }
9193   split(mac1, mac2, "(") #)
9194   macro = mac2[1]
9195   prefix = substr(line, 1, index(line, defundef) - 1)
9196   if (D_is_set[macro]) {
9197     # Preserve the white space surrounding the "#".
9198     print prefix "define", macro P[macro] D[macro]
9199     next
9200   } else {
9201     # Replace #undef with comments.  This is necessary, for example,
9202     # in the case of _POSIX_SOURCE, which is predefined and required
9203     # on some systems where configure will not decide to define it.
9204     if (defundef == "undef") {
9205       print "/*", prefix defundef, macro, "*/"
9206       next
9207     }
9208   }
9209 }
9210 { print }
9211 _ACAWK
9212 _ACEOF
9213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9214   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9215 fi # test -n "$CONFIG_HEADERS"
9216
9217
9218 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9219 shift
9220 for ac_tag
9221 do
9222   case $ac_tag in
9223   :[FHLC]) ac_mode=$ac_tag; continue;;
9224   esac
9225   case $ac_mode$ac_tag in
9226   :[FHL]*:*);;
9227   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9228   :[FH]-) ac_tag=-:-;;
9229   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9230   esac
9231   ac_save_IFS=$IFS
9232   IFS=:
9233   set x $ac_tag
9234   IFS=$ac_save_IFS
9235   shift
9236   ac_file=$1
9237   shift
9238
9239   case $ac_mode in
9240   :L) ac_source=$1;;
9241   :[FH])
9242     ac_file_inputs=
9243     for ac_f
9244     do
9245       case $ac_f in
9246       -) ac_f="$ac_tmp/stdin";;
9247       *) # Look for the file first in the build tree, then in the source tree
9248          # (if the path is not absolute).  The absolute path cannot be DOS-style,
9249          # because $ac_f cannot contain `:'.
9250          test -f "$ac_f" ||
9251            case $ac_f in
9252            [\\/$]*) false;;
9253            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9254            esac ||
9255            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9256       esac
9257       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9258       as_fn_append ac_file_inputs " '$ac_f'"
9259     done
9260
9261     # Let's still pretend it is `configure' which instantiates (i.e., don't
9262     # use $as_me), people would be surprised to read:
9263     #    /* config.h.  Generated by config.status.  */
9264     configure_input='Generated from '`
9265           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9266         `' by configure.'
9267     if test x"$ac_file" != x-; then
9268       configure_input="$ac_file.  $configure_input"
9269       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9270 $as_echo "$as_me: creating $ac_file" >&6;}
9271     fi
9272     # Neutralize special characters interpreted by sed in replacement strings.
9273     case $configure_input in #(
9274     *\&* | *\|* | *\\* )
9275        ac_sed_conf_input=`$as_echo "$configure_input" |
9276        sed 's/[\\\\&|]/\\\\&/g'`;; #(
9277     *) ac_sed_conf_input=$configure_input;;
9278     esac
9279
9280     case $ac_tag in
9281     *:-:* | *:-) cat >"$ac_tmp/stdin" \
9282       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9283     esac
9284     ;;
9285   esac
9286
9287   ac_dir=`$as_dirname -- "$ac_file" ||
9288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9289          X"$ac_file" : 'X\(//\)[^/]' \| \
9290          X"$ac_file" : 'X\(//\)$' \| \
9291          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9292 $as_echo X"$ac_file" |
9293     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9294             s//\1/
9295             q
9296           }
9297           /^X\(\/\/\)[^/].*/{
9298             s//\1/
9299             q
9300           }
9301           /^X\(\/\/\)$/{
9302             s//\1/
9303             q
9304           }
9305           /^X\(\/\).*/{
9306             s//\1/
9307             q
9308           }
9309           s/.*/./; q'`
9310   as_dir="$ac_dir"; as_fn_mkdir_p
9311   ac_builddir=.
9312
9313 case "$ac_dir" in
9314 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9315 *)
9316   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9317   # A ".." for each directory in $ac_dir_suffix.
9318   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9319   case $ac_top_builddir_sub in
9320   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9321   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9322   esac ;;
9323 esac
9324 ac_abs_top_builddir=$ac_pwd
9325 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9326 # for backward compatibility:
9327 ac_top_builddir=$ac_top_build_prefix
9328
9329 case $srcdir in
9330   .)  # We are building in place.
9331     ac_srcdir=.
9332     ac_top_srcdir=$ac_top_builddir_sub
9333     ac_abs_top_srcdir=$ac_pwd ;;
9334   [\\/]* | ?:[\\/]* )  # Absolute name.
9335     ac_srcdir=$srcdir$ac_dir_suffix;
9336     ac_top_srcdir=$srcdir
9337     ac_abs_top_srcdir=$srcdir ;;
9338   *) # Relative name.
9339     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9340     ac_top_srcdir=$ac_top_build_prefix$srcdir
9341     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9342 esac
9343 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9344
9345
9346   case $ac_mode in
9347   :F)
9348   #
9349   # CONFIG_FILE
9350   #
9351
9352 _ACEOF
9353
9354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9355 # If the template does not know about datarootdir, expand it.
9356 # FIXME: This hack should be removed a few years after 2.60.
9357 ac_datarootdir_hack=; ac_datarootdir_seen=
9358 ac_sed_dataroot='
9359 /datarootdir/ {
9360   p
9361   q
9362 }
9363 /@datadir@/p
9364 /@docdir@/p
9365 /@infodir@/p
9366 /@localedir@/p
9367 /@mandir@/p'
9368 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9369 *datarootdir*) ac_datarootdir_seen=yes;;
9370 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9371   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9372 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9373 _ACEOF
9374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9375   ac_datarootdir_hack='
9376   s&@datadir@&$datadir&g
9377   s&@docdir@&$docdir&g
9378   s&@infodir@&$infodir&g
9379   s&@localedir@&$localedir&g
9380   s&@mandir@&$mandir&g
9381   s&\\\${datarootdir}&$datarootdir&g' ;;
9382 esac
9383 _ACEOF
9384
9385 # Neutralize VPATH when `$srcdir' = `.'.
9386 # Shell code in configure.ac might set extrasub.
9387 # FIXME: do we really want to maintain this feature?
9388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9389 ac_sed_extra="$ac_vpsub
9390 $extrasub
9391 _ACEOF
9392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9393 :t
9394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9395 s|@configure_input@|$ac_sed_conf_input|;t t
9396 s&@top_builddir@&$ac_top_builddir_sub&;t t
9397 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9398 s&@srcdir@&$ac_srcdir&;t t
9399 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9400 s&@top_srcdir@&$ac_top_srcdir&;t t
9401 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9402 s&@builddir@&$ac_builddir&;t t
9403 s&@abs_builddir@&$ac_abs_builddir&;t t
9404 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9405 $ac_datarootdir_hack
9406 "
9407 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9408   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9409
9410 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9411   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9412   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
9413       "$ac_tmp/out"`; test -z "$ac_out"; } &&
9414   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9415 which seems to be undefined.  Please make sure it is defined" >&5
9416 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9417 which seems to be undefined.  Please make sure it is defined" >&2;}
9418
9419   rm -f "$ac_tmp/stdin"
9420   case $ac_file in
9421   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9422   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9423   esac \
9424   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9425  ;;
9426   :H)
9427   #
9428   # CONFIG_HEADER
9429   #
9430   if test x"$ac_file" != x-; then
9431     {
9432       $as_echo "/* $configure_input  */" \
9433       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9434     } >"$ac_tmp/config.h" \
9435       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9436     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9437       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9438 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9439     else
9440       rm -f "$ac_file"
9441       mv "$ac_tmp/config.h" "$ac_file" \
9442         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9443     fi
9444   else
9445     $as_echo "/* $configure_input  */" \
9446       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9447       || as_fn_error $? "could not create -" "$LINENO" 5
9448   fi
9449  ;;
9450
9451   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9452 $as_echo "$as_me: executing $ac_file commands" >&6;}
9453  ;;
9454   esac
9455
9456
9457   case $ac_file$ac_mode in
9458     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
9459     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
9460     "main-chmod":C) (cd ./src/main   && chmod +x checkrad radlast radtest) ;;
9461     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
9462
9463   esac
9464 done # for ac_tag
9465
9466
9467 as_fn_exit 0
9468 _ACEOF
9469 ac_clean_files=$ac_clean_files_save
9470
9471 test $ac_write_fail = 0 ||
9472   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9473
9474
9475 # configure is writing to config.log, and then calls config.status.
9476 # config.status does its own redirection, appending to config.log.
9477 # Unfortunately, on DOS this fails, as config.log is still kept open
9478 # by configure, so config.status won't be able to write to it; its
9479 # output is simply discarded.  So we exec the FD to /dev/null,
9480 # effectively closing config.log, so it can be properly (re)opened and
9481 # appended to by config.status.  When coming back to configure, we
9482 # need to make the FD available again.
9483 if test "$no_create" != yes; then
9484   ac_cs_success=:
9485   ac_config_status_args=
9486   test "$silent" = yes &&
9487     ac_config_status_args="$ac_config_status_args --quiet"
9488   exec 5>/dev/null
9489   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9490   exec 5>>config.log
9491   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9492   # would make configure fail if this is the last instruction.
9493   $ac_cs_success || as_fn_exit 1
9494 fi
9495
9496 #
9497 # CONFIG_SUBDIRS section.
9498 #
9499 if test "$no_recursion" != yes; then
9500
9501   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9502   # so they do not pile up.
9503   ac_sub_configure_args=
9504   ac_prev=
9505   eval "set x $ac_configure_args"
9506   shift
9507   for ac_arg
9508   do
9509     if test -n "$ac_prev"; then
9510       ac_prev=
9511       continue
9512     fi
9513     case $ac_arg in
9514     -cache-file | --cache-file | --cache-fil | --cache-fi \
9515     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9516       ac_prev=cache_file ;;
9517     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9518     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9519     | --c=*)
9520       ;;
9521     --config-cache | -C)
9522       ;;
9523     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9524       ac_prev=srcdir ;;
9525     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9526       ;;
9527     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9528       ac_prev=prefix ;;
9529     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9530       ;;
9531     --disable-option-checking)
9532       ;;
9533     *)
9534       case $ac_arg in
9535       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9536       esac
9537       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9538     esac
9539   done
9540
9541   # Always prepend --prefix to ensure using the same prefix
9542   # in subdir configurations.
9543   ac_arg="--prefix=$prefix"
9544   case $ac_arg in
9545   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9546   esac
9547   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9548
9549   # Pass --silent
9550   if test "$silent" = yes; then
9551     ac_sub_configure_args="--silent $ac_sub_configure_args"
9552   fi
9553
9554   # Always prepend --disable-option-checking to silence warnings, since
9555   # different subdirs can have different --enable and --with options.
9556   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9557
9558   ac_popdir=`pwd`
9559   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9560
9561     # Do not complain, so a configure script can configure whichever
9562     # parts of a large source tree are present.
9563     test -d "$srcdir/$ac_dir" || continue
9564
9565     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9566     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9567     $as_echo "$ac_msg" >&6
9568     as_dir="$ac_dir"; as_fn_mkdir_p
9569     ac_builddir=.
9570
9571 case "$ac_dir" in
9572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9573 *)
9574   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9575   # A ".." for each directory in $ac_dir_suffix.
9576   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9577   case $ac_top_builddir_sub in
9578   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9579   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9580   esac ;;
9581 esac
9582 ac_abs_top_builddir=$ac_pwd
9583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9584 # for backward compatibility:
9585 ac_top_builddir=$ac_top_build_prefix
9586
9587 case $srcdir in
9588   .)  # We are building in place.
9589     ac_srcdir=.
9590     ac_top_srcdir=$ac_top_builddir_sub
9591     ac_abs_top_srcdir=$ac_pwd ;;
9592   [\\/]* | ?:[\\/]* )  # Absolute name.
9593     ac_srcdir=$srcdir$ac_dir_suffix;
9594     ac_top_srcdir=$srcdir
9595     ac_abs_top_srcdir=$srcdir ;;
9596   *) # Relative name.
9597     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9598     ac_top_srcdir=$ac_top_build_prefix$srcdir
9599     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9600 esac
9601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9602
9603
9604     cd "$ac_dir"
9605
9606     # Check for guested configure; otherwise get Cygnus style configure.
9607     if test -f "$ac_srcdir/configure.gnu"; then
9608       ac_sub_configure=$ac_srcdir/configure.gnu
9609     elif test -f "$ac_srcdir/configure"; then
9610       ac_sub_configure=$ac_srcdir/configure
9611     elif test -f "$ac_srcdir/configure.in"; then
9612       # This should be Cygnus configure.
9613       ac_sub_configure=$ac_aux_dir/configure
9614     else
9615       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9617       ac_sub_configure=
9618     fi
9619
9620     # The recursion is here.
9621     if test -n "$ac_sub_configure"; then
9622       # Make the cache file name correct relative to the subdirectory.
9623       case $cache_file in
9624       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9625       *) # Relative name.
9626         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9627       esac
9628
9629       { $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
9630 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9631       # The eval makes quoting arguments work.
9632       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9633            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9634         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9635     fi
9636
9637     cd "$ac_popdir"
9638   done
9639 fi
9640 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9641   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9642 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9643 fi
9644
9645