Temporarily disable automatic -j
[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 FR_MAKEFLAGS
658 MAKE
659 GMAKE
660 RANLIB
661 EGREP
662 GREP
663 CPP
664 ac_ct_CXX
665 CXXFLAGS
666 CXX
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
673 CC
674 target_os
675 target_vendor
676 target_cpu
677 target
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
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
2347
2348
2349
2350
2351
2352
2353
2354
2355 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2356 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2357 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2358
2359 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2360 -v minor="$RADIUSD_MINOR_VERSION" \
2361 -v incrm="$RADIUSD_INCRM_VERSION" \
2362 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2363
2364 RADIUSD_VERSION_STRING=`cat VERSION`
2365
2366
2367
2368
2369 cat >>confdefs.h <<_ACEOF
2370 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2371 _ACEOF
2372
2373
2374 cat >>confdefs.h <<_ACEOF
2375 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2376 _ACEOF
2377
2378
2379
2380 # Check whether --enable-developer was given.
2381 if test "${enable_developer+set}" = set; then :
2382   enableval=$enable_developer;  case "$enableval" in
2383   no)
2384     developer=no
2385     ;;
2386   *)
2387     developer=yes
2388   esac
2389
2390 fi
2391
2392
2393 if test -d $srcdir/.git; then
2394   if test "x$developer" != "xno"; then
2395     { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2396 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2397     developer="yes"
2398   fi
2399 fi
2400
2401 if test "x$developer" = "xyes"; then
2402   : ${CFLAGS=-g3}
2403 fi
2404
2405
2406 ac_aux_dir=
2407 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2408   if test -f "$ac_dir/install-sh"; then
2409     ac_aux_dir=$ac_dir
2410     ac_install_sh="$ac_aux_dir/install-sh -c"
2411     break
2412   elif test -f "$ac_dir/install.sh"; then
2413     ac_aux_dir=$ac_dir
2414     ac_install_sh="$ac_aux_dir/install.sh -c"
2415     break
2416   elif test -f "$ac_dir/shtool"; then
2417     ac_aux_dir=$ac_dir
2418     ac_install_sh="$ac_aux_dir/shtool install -c"
2419     break
2420   fi
2421 done
2422 if test -z "$ac_aux_dir"; then
2423   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2424 fi
2425
2426 # These three variables are undocumented and unsupported,
2427 # and are intended to be withdrawn in a future Autoconf release.
2428 # They can cause serious problems if a builder's source tree is in a directory
2429 # whose full name contains unusual characters.
2430 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2431 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2432 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2433
2434
2435 # Make sure we can run config.sub.
2436 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2437   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2438
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2440 $as_echo_n "checking build system type... " >&6; }
2441 if ${ac_cv_build+:} false; then :
2442   $as_echo_n "(cached) " >&6
2443 else
2444   ac_build_alias=$build_alias
2445 test "x$ac_build_alias" = x &&
2446   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2447 test "x$ac_build_alias" = x &&
2448   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2449 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2450   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2451
2452 fi
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2454 $as_echo "$ac_cv_build" >&6; }
2455 case $ac_cv_build in
2456 *-*-*) ;;
2457 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2458 esac
2459 build=$ac_cv_build
2460 ac_save_IFS=$IFS; IFS='-'
2461 set x $ac_cv_build
2462 shift
2463 build_cpu=$1
2464 build_vendor=$2
2465 shift; shift
2466 # Remember, the first character of IFS is used to create $*,
2467 # except with old shells:
2468 build_os=$*
2469 IFS=$ac_save_IFS
2470 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2471
2472
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2474 $as_echo_n "checking host system type... " >&6; }
2475 if ${ac_cv_host+:} false; then :
2476   $as_echo_n "(cached) " >&6
2477 else
2478   if test "x$host_alias" = x; then
2479   ac_cv_host=$ac_cv_build
2480 else
2481   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2482     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2483 fi
2484
2485 fi
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2487 $as_echo "$ac_cv_host" >&6; }
2488 case $ac_cv_host in
2489 *-*-*) ;;
2490 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2491 esac
2492 host=$ac_cv_host
2493 ac_save_IFS=$IFS; IFS='-'
2494 set x $ac_cv_host
2495 shift
2496 host_cpu=$1
2497 host_vendor=$2
2498 shift; shift
2499 # Remember, the first character of IFS is used to create $*,
2500 # except with old shells:
2501 host_os=$*
2502 IFS=$ac_save_IFS
2503 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2504
2505
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2507 $as_echo_n "checking target system type... " >&6; }
2508 if ${ac_cv_target+:} false; then :
2509   $as_echo_n "(cached) " >&6
2510 else
2511   if test "x$target_alias" = x; then
2512   ac_cv_target=$ac_cv_host
2513 else
2514   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2515     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2516 fi
2517
2518 fi
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2520 $as_echo "$ac_cv_target" >&6; }
2521 case $ac_cv_target in
2522 *-*-*) ;;
2523 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2524 esac
2525 target=$ac_cv_target
2526 ac_save_IFS=$IFS; IFS='-'
2527 set x $ac_cv_target
2528 shift
2529 target_cpu=$1
2530 target_vendor=$2
2531 shift; shift
2532 # Remember, the first character of IFS is used to create $*,
2533 # except with old shells:
2534 target_os=$*
2535 IFS=$ac_save_IFS
2536 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2537
2538
2539 # The aliases save the names the user supplied, while $host etc.
2540 # will get canonicalized.
2541 test -n "$target_alias" &&
2542   test "$program_prefix$program_suffix$program_transform_name" = \
2543     NONENONEs,x,x, &&
2544   program_prefix=${target_alias}-
2545
2546
2547 ac_ext=c
2548 ac_cpp='$CPP $CPPFLAGS'
2549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552 if test -n "$ac_tool_prefix"; then
2553   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2554 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if ${ac_cv_prog_CC+:} false; then :
2558   $as_echo_n "(cached) " >&6
2559 else
2560   if test -n "$CC"; then
2561   ac_cv_prog_CC="$CC" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566   IFS=$as_save_IFS
2567   test -z "$as_dir" && as_dir=.
2568     for ac_exec_ext in '' $ac_executable_extensions; do
2569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572     break 2
2573   fi
2574 done
2575   done
2576 IFS=$as_save_IFS
2577
2578 fi
2579 fi
2580 CC=$ac_cv_prog_CC
2581 if test -n "$CC"; then
2582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2583 $as_echo "$CC" >&6; }
2584 else
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586 $as_echo "no" >&6; }
2587 fi
2588
2589
2590 fi
2591 if test -z "$ac_cv_prog_CC"; then
2592   ac_ct_CC=$CC
2593   # Extract the first word of "gcc", so it can be a program name with args.
2594 set dummy gcc; ac_word=$2
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2596 $as_echo_n "checking for $ac_word... " >&6; }
2597 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2598   $as_echo_n "(cached) " >&6
2599 else
2600   if test -n "$ac_ct_CC"; then
2601   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606   IFS=$as_save_IFS
2607   test -z "$as_dir" && as_dir=.
2608     for ac_exec_ext in '' $ac_executable_extensions; do
2609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610     ac_cv_prog_ac_ct_CC="gcc"
2611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2612     break 2
2613   fi
2614 done
2615   done
2616 IFS=$as_save_IFS
2617
2618 fi
2619 fi
2620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2623 $as_echo "$ac_ct_CC" >&6; }
2624 else
2625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626 $as_echo "no" >&6; }
2627 fi
2628
2629   if test "x$ac_ct_CC" = x; then
2630     CC=""
2631   else
2632     case $cross_compiling:$ac_tool_warned in
2633 yes:)
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2636 ac_tool_warned=yes ;;
2637 esac
2638     CC=$ac_ct_CC
2639   fi
2640 else
2641   CC="$ac_cv_prog_CC"
2642 fi
2643
2644 if test -z "$CC"; then
2645           if test -n "$ac_tool_prefix"; then
2646     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2647 set dummy ${ac_tool_prefix}cc; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if ${ac_cv_prog_CC+:} false; then :
2651   $as_echo_n "(cached) " >&6
2652 else
2653   if test -n "$CC"; then
2654   ac_cv_prog_CC="$CC" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661     for ac_exec_ext in '' $ac_executable_extensions; do
2662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663     ac_cv_prog_CC="${ac_tool_prefix}cc"
2664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665     break 2
2666   fi
2667 done
2668   done
2669 IFS=$as_save_IFS
2670
2671 fi
2672 fi
2673 CC=$ac_cv_prog_CC
2674 if test -n "$CC"; then
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2676 $as_echo "$CC" >&6; }
2677 else
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 fi
2681
2682
2683   fi
2684 fi
2685 if test -z "$CC"; then
2686   # Extract the first word of "cc", so it can be a program name with args.
2687 set dummy cc; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if ${ac_cv_prog_CC+:} false; then :
2691   $as_echo_n "(cached) " >&6
2692 else
2693   if test -n "$CC"; then
2694   ac_cv_prog_CC="$CC" # Let the user override the test.
2695 else
2696   ac_prog_rejected=no
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700   IFS=$as_save_IFS
2701   test -z "$as_dir" && as_dir=.
2702     for ac_exec_ext in '' $ac_executable_extensions; do
2703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2705        ac_prog_rejected=yes
2706        continue
2707      fi
2708     ac_cv_prog_CC="cc"
2709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710     break 2
2711   fi
2712 done
2713   done
2714 IFS=$as_save_IFS
2715
2716 if test $ac_prog_rejected = yes; then
2717   # We found a bogon in the path, so make sure we never use it.
2718   set dummy $ac_cv_prog_CC
2719   shift
2720   if test $# != 0; then
2721     # We chose a different compiler from the bogus one.
2722     # However, it has the same basename, so the bogon will be chosen
2723     # first if we set CC to just the basename; use the full file name.
2724     shift
2725     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2726   fi
2727 fi
2728 fi
2729 fi
2730 CC=$ac_cv_prog_CC
2731 if test -n "$CC"; then
2732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2733 $as_echo "$CC" >&6; }
2734 else
2735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2737 fi
2738
2739
2740 fi
2741 if test -z "$CC"; then
2742   if test -n "$ac_tool_prefix"; then
2743   for ac_prog in cl.exe
2744   do
2745     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if ${ac_cv_prog_CC+:} false; then :
2750   $as_echo_n "(cached) " >&6
2751 else
2752   if test -n "$CC"; then
2753   ac_cv_prog_CC="$CC" # Let the user override the test.
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH
2757 do
2758   IFS=$as_save_IFS
2759   test -z "$as_dir" && as_dir=.
2760     for ac_exec_ext in '' $ac_executable_extensions; do
2761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2762     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764     break 2
2765   fi
2766 done
2767   done
2768 IFS=$as_save_IFS
2769
2770 fi
2771 fi
2772 CC=$ac_cv_prog_CC
2773 if test -n "$CC"; then
2774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2775 $as_echo "$CC" >&6; }
2776 else
2777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2779 fi
2780
2781
2782     test -n "$CC" && break
2783   done
2784 fi
2785 if test -z "$CC"; then
2786   ac_ct_CC=$CC
2787   for ac_prog in cl.exe
2788 do
2789   # Extract the first word of "$ac_prog", so it can be a program name with args.
2790 set dummy $ac_prog; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2794   $as_echo_n "(cached) " >&6
2795 else
2796   if test -n "$ac_ct_CC"; then
2797   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802   IFS=$as_save_IFS
2803   test -z "$as_dir" && as_dir=.
2804     for ac_exec_ext in '' $ac_executable_extensions; do
2805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806     ac_cv_prog_ac_ct_CC="$ac_prog"
2807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808     break 2
2809   fi
2810 done
2811   done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2817 if test -n "$ac_ct_CC"; then
2818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2819 $as_echo "$ac_ct_CC" >&6; }
2820 else
2821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825
2826   test -n "$ac_ct_CC" && break
2827 done
2828
2829   if test "x$ac_ct_CC" = x; then
2830     CC=""
2831   else
2832     case $cross_compiling:$ac_tool_warned in
2833 yes:)
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2836 ac_tool_warned=yes ;;
2837 esac
2838     CC=$ac_ct_CC
2839   fi
2840 fi
2841
2842 fi
2843
2844
2845 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2847 as_fn_error $? "no acceptable C compiler found in \$PATH
2848 See \`config.log' for more details" "$LINENO" 5; }
2849
2850 # Provide some information about the compiler.
2851 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2852 set X $ac_compile
2853 ac_compiler=$2
2854 for ac_option in --version -v -V -qversion; do
2855   { { ac_try="$ac_compiler $ac_option >&5"
2856 case "(($ac_try" in
2857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858   *) ac_try_echo=$ac_try;;
2859 esac
2860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2861 $as_echo "$ac_try_echo"; } >&5
2862   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2863   ac_status=$?
2864   if test -s conftest.err; then
2865     sed '10a\
2866 ... rest of stderr output deleted ...
2867          10q' conftest.err >conftest.er1
2868     cat conftest.er1 >&5
2869   fi
2870   rm -f conftest.er1 conftest.err
2871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2872   test $ac_status = 0; }
2873 done
2874
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h.  */
2877
2878 int
2879 main ()
2880 {
2881
2882   ;
2883   return 0;
2884 }
2885 _ACEOF
2886 ac_clean_files_save=$ac_clean_files
2887 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2888 # Try to create an executable without -o first, disregard a.out.
2889 # It will help us diagnose broken compilers, and finding out an intuition
2890 # of exeext.
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2892 $as_echo_n "checking whether the C compiler works... " >&6; }
2893 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2894
2895 # The possible output files:
2896 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2897
2898 ac_rmfiles=
2899 for ac_file in $ac_files
2900 do
2901   case $ac_file in
2902     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2903     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2904   esac
2905 done
2906 rm -f $ac_rmfiles
2907
2908 if { { ac_try="$ac_link_default"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2914 $as_echo "$ac_try_echo"; } >&5
2915   (eval "$ac_link_default") 2>&5
2916   ac_status=$?
2917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2918   test $ac_status = 0; }; then :
2919   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2920 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2921 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2922 # so that the user can short-circuit this test for compilers unknown to
2923 # Autoconf.
2924 for ac_file in $ac_files ''
2925 do
2926   test -f "$ac_file" || continue
2927   case $ac_file in
2928     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2929         ;;
2930     [ab].out )
2931         # We found the default executable, but exeext='' is most
2932         # certainly right.
2933         break;;
2934     *.* )
2935         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2936         then :; else
2937            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938         fi
2939         # We set ac_cv_exeext here because the later test for it is not
2940         # safe: cross compilers may not add the suffix if given an `-o'
2941         # argument, so we may need to know it at that point already.
2942         # Even if this section looks crufty: it has the advantage of
2943         # actually working.
2944         break;;
2945     * )
2946         break;;
2947   esac
2948 done
2949 test "$ac_cv_exeext" = no && ac_cv_exeext=
2950
2951 else
2952   ac_file=''
2953 fi
2954 if test -z "$ac_file"; then :
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 $as_echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2962 as_fn_error 77 "C compiler cannot create executables
2963 See \`config.log' for more details" "$LINENO" 5; }
2964 else
2965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2966 $as_echo "yes" >&6; }
2967 fi
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2969 $as_echo_n "checking for C compiler default output file name... " >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2971 $as_echo "$ac_file" >&6; }
2972 ac_exeext=$ac_cv_exeext
2973
2974 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2975 ac_clean_files=$ac_clean_files_save
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2977 $as_echo_n "checking for suffix of executables... " >&6; }
2978 if { { ac_try="$ac_link"
2979 case "(($ac_try" in
2980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981   *) ac_try_echo=$ac_try;;
2982 esac
2983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984 $as_echo "$ac_try_echo"; } >&5
2985   (eval "$ac_link") 2>&5
2986   ac_status=$?
2987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988   test $ac_status = 0; }; then :
2989   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2990 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2991 # work properly (i.e., refer to `conftest.exe'), while it won't with
2992 # `rm'.
2993 for ac_file in conftest.exe conftest conftest.*; do
2994   test -f "$ac_file" || continue
2995   case $ac_file in
2996     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2997     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2998           break;;
2999     * ) break;;
3000   esac
3001 done
3002 else
3003   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3005 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3006 See \`config.log' for more details" "$LINENO" 5; }
3007 fi
3008 rm -f conftest conftest$ac_cv_exeext
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3010 $as_echo "$ac_cv_exeext" >&6; }
3011
3012 rm -f conftest.$ac_ext
3013 EXEEXT=$ac_cv_exeext
3014 ac_exeext=$EXEEXT
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h.  */
3017 #include <stdio.h>
3018 int
3019 main ()
3020 {
3021 FILE *f = fopen ("conftest.out", "w");
3022  return ferror (f) || fclose (f) != 0;
3023
3024   ;
3025   return 0;
3026 }
3027 _ACEOF
3028 ac_clean_files="$ac_clean_files conftest.out"
3029 # Check that the compiler produces executables we can run.  If not, either
3030 # the compiler is broken, or we cross compile.
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3032 $as_echo_n "checking whether we are cross compiling... " >&6; }
3033 if test "$cross_compiling" != yes; then
3034   { { ac_try="$ac_link"
3035 case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040 $as_echo "$ac_try_echo"; } >&5
3041   (eval "$ac_link") 2>&5
3042   ac_status=$?
3043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044   test $ac_status = 0; }
3045   if { ac_try='./conftest$ac_cv_exeext'
3046   { { case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051 $as_echo "$ac_try_echo"; } >&5
3052   (eval "$ac_try") 2>&5
3053   ac_status=$?
3054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055   test $ac_status = 0; }; }; then
3056     cross_compiling=no
3057   else
3058     if test "$cross_compiling" = maybe; then
3059         cross_compiling=yes
3060     else
3061         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3063 as_fn_error $? "cannot run C compiled programs.
3064 If you meant to cross compile, use \`--host'.
3065 See \`config.log' for more details" "$LINENO" 5; }
3066     fi
3067   fi
3068 fi
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3070 $as_echo "$cross_compiling" >&6; }
3071
3072 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3073 ac_clean_files=$ac_clean_files_save
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3075 $as_echo_n "checking for suffix of object files... " >&6; }
3076 if ${ac_cv_objext+:} false; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h.  */
3081
3082 int
3083 main ()
3084 {
3085
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 rm -f conftest.o conftest.obj
3091 if { { ac_try="$ac_compile"
3092 case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3097 $as_echo "$ac_try_echo"; } >&5
3098   (eval "$ac_compile") 2>&5
3099   ac_status=$?
3100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101   test $ac_status = 0; }; then :
3102   for ac_file in conftest.o conftest.obj conftest.*; do
3103   test -f "$ac_file" || continue;
3104   case $ac_file in
3105     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3106     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3107        break;;
3108   esac
3109 done
3110 else
3111   $as_echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116 as_fn_error $? "cannot compute suffix of object files: cannot compile
3117 See \`config.log' for more details" "$LINENO" 5; }
3118 fi
3119 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3120 fi
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3122 $as_echo "$ac_cv_objext" >&6; }
3123 OBJEXT=$ac_cv_objext
3124 ac_objext=$OBJEXT
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3126 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3127 if ${ac_cv_c_compiler_gnu+:} false; then :
3128   $as_echo_n "(cached) " >&6
3129 else
3130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3131 /* end confdefs.h.  */
3132
3133 int
3134 main ()
3135 {
3136 #ifndef __GNUC__
3137        choke me
3138 #endif
3139
3140   ;
3141   return 0;
3142 }
3143 _ACEOF
3144 if ac_fn_c_try_compile "$LINENO"; then :
3145   ac_compiler_gnu=yes
3146 else
3147   ac_compiler_gnu=no
3148 fi
3149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3151
3152 fi
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3154 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3155 if test $ac_compiler_gnu = yes; then
3156   GCC=yes
3157 else
3158   GCC=
3159 fi
3160 ac_test_CFLAGS=${CFLAGS+set}
3161 ac_save_CFLAGS=$CFLAGS
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3163 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3164 if ${ac_cv_prog_cc_g+:} false; then :
3165   $as_echo_n "(cached) " >&6
3166 else
3167   ac_save_c_werror_flag=$ac_c_werror_flag
3168    ac_c_werror_flag=yes
3169    ac_cv_prog_cc_g=no
3170    CFLAGS="-g"
3171    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h.  */
3173
3174 int
3175 main ()
3176 {
3177
3178   ;
3179   return 0;
3180 }
3181 _ACEOF
3182 if ac_fn_c_try_compile "$LINENO"; then :
3183   ac_cv_prog_cc_g=yes
3184 else
3185   CFLAGS=""
3186       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h.  */
3188
3189 int
3190 main ()
3191 {
3192
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 if ac_fn_c_try_compile "$LINENO"; then :
3198
3199 else
3200   ac_c_werror_flag=$ac_save_c_werror_flag
3201          CFLAGS="-g"
3202          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h.  */
3204
3205 int
3206 main ()
3207 {
3208
3209   ;
3210   return 0;
3211 }
3212 _ACEOF
3213 if ac_fn_c_try_compile "$LINENO"; then :
3214   ac_cv_prog_cc_g=yes
3215 fi
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 fi
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 fi
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221    ac_c_werror_flag=$ac_save_c_werror_flag
3222 fi
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3224 $as_echo "$ac_cv_prog_cc_g" >&6; }
3225 if test "$ac_test_CFLAGS" = set; then
3226   CFLAGS=$ac_save_CFLAGS
3227 elif test $ac_cv_prog_cc_g = yes; then
3228   if test "$GCC" = yes; then
3229     CFLAGS="-g -O2"
3230   else
3231     CFLAGS="-g"
3232   fi
3233 else
3234   if test "$GCC" = yes; then
3235     CFLAGS="-O2"
3236   else
3237     CFLAGS=
3238   fi
3239 fi
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3241 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3242 if ${ac_cv_prog_cc_c89+:} false; then :
3243   $as_echo_n "(cached) " >&6
3244 else
3245   ac_cv_prog_cc_c89=no
3246 ac_save_CC=$CC
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h.  */
3249 #include <stdarg.h>
3250 #include <stdio.h>
3251 struct stat;
3252 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3253 struct buf { int x; };
3254 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3255 static char *e (p, i)
3256      char **p;
3257      int i;
3258 {
3259   return p[i];
3260 }
3261 static char *f (char * (*g) (char **, int), char **p, ...)
3262 {
3263   char *s;
3264   va_list v;
3265   va_start (v,p);
3266   s = g (p, va_arg (v,int));
3267   va_end (v);
3268   return s;
3269 }
3270
3271 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3272    function prototypes and stuff, but not '\xHH' hex character constants.
3273    These don't provoke an error unfortunately, instead are silently treated
3274    as 'x'.  The following induces an error, until -std is added to get
3275    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3276    array size at least.  It's necessary to write '\x00'==0 to get something
3277    that's true only with -std.  */
3278 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3279
3280 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3281    inside strings and character constants.  */
3282 #define FOO(x) 'x'
3283 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3284
3285 int test (int i, double x);
3286 struct s1 {int (*f) (int a);};
3287 struct s2 {int (*f) (double a);};
3288 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3289 int argc;
3290 char **argv;
3291 int
3292 main ()
3293 {
3294 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3295   ;
3296   return 0;
3297 }
3298 _ACEOF
3299 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3300         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3301 do
3302   CC="$ac_save_CC $ac_arg"
3303   if ac_fn_c_try_compile "$LINENO"; then :
3304   ac_cv_prog_cc_c89=$ac_arg
3305 fi
3306 rm -f core conftest.err conftest.$ac_objext
3307   test "x$ac_cv_prog_cc_c89" != "xno" && break
3308 done
3309 rm -f conftest.$ac_ext
3310 CC=$ac_save_CC
3311
3312 fi
3313 # AC_CACHE_VAL
3314 case "x$ac_cv_prog_cc_c89" in
3315   x)
3316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3317 $as_echo "none needed" >&6; } ;;
3318   xno)
3319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3320 $as_echo "unsupported" >&6; } ;;
3321   *)
3322     CC="$CC $ac_cv_prog_cc_c89"
3323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3324 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3325 esac
3326 if test "x$ac_cv_prog_cc_c89" != xno; then :
3327
3328 fi
3329
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335
3336 ac_ext=cpp
3337 ac_cpp='$CXXCPP $CPPFLAGS'
3338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3341 if test -z "$CXX"; then
3342   if test -n "$CCC"; then
3343     CXX=$CCC
3344   else
3345     if test -n "$ac_tool_prefix"; then
3346   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3347   do
3348     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_CXX+:} false; then :
3353   $as_echo_n "(cached) " >&6
3354 else
3355   if test -n "$CXX"; then
3356   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361   IFS=$as_save_IFS
3362   test -z "$as_dir" && as_dir=.
3363     for ac_exec_ext in '' $ac_executable_extensions; do
3364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367     break 2
3368   fi
3369 done
3370   done
3371 IFS=$as_save_IFS
3372
3373 fi
3374 fi
3375 CXX=$ac_cv_prog_CXX
3376 if test -n "$CXX"; then
3377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3378 $as_echo "$CXX" >&6; }
3379 else
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 fi
3383
3384
3385     test -n "$CXX" && break
3386   done
3387 fi
3388 if test -z "$CXX"; then
3389   ac_ct_CXX=$CXX
3390   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3391 do
3392   # Extract the first word of "$ac_prog", so it can be a program name with args.
3393 set dummy $ac_prog; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   if test -n "$ac_ct_CXX"; then
3400   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405   IFS=$as_save_IFS
3406   test -z "$as_dir" && as_dir=.
3407     for ac_exec_ext in '' $ac_executable_extensions; do
3408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409     ac_cv_prog_ac_ct_CXX="$ac_prog"
3410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411     break 2
3412   fi
3413 done
3414   done
3415 IFS=$as_save_IFS
3416
3417 fi
3418 fi
3419 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3420 if test -n "$ac_ct_CXX"; then
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3422 $as_echo "$ac_ct_CXX" >&6; }
3423 else
3424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3426 fi
3427
3428
3429   test -n "$ac_ct_CXX" && break
3430 done
3431
3432   if test "x$ac_ct_CXX" = x; then
3433     CXX="g++"
3434   else
3435     case $cross_compiling:$ac_tool_warned in
3436 yes:)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439 ac_tool_warned=yes ;;
3440 esac
3441     CXX=$ac_ct_CXX
3442   fi
3443 fi
3444
3445   fi
3446 fi
3447 # Provide some information about the compiler.
3448 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3449 set X $ac_compile
3450 ac_compiler=$2
3451 for ac_option in --version -v -V -qversion; do
3452   { { ac_try="$ac_compiler $ac_option >&5"
3453 case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3460   ac_status=$?
3461   if test -s conftest.err; then
3462     sed '10a\
3463 ... rest of stderr output deleted ...
3464          10q' conftest.err >conftest.er1
3465     cat conftest.er1 >&5
3466   fi
3467   rm -f conftest.er1 conftest.err
3468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469   test $ac_status = 0; }
3470 done
3471
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3473 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3474 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3475   $as_echo_n "(cached) " >&6
3476 else
3477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h.  */
3479
3480 int
3481 main ()
3482 {
3483 #ifndef __GNUC__
3484        choke me
3485 #endif
3486
3487   ;
3488   return 0;
3489 }
3490 _ACEOF
3491 if ac_fn_cxx_try_compile "$LINENO"; then :
3492   ac_compiler_gnu=yes
3493 else
3494   ac_compiler_gnu=no
3495 fi
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3498
3499 fi
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3501 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3502 if test $ac_compiler_gnu = yes; then
3503   GXX=yes
3504 else
3505   GXX=
3506 fi
3507 ac_test_CXXFLAGS=${CXXFLAGS+set}
3508 ac_save_CXXFLAGS=$CXXFLAGS
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3510 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3511 if ${ac_cv_prog_cxx_g+:} false; then :
3512   $as_echo_n "(cached) " >&6
3513 else
3514   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3515    ac_cxx_werror_flag=yes
3516    ac_cv_prog_cxx_g=no
3517    CXXFLAGS="-g"
3518    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h.  */
3520
3521 int
3522 main ()
3523 {
3524
3525   ;
3526   return 0;
3527 }
3528 _ACEOF
3529 if ac_fn_cxx_try_compile "$LINENO"; then :
3530   ac_cv_prog_cxx_g=yes
3531 else
3532   CXXFLAGS=""
3533       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h.  */
3535
3536 int
3537 main ()
3538 {
3539
3540   ;
3541   return 0;
3542 }
3543 _ACEOF
3544 if ac_fn_cxx_try_compile "$LINENO"; then :
3545
3546 else
3547   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3548          CXXFLAGS="-g"
3549          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h.  */
3551
3552 int
3553 main ()
3554 {
3555
3556   ;
3557   return 0;
3558 }
3559 _ACEOF
3560 if ac_fn_cxx_try_compile "$LINENO"; then :
3561   ac_cv_prog_cxx_g=yes
3562 fi
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 fi
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 fi
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3569 fi
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3571 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3572 if test "$ac_test_CXXFLAGS" = set; then
3573   CXXFLAGS=$ac_save_CXXFLAGS
3574 elif test $ac_cv_prog_cxx_g = yes; then
3575   if test "$GXX" = yes; then
3576     CXXFLAGS="-g -O2"
3577   else
3578     CXXFLAGS="-g"
3579   fi
3580 else
3581   if test "$GXX" = yes; then
3582     CXXFLAGS="-O2"
3583   else
3584     CXXFLAGS=
3585   fi
3586 fi
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
3593
3594
3595 ac_ext=c
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3601 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3602 # On Suns, sometimes $CPP names a directory.
3603 if test -n "$CPP" && test -d "$CPP"; then
3604   CPP=
3605 fi
3606 if test -z "$CPP"; then
3607   if ${ac_cv_prog_CPP+:} false; then :
3608   $as_echo_n "(cached) " >&6
3609 else
3610       # Double quotes because CPP needs to be expanded
3611     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3612     do
3613       ac_preproc_ok=false
3614 for ac_c_preproc_warn_flag in '' yes
3615 do
3616   # Use a header file that comes with gcc, so configuring glibc
3617   # with a fresh cross-compiler works.
3618   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619   # <limits.h> exists even on freestanding compilers.
3620   # On the NeXT, cc -E runs the code through the compiler's parser,
3621   # not just through cpp. "Syntax error" is here to catch this case.
3622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h.  */
3624 #ifdef __STDC__
3625 # include <limits.h>
3626 #else
3627 # include <assert.h>
3628 #endif
3629                      Syntax error
3630 _ACEOF
3631 if ac_fn_c_try_cpp "$LINENO"; then :
3632
3633 else
3634   # Broken: fails on valid input.
3635 continue
3636 fi
3637 rm -f conftest.err conftest.i conftest.$ac_ext
3638
3639   # OK, works on sane cases.  Now check whether nonexistent headers
3640   # can be detected and how.
3641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h.  */
3643 #include <ac_nonexistent.h>
3644 _ACEOF
3645 if ac_fn_c_try_cpp "$LINENO"; then :
3646   # Broken: success on invalid input.
3647 continue
3648 else
3649   # Passes both tests.
3650 ac_preproc_ok=:
3651 break
3652 fi
3653 rm -f conftest.err conftest.i conftest.$ac_ext
3654
3655 done
3656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3657 rm -f conftest.i conftest.err conftest.$ac_ext
3658 if $ac_preproc_ok; then :
3659   break
3660 fi
3661
3662     done
3663     ac_cv_prog_CPP=$CPP
3664
3665 fi
3666   CPP=$ac_cv_prog_CPP
3667 else
3668   ac_cv_prog_CPP=$CPP
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3671 $as_echo "$CPP" >&6; }
3672 ac_preproc_ok=false
3673 for ac_c_preproc_warn_flag in '' yes
3674 do
3675   # Use a header file that comes with gcc, so configuring glibc
3676   # with a fresh cross-compiler works.
3677   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3678   # <limits.h> exists even on freestanding compilers.
3679   # On the NeXT, cc -E runs the code through the compiler's parser,
3680   # not just through cpp. "Syntax error" is here to catch this case.
3681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h.  */
3683 #ifdef __STDC__
3684 # include <limits.h>
3685 #else
3686 # include <assert.h>
3687 #endif
3688                      Syntax error
3689 _ACEOF
3690 if ac_fn_c_try_cpp "$LINENO"; then :
3691
3692 else
3693   # Broken: fails on valid input.
3694 continue
3695 fi
3696 rm -f conftest.err conftest.i conftest.$ac_ext
3697
3698   # OK, works on sane cases.  Now check whether nonexistent headers
3699   # can be detected and how.
3700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h.  */
3702 #include <ac_nonexistent.h>
3703 _ACEOF
3704 if ac_fn_c_try_cpp "$LINENO"; then :
3705   # Broken: success on invalid input.
3706 continue
3707 else
3708   # Passes both tests.
3709 ac_preproc_ok=:
3710 break
3711 fi
3712 rm -f conftest.err conftest.i conftest.$ac_ext
3713
3714 done
3715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3716 rm -f conftest.i conftest.err conftest.$ac_ext
3717 if $ac_preproc_ok; then :
3718
3719 else
3720   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3723 See \`config.log' for more details" "$LINENO" 5; }
3724 fi
3725
3726 ac_ext=c
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731
3732
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3734 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3735 if ${ac_cv_path_GREP+:} false; then :
3736   $as_echo_n "(cached) " >&6
3737 else
3738   if test -z "$GREP"; then
3739   ac_path_GREP_found=false
3740   # Loop through the user's path and test for each of PROGNAME-LIST
3741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746     for ac_prog in grep ggrep; do
3747     for ac_exec_ext in '' $ac_executable_extensions; do
3748       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3749       as_fn_executable_p "$ac_path_GREP" || continue
3750 # Check for GNU ac_path_GREP and select it if it is found.
3751   # Check for GNU $ac_path_GREP
3752 case `"$ac_path_GREP" --version 2>&1` in
3753 *GNU*)
3754   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3755 *)
3756   ac_count=0
3757   $as_echo_n 0123456789 >"conftest.in"
3758   while :
3759   do
3760     cat "conftest.in" "conftest.in" >"conftest.tmp"
3761     mv "conftest.tmp" "conftest.in"
3762     cp "conftest.in" "conftest.nl"
3763     $as_echo 'GREP' >> "conftest.nl"
3764     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3766     as_fn_arith $ac_count + 1 && ac_count=$as_val
3767     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3768       # Best one so far, save it but keep looking for a better one
3769       ac_cv_path_GREP="$ac_path_GREP"
3770       ac_path_GREP_max=$ac_count
3771     fi
3772     # 10*(2^10) chars as input seems more than enough
3773     test $ac_count -gt 10 && break
3774   done
3775   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3776 esac
3777
3778       $ac_path_GREP_found && break 3
3779     done
3780   done
3781   done
3782 IFS=$as_save_IFS
3783   if test -z "$ac_cv_path_GREP"; then
3784     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3785   fi
3786 else
3787   ac_cv_path_GREP=$GREP
3788 fi
3789
3790 fi
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3792 $as_echo "$ac_cv_path_GREP" >&6; }
3793  GREP="$ac_cv_path_GREP"
3794
3795
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3797 $as_echo_n "checking for egrep... " >&6; }
3798 if ${ac_cv_path_EGREP+:} false; then :
3799   $as_echo_n "(cached) " >&6
3800 else
3801   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3802    then ac_cv_path_EGREP="$GREP -E"
3803    else
3804      if test -z "$EGREP"; then
3805   ac_path_EGREP_found=false
3806   # Loop through the user's path and test for each of PROGNAME-LIST
3807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3809 do
3810   IFS=$as_save_IFS
3811   test -z "$as_dir" && as_dir=.
3812     for ac_prog in egrep; do
3813     for ac_exec_ext in '' $ac_executable_extensions; do
3814       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3815       as_fn_executable_p "$ac_path_EGREP" || continue
3816 # Check for GNU ac_path_EGREP and select it if it is found.
3817   # Check for GNU $ac_path_EGREP
3818 case `"$ac_path_EGREP" --version 2>&1` in
3819 *GNU*)
3820   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3821 *)
3822   ac_count=0
3823   $as_echo_n 0123456789 >"conftest.in"
3824   while :
3825   do
3826     cat "conftest.in" "conftest.in" >"conftest.tmp"
3827     mv "conftest.tmp" "conftest.in"
3828     cp "conftest.in" "conftest.nl"
3829     $as_echo 'EGREP' >> "conftest.nl"
3830     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3831     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3832     as_fn_arith $ac_count + 1 && ac_count=$as_val
3833     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3834       # Best one so far, save it but keep looking for a better one
3835       ac_cv_path_EGREP="$ac_path_EGREP"
3836       ac_path_EGREP_max=$ac_count
3837     fi
3838     # 10*(2^10) chars as input seems more than enough
3839     test $ac_count -gt 10 && break
3840   done
3841   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3842 esac
3843
3844       $ac_path_EGREP_found && break 3
3845     done
3846   done
3847   done
3848 IFS=$as_save_IFS
3849   if test -z "$ac_cv_path_EGREP"; then
3850     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3851   fi
3852 else
3853   ac_cv_path_EGREP=$EGREP
3854 fi
3855
3856    fi
3857 fi
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3859 $as_echo "$ac_cv_path_EGREP" >&6; }
3860  EGREP="$ac_cv_path_EGREP"
3861
3862
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3864 $as_echo_n "checking for ANSI C header files... " >&6; }
3865 if ${ac_cv_header_stdc+:} false; then :
3866   $as_echo_n "(cached) " >&6
3867 else
3868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h.  */
3870 #include <stdlib.h>
3871 #include <stdarg.h>
3872 #include <string.h>
3873 #include <float.h>
3874
3875 int
3876 main ()
3877 {
3878
3879   ;
3880   return 0;
3881 }
3882 _ACEOF
3883 if ac_fn_c_try_compile "$LINENO"; then :
3884   ac_cv_header_stdc=yes
3885 else
3886   ac_cv_header_stdc=no
3887 fi
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889
3890 if test $ac_cv_header_stdc = yes; then
3891   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h.  */
3894 #include <string.h>
3895
3896 _ACEOF
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3898   $EGREP "memchr" >/dev/null 2>&1; then :
3899
3900 else
3901   ac_cv_header_stdc=no
3902 fi
3903 rm -f conftest*
3904
3905 fi
3906
3907 if test $ac_cv_header_stdc = yes; then
3908   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h.  */
3911 #include <stdlib.h>
3912
3913 _ACEOF
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915   $EGREP "free" >/dev/null 2>&1; then :
3916
3917 else
3918   ac_cv_header_stdc=no
3919 fi
3920 rm -f conftest*
3921
3922 fi
3923
3924 if test $ac_cv_header_stdc = yes; then
3925   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3926   if test "$cross_compiling" = yes; then :
3927   :
3928 else
3929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h.  */
3931 #include <ctype.h>
3932 #include <stdlib.h>
3933 #if ((' ' & 0x0FF) == 0x020)
3934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3936 #else
3937 # define ISLOWER(c) \
3938                    (('a' <= (c) && (c) <= 'i') \
3939                      || ('j' <= (c) && (c) <= 'r') \
3940                      || ('s' <= (c) && (c) <= 'z'))
3941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3942 #endif
3943
3944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3945 int
3946 main ()
3947 {
3948   int i;
3949   for (i = 0; i < 256; i++)
3950     if (XOR (islower (i), ISLOWER (i))
3951         || toupper (i) != TOUPPER (i))
3952       return 2;
3953   return 0;
3954 }
3955 _ACEOF
3956 if ac_fn_c_try_run "$LINENO"; then :
3957
3958 else
3959   ac_cv_header_stdc=no
3960 fi
3961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3962   conftest.$ac_objext conftest.beam conftest.$ac_ext
3963 fi
3964
3965 fi
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3968 $as_echo "$ac_cv_header_stdc" >&6; }
3969 if test $ac_cv_header_stdc = yes; then
3970
3971 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3972
3973 fi
3974
3975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3976 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3977                   inttypes.h stdint.h unistd.h
3978 do :
3979   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3980 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3981 "
3982 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3983   cat >>confdefs.h <<_ACEOF
3984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3985 _ACEOF
3986
3987 fi
3988
3989 done
3990
3991
3992
3993   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3994 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3995   MINIX=yes
3996 else
3997   MINIX=
3998 fi
3999
4000
4001   if test "$MINIX" = yes; then
4002
4003 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4004
4005
4006 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4007
4008
4009 $as_echo "#define _MINIX 1" >>confdefs.h
4010
4011   fi
4012
4013
4014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4015 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4016 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4017   $as_echo_n "(cached) " >&6
4018 else
4019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h.  */
4021
4022 #         define __EXTENSIONS__ 1
4023           $ac_includes_default
4024 int
4025 main ()
4026 {
4027
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 if ac_fn_c_try_compile "$LINENO"; then :
4033   ac_cv_safe_to_define___extensions__=yes
4034 else
4035   ac_cv_safe_to_define___extensions__=no
4036 fi
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4040 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4041   test $ac_cv_safe_to_define___extensions__ = yes &&
4042     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4043
4044   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4045
4046   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4047
4048   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4049
4050   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4051
4052
4053
4054
4055 if test $ac_cv_c_compiler_gnu = yes; then
4056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4057 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4058 if ${ac_cv_prog_gcc_traditional+:} false; then :
4059   $as_echo_n "(cached) " >&6
4060 else
4061     ac_pattern="Autoconf.*'x'"
4062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h.  */
4064 #include <sgtty.h>
4065 Autoconf TIOCGETP
4066 _ACEOF
4067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4068   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4069   ac_cv_prog_gcc_traditional=yes
4070 else
4071   ac_cv_prog_gcc_traditional=no
4072 fi
4073 rm -f conftest*
4074
4075
4076   if test $ac_cv_prog_gcc_traditional = no; then
4077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h.  */
4079 #include <termio.h>
4080 Autoconf TCGETA
4081 _ACEOF
4082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4083   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4084   ac_cv_prog_gcc_traditional=yes
4085 fi
4086 rm -f conftest*
4087
4088   fi
4089 fi
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4091 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4092   if test $ac_cv_prog_gcc_traditional = yes; then
4093     CC="$CC -traditional"
4094   fi
4095 fi
4096
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4098 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4099 if ${ac_cv_prog_suncc+:} false; then :
4100   $as_echo_n "(cached) " >&6
4101 else
4102   cat > conftest.c <<EOF
4103 #ifdef __SUNPRO_C
4104   yes;
4105 #endif
4106 EOF
4107 if { ac_try='${CC-cc} -E conftest.c'
4108   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4109   (eval $ac_try) 2>&5
4110   ac_status=$?
4111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4113   ac_cv_prog_suncc=yes
4114 else
4115   ac_cv_prog_suncc=no
4116 fi
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4119 $as_echo "$ac_cv_prog_suncc" >&6; }
4120 if test -n "$ac_tool_prefix"; then
4121   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_RANLIB+:} false; then :
4126   $as_echo_n "(cached) " >&6
4127 else
4128   if test -n "$RANLIB"; then
4129   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136     for ac_exec_ext in '' $ac_executable_extensions; do
4137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140     break 2
4141   fi
4142 done
4143   done
4144 IFS=$as_save_IFS
4145
4146 fi
4147 fi
4148 RANLIB=$ac_cv_prog_RANLIB
4149 if test -n "$RANLIB"; then
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4151 $as_echo "$RANLIB" >&6; }
4152 else
4153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4155 fi
4156
4157
4158 fi
4159 if test -z "$ac_cv_prog_RANLIB"; then
4160   ac_ct_RANLIB=$RANLIB
4161   # Extract the first word of "ranlib", so it can be a program name with args.
4162 set dummy ranlib; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4166   $as_echo_n "(cached) " >&6
4167 else
4168   if test -n "$ac_ct_RANLIB"; then
4169   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174   IFS=$as_save_IFS
4175   test -z "$as_dir" && as_dir=.
4176     for ac_exec_ext in '' $ac_executable_extensions; do
4177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178     ac_cv_prog_ac_ct_RANLIB="ranlib"
4179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180     break 2
4181   fi
4182 done
4183   done
4184 IFS=$as_save_IFS
4185
4186 fi
4187 fi
4188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4189 if test -n "$ac_ct_RANLIB"; then
4190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4191 $as_echo "$ac_ct_RANLIB" >&6; }
4192 else
4193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4195 fi
4196
4197   if test "x$ac_ct_RANLIB" = x; then
4198     RANLIB=":"
4199   else
4200     case $cross_compiling:$ac_tool_warned in
4201 yes:)
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4204 ac_tool_warned=yes ;;
4205 esac
4206     RANLIB=$ac_ct_RANLIB
4207   fi
4208 else
4209   RANLIB="$ac_cv_prog_RANLIB"
4210 fi
4211
4212
4213
4214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4215 $as_echo_n "checking if compiler is clang... " >&6; }
4216 if ${ax_cv_cc_clang+:} false; then :
4217   $as_echo_n "(cached) " >&6
4218 else
4219
4220
4221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h.  */
4223
4224 int
4225 main ()
4226 {
4227
4228     #ifndef __clang__
4229          not clang
4230     #endif
4231
4232   ;
4233   return 0;
4234 }
4235 _ACEOF
4236 if ac_fn_c_try_compile "$LINENO"; then :
4237   ax_cv_cc_clang=yes
4238 else
4239   ax_cv_cc_clang=no
4240 fi
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242
4243 fi
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4245 $as_echo "$ax_cv_cc_clang" >&6; }
4246
4247
4248 if test "x$GCC" = "xyes"; then
4249   CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4250 fi
4251
4252
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4254 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4255 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4256   $as_echo_n "(cached) " >&6
4257 else
4258
4259
4260     CFLAGS_SAVED=$CFLAGS
4261     CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4262
4263     ac_ext=c
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268
4269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h.  */
4271
4272 int
4273 main ()
4274 {
4275 return 0;
4276   ;
4277   return 0;
4278 }
4279 _ACEOF
4280 if ac_fn_c_try_compile "$LINENO"; then :
4281   ax_cv_cc_qunused_arguments_flag="yes"
4282 else
4283   ax_cv_cc_qunused_arguments_flag="no"
4284 fi
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286     ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291
4292
4293     CFLAGS="$CFLAGS_SAVED"
4294
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4297 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4298
4299 if test "x$ax_cc_cv_qunused_arguments_flag" = "xyes"; then
4300   CFLAGS="$CFLAGS -Qunused-arguments"
4301   LDFLAGS="$LDFLAGS -Qunused-arguments"
4302 fi
4303
4304 # Check whether --enable-largefile was given.
4305 if test "${enable_largefile+set}" = set; then :
4306   enableval=$enable_largefile;
4307 fi
4308
4309 if test "$enable_largefile" != no; then
4310
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4312 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4313 if ${ac_cv_sys_largefile_CC+:} false; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316   ac_cv_sys_largefile_CC=no
4317      if test "$GCC" != yes; then
4318        ac_save_CC=$CC
4319        while :; do
4320          # IRIX 6.2 and later do not support large files by default,
4321          # so use the C compiler's -n32 option if that helps.
4322          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h.  */
4324 #include <sys/types.h>
4325  /* Check that off_t can represent 2**63 - 1 correctly.
4326     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4327     since some C++ compilers masquerading as C compilers
4328     incorrectly reject 9223372036854775807.  */
4329 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4330   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4331                        && LARGE_OFF_T % 2147483647 == 1)
4332                       ? 1 : -1];
4333 int
4334 main ()
4335 {
4336
4337   ;
4338   return 0;
4339 }
4340 _ACEOF
4341          if ac_fn_c_try_compile "$LINENO"; then :
4342   break
4343 fi
4344 rm -f core conftest.err conftest.$ac_objext
4345          CC="$CC -n32"
4346          if ac_fn_c_try_compile "$LINENO"; then :
4347   ac_cv_sys_largefile_CC=' -n32'; break
4348 fi
4349 rm -f core conftest.err conftest.$ac_objext
4350          break
4351        done
4352        CC=$ac_save_CC
4353        rm -f conftest.$ac_ext
4354     fi
4355 fi
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4357 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4358   if test "$ac_cv_sys_largefile_CC" != no; then
4359     CC=$CC$ac_cv_sys_largefile_CC
4360   fi
4361
4362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4363 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4364 if ${ac_cv_sys_file_offset_bits+:} false; then :
4365   $as_echo_n "(cached) " >&6
4366 else
4367   while :; do
4368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h.  */
4370 #include <sys/types.h>
4371  /* Check that off_t can represent 2**63 - 1 correctly.
4372     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4373     since some C++ compilers masquerading as C compilers
4374     incorrectly reject 9223372036854775807.  */
4375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4376   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4377                        && LARGE_OFF_T % 2147483647 == 1)
4378                       ? 1 : -1];
4379 int
4380 main ()
4381 {
4382
4383   ;
4384   return 0;
4385 }
4386 _ACEOF
4387 if ac_fn_c_try_compile "$LINENO"; then :
4388   ac_cv_sys_file_offset_bits=no; break
4389 fi
4390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h.  */
4393 #define _FILE_OFFSET_BITS 64
4394 #include <sys/types.h>
4395  /* Check that off_t can represent 2**63 - 1 correctly.
4396     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4397     since some C++ compilers masquerading as C compilers
4398     incorrectly reject 9223372036854775807.  */
4399 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4400   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4401                        && LARGE_OFF_T % 2147483647 == 1)
4402                       ? 1 : -1];
4403 int
4404 main ()
4405 {
4406
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411 if ac_fn_c_try_compile "$LINENO"; then :
4412   ac_cv_sys_file_offset_bits=64; break
4413 fi
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415   ac_cv_sys_file_offset_bits=unknown
4416   break
4417 done
4418 fi
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4420 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4421 case $ac_cv_sys_file_offset_bits in #(
4422   no | unknown) ;;
4423   *)
4424 cat >>confdefs.h <<_ACEOF
4425 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4426 _ACEOF
4427 ;;
4428 esac
4429 rm -rf conftest*
4430   if test $ac_cv_sys_file_offset_bits = unknown; then
4431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4432 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4433 if ${ac_cv_sys_large_files+:} false; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436   while :; do
4437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h.  */
4439 #include <sys/types.h>
4440  /* Check that off_t can represent 2**63 - 1 correctly.
4441     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4442     since some C++ compilers masquerading as C compilers
4443     incorrectly reject 9223372036854775807.  */
4444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4445   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4446                        && LARGE_OFF_T % 2147483647 == 1)
4447                       ? 1 : -1];
4448 int
4449 main ()
4450 {
4451
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457   ac_cv_sys_large_files=no; break
4458 fi
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h.  */
4462 #define _LARGE_FILES 1
4463 #include <sys/types.h>
4464  /* Check that off_t can represent 2**63 - 1 correctly.
4465     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4466     since some C++ compilers masquerading as C compilers
4467     incorrectly reject 9223372036854775807.  */
4468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4469   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4470                        && LARGE_OFF_T % 2147483647 == 1)
4471                       ? 1 : -1];
4472 int
4473 main ()
4474 {
4475
4476   ;
4477   return 0;
4478 }
4479 _ACEOF
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481   ac_cv_sys_large_files=1; break
4482 fi
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484   ac_cv_sys_large_files=unknown
4485   break
4486 done
4487 fi
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4489 $as_echo "$ac_cv_sys_large_files" >&6; }
4490 case $ac_cv_sys_large_files in #(
4491   no | unknown) ;;
4492   *)
4493 cat >>confdefs.h <<_ACEOF
4494 #define _LARGE_FILES $ac_cv_sys_large_files
4495 _ACEOF
4496 ;;
4497 esac
4498 rm -rf conftest*
4499   fi
4500
4501
4502 fi
4503
4504
4505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4506 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4507 if ${ac_cv_c_bigendian+:} false; then :
4508   $as_echo_n "(cached) " >&6
4509 else
4510   ac_cv_c_bigendian=unknown
4511     # See if we're dealing with a universal compiler.
4512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h.  */
4514 #ifndef __APPLE_CC__
4515                not a universal capable compiler
4516              #endif
4517              typedef int dummy;
4518
4519 _ACEOF
4520 if ac_fn_c_try_compile "$LINENO"; then :
4521
4522         # Check for potential -arch flags.  It is not universal unless
4523         # there are at least two -arch flags with different values.
4524         ac_arch=
4525         ac_prev=
4526         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4527          if test -n "$ac_prev"; then
4528            case $ac_word in
4529              i?86 | x86_64 | ppc | ppc64)
4530                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4531                  ac_arch=$ac_word
4532                else
4533                  ac_cv_c_bigendian=universal
4534                  break
4535                fi
4536                ;;
4537            esac
4538            ac_prev=
4539          elif test "x$ac_word" = "x-arch"; then
4540            ac_prev=arch
4541          fi
4542        done
4543 fi
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545     if test $ac_cv_c_bigendian = unknown; then
4546       # See if sys/param.h defines the BYTE_ORDER macro.
4547       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h.  */
4549 #include <sys/types.h>
4550              #include <sys/param.h>
4551
4552 int
4553 main ()
4554 {
4555 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4556                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4557                      && LITTLE_ENDIAN)
4558               bogus endian macros
4559              #endif
4560
4561   ;
4562   return 0;
4563 }
4564 _ACEOF
4565 if ac_fn_c_try_compile "$LINENO"; then :
4566   # It does; now see whether it defined to BIG_ENDIAN or not.
4567          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h.  */
4569 #include <sys/types.h>
4570                 #include <sys/param.h>
4571
4572 int
4573 main ()
4574 {
4575 #if BYTE_ORDER != BIG_ENDIAN
4576                  not big endian
4577                 #endif
4578
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 if ac_fn_c_try_compile "$LINENO"; then :
4584   ac_cv_c_bigendian=yes
4585 else
4586   ac_cv_c_bigendian=no
4587 fi
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 fi
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591     fi
4592     if test $ac_cv_c_bigendian = unknown; then
4593       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4594       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h.  */
4596 #include <limits.h>
4597
4598 int
4599 main ()
4600 {
4601 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4602               bogus endian macros
4603              #endif
4604
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610   # It does; now see whether it defined to _BIG_ENDIAN or not.
4611          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h.  */
4613 #include <limits.h>
4614
4615 int
4616 main ()
4617 {
4618 #ifndef _BIG_ENDIAN
4619                  not big endian
4620                 #endif
4621
4622   ;
4623   return 0;
4624 }
4625 _ACEOF
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627   ac_cv_c_bigendian=yes
4628 else
4629   ac_cv_c_bigendian=no
4630 fi
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 fi
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634     fi
4635     if test $ac_cv_c_bigendian = unknown; then
4636       # Compile a test program.
4637       if test "$cross_compiling" = yes; then :
4638   # Try to guess by grepping values from an object file.
4639          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h.  */
4641 short int ascii_mm[] =
4642                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4643                 short int ascii_ii[] =
4644                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4645                 int use_ascii (int i) {
4646                   return ascii_mm[i] + ascii_ii[i];
4647                 }
4648                 short int ebcdic_ii[] =
4649                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4650                 short int ebcdic_mm[] =
4651                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4652                 int use_ebcdic (int i) {
4653                   return ebcdic_mm[i] + ebcdic_ii[i];
4654                 }
4655                 extern int foo;
4656
4657 int
4658 main ()
4659 {
4660 return use_ascii (foo) == use_ebcdic (foo);
4661   ;
4662   return 0;
4663 }
4664 _ACEOF
4665 if ac_fn_c_try_compile "$LINENO"; then :
4666   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4667               ac_cv_c_bigendian=yes
4668             fi
4669             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4670               if test "$ac_cv_c_bigendian" = unknown; then
4671                 ac_cv_c_bigendian=no
4672               else
4673                 # finding both strings is unlikely to happen, but who knows?
4674                 ac_cv_c_bigendian=unknown
4675               fi
4676             fi
4677 fi
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 else
4680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h.  */
4682 $ac_includes_default
4683 int
4684 main ()
4685 {
4686
4687              /* Are we little or big endian?  From Harbison&Steele.  */
4688              union
4689              {
4690                long int l;
4691                char c[sizeof (long int)];
4692              } u;
4693              u.l = 1;
4694              return u.c[sizeof (long int) - 1] == 1;
4695
4696   ;
4697   return 0;
4698 }
4699 _ACEOF
4700 if ac_fn_c_try_run "$LINENO"; then :
4701   ac_cv_c_bigendian=no
4702 else
4703   ac_cv_c_bigendian=yes
4704 fi
4705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4706   conftest.$ac_objext conftest.beam conftest.$ac_ext
4707 fi
4708
4709     fi
4710 fi
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4712 $as_echo "$ac_cv_c_bigendian" >&6; }
4713  case $ac_cv_c_bigendian in #(
4714    yes)
4715      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4716 ;; #(
4717    no)
4718       ;; #(
4719    universal)
4720
4721 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4722
4723      ;; #(
4724    *)
4725      as_fn_error $? "unknown endianness
4726  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4727  esac
4728
4729
4730 # Extract the first word of "gmake", so it can be a program name with args.
4731 set dummy gmake; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_prog_GMAKE+:} false; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737   if test -n "$GMAKE"; then
4738   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4739 else
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743   IFS=$as_save_IFS
4744   test -z "$as_dir" && as_dir=.
4745     for ac_exec_ext in '' $ac_executable_extensions; do
4746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747     ac_cv_prog_GMAKE="yes"
4748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749     break 2
4750   fi
4751 done
4752   done
4753 IFS=$as_save_IFS
4754
4755   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4756 fi
4757 fi
4758 GMAKE=$ac_cv_prog_GMAKE
4759 if test -n "$GMAKE"; then
4760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4761 $as_echo "$GMAKE" >&6; }
4762 else
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4765 fi
4766
4767
4768 if test $GMAKE = no; then
4769   # Extract the first word of "make", so it can be a program name with args.
4770 set dummy make; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if ${ac_cv_path_MAKE+:} false; then :
4774   $as_echo_n "(cached) " >&6
4775 else
4776   case $MAKE in
4777   [\\/]* | ?:[\\/]*)
4778   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4779   ;;
4780   *)
4781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784   IFS=$as_save_IFS
4785   test -z "$as_dir" && as_dir=.
4786     for ac_exec_ext in '' $ac_executable_extensions; do
4787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790     break 2
4791   fi
4792 done
4793   done
4794 IFS=$as_save_IFS
4795
4796   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4797   ;;
4798 esac
4799 fi
4800 MAKE=$ac_cv_path_MAKE
4801 if test -n "$MAKE"; then
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4803 $as_echo "$MAKE" >&6; }
4804 else
4805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4807 fi
4808
4809
4810 else
4811   # Extract the first word of "gmake", so it can be a program name with args.
4812 set dummy gmake; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if ${ac_cv_path_MAKE+:} false; then :
4816   $as_echo_n "(cached) " >&6
4817 else
4818   case $MAKE in
4819   [\\/]* | ?:[\\/]*)
4820   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4821   ;;
4822   *)
4823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828     for ac_exec_ext in '' $ac_executable_extensions; do
4829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832     break 2
4833   fi
4834 done
4835   done
4836 IFS=$as_save_IFS
4837
4838   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4839   ;;
4840 esac
4841 fi
4842 MAKE=$ac_cv_path_MAKE
4843 if test -n "$MAKE"; then
4844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4845 $as_echo "$MAKE" >&6; }
4846 else
4847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4849 fi
4850
4851
4852 fi
4853 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4854 if test -z "$makever"; then
4855   as_fn_error $? "GNU Make is not installed.  Please download and install it from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4856 fi
4857
4858
4859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4860 $as_echo_n "checking number of system cores... " >&6; }
4861 if ${ax_cv_system_cores+:} false; then :
4862   $as_echo_n "(cached) " >&6
4863 else
4864
4865       ac_ext=c
4866 ac_cpp='$CPP $CPPFLAGS'
4867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4870
4871
4872       if test "$cross_compiling" = yes; then :
4873   ax_cv_system_cores=
4874
4875 else
4876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h.  */
4878
4879           #include <stdio.h>
4880           #include <stdint.h>
4881           #ifdef _WIN32
4882           #  include <windows.h>
4883           #elif MACOS
4884           #  include <sys/param.h>
4885           #  include <sys/sysctl.h>
4886           #else
4887           #  include <unistd.h>
4888           #endif
4889
4890           int main (int argc, char *argv[])
4891           {
4892             uint32_t count;
4893
4894             #ifdef WIN32
4895             SYSTEM_INFO sysinfo;
4896             GetSystemInfo(&sysinfo);
4897
4898             count = sysinfo.dwNumberOfProcessors;
4899             #elif MACOS
4900
4901             int nm[2];
4902             size_t len = 4;
4903
4904             nm[0] = CTL_HW;
4905             nm[1] = HW_AVAILCPU;
4906             sysctl(nm, 2, &count, &len, NULL, 0);
4907
4908             if(count < 1) {
4909               nm[1] = HW_NCPU;
4910               sysctl(nm, 2, &count, &len, NULL, 0);
4911               if(count < 1) {
4912               count = 1;
4913               }
4914             }
4915             #else
4916
4917             count = sysconf(_SC_NPROCESSORS_ONLN);
4918             #endif
4919
4920             return count;
4921           }
4922
4923 _ACEOF
4924 if ac_fn_c_try_run "$LINENO"; then :
4925   ax_cv_system_cores=$?
4926 else
4927   ax_cv_system_cores=$?
4928 fi
4929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4930   conftest.$ac_objext conftest.beam conftest.$ac_ext
4931 fi
4932
4933     ac_ext=c
4934 ac_cpp='$CPP $CPPFLAGS'
4935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4938
4939
4940 fi
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
4942 $as_echo "$ax_cv_system_cores" >&6; }
4943
4944
4945
4946
4947 # Extract the first word of "git", so it can be a program name with args.
4948 set dummy git; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_GIT+:} false; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   if test -n "$GIT"; then
4955   ac_cv_prog_GIT="$GIT" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962     for ac_exec_ext in '' $ac_executable_extensions; do
4963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964     ac_cv_prog_GIT="yes"
4965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966     break 2
4967   fi
4968 done
4969   done
4970 IFS=$as_save_IFS
4971
4972   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4973 fi
4974 fi
4975 GIT=$ac_cv_prog_GIT
4976 if test -n "$GIT"; then
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4978 $as_echo "$GIT" >&6; }
4979 else
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4982 fi
4983
4984
4985
4986
4987 # Check whether --enable-strict-dependencies was given.
4988 if test "${enable_strict_dependencies+set}" = set; then :
4989   enableval=$enable_strict_dependencies;
4990 fi
4991
4992
4993 # Check whether --enable-werror was given.
4994 if test "${enable_werror+set}" = set; then :
4995   enableval=$enable_werror;  case "$enableval" in
4996     no)
4997       werror=no
4998     ;;
4999     *)
5000       werror=yes
5001   esac
5002
5003 fi
5004
5005
5006 docdir='${datadir}/doc/freeradius'
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5008 $as_echo_n "checking docdir... " >&6; }
5009
5010 # Check whether --with-docdir was given.
5011 if test "${with_docdir+set}" = set; then :
5012   withval=$with_docdir;  case "$withval" in
5013   no)
5014     docdir=no
5015     ;;
5016   yes)
5017     ;;
5018   [\\/$]* | ?:[\\/]* )
5019     docdir="$withval"
5020     ;;
5021   *)
5022     as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5023     ;;
5024   esac
5025
5026 fi
5027
5028
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5030 $as_echo "$docdir" >&6; }
5031 if test "x$docdir" = xno; then
5032   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5033 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5034 fi
5035
5036 logdir='${localstatedir}/log/radius'
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5038 $as_echo_n "checking logdir... " >&6; }
5039
5040 # Check whether --with-logdir was given.
5041 if test "${with_logdir+set}" = set; then :
5042   withval=$with_logdir;  case "$withval" in
5043   no)
5044     as_fn_error $? "Need logdir" "$LINENO" 5
5045     ;;
5046   yes)
5047     ;;
5048   [\\/$]* | ?:[\\/]* )
5049     logdir="$withval"
5050     ;;
5051   *)
5052     as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5053     ;;
5054   esac
5055
5056 fi
5057
5058
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5060 $as_echo "$logdir" >&6; }
5061
5062 radacctdir='${logdir}/radacct'
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5064 $as_echo_n "checking radacctdir... " >&6; }
5065
5066 # Check whether --with-radacctdir was given.
5067 if test "${with_radacctdir+set}" = set; then :
5068   withval=$with_radacctdir;  case "$withval" in
5069   no)
5070     as_fn_error $? "Need radacctdir" "$LINENO" 5
5071     ;;
5072   yes)
5073     ;;
5074   [\\/$]* | ?:[\\/]* )
5075     radacctdir="$withval"
5076     ;;
5077   *)
5078     as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5079     ;;
5080   esac
5081
5082 fi
5083
5084
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5086 $as_echo "$radacctdir" >&6; }
5087
5088 raddbdir='${sysconfdir}/raddb'
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5090 $as_echo_n "checking raddbdir... " >&6; }
5091
5092 # Check whether --with-raddbdir was given.
5093 if test "${with_raddbdir+set}" = set; then :
5094   withval=$with_raddbdir;  case "$withval" in
5095   no)
5096     as_fn_error $? "Need raddbdir" "$LINENO" 5
5097     ;;
5098   yes)
5099     ;;
5100   [\\/$]* | ?:[\\/]* )
5101     raddbdir="$withval"
5102     ;;
5103   *)
5104     as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5105     ;;
5106   esac
5107
5108 fi
5109
5110
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5112 $as_echo "$raddbdir" >&6; }
5113
5114 WITH_ASCEND_BINARY=yes
5115
5116 # Check whether --with-ascend-binary was given.
5117 if test "${with_ascend_binary+set}" = set; then :
5118   withval=$with_ascend_binary;  case "$withval" in
5119   yes)
5120     ;;
5121   *)
5122     WITH_ASCEND_BINARY=no
5123   esac
5124
5125 fi
5126
5127 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5128
5129 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5130
5131 fi
5132
5133 WITH_THREADS=yes
5134
5135 # Check whether --with-threads was given.
5136 if test "${with_threads+set}" = set; then :
5137   withval=$with_threads;  case "$withval" in
5138   yes)
5139     ;;
5140   *)
5141     WITH_THREADS=no
5142   esac
5143
5144 fi
5145
5146
5147 WITH_TCP=yes
5148
5149 # Check whether --with-tcp was given.
5150 if test "${with_tcp+set}" = set; then :
5151   withval=$with_tcp;  case "$withval" in
5152   yes)
5153     ;;
5154   *)
5155     WITH_TCP=no
5156   esac
5157
5158 fi
5159
5160 if test "x$WITH_TCP" = "xyes"; then
5161
5162 $as_echo "#define WITH_TCP 1" >>confdefs.h
5163
5164 fi
5165
5166 WITH_VMPS=yes
5167
5168 # Check whether --with-vmps was given.
5169 if test "${with_vmps+set}" = set; then :
5170   withval=$with_vmps;  case "$withval" in
5171   yes)
5172     ;;
5173   *)
5174     WITH_VMPS=no
5175   esac
5176
5177 fi
5178
5179 if test "x$WITH_VMPS" = "xyes"; then
5180
5181 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5182
5183 fi
5184
5185 WITH_DHCP=yes
5186
5187 # Check whether --with-dhcp was given.
5188 if test "${with_dhcp+set}" = set; then :
5189   withval=$with_dhcp;  case "$withval" in
5190   yes)
5191     ;;
5192   *)
5193     WITH_DHCP=no
5194   esac
5195
5196 fi
5197
5198 if test "x$WITH_DHCP" = "xyes"; then
5199
5200 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5201
5202 fi
5203
5204 STATIC_MODULES=
5205
5206 # Check whether --with-static_modules was given.
5207 if test "${with_static_modules+set}" = set; then :
5208   withval=$with_static_modules;
5209   for i in $withval; do
5210     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5211   done
5212
5213 fi
5214
5215
5216 MODULES=
5217
5218 # Check whether --with-modules was given.
5219 if test "${with_modules+set}" = set; then :
5220   withval=$with_modules;
5221  for i in $withval; do
5222    MODULES="$MODULES $i"
5223  done
5224
5225 fi
5226
5227
5228 EXPERIMENTAL=
5229
5230 # Check whether --with-experimental-modules was given.
5231 if test "${with_experimental_modules+set}" = set; then :
5232   withval=$with_experimental_modules;  case "$withval" in
5233   yes)
5234     EXPERIMENTAL=yes
5235     ;;
5236   no)
5237     EXPERIMENTAL=no
5238     ;;
5239   *)
5240   esac
5241
5242 fi
5243
5244
5245 WITH_OPENSSL=yes
5246
5247 # Check whether --with-openssl was given.
5248 if test "${with_openssl+set}" = set; then :
5249   withval=$with_openssl;  case "$withval" in
5250   no)
5251     WITH_OPENSSL=no
5252     ;;
5253   *)
5254     WITH_OPENSSL=yes
5255     ;;
5256   esac
5257
5258 fi
5259
5260
5261 OPENSSL_INCLUDE_DIR=
5262
5263 # Check whether --with-openssl-includes was given.
5264 if test "${with_openssl_includes+set}" = set; then :
5265   withval=$with_openssl_includes;  case "$withval" in
5266   *) OPENSSL_INCLUDE_DIR="$withval"
5267     ;;
5268   esac
5269
5270 fi
5271
5272
5273 OPENSSL_LIB_DIR=
5274
5275 # Check whether --with-openssl-libraries was given.
5276 if test "${with_openssl_libraries+set}" = set; then :
5277   withval=$with_openssl_libraries;  case "$withval" in
5278   *) OPENSSL_LIB_DIR="$withval"
5279     ;;
5280   esac
5281
5282 fi
5283
5284
5285
5286
5287 # Check whether --with-rlm-FOO-lib-dir was given.
5288 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5289   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
5290   *)
5291     ;;
5292   esac
5293
5294 fi
5295
5296
5297
5298 # Check whether --with-rlm-FOO-include-dir was given.
5299 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5300   withval=$with_rlm_FOO_include_dir;  case "$withval" in
5301   *)
5302     ;;
5303   esac
5304
5305 fi
5306
5307
5308 WITH_UDPFROMTO=no
5309
5310 # Check whether --with-udpfromto was given.
5311 if test "${with_udpfromto+set}" = set; then :
5312   withval=$with_udpfromto;  case "$withval" in
5313   yes)
5314     WITH_UDPFROMTO=yes
5315     ;;
5316   *)
5317     WITH_UDPFROMTO=no
5318   esac
5319
5320 fi
5321
5322
5323 if test "x$WITH_UDPFROMTO" = "xyes"; then
5324
5325 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5326
5327 fi
5328
5329
5330 CHECKRAD=checkrad
5331 # Extract the first word of "perl", so it can be a program name with args.
5332 set dummy perl; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if ${ac_cv_path_PERL+:} false; then :
5336   $as_echo_n "(cached) " >&6
5337 else
5338   case $PERL in
5339   [\\/]* | ?:[\\/]*)
5340   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5341   ;;
5342   *)
5343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348     for ac_exec_ext in '' $ac_executable_extensions; do
5349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355   done
5356 IFS=$as_save_IFS
5357
5358   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5359   ;;
5360 esac
5361 fi
5362 PERL=$ac_cv_path_PERL
5363 if test -n "$PERL"; then
5364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5365 $as_echo "$PERL" >&6; }
5366 else
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 fi
5370
5371
5372 if test "x$ac_cv_path_PERL" = "x"; then
5373   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5374 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5375 fi
5376 # Extract the first word of "snmpget", so it can be a program name with args.
5377 set dummy snmpget; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_path_SNMPGET+:} false; then :
5381   $as_echo_n "(cached) " >&6
5382 else
5383   case $SNMPGET in
5384   [\\/]* | ?:[\\/]*)
5385   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5386   ;;
5387   *)
5388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391   IFS=$as_save_IFS
5392   test -z "$as_dir" && as_dir=.
5393     for ac_exec_ext in '' $ac_executable_extensions; do
5394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397     break 2
5398   fi
5399 done
5400   done
5401 IFS=$as_save_IFS
5402
5403   ;;
5404 esac
5405 fi
5406 SNMPGET=$ac_cv_path_SNMPGET
5407 if test -n "$SNMPGET"; then
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5409 $as_echo "$SNMPGET" >&6; }
5410 else
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415
5416 if test "x$ac_cv_path_SNMPGET" = "x"; then
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5418 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5419 fi
5420
5421 # Extract the first word of "snmpwalk", so it can be a program name with args.
5422 set dummy snmpwalk; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_path_SNMPWALK+:} false; then :
5426   $as_echo_n "(cached) " >&6
5427 else
5428   case $SNMPWALK in
5429   [\\/]* | ?:[\\/]*)
5430   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5431   ;;
5432   *)
5433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436   IFS=$as_save_IFS
5437   test -z "$as_dir" && as_dir=.
5438     for ac_exec_ext in '' $ac_executable_extensions; do
5439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442     break 2
5443   fi
5444 done
5445   done
5446 IFS=$as_save_IFS
5447
5448   ;;
5449 esac
5450 fi
5451 SNMPWALK=$ac_cv_path_SNMPWALK
5452 if test -n "$SNMPWALK"; then
5453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5454 $as_echo "$SNMPWALK" >&6; }
5455 else
5456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5458 fi
5459
5460
5461 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5463 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5464 fi
5465
5466 # Extract the first word of "rusers", so it can be a program name with args.
5467 set dummy rusers; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if ${ac_cv_path_RUSERS+:} false; then :
5471   $as_echo_n "(cached) " >&6
5472 else
5473   case $RUSERS in
5474   [\\/]* | ?:[\\/]*)
5475   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5476   ;;
5477   *)
5478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5480 do
5481   IFS=$as_save_IFS
5482   test -z "$as_dir" && as_dir=.
5483     for ac_exec_ext in '' $ac_executable_extensions; do
5484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487     break 2
5488   fi
5489 done
5490   done
5491 IFS=$as_save_IFS
5492
5493   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5494   ;;
5495 esac
5496 fi
5497 RUSERS=$ac_cv_path_RUSERS
5498 if test -n "$RUSERS"; then
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5500 $as_echo "$RUSERS" >&6; }
5501 else
5502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5504 fi
5505
5506
5507
5508 missing_dir=`cd $ac_aux_dir && pwd`
5509 # expand $ac_aux_dir to an absolute path
5510 am_aux_dir=`cd $ac_aux_dir && pwd`
5511
5512 if test x"${MISSING+set}" != xset; then
5513   case $am_aux_dir in
5514   *\ * | *\     *)
5515     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5516   *)
5517     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5518   esac
5519 fi
5520 # Use eval to expand $SHELL
5521 if eval "$MISSING --run true"; then
5522   am_missing_run="$MISSING --run "
5523 else
5524   am_missing_run=
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5526 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5527 fi
5528
5529
5530 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5531
5532
5533 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5534
5535
5536 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5537
5538
5539 # Extract the first word of "locate", so it can be a program name with args.
5540 set dummy locate; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if ${ac_cv_path_LOCATE+:} false; then :
5544   $as_echo_n "(cached) " >&6
5545 else
5546   case $LOCATE in
5547   [\\/]* | ?:[\\/]*)
5548   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5549   ;;
5550   *)
5551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554   IFS=$as_save_IFS
5555   test -z "$as_dir" && as_dir=.
5556     for ac_exec_ext in '' $ac_executable_extensions; do
5557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560     break 2
5561   fi
5562 done
5563   done
5564 IFS=$as_save_IFS
5565
5566   ;;
5567 esac
5568 fi
5569 LOCATE=$ac_cv_path_LOCATE
5570 if test -n "$LOCATE"; then
5571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5572 $as_echo "$LOCATE" >&6; }
5573 else
5574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5576 fi
5577
5578
5579 # Extract the first word of "dirname", so it can be a program name with args.
5580 set dummy dirname; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_path_DIRNAME+:} false; then :
5584   $as_echo_n "(cached) " >&6
5585 else
5586   case $DIRNAME in
5587   [\\/]* | ?:[\\/]*)
5588   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5589   ;;
5590   *)
5591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596     for ac_exec_ext in '' $ac_executable_extensions; do
5597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603   done
5604 IFS=$as_save_IFS
5605
5606   ;;
5607 esac
5608 fi
5609 DIRNAME=$ac_cv_path_DIRNAME
5610 if test -n "$DIRNAME"; then
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5612 $as_echo "$DIRNAME" >&6; }
5613 else
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5616 fi
5617
5618
5619 # Extract the first word of "grep", so it can be a program name with args.
5620 set dummy grep; ac_word=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if ${ac_cv_path_GREP+:} false; then :
5624   $as_echo_n "(cached) " >&6
5625 else
5626   case $GREP in
5627   [\\/]* | ?:[\\/]*)
5628   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5629   ;;
5630   *)
5631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5633 do
5634   IFS=$as_save_IFS
5635   test -z "$as_dir" && as_dir=.
5636     for ac_exec_ext in '' $ac_executable_extensions; do
5637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640     break 2
5641   fi
5642 done
5643   done
5644 IFS=$as_save_IFS
5645
5646   ;;
5647 esac
5648 fi
5649 GREP=$ac_cv_path_GREP
5650 if test -n "$GREP"; then
5651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5652 $as_echo "$GREP" >&6; }
5653 else
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5656 fi
5657
5658
5659
5660
5661 old_CFLAGS=$CFLAGS
5662 if test "x$WITH_THREADS" = "xyes"; then
5663   if test $ac_cv_prog_suncc = "yes"; then
5664     CFLAGS="$CFLAGS -mt"
5665   fi
5666
5667   for ac_header in pthread.h
5668 do :
5669   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5670 if test "x$ac_cv_header_pthread_h" = xyes; then :
5671   cat >>confdefs.h <<_ACEOF
5672 #define HAVE_PTHREAD_H 1
5673 _ACEOF
5674
5675 else
5676    WITH_THREADS="no"
5677 fi
5678
5679 done
5680
5681
5682                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5683 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5684 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5685   $as_echo_n "(cached) " >&6
5686 else
5687   ac_check_lib_save_LIBS=$LIBS
5688 LIBS="-lpthread  $LIBS"
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h.  */
5691
5692 /* Override any GCC internal prototype to avoid an error.
5693    Use char because int might match the return type of a GCC
5694    builtin and then its argument prototype would still apply.  */
5695 #ifdef __cplusplus
5696 extern "C"
5697 #endif
5698 char pthread_create ();
5699 int
5700 main ()
5701 {
5702 return pthread_create ();
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 if ac_fn_c_try_link "$LINENO"; then :
5708   ac_cv_lib_pthread_pthread_create=yes
5709 else
5710   ac_cv_lib_pthread_pthread_create=no
5711 fi
5712 rm -f core conftest.err conftest.$ac_objext \
5713     conftest$ac_exeext conftest.$ac_ext
5714 LIBS=$ac_check_lib_save_LIBS
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5717 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5718 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5719
5720       CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
5721       LIBS="-lpthread $LIBS"
5722
5723 else
5724
5725       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5726 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5727 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   ac_check_lib_save_LIBS=$LIBS
5731 LIBS="-lc_r  $LIBS"
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h.  */
5734
5735 /* Override any GCC internal prototype to avoid an error.
5736    Use char because int might match the return type of a GCC
5737    builtin and then its argument prototype would still apply.  */
5738 #ifdef __cplusplus
5739 extern "C"
5740 #endif
5741 char pthread_create ();
5742 int
5743 main ()
5744 {
5745 return pthread_create ();
5746   ;
5747   return 0;
5748 }
5749 _ACEOF
5750 if ac_fn_c_try_link "$LINENO"; then :
5751   ac_cv_lib_c_r_pthread_create=yes
5752 else
5753   ac_cv_lib_c_r_pthread_create=no
5754 fi
5755 rm -f core conftest.err conftest.$ac_objext \
5756     conftest$ac_exeext conftest.$ac_ext
5757 LIBS=$ac_check_lib_save_LIBS
5758 fi
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
5760 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5761 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5762    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
5763 else
5764    WITH_THREADS="no"
5765
5766 fi
5767
5768
5769
5770 fi
5771
5772 fi
5773
5774 if test "x$WITH_THREADS" != "xyes"; then
5775   CFLAGS=$old_CFLAGS
5776   ac_cv_header_pthread_h="no"
5777   WITH_THREADS=no
5778 else
5779
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5781 $as_echo_n "checking for library containing sem_init... " >&6; }
5782 if ${ac_cv_search_sem_init+:} false; then :
5783   $as_echo_n "(cached) " >&6
5784 else
5785   ac_func_search_save_LIBS=$LIBS
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h.  */
5788
5789 /* Override any GCC internal prototype to avoid an error.
5790    Use char because int might match the return type of a GCC
5791    builtin and then its argument prototype would still apply.  */
5792 #ifdef __cplusplus
5793 extern "C"
5794 #endif
5795 char sem_init ();
5796 int
5797 main ()
5798 {
5799 return sem_init ();
5800   ;
5801   return 0;
5802 }
5803 _ACEOF
5804 for ac_lib in '' pthread sem posix4 rt semaphore; do
5805   if test -z "$ac_lib"; then
5806     ac_res="none required"
5807   else
5808     ac_res=-l$ac_lib
5809     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5810   fi
5811   if ac_fn_c_try_link "$LINENO"; then :
5812   ac_cv_search_sem_init=$ac_res
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext \
5815     conftest$ac_exeext
5816   if ${ac_cv_search_sem_init+:} false; then :
5817   break
5818 fi
5819 done
5820 if ${ac_cv_search_sem_init+:} false; then :
5821
5822 else
5823   ac_cv_search_sem_init=no
5824 fi
5825 rm conftest.$ac_ext
5826 LIBS=$ac_func_search_save_LIBS
5827 fi
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5829 $as_echo "$ac_cv_search_sem_init" >&6; }
5830 ac_res=$ac_cv_search_sem_init
5831 if test "$ac_res" != no; then :
5832   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5833
5834 else
5835   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
5836
5837 fi
5838
5839 fi
5840
5841 if test "x$WITH_THREADS" = "xyes"; then
5842
5843 $as_echo "#define WITH_THREADS 1" >>confdefs.h
5844
5845 fi
5846
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5848 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5849 if ${ac_cv_lib_dl_dlopen+:} false; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   ac_check_lib_save_LIBS=$LIBS
5853 LIBS="-ldl  $LIBS"
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h.  */
5856
5857 /* Override any GCC internal prototype to avoid an error.
5858    Use char because int might match the return type of a GCC
5859    builtin and then its argument prototype would still apply.  */
5860 #ifdef __cplusplus
5861 extern "C"
5862 #endif
5863 char dlopen ();
5864 int
5865 main ()
5866 {
5867 return dlopen ();
5868   ;
5869   return 0;
5870 }
5871 _ACEOF
5872 if ac_fn_c_try_link "$LINENO"; then :
5873   ac_cv_lib_dl_dlopen=yes
5874 else
5875   ac_cv_lib_dl_dlopen=no
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext \
5878     conftest$ac_exeext conftest.$ac_ext
5879 LIBS=$ac_check_lib_save_LIBS
5880 fi
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5882 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5883 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5884   cat >>confdefs.h <<_ACEOF
5885 #define HAVE_LIBDL 1
5886 _ACEOF
5887
5888   LIBS="-ldl $LIBS"
5889
5890 fi
5891
5892
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
5894 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
5895 if ${ac_cv_lib_socket_getsockname+:} false; then :
5896   $as_echo_n "(cached) " >&6
5897 else
5898   ac_check_lib_save_LIBS=$LIBS
5899 LIBS="-lsocket  $LIBS"
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h.  */
5902
5903 /* Override any GCC internal prototype to avoid an error.
5904    Use char because int might match the return type of a GCC
5905    builtin and then its argument prototype would still apply.  */
5906 #ifdef __cplusplus
5907 extern "C"
5908 #endif
5909 char getsockname ();
5910 int
5911 main ()
5912 {
5913 return getsockname ();
5914   ;
5915   return 0;
5916 }
5917 _ACEOF
5918 if ac_fn_c_try_link "$LINENO"; then :
5919   ac_cv_lib_socket_getsockname=yes
5920 else
5921   ac_cv_lib_socket_getsockname=no
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext \
5924     conftest$ac_exeext conftest.$ac_ext
5925 LIBS=$ac_check_lib_save_LIBS
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
5928 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
5929 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
5930   cat >>confdefs.h <<_ACEOF
5931 #define HAVE_LIBSOCKET 1
5932 _ACEOF
5933
5934   LIBS="-lsocket $LIBS"
5935
5936 fi
5937
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
5940 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
5941 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
5942   $as_echo_n "(cached) " >&6
5943 else
5944   ac_check_lib_save_LIBS=$LIBS
5945 LIBS="-lresolv  $LIBS"
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h.  */
5948
5949 /* Override any GCC internal prototype to avoid an error.
5950    Use char because int might match the return type of a GCC
5951    builtin and then its argument prototype would still apply.  */
5952 #ifdef __cplusplus
5953 extern "C"
5954 #endif
5955 char inet_aton ();
5956 int
5957 main ()
5958 {
5959 return inet_aton ();
5960   ;
5961   return 0;
5962 }
5963 _ACEOF
5964 if ac_fn_c_try_link "$LINENO"; then :
5965   ac_cv_lib_resolv_inet_aton=yes
5966 else
5967   ac_cv_lib_resolv_inet_aton=no
5968 fi
5969 rm -f core conftest.err conftest.$ac_objext \
5970     conftest$ac_exeext conftest.$ac_ext
5971 LIBS=$ac_check_lib_save_LIBS
5972 fi
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
5974 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
5975 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
5976   cat >>confdefs.h <<_ACEOF
5977 #define HAVE_LIBRESOLV 1
5978 _ACEOF
5979
5980   LIBS="-lresolv $LIBS"
5981
5982 fi
5983
5984
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
5986 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
5987 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
5988   $as_echo_n "(cached) " >&6
5989 else
5990   ac_check_lib_save_LIBS=$LIBS
5991 LIBS="-lnsl  $LIBS"
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h.  */
5994
5995 /* Override any GCC internal prototype to avoid an error.
5996    Use char because int might match the return type of a GCC
5997    builtin and then its argument prototype would still apply.  */
5998 #ifdef __cplusplus
5999 extern "C"
6000 #endif
6001 char inet_ntoa ();
6002 int
6003 main ()
6004 {
6005 return inet_ntoa ();
6006   ;
6007   return 0;
6008 }
6009 _ACEOF
6010 if ac_fn_c_try_link "$LINENO"; then :
6011   ac_cv_lib_nsl_inet_ntoa=yes
6012 else
6013   ac_cv_lib_nsl_inet_ntoa=no
6014 fi
6015 rm -f core conftest.err conftest.$ac_objext \
6016     conftest$ac_exeext conftest.$ac_ext
6017 LIBS=$ac_check_lib_save_LIBS
6018 fi
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6020 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6021 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6022   cat >>confdefs.h <<_ACEOF
6023 #define HAVE_LIBNSL 1
6024 _ACEOF
6025
6026   LIBS="-lnsl $LIBS"
6027
6028 fi
6029
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6031 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6032 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6033   $as_echo_n "(cached) " >&6
6034 else
6035   ac_check_lib_save_LIBS=$LIBS
6036 LIBS="-lws2_32  $LIBS"
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h.  */
6039
6040 /* Override any GCC internal prototype to avoid an error.
6041    Use char because int might match the return type of a GCC
6042    builtin and then its argument prototype would still apply.  */
6043 #ifdef __cplusplus
6044 extern "C"
6045 #endif
6046 char htonl ();
6047 int
6048 main ()
6049 {
6050 return htonl ();
6051   ;
6052   return 0;
6053 }
6054 _ACEOF
6055 if ac_fn_c_try_link "$LINENO"; then :
6056   ac_cv_lib_ws2_32_htonl=yes
6057 else
6058   ac_cv_lib_ws2_32_htonl=no
6059 fi
6060 rm -f core conftest.err conftest.$ac_objext \
6061     conftest$ac_exeext conftest.$ac_ext
6062 LIBS=$ac_check_lib_save_LIBS
6063 fi
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6065 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6066 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6067   cat >>confdefs.h <<_ACEOF
6068 #define HAVE_LIBWS2_32 1
6069 _ACEOF
6070
6071   LIBS="-lws2_32 $LIBS"
6072
6073 fi
6074
6075
6076 PCAP_LIBS=
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6078 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6079 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
6080   $as_echo_n "(cached) " >&6
6081 else
6082   ac_check_lib_save_LIBS=$LIBS
6083 LIBS="-lpcap  $LIBS"
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h.  */
6086
6087 /* Override any GCC internal prototype to avoid an error.
6088    Use char because int might match the return type of a GCC
6089    builtin and then its argument prototype would still apply.  */
6090 #ifdef __cplusplus
6091 extern "C"
6092 #endif
6093 char pcap_open_live ();
6094 int
6095 main ()
6096 {
6097 return pcap_open_live ();
6098   ;
6099   return 0;
6100 }
6101 _ACEOF
6102 if ac_fn_c_try_link "$LINENO"; then :
6103   ac_cv_lib_pcap_pcap_open_live=yes
6104 else
6105   ac_cv_lib_pcap_pcap_open_live=no
6106 fi
6107 rm -f core conftest.err conftest.$ac_objext \
6108     conftest$ac_exeext conftest.$ac_ext
6109 LIBS=$ac_check_lib_save_LIBS
6110 fi
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
6112 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
6113 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
6114
6115     PCAP_LIBS="-lpcap"
6116
6117 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6118
6119
6120 else
6121
6122     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
6123 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
6124
6125
6126 fi
6127
6128
6129
6130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6131 $as_echo_n "checking for a readline compatible library... " >&6; }
6132 if ${vl_cv_lib_readline+:} false; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135
6136     ORIG_LIBS="$LIBS"
6137     for readline_lib in readline edit editline; do
6138       for termcap_lib in "" termcap curses ncurses; do
6139         if test -z "$termcap_lib"; then
6140           TRY_LIB="-l$readline_lib"
6141         else
6142           TRY_LIB="-l$readline_lib -l$termcap_lib"
6143         fi
6144         LIBS="$ORIG_LIBS $TRY_LIB"
6145         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h.  */
6147
6148 /* Override any GCC internal prototype to avoid an error.
6149    Use char because int might match the return type of a GCC
6150    builtin and then its argument prototype would still apply.  */
6151 #ifdef __cplusplus
6152 extern "C"
6153 #endif
6154 char readline ();
6155 int
6156 main ()
6157 {
6158 return readline ();
6159   ;
6160   return 0;
6161 }
6162 _ACEOF
6163 if ac_fn_c_try_link "$LINENO"; then :
6164   vl_cv_lib_readline="$TRY_LIB"
6165 fi
6166 rm -f core conftest.err conftest.$ac_objext \
6167     conftest$ac_exeext conftest.$ac_ext
6168         if test -n "$vl_cv_lib_readline"; then
6169           break
6170         fi
6171       done
6172       if test -n "$vl_cv_lib_readline"; then
6173         break
6174       fi
6175     done
6176     if test -z "$vl_cv_lib_readline"; then
6177       vl_cv_lib_readline="no"
6178       LIBS="$ORIG_LIBS"
6179     fi
6180
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
6183 $as_echo "$vl_cv_lib_readline" >&6; }
6184
6185   if test "$vl_cv_lib_readline" != "no"; then
6186     LIBREADLINE="$vl_cv_lib_readline"
6187
6188 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
6189
6190     for ac_header in readline.h readline/readline.h
6191 do :
6192   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6193 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6194 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6195   cat >>confdefs.h <<_ACEOF
6196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6197 _ACEOF
6198
6199 fi
6200
6201 done
6202
6203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6204 $as_echo_n "checking whether readline supports history... " >&6; }
6205 if ${vl_cv_lib_readline_history+:} false; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208
6209       vl_cv_lib_readline_history="no"
6210       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h.  */
6212
6213 /* Override any GCC internal prototype to avoid an error.
6214    Use char because int might match the return type of a GCC
6215    builtin and then its argument prototype would still apply.  */
6216 #ifdef __cplusplus
6217 extern "C"
6218 #endif
6219 char add_history ();
6220 int
6221 main ()
6222 {
6223 return add_history ();
6224   ;
6225   return 0;
6226 }
6227 _ACEOF
6228 if ac_fn_c_try_link "$LINENO"; then :
6229   vl_cv_lib_readline_history="yes"
6230 fi
6231 rm -f core conftest.err conftest.$ac_objext \
6232     conftest$ac_exeext conftest.$ac_ext
6233
6234 fi
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
6236 $as_echo "$vl_cv_lib_readline_history" >&6; }
6237     if test "$vl_cv_lib_readline_history" = "yes"; then
6238
6239 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6240
6241       for ac_header in history.h readline/history.h
6242 do :
6243   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6244 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6245 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6246   cat >>confdefs.h <<_ACEOF
6247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6248 _ACEOF
6249
6250 fi
6251
6252 done
6253
6254     fi
6255   fi
6256
6257
6258
6259
6260 case "$host" in
6261   *-interix*)
6262     CFLAGS="$CFLAGS -D_ALL_SOURCE"
6263     ;;
6264   *-darwin*)
6265     CFLAGS="$CFLAGS -DDARWIN"
6266     LIBS="-framework DirectoryService $LIBS"
6267     ;;
6268 esac
6269
6270 ac_header_dirent=no
6271 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6272   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6274 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6275 if eval \${$as_ac_Header+:} false; then :
6276   $as_echo_n "(cached) " >&6
6277 else
6278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h.  */
6280 #include <sys/types.h>
6281 #include <$ac_hdr>
6282
6283 int
6284 main ()
6285 {
6286 if ((DIR *) 0)
6287 return 0;
6288   ;
6289   return 0;
6290 }
6291 _ACEOF
6292 if ac_fn_c_try_compile "$LINENO"; then :
6293   eval "$as_ac_Header=yes"
6294 else
6295   eval "$as_ac_Header=no"
6296 fi
6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 fi
6299 eval ac_res=\$$as_ac_Header
6300                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6301 $as_echo "$ac_res" >&6; }
6302 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6303   cat >>confdefs.h <<_ACEOF
6304 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6305 _ACEOF
6306
6307 ac_header_dirent=$ac_hdr; break
6308 fi
6309
6310 done
6311 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6312 if test $ac_header_dirent = dirent.h; then
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6314 $as_echo_n "checking for library containing opendir... " >&6; }
6315 if ${ac_cv_search_opendir+:} false; then :
6316   $as_echo_n "(cached) " >&6
6317 else
6318   ac_func_search_save_LIBS=$LIBS
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h.  */
6321
6322 /* Override any GCC internal prototype to avoid an error.
6323    Use char because int might match the return type of a GCC
6324    builtin and then its argument prototype would still apply.  */
6325 #ifdef __cplusplus
6326 extern "C"
6327 #endif
6328 char opendir ();
6329 int
6330 main ()
6331 {
6332 return opendir ();
6333   ;
6334   return 0;
6335 }
6336 _ACEOF
6337 for ac_lib in '' dir; do
6338   if test -z "$ac_lib"; then
6339     ac_res="none required"
6340   else
6341     ac_res=-l$ac_lib
6342     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6343   fi
6344   if ac_fn_c_try_link "$LINENO"; then :
6345   ac_cv_search_opendir=$ac_res
6346 fi
6347 rm -f core conftest.err conftest.$ac_objext \
6348     conftest$ac_exeext
6349   if ${ac_cv_search_opendir+:} false; then :
6350   break
6351 fi
6352 done
6353 if ${ac_cv_search_opendir+:} false; then :
6354
6355 else
6356   ac_cv_search_opendir=no
6357 fi
6358 rm conftest.$ac_ext
6359 LIBS=$ac_func_search_save_LIBS
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6362 $as_echo "$ac_cv_search_opendir" >&6; }
6363 ac_res=$ac_cv_search_opendir
6364 if test "$ac_res" != no; then :
6365   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6366
6367 fi
6368
6369 else
6370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6371 $as_echo_n "checking for library containing opendir... " >&6; }
6372 if ${ac_cv_search_opendir+:} false; then :
6373   $as_echo_n "(cached) " >&6
6374 else
6375   ac_func_search_save_LIBS=$LIBS
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h.  */
6378
6379 /* Override any GCC internal prototype to avoid an error.
6380    Use char because int might match the return type of a GCC
6381    builtin and then its argument prototype would still apply.  */
6382 #ifdef __cplusplus
6383 extern "C"
6384 #endif
6385 char opendir ();
6386 int
6387 main ()
6388 {
6389 return opendir ();
6390   ;
6391   return 0;
6392 }
6393 _ACEOF
6394 for ac_lib in '' x; do
6395   if test -z "$ac_lib"; then
6396     ac_res="none required"
6397   else
6398     ac_res=-l$ac_lib
6399     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6400   fi
6401   if ac_fn_c_try_link "$LINENO"; then :
6402   ac_cv_search_opendir=$ac_res
6403 fi
6404 rm -f core conftest.err conftest.$ac_objext \
6405     conftest$ac_exeext
6406   if ${ac_cv_search_opendir+:} false; then :
6407   break
6408 fi
6409 done
6410 if ${ac_cv_search_opendir+:} false; then :
6411
6412 else
6413   ac_cv_search_opendir=no
6414 fi
6415 rm conftest.$ac_ext
6416 LIBS=$ac_func_search_save_LIBS
6417 fi
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6419 $as_echo "$ac_cv_search_opendir" >&6; }
6420 ac_res=$ac_cv_search_opendir
6421 if test "$ac_res" != no; then :
6422   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6423
6424 fi
6425
6426 fi
6427
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6429 $as_echo_n "checking for ANSI C header files... " >&6; }
6430 if ${ac_cv_header_stdc+:} false; then :
6431   $as_echo_n "(cached) " >&6
6432 else
6433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h.  */
6435 #include <stdlib.h>
6436 #include <stdarg.h>
6437 #include <string.h>
6438 #include <float.h>
6439
6440 int
6441 main ()
6442 {
6443
6444   ;
6445   return 0;
6446 }
6447 _ACEOF
6448 if ac_fn_c_try_compile "$LINENO"; then :
6449   ac_cv_header_stdc=yes
6450 else
6451   ac_cv_header_stdc=no
6452 fi
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454
6455 if test $ac_cv_header_stdc = yes; then
6456   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h.  */
6459 #include <string.h>
6460
6461 _ACEOF
6462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6463   $EGREP "memchr" >/dev/null 2>&1; then :
6464
6465 else
6466   ac_cv_header_stdc=no
6467 fi
6468 rm -f conftest*
6469
6470 fi
6471
6472 if test $ac_cv_header_stdc = yes; then
6473   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h.  */
6476 #include <stdlib.h>
6477
6478 _ACEOF
6479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6480   $EGREP "free" >/dev/null 2>&1; then :
6481
6482 else
6483   ac_cv_header_stdc=no
6484 fi
6485 rm -f conftest*
6486
6487 fi
6488
6489 if test $ac_cv_header_stdc = yes; then
6490   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6491   if test "$cross_compiling" = yes; then :
6492   :
6493 else
6494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h.  */
6496 #include <ctype.h>
6497 #include <stdlib.h>
6498 #if ((' ' & 0x0FF) == 0x020)
6499 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6500 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6501 #else
6502 # define ISLOWER(c) \
6503                    (('a' <= (c) && (c) <= 'i') \
6504                      || ('j' <= (c) && (c) <= 'r') \
6505                      || ('s' <= (c) && (c) <= 'z'))
6506 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6507 #endif
6508
6509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6510 int
6511 main ()
6512 {
6513   int i;
6514   for (i = 0; i < 256; i++)
6515     if (XOR (islower (i), ISLOWER (i))
6516         || toupper (i) != TOUPPER (i))
6517       return 2;
6518   return 0;
6519 }
6520 _ACEOF
6521 if ac_fn_c_try_run "$LINENO"; then :
6522
6523 else
6524   ac_cv_header_stdc=no
6525 fi
6526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6527   conftest.$ac_objext conftest.beam conftest.$ac_ext
6528 fi
6529
6530 fi
6531 fi
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6533 $as_echo "$ac_cv_header_stdc" >&6; }
6534 if test $ac_cv_header_stdc = yes; then
6535
6536 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6537
6538 fi
6539
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6541 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6542 if ${ac_cv_header_time+:} false; then :
6543   $as_echo_n "(cached) " >&6
6544 else
6545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h.  */
6547 #include <sys/types.h>
6548 #include <sys/time.h>
6549 #include <time.h>
6550
6551 int
6552 main ()
6553 {
6554 if ((struct tm *) 0)
6555 return 0;
6556   ;
6557   return 0;
6558 }
6559 _ACEOF
6560 if ac_fn_c_try_compile "$LINENO"; then :
6561   ac_cv_header_time=yes
6562 else
6563   ac_cv_header_time=no
6564 fi
6565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 fi
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6568 $as_echo "$ac_cv_header_time" >&6; }
6569 if test $ac_cv_header_time = yes; then
6570
6571 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6572
6573 fi
6574
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6576 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6577 if ${ac_cv_header_sys_wait_h+:} false; then :
6578   $as_echo_n "(cached) " >&6
6579 else
6580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h.  */
6582 #include <sys/types.h>
6583 #include <sys/wait.h>
6584 #ifndef WEXITSTATUS
6585 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6586 #endif
6587 #ifndef WIFEXITED
6588 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6589 #endif
6590
6591 int
6592 main ()
6593 {
6594   int s;
6595   wait (&s);
6596   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6597   ;
6598   return 0;
6599 }
6600 _ACEOF
6601 if ac_fn_c_try_compile "$LINENO"; then :
6602   ac_cv_header_sys_wait_h=yes
6603 else
6604   ac_cv_header_sys_wait_h=no
6605 fi
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 fi
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6609 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6610 if test $ac_cv_header_sys_wait_h = yes; then
6611
6612 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6613
6614 fi
6615
6616
6617 for ac_header in \
6618   dlfcn.h \
6619   unistd.h \
6620   crypt.h \
6621   errno.h \
6622   resource.h \
6623   sys/resource.h \
6624   getopt.h \
6625   malloc.h \
6626   utmp.h \
6627   utmpx.h \
6628   signal.h \
6629   sys/select.h \
6630   syslog.h \
6631   inttypes.h \
6632   stdint.h \
6633   stdio.h \
6634   netdb.h \
6635   semaphore.h \
6636   arpa/inet.h \
6637   netinet/in.h \
6638   sys/types.h \
6639   sys/socket.h \
6640   winsock.h \
6641   utime.h \
6642   sys/time.h \
6643   sys/wait.h \
6644   sys/security.h \
6645   fcntl.h \
6646   sys/fcntl.h \
6647   sys/prctl.h \
6648   sys/un.h \
6649   glob.h \
6650   prot.h \
6651   pwd.h \
6652   grp.h \
6653   stddef.h \
6654   fnmatch.h \
6655   sia.h \
6656   siad.h
6657
6658 do :
6659   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6660 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6661 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6662   cat >>confdefs.h <<_ACEOF
6663 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6664 _ACEOF
6665
6666 fi
6667
6668 done
6669
6670
6671 for ac_header in net/if.h
6672 do :
6673   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
6674 #  include <sys/socket.h>
6675 #  endif
6676
6677 "
6678 if test "x$ac_cv_header_net_if_h" = xyes; then :
6679   cat >>confdefs.h <<_ACEOF
6680 #define HAVE_NET_IF_H 1
6681 _ACEOF
6682
6683 fi
6684
6685 done
6686
6687
6688 REGEX=no
6689 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
6690 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
6691
6692 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
6693
6694 fi
6695
6696
6697 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
6698
6699 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
6700
6701   REGEX_EXTENDED=yes
6702   REGEX_PCRE=yes
6703   REGEX=yes
6704   LIBS="$LIBS -lpcreposix"
6705 else
6706   ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
6707 if test "x$ac_cv_header_regex_h" = xyes; then :
6708
6709 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
6710
6711 fi
6712
6713
6714   if test "x$ac_cv_header_regex_h" = "xyes"; then
6715     REGEX_EXTENDED=no
6716     REGEX_PCRE=no
6717     REGEX=yes
6718     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h.  */
6720
6721         #include <regex.h>
6722         #ifdef REG_EXTENDED
6723         yes
6724         #endif
6725
6726 _ACEOF
6727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6728   $EGREP "yes" >/dev/null 2>&1; then :
6729
6730 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
6731  REGEX_EXTENDED=yes
6732
6733 fi
6734 rm -f conftest*
6735
6736   fi
6737 fi
6738
6739
6740
6741
6742
6743 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6744 then
6745
6746 $as_echo "#define OSFC2 /**/" >>confdefs.h
6747
6748 fi
6749
6750 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6751 then
6752
6753 $as_echo "#define OSFSIA /**/" >>confdefs.h
6754
6755 fi
6756
6757 if test "x$WITH_OPENSSL" = xyes; then
6758   old_LIBS=$LIBS
6759   old_LDFLAGS="$LDFLAGS"
6760
6761   OPENSSL_INCLUDE="-DNO_OPENSSL"
6762   OPENSSL_LIBS=
6763   if test "x$OPENSSL_LIB_DIR" != "x"; then
6764     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
6765   fi
6766
6767         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
6768 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
6769 if ${ac_cv_lib_crypto_DH_new+:} false; then :
6770   $as_echo_n "(cached) " >&6
6771 else
6772   ac_check_lib_save_LIBS=$LIBS
6773 LIBS="-lcrypto  $LIBS"
6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h.  */
6776
6777 /* Override any GCC internal prototype to avoid an error.
6778    Use char because int might match the return type of a GCC
6779    builtin and then its argument prototype would still apply.  */
6780 #ifdef __cplusplus
6781 extern "C"
6782 #endif
6783 char DH_new ();
6784 int
6785 main ()
6786 {
6787 return DH_new ();
6788   ;
6789   return 0;
6790 }
6791 _ACEOF
6792 if ac_fn_c_try_link "$LINENO"; then :
6793   ac_cv_lib_crypto_DH_new=yes
6794 else
6795   ac_cv_lib_crypto_DH_new=no
6796 fi
6797 rm -f core conftest.err conftest.$ac_objext \
6798     conftest$ac_exeext conftest.$ac_ext
6799 LIBS=$ac_check_lib_save_LIBS
6800 fi
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
6802 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
6803 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
6804
6805       LIBS="-lcrypto $LIBS"
6806
6807 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
6808
6809       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
6810 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
6811 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
6812   $as_echo_n "(cached) " >&6
6813 else
6814   ac_check_lib_save_LIBS=$LIBS
6815 LIBS="-lssl  $LIBS"
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h.  */
6818
6819 /* Override any GCC internal prototype to avoid an error.
6820    Use char because int might match the return type of a GCC
6821    builtin and then its argument prototype would still apply.  */
6822 #ifdef __cplusplus
6823 extern "C"
6824 #endif
6825 char SSL_new ();
6826 int
6827 main ()
6828 {
6829 return SSL_new ();
6830   ;
6831   return 0;
6832 }
6833 _ACEOF
6834 if ac_fn_c_try_link "$LINENO"; then :
6835   ac_cv_lib_ssl_SSL_new=yes
6836 else
6837   ac_cv_lib_ssl_SSL_new=no
6838 fi
6839 rm -f core conftest.err conftest.$ac_objext \
6840     conftest$ac_exeext conftest.$ac_ext
6841 LIBS=$ac_check_lib_save_LIBS
6842 fi
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
6844 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
6845 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
6846
6847
6848 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
6849
6850           if test "x$OPENSSL_LIB_DIR" != "x"; then
6851             OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
6852           fi
6853           OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
6854
6855 else
6856
6857           { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6859 as_fn_error $? "failed linking to libssl
6860 See \`config.log' for more details" "$LINENO" 5; }
6861
6862
6863 fi
6864
6865
6866 fi
6867
6868
6869         old_CPPFLAGS=$CPPFLAGS
6870   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6871     CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
6872   fi
6873
6874         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
6875   for ac_header in \
6876     openssl/ssl.h \
6877     openssl/crypto.h \
6878     openssl/err.h \
6879     openssl/evp.h \
6880     openssl/md5.h \
6881     openssl/md4.h \
6882     openssl/sha.h \
6883     openssl/ocsp.h \
6884     openssl/engine.h
6885 do :
6886   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6887 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6888 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6889   cat >>confdefs.h <<_ACEOF
6890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6891 _ACEOF
6892
6893 else
6894
6895       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6897 as_fn_error $? "failed locating OpenSSL headers
6898 See \`config.log' for more details" "$LINENO" 5; }
6899
6900
6901 fi
6902
6903 done
6904
6905
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
6907 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
6908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h.  */
6910 #include <openssl/crypto.h>
6911      #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
6912      yes
6913      #endif
6914
6915 _ACEOF
6916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6917   $EGREP "yes" >/dev/null 2>&1; then :
6918
6919       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6920 $as_echo "yes" >&6; }
6921
6922 else
6923
6924       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6928 as_fn_error $? "OpenSSL version too old
6929 See \`config.log' for more details" "$LINENO" 5; }
6930
6931
6932 fi
6933 rm -f conftest*
6934
6935
6936   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6937     OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
6938   else
6939     OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
6940   fi
6941
6942         { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
6943 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
6944   if test "$cross_compiling" = yes; then :
6945   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6947 as_fn_error $? "cannot run test program while cross compiling
6948 See \`config.log' for more details" "$LINENO" 5; }
6949 else
6950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h.  */
6952
6953         #include <stdio.h>
6954         #include <openssl/opensslv.h>
6955         #include <openssl/crypto.h>
6956
6957 int
6958 main ()
6959 {
6960
6961         if (SSLeay() == OPENSSL_VERSION_NUMBER) {
6962           return 0;
6963         } else {
6964           printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
6965           return 1;
6966         }
6967
6968
6969   ;
6970   return 0;
6971 }
6972 _ACEOF
6973 if ac_fn_c_try_run "$LINENO"; then :
6974
6975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6976 $as_echo "yes" >&6; }
6977
6978 else
6979
6980       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 $as_echo "no" >&6; }
6982       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6984 as_fn_error $? "OpenSSL library version does not match header version
6985 See \`config.log' for more details" "$LINENO" 5; }
6986
6987
6988 fi
6989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6990   conftest.$ac_objext conftest.beam conftest.$ac_ext
6991 fi
6992
6993
6994   CPPFLAGS=$old_CPPFLAGS
6995   LIBS=$old_LIBS
6996   LDFLAGS="$old_LDFLAGS"
6997 fi
6998
6999
7000
7001 export OPENSSL_LIBS
7002
7003 if test "x$PCAP_LIBS" = x; then
7004   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
7005 $as_echo "$as_me: skipping test for pcap.h." >&6;}
7006 else
7007   ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
7008 if test "x$ac_cv_header_pcap_h" = xyes; then :
7009
7010
7011 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
7012
7013
7014       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
7015 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
7016 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
7017   $as_echo_n "(cached) " >&6
7018 else
7019   ac_check_lib_save_LIBS=$LIBS
7020 LIBS="-lpcap  $LIBS"
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h.  */
7023
7024 /* Override any GCC internal prototype to avoid an error.
7025    Use char because int might match the return type of a GCC
7026    builtin and then its argument prototype would still apply.  */
7027 #ifdef __cplusplus
7028 extern "C"
7029 #endif
7030 char pcap_fopen_offline ();
7031 int
7032 main ()
7033 {
7034 return pcap_fopen_offline ();
7035   ;
7036   return 0;
7037 }
7038 _ACEOF
7039 if ac_fn_c_try_link "$LINENO"; then :
7040   ac_cv_lib_pcap_pcap_fopen_offline=yes
7041 else
7042   ac_cv_lib_pcap_pcap_fopen_offline=no
7043 fi
7044 rm -f core conftest.err conftest.$ac_objext \
7045     conftest$ac_exeext conftest.$ac_ext
7046 LIBS=$ac_check_lib_save_LIBS
7047 fi
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
7049 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
7050 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
7051
7052
7053 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
7054
7055
7056
7057 fi
7058
7059
7060       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
7061 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
7062 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
7063   $as_echo_n "(cached) " >&6
7064 else
7065   ac_check_lib_save_LIBS=$LIBS
7066 LIBS="-lpcap  $LIBS"
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h.  */
7069
7070 /* Override any GCC internal prototype to avoid an error.
7071    Use char because int might match the return type of a GCC
7072    builtin and then its argument prototype would still apply.  */
7073 #ifdef __cplusplus
7074 extern "C"
7075 #endif
7076 char pcap_dump_fopen ();
7077 int
7078 main ()
7079 {
7080 return pcap_dump_fopen ();
7081   ;
7082   return 0;
7083 }
7084 _ACEOF
7085 if ac_fn_c_try_link "$LINENO"; then :
7086   ac_cv_lib_pcap_pcap_dump_fopen=yes
7087 else
7088   ac_cv_lib_pcap_pcap_dump_fopen=no
7089 fi
7090 rm -f core conftest.err conftest.$ac_objext \
7091     conftest$ac_exeext conftest.$ac_ext
7092 LIBS=$ac_check_lib_save_LIBS
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
7095 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
7096 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
7097
7098
7099 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
7100
7101
7102
7103 fi
7104
7105
7106 else
7107
7108       PCAP_LIBS=
7109       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
7110 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
7111
7112
7113 fi
7114
7115
7116 fi
7117
7118
7119
7120 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7121 if test "x$ac_cv_type_off_t" = xyes; then :
7122
7123 else
7124
7125 cat >>confdefs.h <<_ACEOF
7126 #define off_t long int
7127 _ACEOF
7128
7129 fi
7130
7131 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7132 if test "x$ac_cv_type_pid_t" = xyes; then :
7133
7134 else
7135
7136 cat >>confdefs.h <<_ACEOF
7137 #define pid_t int
7138 _ACEOF
7139
7140 fi
7141
7142 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7143 if test "x$ac_cv_type_size_t" = xyes; then :
7144
7145 else
7146
7147 cat >>confdefs.h <<_ACEOF
7148 #define size_t unsigned int
7149 _ACEOF
7150
7151 fi
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7154 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7155 if ${ac_cv_type_uid_t+:} false; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h.  */
7160 #include <sys/types.h>
7161
7162 _ACEOF
7163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7164   $EGREP "uid_t" >/dev/null 2>&1; then :
7165   ac_cv_type_uid_t=yes
7166 else
7167   ac_cv_type_uid_t=no
7168 fi
7169 rm -f conftest*
7170
7171 fi
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7173 $as_echo "$ac_cv_type_uid_t" >&6; }
7174 if test $ac_cv_type_uid_t = no; then
7175
7176 $as_echo "#define uid_t int" >>confdefs.h
7177
7178
7179 $as_echo "#define gid_t int" >>confdefs.h
7180
7181 fi
7182
7183
7184
7185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7186 $as_echo_n "checking for socklen_t... " >&6; }
7187 if ${ac_cv_type_socklen_t+:} false; then :
7188   $as_echo_n "(cached) " >&6
7189 else
7190    ac_cv_type_socklen_t=no
7191       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h.  */
7193 #ifdef HAVE_SYS_TYPES_H
7194     #  include <sys/types.h>
7195     #endif
7196
7197     #ifdef HAVE_SYS_SOCKET_H
7198     #  include <sys/socket.h>
7199     #endif
7200
7201 int
7202 main ()
7203 {
7204 socklen_t foo
7205   ;
7206   return 0;
7207 }
7208 _ACEOF
7209 if ac_fn_c_try_compile "$LINENO"; then :
7210   ac_cv_type_socklen_t=yes
7211 fi
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213
7214
7215 fi
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7217 $as_echo "$ac_cv_type_socklen_t" >&6; }
7218
7219   if test "$ac_cv_type_socklen_t" != "yes"; then
7220
7221 $as_echo "#define socklen_t int" >>confdefs.h
7222
7223   fi
7224
7225
7226
7227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
7228 $as_echo_n "checking for uint8_t... " >&6; }
7229 if ${ac_cv_type_uint8_t+:} false; then :
7230   $as_echo_n "(cached) " >&6
7231 else
7232    ac_cv_type_uint8_t=no
7233       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h.  */
7235 #ifdef HAVE_INTTYPES_H
7236     #  include <inttypes.h>
7237     #endif
7238
7239     #ifdef HAVE_STDINT_H
7240     #  include <stdint.h>
7241     #endif
7242
7243 int
7244 main ()
7245 {
7246 uint8_t foo
7247   ;
7248   return 0;
7249 }
7250 _ACEOF
7251 if ac_fn_c_try_compile "$LINENO"; then :
7252   ac_cv_type_uint8_t=yes
7253 fi
7254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255
7256
7257 fi
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
7259 $as_echo "$ac_cv_type_uint8_t" >&6; }
7260
7261   if test "$ac_cv_type_uint8_t" != "yes"; then
7262
7263 $as_echo "#define uint8_t unsigned char" >>confdefs.h
7264
7265   fi
7266
7267
7268
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
7270 $as_echo_n "checking for uint16_t... " >&6; }
7271 if ${ac_cv_type_uint16_t+:} false; then :
7272   $as_echo_n "(cached) " >&6
7273 else
7274    ac_cv_type_uint16_t=no
7275       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h.  */
7277 #ifdef HAVE_INTTYPES_H
7278     #  include <inttypes.h>
7279     #endif
7280
7281     #ifdef HAVE_STDINT_H
7282     #  include <stdint.h>
7283     #endif
7284
7285 int
7286 main ()
7287 {
7288 uint16_t foo
7289   ;
7290   return 0;
7291 }
7292 _ACEOF
7293 if ac_fn_c_try_compile "$LINENO"; then :
7294   ac_cv_type_uint16_t=yes
7295 fi
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297
7298
7299 fi
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
7301 $as_echo "$ac_cv_type_uint16_t" >&6; }
7302
7303   if test "$ac_cv_type_uint16_t" != "yes"; then
7304
7305 $as_echo "#define uint16_t unsigned short" >>confdefs.h
7306
7307   fi
7308
7309
7310
7311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
7312 $as_echo_n "checking for uint32_t... " >&6; }
7313 if ${ac_cv_type_uint32_t+:} false; then :
7314   $as_echo_n "(cached) " >&6
7315 else
7316    ac_cv_type_uint32_t=no
7317       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h.  */
7319 #ifdef HAVE_INTTYPES_H
7320     #  include <inttypes.h>
7321     #endif
7322
7323     #ifdef HAVE_STDINT_H
7324     #  include <stdint.h>
7325     #endif
7326
7327 int
7328 main ()
7329 {
7330 uint32_t foo
7331   ;
7332   return 0;
7333 }
7334 _ACEOF
7335 if ac_fn_c_try_compile "$LINENO"; then :
7336   ac_cv_type_uint32_t=yes
7337 fi
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339
7340
7341 fi
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
7343 $as_echo "$ac_cv_type_uint32_t" >&6; }
7344
7345   if test "$ac_cv_type_uint32_t" != "yes"; then
7346
7347 $as_echo "#define uint32_t unsigned int" >>confdefs.h
7348
7349   fi
7350
7351
7352 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
7353     #ifdef HAVE_NETINET_IN_H
7354     #  include <netinet/in.h>
7355     #endif
7356
7357
7358 "
7359 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
7360
7361 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7362
7363 fi
7364
7365
7366 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7367     #ifdef HAVE_NETINET_IN_H
7368     #  include <netinet/in.h>
7369     #endif
7370
7371     #ifdef HAVE_SYS_SOCKET_H
7372     #  include <sys/socket.h>
7373     #endif
7374
7375 "
7376 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7377
7378 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
7379
7380 fi
7381
7382
7383 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7384     #ifdef HAVE_NETINET_IN_H
7385     #  include <netinet/in.h>
7386     #endif
7387
7388 "
7389 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7390
7391 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7392
7393 fi
7394
7395
7396 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
7397     #ifdef HAVE_SYS_TYPES_H
7398     #  include <sys/types.h>
7399     #endif
7400
7401     #ifdef HAVE_SYS_SOCKET_H
7402     #  include <sys/socket.h>
7403     #endif
7404
7405     #ifdef HAVE_NETDB_H
7406     #  include <netdb.h>
7407     #endif
7408
7409
7410 "
7411 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
7412
7413 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7414
7415 fi
7416
7417
7418 for ac_func in \
7419   getopt_long \
7420   fcntl \
7421   strsignal \
7422   sigaction \
7423   sigprocmask \
7424   pthread_sigmask \
7425   snprintf \
7426   vsnprintf \
7427   setsid \
7428   strncasecmp \
7429   strcasecmp \
7430   localtime_r \
7431   ctime_r \
7432   gmtime_r \
7433   strsep \
7434   inet_aton \
7435   inet_pton \
7436   inet_ntop \
7437   setlinebuf \
7438   setvbuf \
7439   getusershell \
7440   initgroups \
7441   getaddrinfo \
7442   getnameinfo \
7443   closefrom \
7444   gettimeofday \
7445   getpeereid \
7446   setuid \
7447   setresuid \
7448   getresuid \
7449   strlcat \
7450   strlcpy
7451
7452 do :
7453   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7454 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7455 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7456   cat >>confdefs.h <<_ACEOF
7457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7458 _ACEOF
7459
7460 fi
7461 done
7462
7463
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7465 $as_echo_n "checking return type of signal handlers... " >&6; }
7466 if ${ac_cv_type_signal+:} false; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h.  */
7471 #include <sys/types.h>
7472 #include <signal.h>
7473
7474 int
7475 main ()
7476 {
7477 return *(signal (0, 0)) (0) == 1;
7478   ;
7479   return 0;
7480 }
7481 _ACEOF
7482 if ac_fn_c_try_compile "$LINENO"; then :
7483   ac_cv_type_signal=int
7484 else
7485   ac_cv_type_signal=void
7486 fi
7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488 fi
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7490 $as_echo "$ac_cv_type_signal" >&6; }
7491
7492 cat >>confdefs.h <<_ACEOF
7493 #define RETSIGTYPE $ac_cv_type_signal
7494 _ACEOF
7495
7496
7497
7498 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
7499
7500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7501 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7502
7503
7504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h.  */
7506
7507 #include <utmpx.h>
7508 #ifdef HAVE_STDDEF_H
7509 #include <stddef.h>
7510 #endif
7511 #ifndef offsetof
7512 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7513 #endif
7514
7515 int
7516 main ()
7517 {
7518  int foo = offsetof(struct utmpx, ut_xtime)
7519   ;
7520   return 0;
7521 }
7522 _ACEOF
7523 if ac_fn_c_try_compile "$LINENO"; then :
7524   has_element=" "
7525 else
7526   has_element=
7527 fi
7528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529
7530   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7531   if test "x$has_element" != "x"; then
7532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7533 $as_echo "yes" >&6; }
7534     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7535   else
7536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7538     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7539  fi
7540
7541  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
7542
7543 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7544
7545  fi
7546 fi
7547
7548
7549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7550 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7551
7552
7553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h.  */
7555
7556 #include <netinet/in.h>
7557 #ifdef HAVE_STDDEF_H
7558 #include <stddef.h>
7559 #endif
7560 #ifndef offsetof
7561 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7562 #endif
7563
7564 int
7565 main ()
7566 {
7567  int foo = offsetof(struct in_pktinfo, ipi_addr)
7568   ;
7569   return 0;
7570 }
7571 _ACEOF
7572 if ac_fn_c_try_compile "$LINENO"; then :
7573   has_element=" "
7574 else
7575   has_element=
7576 fi
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578
7579   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7580   if test "x$has_element" != "x"; then
7581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7582 $as_echo "yes" >&6; }
7583     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7584   else
7585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7587     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7588  fi
7589
7590 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
7591
7592 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7593
7594 fi
7595
7596
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7598 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7599
7600
7601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h.  */
7603
7604 #include <netinet/in.h>
7605 #ifdef HAVE_STDDEF_H
7606 #include <stddef.h>
7607 #endif
7608 #ifndef offsetof
7609 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7610 #endif
7611
7612 int
7613 main ()
7614 {
7615  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7616   ;
7617   return 0;
7618 }
7619 _ACEOF
7620 if ac_fn_c_try_compile "$LINENO"; then :
7621   has_element=" "
7622 else
7623   has_element=
7624 fi
7625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626
7627   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7628   if test "x$has_element" != "x"; then
7629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7630 $as_echo "yes" >&6; }
7631     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7632   else
7633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
7636  fi
7637
7638 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
7639
7640 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
7641
7642 fi
7643
7644
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7646 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7647 if ${ac_cv_c_const+:} false; then :
7648   $as_echo_n "(cached) " >&6
7649 else
7650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h.  */
7652
7653 int
7654 main ()
7655 {
7656
7657 #ifndef __cplusplus
7658   /* Ultrix mips cc rejects this sort of thing.  */
7659   typedef int charset[2];
7660   const charset cs = { 0, 0 };
7661   /* SunOS 4.1.1 cc rejects this.  */
7662   char const *const *pcpcc;
7663   char **ppc;
7664   /* NEC SVR4.0.2 mips cc rejects this.  */
7665   struct point {int x, y;};
7666   static struct point const zero = {0,0};
7667   /* AIX XL C 1.02.0.0 rejects this.
7668      It does not let you subtract one const X* pointer from another in
7669      an arm of an if-expression whose if-part is not a constant
7670      expression */
7671   const char *g = "string";
7672   pcpcc = &g + (g ? g-g : 0);
7673   /* HPUX 7.0 cc rejects these. */
7674   ++pcpcc;
7675   ppc = (char**) pcpcc;
7676   pcpcc = (char const *const *) ppc;
7677   { /* SCO 3.2v4 cc rejects this sort of thing.  */
7678     char tx;
7679     char *t = &tx;
7680     char const *s = 0 ? (char *) 0 : (char const *) 0;
7681
7682     *t++ = 0;
7683     if (s) return 0;
7684   }
7685   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7686     int x[] = {25, 17};
7687     const int *foo = &x[0];
7688     ++foo;
7689   }
7690   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7691     typedef const int *iptr;
7692     iptr p = 0;
7693     ++p;
7694   }
7695   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7696        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7697     struct s { int j; const int *ap[3]; } bx;
7698     struct s *b = &bx; b->j = 5;
7699   }
7700   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7701     const int foo = 10;
7702     if (!foo) return 0;
7703   }
7704   return !cs[0] && !zero.x;
7705 #endif
7706
7707   ;
7708   return 0;
7709 }
7710 _ACEOF
7711 if ac_fn_c_try_compile "$LINENO"; then :
7712   ac_cv_c_const=yes
7713 else
7714   ac_cv_c_const=no
7715 fi
7716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 fi
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7719 $as_echo "$ac_cv_c_const" >&6; }
7720 if test $ac_cv_c_const = no; then
7721
7722 $as_echo "#define const /**/" >>confdefs.h
7723
7724 fi
7725
7726
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
7728 $as_echo_n "checking type of OS... " >&6; }
7729 OS=`uname -s`
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
7731 $as_echo "$OS" >&6; }
7732 if test "$OS" = "OS/2"; then
7733   LIBPREFIX=
7734 else
7735   LIBPREFIX=lib
7736 fi
7737
7738
7739 if test "x$developer" = "xyes"; then
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
7741 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
7742
7743
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
7745 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
7746 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
7747   $as_echo_n "(cached) " >&6
7748 else
7749
7750
7751     CFLAGS_SAVED=$CFLAGS
7752     CFLAGS="$CFLAGS -Werror -Wdocumentation"
7753
7754     ac_ext=c
7755 ac_cpp='$CPP $CPPFLAGS'
7756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7759
7760     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h.  */
7762
7763 int
7764 main ()
7765 {
7766 return 0;
7767   ;
7768   return 0;
7769 }
7770 _ACEOF
7771 if ac_fn_c_try_compile "$LINENO"; then :
7772   ax_cv_cc_wdocumentation_flag="yes"
7773 else
7774   ax_cv_cc_wdocumentation_flag="no"
7775 fi
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777     ac_ext=c
7778 ac_cpp='$CPP $CPPFLAGS'
7779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7782
7783
7784     CFLAGS="$CFLAGS_SAVED"
7785
7786 fi
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
7788 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
7789
7790   if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
7791     devflags="-Wdocumentation"
7792   fi
7793
7794   if test "x$GCC" = "xyes"; then
7795     devflags="$devflags -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length -Wno-cast-align -Wformat-nonliteral -Wformat-security -Wformat=2 -DWITH_VERIFY_PTR=1"
7796     INSTALLSTRIP=""
7797   fi
7798
7799   { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
7800 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
7801
7802   CFLAGS="$CFLAGS $devflags"
7803         if test "x$EXPERIMENTAL" != "xno"; then
7804     { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
7805 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
7806     EXPERIMENTAL=yes
7807   fi
7808 else
7809   devflags=""
7810   CFLAGS="$CFLAGS -DNDEBUG"
7811   INSTALLSTRIP=""
7812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
7813 $as_echo "no." >&6; }
7814 fi
7815
7816 export EXPERIMENTAL
7817
7818 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
7819   RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
7820
7821 cat >>confdefs.h <<_ACEOF
7822 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
7823 _ACEOF
7824
7825 fi
7826
7827
7828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
7829 $as_echo_n "checking for TLS... " >&6; }
7830     if test "$cross_compiling" = yes; then :
7831   have_tls=no
7832 else
7833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h.  */
7835  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
7836 _ACEOF
7837 if ac_fn_c_try_run "$LINENO"; then :
7838   have_tls=yes
7839 else
7840   have_tls=no
7841 fi
7842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7843   conftest.$ac_objext conftest.beam conftest.$ac_ext
7844 fi
7845
7846     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
7847 $as_echo "$have_tls" >&6; }
7848     if test "$have_tls" = "yes"; then
7849
7850 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
7851
7852     fi
7853
7854
7855
7856 talloc_include_dir=
7857
7858 # Check whether --with-talloc-include-dir was given.
7859 if test "${with_talloc_include_dir+set}" = set; then :
7860   withval=$with_talloc_include_dir; case "$withval" in
7861     no)
7862       as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
7863       ;;
7864     yes)
7865       ;;
7866     *)
7867       talloc_include_dir="$withval"
7868       ;;
7869   esac
7870 fi
7871
7872
7873 smart_try_dir="$talloc_include_dir"
7874
7875
7876 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7877 old_CFLAGS="$CFLAGS"
7878 smart_include=
7879 smart_include_dir=
7880
7881 if test "x$smart_try_dir" != "x"; then
7882   for try in $smart_try_dir; do
7883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7884 $as_echo_n "checking for talloc.h in $try... " >&6; }
7885     CFLAGS="$old_CFLAGS -isystem $try"
7886     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h.  */
7888
7889                     #include <talloc.h>
7890 int
7891 main ()
7892 {
7893 int a = 1;
7894   ;
7895   return 0;
7896 }
7897 _ACEOF
7898 if ac_fn_c_try_compile "$LINENO"; then :
7899
7900                      smart_include="-isystem $try"
7901                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7902 $as_echo "yes" >&6; }
7903                      break
7904
7905 else
7906
7907                      smart_include=
7908                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7910
7911 fi
7912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913   done
7914   CFLAGS="$old_CFLAGS"
7915 fi
7916
7917 if test "x$smart_include" = "x"; then
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7919 $as_echo_n "checking for talloc.h... " >&6; }
7920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h.  */
7922
7923                   #include <talloc.h>
7924 int
7925 main ()
7926 {
7927 int a = 1;
7928   ;
7929   return 0;
7930 }
7931 _ACEOF
7932 if ac_fn_c_try_compile "$LINENO"; then :
7933
7934                    smart_include=" "
7935                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7936 $as_echo "yes" >&6; }
7937                    break
7938
7939 else
7940
7941                    smart_include=
7942                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }
7944
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947 fi
7948
7949 if test "x$smart_include" = "x"; then
7950
7951
7952 if test "x$LOCATE" != "x"; then
7953         DIRS=
7954   file=talloc.h
7955
7956   for x in `${LOCATE} $file 2>/dev/null`; do
7957                                         base=`echo $x | sed "s%/${file}%%"`
7958     if test "x$x" = "x$base"; then
7959       continue;
7960     fi
7961
7962     dir=`${DIRNAME} $x 2>/dev/null`
7963                 exclude=`echo ${dir} | ${GREP} /home`
7964     if test "x$exclude" != "x"; then
7965       continue
7966     fi
7967
7968                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7969     if test "x$already" = "x"; then
7970       DIRS="$DIRS $dir"
7971     fi
7972   done
7973 fi
7974
7975 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7976
7977   for try in $smart_include_dir /usr/local/include /opt/include; do
7978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7979 $as_echo_n "checking for talloc.h in $try... " >&6; }
7980     CFLAGS="$old_CFLAGS -isystem $try"
7981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h.  */
7983
7984                     #include <talloc.h>
7985 int
7986 main ()
7987 {
7988 int a = 1;
7989   ;
7990   return 0;
7991 }
7992 _ACEOF
7993 if ac_fn_c_try_compile "$LINENO"; then :
7994
7995                      smart_include="-isystem $try"
7996                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7997 $as_echo "yes" >&6; }
7998                      break
7999
8000 else
8001
8002                      smart_include=
8003                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005
8006 fi
8007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8008   done
8009   CFLAGS="$old_CFLAGS"
8010 fi
8011
8012 if test "x$smart_include" != "x"; then
8013   eval "ac_cv_header_$ac_safe=yes"
8014   CFLAGS="$old_CFLAGS $smart_include"
8015   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8016 fi
8017
8018 if test "x$ac_cv_header_talloc_h" != "xyes"; then
8019   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
8020 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
8021   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8022 else
8023   INCLUDE="${SMART_CFLAGS} ${INCLUDE}"
8024   LIBS="-ltalloc ${LIBS}"
8025 fi
8026
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
8028 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
8029 if ${ac_cv_lib_crypt_crypt+:} false; then :
8030   $as_echo_n "(cached) " >&6
8031 else
8032   ac_check_lib_save_LIBS=$LIBS
8033 LIBS="-lcrypt  $LIBS"
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h.  */
8036
8037 /* Override any GCC internal prototype to avoid an error.
8038    Use char because int might match the return type of a GCC
8039    builtin and then its argument prototype would still apply.  */
8040 #ifdef __cplusplus
8041 extern "C"
8042 #endif
8043 char crypt ();
8044 int
8045 main ()
8046 {
8047 return crypt ();
8048   ;
8049   return 0;
8050 }
8051 _ACEOF
8052 if ac_fn_c_try_link "$LINENO"; then :
8053   ac_cv_lib_crypt_crypt=yes
8054 else
8055   ac_cv_lib_crypt_crypt=no
8056 fi
8057 rm -f core conftest.err conftest.$ac_objext \
8058     conftest$ac_exeext conftest.$ac_ext
8059 LIBS=$ac_check_lib_save_LIBS
8060 fi
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
8062 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
8063 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
8064   CRYPTLIB="-lcrypt"
8065
8066 fi
8067
8068
8069 if test "$CRYPTLIB" != ""; then
8070
8071 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8072
8073 else
8074   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
8075 if test "x$ac_cv_func_crypt" = xyes; then :
8076
8077 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8078
8079 fi
8080
8081 fi
8082
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
8084 $as_echo_n "checking for setkey in -lcipher... " >&6; }
8085 if ${ac_cv_lib_cipher_setkey+:} false; then :
8086   $as_echo_n "(cached) " >&6
8087 else
8088   ac_check_lib_save_LIBS=$LIBS
8089 LIBS="-lcipher  $LIBS"
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h.  */
8092
8093 /* Override any GCC internal prototype to avoid an error.
8094    Use char because int might match the return type of a GCC
8095    builtin and then its argument prototype would still apply.  */
8096 #ifdef __cplusplus
8097 extern "C"
8098 #endif
8099 char setkey ();
8100 int
8101 main ()
8102 {
8103 return setkey ();
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 if ac_fn_c_try_link "$LINENO"; then :
8109   ac_cv_lib_cipher_setkey=yes
8110 else
8111   ac_cv_lib_cipher_setkey=no
8112 fi
8113 rm -f core conftest.err conftest.$ac_objext \
8114     conftest$ac_exeext conftest.$ac_ext
8115 LIBS=$ac_check_lib_save_LIBS
8116 fi
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
8118 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
8119 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
8120   CRYPTLIB="${CRYPTLIB} -lcipher"
8121
8122 fi
8123
8124
8125
8126
8127 $as_echo "#define GNUSTYLE 1" >>confdefs.h
8128
8129
8130
8131 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
8132
8133
8134
8135 $as_echo "#define BSDSTYLE 3" >>confdefs.h
8136
8137
8138 gethostbyaddrrstyle=""
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
8140 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
8141 case "$host" in
8142   *-freebsd*)
8143                             ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
8144         #ifdef HAVE_NETDB_H
8145         #include <netdb.h>
8146         #endif
8147
8148 "
8149 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
8150   ac_have_decl=1
8151 else
8152   ac_have_decl=0
8153 fi
8154
8155 cat >>confdefs.h <<_ACEOF
8156 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
8157 _ACEOF
8158 if test $ac_have_decl = 1; then :
8159
8160 else
8161
8162
8163 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8164
8165         gethostbyaddrrstyle=BSD
8166         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
8167 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
8168
8169 fi
8170
8171     ;;
8172 esac
8173
8174 if test "x$gethostbyaddrrstyle" = "x"; then
8175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h.  */
8177
8178       #include <stdio.h>
8179       #include <netdb.h>
8180
8181 int
8182 main ()
8183 {
8184  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
8185   ;
8186   return 0;
8187 }
8188 _ACEOF
8189 if ac_fn_c_try_link "$LINENO"; then :
8190
8191
8192 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
8193
8194       gethostbyaddrrstyle=GNU
8195
8196
8197 fi
8198 rm -f core conftest.err conftest.$ac_objext \
8199     conftest$ac_exeext conftest.$ac_ext
8200 fi
8201
8202 if test "x$gethostbyaddrrstyle" = "x"; then
8203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h.  */
8205
8206       #include <stdio.h>
8207       #include <netdb.h>
8208
8209 int
8210 main ()
8211 {
8212  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
8213   ;
8214   return 0;
8215 }
8216 _ACEOF
8217 if ac_fn_c_try_link "$LINENO"; then :
8218
8219
8220 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
8221
8222       gethostbyaddrrstyle=SYSV
8223
8224
8225 fi
8226 rm -f core conftest.err conftest.$ac_objext \
8227     conftest$ac_exeext conftest.$ac_ext
8228 fi
8229
8230
8231 if test "x$gethostbyaddrrstyle" = "x"; then
8232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h.  */
8234
8235       #include <stdio.h>
8236       #include <netdb.h>
8237
8238 int
8239 main ()
8240 {
8241  gethostbyaddr(NULL, 0, 0)
8242   ;
8243   return 0;
8244 }
8245 _ACEOF
8246 if ac_fn_c_try_link "$LINENO"; then :
8247
8248
8249 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8250
8251       gethostbyaddrrstyle=BSD
8252
8253
8254 fi
8255 rm -f core conftest.err conftest.$ac_objext \
8256     conftest$ac_exeext conftest.$ac_ext
8257 fi
8258
8259 if test "x$gethostbyaddrrstyle" = "x"; then
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
8261 $as_echo "none!  It must not exist, here." >&6; }
8262 else
8263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
8264 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
8265 fi
8266
8267 if test "x$gethostbyaddrrstyle" = "xBSD"; then
8268   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
8269 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
8270 fi
8271
8272 gethostbynamerstyle=""
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
8274 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h.  */
8277
8278     #include <stdio.h>
8279     #include <netdb.h>
8280
8281 int
8282 main ()
8283 {
8284  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
8285   ;
8286   return 0;
8287 }
8288 _ACEOF
8289 if ac_fn_c_try_link "$LINENO"; then :
8290
8291
8292 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
8293
8294     gethostbynamerstyle=GNU
8295
8296
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext \
8299     conftest$ac_exeext conftest.$ac_ext
8300
8301 if test "x$gethostbynamerstyle" = "x"; then
8302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h.  */
8304
8305       #include <stdio.h>
8306       #include <netdb.h>
8307
8308 int
8309 main ()
8310 {
8311  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
8312   ;
8313   return 0;
8314 }
8315 _ACEOF
8316 if ac_fn_c_try_link "$LINENO"; then :
8317
8318
8319 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
8320
8321       gethostbynamerstyle=SYSV
8322
8323
8324 fi
8325 rm -f core conftest.err conftest.$ac_objext \
8326     conftest$ac_exeext conftest.$ac_ext
8327 fi
8328
8329 if test "x$gethostbynamerstyle" = "x"; then
8330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h.  */
8332
8333       #include <stdio.h>
8334       #include <netdb.h>
8335
8336 int
8337 main ()
8338 {
8339  gethostbyname(NULL)
8340   ;
8341   return 0;
8342 }
8343 _ACEOF
8344 if ac_fn_c_try_link "$LINENO"; then :
8345
8346
8347 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
8348
8349       gethostbynamerstyle=BSD
8350
8351
8352 fi
8353 rm -f core conftest.err conftest.$ac_objext \
8354     conftest$ac_exeext conftest.$ac_ext
8355 fi
8356
8357 if test "x$gethostbynamerstyle" = "x"; then
8358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
8359 $as_echo "none!  It must not exist, here." >&6; }
8360 else
8361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
8362 $as_echo "${gethostbynamerstyle}-style" >&6; }
8363 fi
8364
8365 if test "x$gethostbynamerstyle" = "xBSD"; then
8366   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
8367 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
8368 fi
8369
8370
8371 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
8372
8373
8374 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
8375
8376 ctimerstyle=""
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
8378 $as_echo_n "checking ctime_r() syntax... " >&6; }
8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380 /* end confdefs.h.  */
8381
8382     #include <time.h>
8383
8384 int
8385 main ()
8386 {
8387  ctime_r(NULL, NULL, 0)
8388   ;
8389   return 0;
8390 }
8391 _ACEOF
8392 if ac_fn_c_try_link "$LINENO"; then :
8393
8394
8395 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
8396
8397     ctimerstyle="SOLARIS"
8398
8399
8400 fi
8401 rm -f core conftest.err conftest.$ac_objext \
8402     conftest$ac_exeext conftest.$ac_ext
8403
8404 if test "x$ctimerstyle" = "x"; then
8405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h.  */
8407
8408       #include <time.h>
8409
8410 int
8411 main ()
8412 {
8413  ctime_r(NULL, NULL)
8414   ;
8415   return 0;
8416 }
8417 _ACEOF
8418 if ac_fn_c_try_link "$LINENO"; then :
8419
8420
8421 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
8422
8423       ctimerstyle="POSIX"
8424
8425
8426 fi
8427 rm -f core conftest.err conftest.$ac_objext \
8428     conftest$ac_exeext conftest.$ac_ext
8429 fi
8430
8431 if test "x$ctimerstyle" = "x"; then
8432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
8433 $as_echo "none!  It must not exist, here." >&6; }
8434 else
8435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
8436 $as_echo "${ctimerstyle}-style" >&6; }
8437 fi
8438
8439 HOSTINFO=$host
8440
8441
8442
8443 top_builddir=`pwd`
8444 export top_builddir
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
8446 $as_echo "top_builddir=$top_builddir" >&6; }
8447
8448
8449
8450
8451 if test "x$EXPERIMENTAL" = "xyes"; then
8452   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
8453     MODULES="$MODULES $foo"
8454   done
8455 else
8456             for foo in `cat "${srcdir}"/src/modules/stable`; do
8457       MODULES="$MODULES $foo"
8458    done
8459 fi
8460
8461 mysubdirs=""
8462 for bar in $MODULES; do
8463   if test -f "${srcdir}"/src/modules/$bar/configure; then
8464     mysubdirs="$mysubdirs src/modules/$bar"
8465   fi
8466 done
8467
8468
8469
8470 subdirs="$subdirs $mysubdirs"
8471
8472
8473
8474 if test "x$werror" == "xyes"; then
8475   CFLAGS="-Werror $CFLAGS"
8476 fi
8477
8478 ac_config_commands="$ac_config_commands stamp-h"
8479
8480 ac_config_commands="$ac_config_commands build-radpaths-h"
8481
8482 ac_config_commands="$ac_config_commands main-chmod"
8483
8484 ac_config_commands="$ac_config_commands scripts-chmod"
8485
8486
8487
8488
8489
8490 USE_SHARED_LIBS=$enable_shared
8491
8492 USE_STATIC_LIBS=$enable_static
8493
8494
8495
8496
8497   unset ac_cv_env_LIBS_set
8498   unset ac_cv_env_LIBS_value
8499
8500   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"
8501
8502 cat >confcache <<\_ACEOF
8503 # This file is a shell script that caches the results of configure
8504 # tests run on this system so they can be shared between configure
8505 # scripts and configure runs, see configure's option --config-cache.
8506 # It is not useful on other systems.  If it contains results you don't
8507 # want to keep, you may remove or edit it.
8508 #
8509 # config.status only pays attention to the cache file if you give it
8510 # the --recheck option to rerun configure.
8511 #
8512 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8513 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8514 # following values.
8515
8516 _ACEOF
8517
8518 # The following way of writing the cache mishandles newlines in values,
8519 # but we know of no workaround that is simple, portable, and efficient.
8520 # So, we kill variables containing newlines.
8521 # Ultrix sh set writes to stderr and can't be redirected directly,
8522 # and sets the high bit in the cache file unless we assign to the vars.
8523 (
8524   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8525     eval ac_val=\$$ac_var
8526     case $ac_val in #(
8527     *${as_nl}*)
8528       case $ac_var in #(
8529       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8531       esac
8532       case $ac_var in #(
8533       _ | IFS | as_nl) ;; #(
8534       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8535       *) { eval $ac_var=; unset $ac_var;} ;;
8536       esac ;;
8537     esac
8538   done
8539
8540   (set) 2>&1 |
8541     case $as_nl`(ac_space=' '; set) 2>&1` in #(
8542     *${as_nl}ac_space=\ *)
8543       # `set' does not quote correctly, so add quotes: double-quote
8544       # substitution turns \\\\ into \\, and sed turns \\ into \.
8545       sed -n \
8546         "s/'/'\\\\''/g;
8547           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8548       ;; #(
8549     *)
8550       # `set' quotes correctly as required by POSIX, so do not add quotes.
8551       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8552       ;;
8553     esac |
8554     sort
8555 ) |
8556   sed '
8557      /^ac_cv_env_/b end
8558      t clear
8559      :clear
8560      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8561      t end
8562      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8563      :end' >>confcache
8564 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8565   if test -w "$cache_file"; then
8566     if test "x$cache_file" != "x/dev/null"; then
8567       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8568 $as_echo "$as_me: updating cache $cache_file" >&6;}
8569       if test ! -f "$cache_file" || test -h "$cache_file"; then
8570         cat confcache >"$cache_file"
8571       else
8572         case $cache_file in #(
8573         */* | ?:*)
8574           mv -f confcache "$cache_file"$$ &&
8575           mv -f "$cache_file"$$ "$cache_file" ;; #(
8576         *)
8577           mv -f confcache "$cache_file" ;;
8578         esac
8579       fi
8580     fi
8581   else
8582     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8583 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8584   fi
8585 fi
8586 rm -f confcache
8587
8588 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8589 # Let make expand exec_prefix.
8590 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8591
8592 DEFS=-DHAVE_CONFIG_H
8593
8594 ac_libobjs=
8595 ac_ltlibobjs=
8596 U=
8597 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8598   # 1. Remove the extension, and $U if already installed.
8599   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8600   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8601   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8602   #    will be set to the directory where LIBOBJS objects are built.
8603   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8604   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8605 done
8606 LIBOBJS=$ac_libobjs
8607
8608 LTLIBOBJS=$ac_ltlibobjs
8609
8610
8611
8612
8613 : "${CONFIG_STATUS=./config.status}"
8614 ac_write_fail=0
8615 ac_clean_files_save=$ac_clean_files
8616 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8618 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8619 as_write_fail=0
8620 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8621 #! $SHELL
8622 # Generated by $as_me.
8623 # Run this file to recreate the current configuration.
8624 # Compiler output produced by configure, useful for debugging
8625 # configure, is in config.log if it exists.
8626
8627 debug=false
8628 ac_cs_recheck=false
8629 ac_cs_silent=false
8630
8631 SHELL=\${CONFIG_SHELL-$SHELL}
8632 export SHELL
8633 _ASEOF
8634 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8635 ## -------------------- ##
8636 ## M4sh Initialization. ##
8637 ## -------------------- ##
8638
8639 # Be more Bourne compatible
8640 DUALCASE=1; export DUALCASE # for MKS sh
8641 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8642   emulate sh
8643   NULLCMD=:
8644   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8645   # is contrary to our usage.  Disable this feature.
8646   alias -g '${1+"$@"}'='"$@"'
8647   setopt NO_GLOB_SUBST
8648 else
8649   case `(set -o) 2>/dev/null` in #(
8650   *posix*) :
8651     set -o posix ;; #(
8652   *) :
8653      ;;
8654 esac
8655 fi
8656
8657
8658 as_nl='
8659 '
8660 export as_nl
8661 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8662 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8663 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8664 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8665 # Prefer a ksh shell builtin over an external printf program on Solaris,
8666 # but without wasting forks for bash or zsh.
8667 if test -z "$BASH_VERSION$ZSH_VERSION" \
8668     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8669   as_echo='print -r --'
8670   as_echo_n='print -rn --'
8671 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8672   as_echo='printf %s\n'
8673   as_echo_n='printf %s'
8674 else
8675   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8676     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8677     as_echo_n='/usr/ucb/echo -n'
8678   else
8679     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8680     as_echo_n_body='eval
8681       arg=$1;
8682       case $arg in #(
8683       *"$as_nl"*)
8684         expr "X$arg" : "X\\(.*\\)$as_nl";
8685         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8686       esac;
8687       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8688     '
8689     export as_echo_n_body
8690     as_echo_n='sh -c $as_echo_n_body as_echo'
8691   fi
8692   export as_echo_body
8693   as_echo='sh -c $as_echo_body as_echo'
8694 fi
8695
8696 # The user is always right.
8697 if test "${PATH_SEPARATOR+set}" != set; then
8698   PATH_SEPARATOR=:
8699   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8700     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8701       PATH_SEPARATOR=';'
8702   }
8703 fi
8704
8705
8706 # IFS
8707 # We need space, tab and new line, in precisely that order.  Quoting is
8708 # there to prevent editors from complaining about space-tab.
8709 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8710 # splitting by setting IFS to empty value.)
8711 IFS=" ""        $as_nl"
8712
8713 # Find who we are.  Look in the path if we contain no directory separator.
8714 as_myself=
8715 case $0 in #((
8716   *[\\/]* ) as_myself=$0 ;;
8717   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 for as_dir in $PATH
8719 do
8720   IFS=$as_save_IFS
8721   test -z "$as_dir" && as_dir=.
8722     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8723   done
8724 IFS=$as_save_IFS
8725
8726      ;;
8727 esac
8728 # We did not find ourselves, most probably we were run as `sh COMMAND'
8729 # in which case we are not to be found in the path.
8730 if test "x$as_myself" = x; then
8731   as_myself=$0
8732 fi
8733 if test ! -f "$as_myself"; then
8734   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8735   exit 1
8736 fi
8737
8738 # Unset variables that we do not need and which cause bugs (e.g. in
8739 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8740 # suppresses any "Segmentation fault" message there.  '((' could
8741 # trigger a bug in pdksh 5.2.14.
8742 for as_var in BASH_ENV ENV MAIL MAILPATH
8743 do eval test x\${$as_var+set} = xset \
8744   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8745 done
8746 PS1='$ '
8747 PS2='> '
8748 PS4='+ '
8749
8750 # NLS nuisances.
8751 LC_ALL=C
8752 export LC_ALL
8753 LANGUAGE=C
8754 export LANGUAGE
8755
8756 # CDPATH.
8757 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8758
8759
8760 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8761 # ----------------------------------------
8762 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8763 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8764 # script with STATUS, using 1 if that was 0.
8765 as_fn_error ()
8766 {
8767   as_status=$1; test $as_status -eq 0 && as_status=1
8768   if test "$4"; then
8769     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8770     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8771   fi
8772   $as_echo "$as_me: error: $2" >&2
8773   as_fn_exit $as_status
8774 } # as_fn_error
8775
8776
8777 # as_fn_set_status STATUS
8778 # -----------------------
8779 # Set $? to STATUS, without forking.
8780 as_fn_set_status ()
8781 {
8782   return $1
8783 } # as_fn_set_status
8784
8785 # as_fn_exit STATUS
8786 # -----------------
8787 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8788 as_fn_exit ()
8789 {
8790   set +e
8791   as_fn_set_status $1
8792   exit $1
8793 } # as_fn_exit
8794
8795 # as_fn_unset VAR
8796 # ---------------
8797 # Portably unset VAR.
8798 as_fn_unset ()
8799 {
8800   { eval $1=; unset $1;}
8801 }
8802 as_unset=as_fn_unset
8803 # as_fn_append VAR VALUE
8804 # ----------------------
8805 # Append the text in VALUE to the end of the definition contained in VAR. Take
8806 # advantage of any shell optimizations that allow amortized linear growth over
8807 # repeated appends, instead of the typical quadratic growth present in naive
8808 # implementations.
8809 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8810   eval 'as_fn_append ()
8811   {
8812     eval $1+=\$2
8813   }'
8814 else
8815   as_fn_append ()
8816   {
8817     eval $1=\$$1\$2
8818   }
8819 fi # as_fn_append
8820
8821 # as_fn_arith ARG...
8822 # ------------------
8823 # Perform arithmetic evaluation on the ARGs, and store the result in the
8824 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8825 # must be portable across $(()) and expr.
8826 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8827   eval 'as_fn_arith ()
8828   {
8829     as_val=$(( $* ))
8830   }'
8831 else
8832   as_fn_arith ()
8833   {
8834     as_val=`expr "$@" || test $? -eq 1`
8835   }
8836 fi # as_fn_arith
8837
8838
8839 if expr a : '\(a\)' >/dev/null 2>&1 &&
8840    test "X`expr 00001 : '.*\(...\)'`" = X001; then
8841   as_expr=expr
8842 else
8843   as_expr=false
8844 fi
8845
8846 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8847   as_basename=basename
8848 else
8849   as_basename=false
8850 fi
8851
8852 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8853   as_dirname=dirname
8854 else
8855   as_dirname=false
8856 fi
8857
8858 as_me=`$as_basename -- "$0" ||
8859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8860          X"$0" : 'X\(//\)$' \| \
8861          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8862 $as_echo X/"$0" |
8863     sed '/^.*\/\([^/][^/]*\)\/*$/{
8864             s//\1/
8865             q
8866           }
8867           /^X\/\(\/\/\)$/{
8868             s//\1/
8869             q
8870           }
8871           /^X\/\(\/\).*/{
8872             s//\1/
8873             q
8874           }
8875           s/.*/./; q'`
8876
8877 # Avoid depending upon Character Ranges.
8878 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8879 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8880 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8881 as_cr_digits='0123456789'
8882 as_cr_alnum=$as_cr_Letters$as_cr_digits
8883
8884 ECHO_C= ECHO_N= ECHO_T=
8885 case `echo -n x` in #(((((
8886 -n*)
8887   case `echo 'xy\c'` in
8888   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8889   xy)  ECHO_C='\c';;
8890   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8891        ECHO_T=' ';;
8892   esac;;
8893 *)
8894   ECHO_N='-n';;
8895 esac
8896
8897 rm -f conf$$ conf$$.exe conf$$.file
8898 if test -d conf$$.dir; then
8899   rm -f conf$$.dir/conf$$.file
8900 else
8901   rm -f conf$$.dir
8902   mkdir conf$$.dir 2>/dev/null
8903 fi
8904 if (echo >conf$$.file) 2>/dev/null; then
8905   if ln -s conf$$.file conf$$ 2>/dev/null; then
8906     as_ln_s='ln -s'
8907     # ... but there are two gotchas:
8908     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8909     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8910     # In both cases, we have to default to `cp -pR'.
8911     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8912       as_ln_s='cp -pR'
8913   elif ln conf$$.file conf$$ 2>/dev/null; then
8914     as_ln_s=ln
8915   else
8916     as_ln_s='cp -pR'
8917   fi
8918 else
8919   as_ln_s='cp -pR'
8920 fi
8921 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8922 rmdir conf$$.dir 2>/dev/null
8923
8924
8925 # as_fn_mkdir_p
8926 # -------------
8927 # Create "$as_dir" as a directory, including parents if necessary.
8928 as_fn_mkdir_p ()
8929 {
8930
8931   case $as_dir in #(
8932   -*) as_dir=./$as_dir;;
8933   esac
8934   test -d "$as_dir" || eval $as_mkdir_p || {
8935     as_dirs=
8936     while :; do
8937       case $as_dir in #(
8938       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8939       *) as_qdir=$as_dir;;
8940       esac
8941       as_dirs="'$as_qdir' $as_dirs"
8942       as_dir=`$as_dirname -- "$as_dir" ||
8943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8944          X"$as_dir" : 'X\(//\)[^/]' \| \
8945          X"$as_dir" : 'X\(//\)$' \| \
8946          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8947 $as_echo X"$as_dir" |
8948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8949             s//\1/
8950             q
8951           }
8952           /^X\(\/\/\)[^/].*/{
8953             s//\1/
8954             q
8955           }
8956           /^X\(\/\/\)$/{
8957             s//\1/
8958             q
8959           }
8960           /^X\(\/\).*/{
8961             s//\1/
8962             q
8963           }
8964           s/.*/./; q'`
8965       test -d "$as_dir" && break
8966     done
8967     test -z "$as_dirs" || eval "mkdir $as_dirs"
8968   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8969
8970
8971 } # as_fn_mkdir_p
8972 if mkdir -p . 2>/dev/null; then
8973   as_mkdir_p='mkdir -p "$as_dir"'
8974 else
8975   test -d ./-p && rmdir ./-p
8976   as_mkdir_p=false
8977 fi
8978
8979
8980 # as_fn_executable_p FILE
8981 # -----------------------
8982 # Test if FILE is an executable regular file.
8983 as_fn_executable_p ()
8984 {
8985   test -f "$1" && test -x "$1"
8986 } # as_fn_executable_p
8987 as_test_x='test -x'
8988 as_executable_p=as_fn_executable_p
8989
8990 # Sed expression to map a string onto a valid CPP name.
8991 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8992
8993 # Sed expression to map a string onto a valid variable name.
8994 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8995
8996
8997 exec 6>&1
8998 ## ----------------------------------- ##
8999 ## Main body of $CONFIG_STATUS script. ##
9000 ## ----------------------------------- ##
9001 _ASEOF
9002 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9003
9004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9005 # Save the log message, to keep $0 and so on meaningful, and to
9006 # report actual input values of CONFIG_FILES etc. instead of their
9007 # values after options handling.
9008 ac_log="
9009 This file was extended by freeradius $as_me $Id$, which was
9010 generated by GNU Autoconf 2.69.  Invocation command line was
9011
9012   CONFIG_FILES    = $CONFIG_FILES
9013   CONFIG_HEADERS  = $CONFIG_HEADERS
9014   CONFIG_LINKS    = $CONFIG_LINKS
9015   CONFIG_COMMANDS = $CONFIG_COMMANDS
9016   $ $0 $@
9017
9018 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9019 "
9020
9021 _ACEOF
9022
9023 case $ac_config_files in *"
9024 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9025 esac
9026
9027 case $ac_config_headers in *"
9028 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9029 esac
9030
9031
9032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9033 # Files that config.status was made for.
9034 config_files="$ac_config_files"
9035 config_headers="$ac_config_headers"
9036 config_commands="$ac_config_commands"
9037
9038 _ACEOF
9039
9040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9041 ac_cs_usage="\
9042 \`$as_me' instantiates files and other configuration actions
9043 from templates according to the current configuration.  Unless the files
9044 and actions are specified as TAGs, all are instantiated by default.
9045
9046 Usage: $0 [OPTION]... [TAG]...
9047
9048   -h, --help       print this help, then exit
9049   -V, --version    print version number and configuration settings, then exit
9050       --config     print configuration, then exit
9051   -q, --quiet, --silent
9052                    do not print progress messages
9053   -d, --debug      don't remove temporary files
9054       --recheck    update $as_me by reconfiguring in the same conditions
9055       --file=FILE[:TEMPLATE]
9056                    instantiate the configuration file FILE
9057       --header=FILE[:TEMPLATE]
9058                    instantiate the configuration header FILE
9059
9060 Configuration files:
9061 $config_files
9062
9063 Configuration headers:
9064 $config_headers
9065
9066 Configuration commands:
9067 $config_commands
9068
9069 Report bugs to <http://bugs.freeradius.org>.
9070 freeradius home page: <http://www.freeradius.org>."
9071
9072 _ACEOF
9073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9074 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9075 ac_cs_version="\\
9076 freeradius config.status $Id$
9077 configured by $0, generated by GNU Autoconf 2.69,
9078   with options \\"\$ac_cs_config\\"
9079
9080 Copyright (C) 2012 Free Software Foundation, Inc.
9081 This config.status script is free software; the Free Software Foundation
9082 gives unlimited permission to copy, distribute and modify it."
9083
9084 ac_pwd='$ac_pwd'
9085 srcdir='$srcdir'
9086 test -n "\$AWK" || AWK=awk
9087 _ACEOF
9088
9089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9090 # The default lists apply if the user does not specify any file.
9091 ac_need_defaults=:
9092 while test $# != 0
9093 do
9094   case $1 in
9095   --*=?*)
9096     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9097     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9098     ac_shift=:
9099     ;;
9100   --*=)
9101     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9102     ac_optarg=
9103     ac_shift=:
9104     ;;
9105   *)
9106     ac_option=$1
9107     ac_optarg=$2
9108     ac_shift=shift
9109     ;;
9110   esac
9111
9112   case $ac_option in
9113   # Handling of the options.
9114   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9115     ac_cs_recheck=: ;;
9116   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9117     $as_echo "$ac_cs_version"; exit ;;
9118   --config | --confi | --conf | --con | --co | --c )
9119     $as_echo "$ac_cs_config"; exit ;;
9120   --debug | --debu | --deb | --de | --d | -d )
9121     debug=: ;;
9122   --file | --fil | --fi | --f )
9123     $ac_shift
9124     case $ac_optarg in
9125     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9126     '') as_fn_error $? "missing file argument" ;;
9127     esac
9128     as_fn_append CONFIG_FILES " '$ac_optarg'"
9129     ac_need_defaults=false;;
9130   --header | --heade | --head | --hea )
9131     $ac_shift
9132     case $ac_optarg in
9133     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9134     esac
9135     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9136     ac_need_defaults=false;;
9137   --he | --h)
9138     # Conflict between --help and --header
9139     as_fn_error $? "ambiguous option: \`$1'
9140 Try \`$0 --help' for more information.";;
9141   --help | --hel | -h )
9142     $as_echo "$ac_cs_usage"; exit ;;
9143   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9144   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9145     ac_cs_silent=: ;;
9146
9147   # This is an error.
9148   -*) as_fn_error $? "unrecognized option: \`$1'
9149 Try \`$0 --help' for more information." ;;
9150
9151   *) as_fn_append ac_config_targets " $1"
9152      ac_need_defaults=false ;;
9153
9154   esac
9155   shift
9156 done
9157
9158 ac_configure_extra_args=
9159
9160 if $ac_cs_silent; then
9161   exec 6>/dev/null
9162   ac_configure_extra_args="$ac_configure_extra_args --silent"
9163 fi
9164
9165 _ACEOF
9166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9167 if \$ac_cs_recheck; then
9168   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9169   shift
9170   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9171   CONFIG_SHELL='$SHELL'
9172   export CONFIG_SHELL
9173   exec "\$@"
9174 fi
9175
9176 _ACEOF
9177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9178 exec 5>>config.log
9179 {
9180   echo
9181   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9182 ## Running $as_me. ##
9183 _ASBOX
9184   $as_echo "$ac_log"
9185 } >&5
9186
9187 _ACEOF
9188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9189 _ACEOF
9190
9191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9192
9193 # Handling of arguments.
9194 for ac_config_target in $ac_config_targets
9195 do
9196   case $ac_config_target in
9197     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
9198     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
9199     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
9200     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
9201     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
9202     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
9203     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
9204     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
9205     "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
9206     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
9207     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
9208     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
9209     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
9210     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
9211     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
9212     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
9213     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
9214     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
9215
9216   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9217   esac
9218 done
9219
9220
9221 # If the user did not use the arguments to specify the items to instantiate,
9222 # then the envvar interface is used.  Set only those that are not.
9223 # We use the long form for the default assignment because of an extremely
9224 # bizarre bug on SunOS 4.1.3.
9225 if $ac_need_defaults; then
9226   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9227   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9228   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9229 fi
9230
9231 # Have a temporary directory for convenience.  Make it in the build tree
9232 # simply because there is no reason against having it here, and in addition,
9233 # creating and moving files from /tmp can sometimes cause problems.
9234 # Hook for its removal unless debugging.
9235 # Note that there is a small window in which the directory will not be cleaned:
9236 # after its creation but before its name has been assigned to `$tmp'.
9237 $debug ||
9238 {
9239   tmp= ac_tmp=
9240   trap 'exit_status=$?
9241   : "${ac_tmp:=$tmp}"
9242   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9243 ' 0
9244   trap 'as_fn_exit 1' 1 2 13 15
9245 }
9246 # Create a (secure) tmp directory for tmp files.
9247
9248 {
9249   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9250   test -d "$tmp"
9251 }  ||
9252 {
9253   tmp=./conf$$-$RANDOM
9254   (umask 077 && mkdir "$tmp")
9255 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9256 ac_tmp=$tmp
9257
9258 # Set up the scripts for CONFIG_FILES section.
9259 # No need to generate them if there are no CONFIG_FILES.
9260 # This happens for instance with `./config.status config.h'.
9261 if test -n "$CONFIG_FILES"; then
9262
9263
9264 ac_cr=`echo X | tr X '\015'`
9265 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9266 # But we know of no other shell where ac_cr would be empty at this
9267 # point, so we can use a bashism as a fallback.
9268 if test "x$ac_cr" = x; then
9269   eval ac_cr=\$\'\\r\'
9270 fi
9271 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9272 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9273   ac_cs_awk_cr='\\r'
9274 else
9275   ac_cs_awk_cr=$ac_cr
9276 fi
9277
9278 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9279 _ACEOF
9280
9281
9282 {
9283   echo "cat >conf$$subs.awk <<_ACEOF" &&
9284   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9285   echo "_ACEOF"
9286 } >conf$$subs.sh ||
9287   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9288 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9289 ac_delim='%!_!# '
9290 for ac_last_try in false false false false false :; do
9291   . ./conf$$subs.sh ||
9292     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9293
9294   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9295   if test $ac_delim_n = $ac_delim_num; then
9296     break
9297   elif $ac_last_try; then
9298     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9299   else
9300     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9301   fi
9302 done
9303 rm -f conf$$subs.sh
9304
9305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9306 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9307 _ACEOF
9308 sed -n '
9309 h
9310 s/^/S["/; s/!.*/"]=/
9311 p
9312 g
9313 s/^[^!]*!//
9314 :repl
9315 t repl
9316 s/'"$ac_delim"'$//
9317 t delim
9318 :nl
9319 h
9320 s/\(.\{148\}\)..*/\1/
9321 t more1
9322 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9323 p
9324 n
9325 b repl
9326 :more1
9327 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9328 p
9329 g
9330 s/.\{148\}//
9331 t nl
9332 :delim
9333 h
9334 s/\(.\{148\}\)..*/\1/
9335 t more2
9336 s/["\\]/\\&/g; s/^/"/; s/$/"/
9337 p
9338 b
9339 :more2
9340 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9341 p
9342 g
9343 s/.\{148\}//
9344 t delim
9345 ' <conf$$subs.awk | sed '
9346 /^[^""]/{
9347   N
9348   s/\n//
9349 }
9350 ' >>$CONFIG_STATUS || ac_write_fail=1
9351 rm -f conf$$subs.awk
9352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9353 _ACAWK
9354 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9355   for (key in S) S_is_set[key] = 1
9356   FS = "\a"
9357
9358 }
9359 {
9360   line = $ 0
9361   nfields = split(line, field, "@")
9362   substed = 0
9363   len = length(field[1])
9364   for (i = 2; i < nfields; i++) {
9365     key = field[i]
9366     keylen = length(key)
9367     if (S_is_set[key]) {
9368       value = S[key]
9369       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9370       len += length(value) + length(field[++i])
9371       substed = 1
9372     } else
9373       len += 1 + keylen
9374   }
9375
9376   print line
9377 }
9378
9379 _ACAWK
9380 _ACEOF
9381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9382 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9383   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9384 else
9385   cat
9386 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9387   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9388 _ACEOF
9389
9390 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9391 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9392 # trailing colons and then remove the whole line if VPATH becomes empty
9393 # (actually we leave an empty line to preserve line numbers).
9394 if test "x$srcdir" = x.; then
9395   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
9396 h
9397 s///
9398 s/^/:/
9399 s/[      ]*$/:/
9400 s/:\$(srcdir):/:/g
9401 s/:\${srcdir}:/:/g
9402 s/:@srcdir@:/:/g
9403 s/^:*//
9404 s/:*$//
9405 x
9406 s/\(=[   ]*\).*/\1/
9407 G
9408 s/\n//
9409 s/^[^=]*=[       ]*$//
9410 }'
9411 fi
9412
9413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9414 fi # test -n "$CONFIG_FILES"
9415
9416 # Set up the scripts for CONFIG_HEADERS section.
9417 # No need to generate them if there are no CONFIG_HEADERS.
9418 # This happens for instance with `./config.status Makefile'.
9419 if test -n "$CONFIG_HEADERS"; then
9420 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9421 BEGIN {
9422 _ACEOF
9423
9424 # Transform confdefs.h into an awk script `defines.awk', embedded as
9425 # here-document in config.status, that substitutes the proper values into
9426 # config.h.in to produce config.h.
9427
9428 # Create a delimiter string that does not exist in confdefs.h, to ease
9429 # handling of long lines.
9430 ac_delim='%!_!# '
9431 for ac_last_try in false false :; do
9432   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9433   if test -z "$ac_tt"; then
9434     break
9435   elif $ac_last_try; then
9436     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9437   else
9438     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9439   fi
9440 done
9441
9442 # For the awk script, D is an array of macro values keyed by name,
9443 # likewise P contains macro parameters if any.  Preserve backslash
9444 # newline sequences.
9445
9446 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9447 sed -n '
9448 s/.\{148\}/&'"$ac_delim"'/g
9449 t rset
9450 :rset
9451 s/^[     ]*#[    ]*define[       ][      ]*/ /
9452 t def
9453 d
9454 :def
9455 s/\\$//
9456 t bsnl
9457 s/["\\]/\\&/g
9458 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9459 D["\1"]=" \3"/p
9460 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
9461 d
9462 :bsnl
9463 s/["\\]/\\&/g
9464 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9465 D["\1"]=" \3\\\\\\n"\\/p
9466 t cont
9467 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9468 t cont
9469 d
9470 :cont
9471 n
9472 s/.\{148\}/&'"$ac_delim"'/g
9473 t clear
9474 :clear
9475 s/\\$//
9476 t bsnlc
9477 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9478 d
9479 :bsnlc
9480 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9481 b cont
9482 ' <confdefs.h | sed '
9483 s/'"$ac_delim"'/"\\\
9484 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9485
9486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9487   for (key in D) D_is_set[key] = 1
9488   FS = "\a"
9489 }
9490 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9491   line = \$ 0
9492   split(line, arg, " ")
9493   if (arg[1] == "#") {
9494     defundef = arg[2]
9495     mac1 = arg[3]
9496   } else {
9497     defundef = substr(arg[1], 2)
9498     mac1 = arg[2]
9499   }
9500   split(mac1, mac2, "(") #)
9501   macro = mac2[1]
9502   prefix = substr(line, 1, index(line, defundef) - 1)
9503   if (D_is_set[macro]) {
9504     # Preserve the white space surrounding the "#".
9505     print prefix "define", macro P[macro] D[macro]
9506     next
9507   } else {
9508     # Replace #undef with comments.  This is necessary, for example,
9509     # in the case of _POSIX_SOURCE, which is predefined and required
9510     # on some systems where configure will not decide to define it.
9511     if (defundef == "undef") {
9512       print "/*", prefix defundef, macro, "*/"
9513       next
9514     }
9515   }
9516 }
9517 { print }
9518 _ACAWK
9519 _ACEOF
9520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9521   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9522 fi # test -n "$CONFIG_HEADERS"
9523
9524
9525 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9526 shift
9527 for ac_tag
9528 do
9529   case $ac_tag in
9530   :[FHLC]) ac_mode=$ac_tag; continue;;
9531   esac
9532   case $ac_mode$ac_tag in
9533   :[FHL]*:*);;
9534   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9535   :[FH]-) ac_tag=-:-;;
9536   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9537   esac
9538   ac_save_IFS=$IFS
9539   IFS=:
9540   set x $ac_tag
9541   IFS=$ac_save_IFS
9542   shift
9543   ac_file=$1
9544   shift
9545
9546   case $ac_mode in
9547   :L) ac_source=$1;;
9548   :[FH])
9549     ac_file_inputs=
9550     for ac_f
9551     do
9552       case $ac_f in
9553       -) ac_f="$ac_tmp/stdin";;
9554       *) # Look for the file first in the build tree, then in the source tree
9555          # (if the path is not absolute).  The absolute path cannot be DOS-style,
9556          # because $ac_f cannot contain `:'.
9557          test -f "$ac_f" ||
9558            case $ac_f in
9559            [\\/$]*) false;;
9560            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9561            esac ||
9562            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9563       esac
9564       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9565       as_fn_append ac_file_inputs " '$ac_f'"
9566     done
9567
9568     # Let's still pretend it is `configure' which instantiates (i.e., don't
9569     # use $as_me), people would be surprised to read:
9570     #    /* config.h.  Generated by config.status.  */
9571     configure_input='Generated from '`
9572           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9573         `' by configure.'
9574     if test x"$ac_file" != x-; then
9575       configure_input="$ac_file.  $configure_input"
9576       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9577 $as_echo "$as_me: creating $ac_file" >&6;}
9578     fi
9579     # Neutralize special characters interpreted by sed in replacement strings.
9580     case $configure_input in #(
9581     *\&* | *\|* | *\\* )
9582        ac_sed_conf_input=`$as_echo "$configure_input" |
9583        sed 's/[\\\\&|]/\\\\&/g'`;; #(
9584     *) ac_sed_conf_input=$configure_input;;
9585     esac
9586
9587     case $ac_tag in
9588     *:-:* | *:-) cat >"$ac_tmp/stdin" \
9589       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9590     esac
9591     ;;
9592   esac
9593
9594   ac_dir=`$as_dirname -- "$ac_file" ||
9595 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9596          X"$ac_file" : 'X\(//\)[^/]' \| \
9597          X"$ac_file" : 'X\(//\)$' \| \
9598          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9599 $as_echo X"$ac_file" |
9600     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9601             s//\1/
9602             q
9603           }
9604           /^X\(\/\/\)[^/].*/{
9605             s//\1/
9606             q
9607           }
9608           /^X\(\/\/\)$/{
9609             s//\1/
9610             q
9611           }
9612           /^X\(\/\).*/{
9613             s//\1/
9614             q
9615           }
9616           s/.*/./; q'`
9617   as_dir="$ac_dir"; as_fn_mkdir_p
9618   ac_builddir=.
9619
9620 case "$ac_dir" in
9621 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9622 *)
9623   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9624   # A ".." for each directory in $ac_dir_suffix.
9625   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9626   case $ac_top_builddir_sub in
9627   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9628   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9629   esac ;;
9630 esac
9631 ac_abs_top_builddir=$ac_pwd
9632 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9633 # for backward compatibility:
9634 ac_top_builddir=$ac_top_build_prefix
9635
9636 case $srcdir in
9637   .)  # We are building in place.
9638     ac_srcdir=.
9639     ac_top_srcdir=$ac_top_builddir_sub
9640     ac_abs_top_srcdir=$ac_pwd ;;
9641   [\\/]* | ?:[\\/]* )  # Absolute name.
9642     ac_srcdir=$srcdir$ac_dir_suffix;
9643     ac_top_srcdir=$srcdir
9644     ac_abs_top_srcdir=$srcdir ;;
9645   *) # Relative name.
9646     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9647     ac_top_srcdir=$ac_top_build_prefix$srcdir
9648     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9649 esac
9650 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9651
9652
9653   case $ac_mode in
9654   :F)
9655   #
9656   # CONFIG_FILE
9657   #
9658
9659 _ACEOF
9660
9661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9662 # If the template does not know about datarootdir, expand it.
9663 # FIXME: This hack should be removed a few years after 2.60.
9664 ac_datarootdir_hack=; ac_datarootdir_seen=
9665 ac_sed_dataroot='
9666 /datarootdir/ {
9667   p
9668   q
9669 }
9670 /@datadir@/p
9671 /@docdir@/p
9672 /@infodir@/p
9673 /@localedir@/p
9674 /@mandir@/p'
9675 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9676 *datarootdir*) ac_datarootdir_seen=yes;;
9677 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9678   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9679 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9680 _ACEOF
9681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9682   ac_datarootdir_hack='
9683   s&@datadir@&$datadir&g
9684   s&@docdir@&$docdir&g
9685   s&@infodir@&$infodir&g
9686   s&@localedir@&$localedir&g
9687   s&@mandir@&$mandir&g
9688   s&\\\${datarootdir}&$datarootdir&g' ;;
9689 esac
9690 _ACEOF
9691
9692 # Neutralize VPATH when `$srcdir' = `.'.
9693 # Shell code in configure.ac might set extrasub.
9694 # FIXME: do we really want to maintain this feature?
9695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9696 ac_sed_extra="$ac_vpsub
9697 $extrasub
9698 _ACEOF
9699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9700 :t
9701 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9702 s|@configure_input@|$ac_sed_conf_input|;t t
9703 s&@top_builddir@&$ac_top_builddir_sub&;t t
9704 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9705 s&@srcdir@&$ac_srcdir&;t t
9706 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9707 s&@top_srcdir@&$ac_top_srcdir&;t t
9708 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9709 s&@builddir@&$ac_builddir&;t t
9710 s&@abs_builddir@&$ac_abs_builddir&;t t
9711 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9712 $ac_datarootdir_hack
9713 "
9714 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9715   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9716
9717 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9718   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9719   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
9720       "$ac_tmp/out"`; test -z "$ac_out"; } &&
9721   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9722 which seems to be undefined.  Please make sure it is defined" >&5
9723 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9724 which seems to be undefined.  Please make sure it is defined" >&2;}
9725
9726   rm -f "$ac_tmp/stdin"
9727   case $ac_file in
9728   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9729   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9730   esac \
9731   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9732  ;;
9733   :H)
9734   #
9735   # CONFIG_HEADER
9736   #
9737   if test x"$ac_file" != x-; then
9738     {
9739       $as_echo "/* $configure_input  */" \
9740       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9741     } >"$ac_tmp/config.h" \
9742       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9743     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9744       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9745 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9746     else
9747       rm -f "$ac_file"
9748       mv "$ac_tmp/config.h" "$ac_file" \
9749         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9750     fi
9751   else
9752     $as_echo "/* $configure_input  */" \
9753       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9754       || as_fn_error $? "could not create -" "$LINENO" 5
9755   fi
9756  ;;
9757
9758   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9759 $as_echo "$as_me: executing $ac_file commands" >&6;}
9760  ;;
9761   esac
9762
9763
9764   case $ac_file$ac_mode in
9765     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
9766     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
9767     "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
9768     "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
9769
9770   esac
9771 done # for ac_tag
9772
9773
9774 as_fn_exit 0
9775 _ACEOF
9776 ac_clean_files=$ac_clean_files_save
9777
9778 test $ac_write_fail = 0 ||
9779   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9780
9781
9782 # configure is writing to config.log, and then calls config.status.
9783 # config.status does its own redirection, appending to config.log.
9784 # Unfortunately, on DOS this fails, as config.log is still kept open
9785 # by configure, so config.status won't be able to write to it; its
9786 # output is simply discarded.  So we exec the FD to /dev/null,
9787 # effectively closing config.log, so it can be properly (re)opened and
9788 # appended to by config.status.  When coming back to configure, we
9789 # need to make the FD available again.
9790 if test "$no_create" != yes; then
9791   ac_cs_success=:
9792   ac_config_status_args=
9793   test "$silent" = yes &&
9794     ac_config_status_args="$ac_config_status_args --quiet"
9795   exec 5>/dev/null
9796   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9797   exec 5>>config.log
9798   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9799   # would make configure fail if this is the last instruction.
9800   $ac_cs_success || as_fn_exit 1
9801 fi
9802
9803 #
9804 # CONFIG_SUBDIRS section.
9805 #
9806 if test "$no_recursion" != yes; then
9807
9808   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9809   # so they do not pile up.
9810   ac_sub_configure_args=
9811   ac_prev=
9812   eval "set x $ac_configure_args"
9813   shift
9814   for ac_arg
9815   do
9816     if test -n "$ac_prev"; then
9817       ac_prev=
9818       continue
9819     fi
9820     case $ac_arg in
9821     -cache-file | --cache-file | --cache-fil | --cache-fi \
9822     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9823       ac_prev=cache_file ;;
9824     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9825     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9826     | --c=*)
9827       ;;
9828     --config-cache | -C)
9829       ;;
9830     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9831       ac_prev=srcdir ;;
9832     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9833       ;;
9834     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9835       ac_prev=prefix ;;
9836     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9837       ;;
9838     --disable-option-checking)
9839       ;;
9840     *)
9841       case $ac_arg in
9842       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9843       esac
9844       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9845     esac
9846   done
9847
9848   # Always prepend --prefix to ensure using the same prefix
9849   # in subdir configurations.
9850   ac_arg="--prefix=$prefix"
9851   case $ac_arg in
9852   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9853   esac
9854   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9855
9856   # Pass --silent
9857   if test "$silent" = yes; then
9858     ac_sub_configure_args="--silent $ac_sub_configure_args"
9859   fi
9860
9861   # Always prepend --disable-option-checking to silence warnings, since
9862   # different subdirs can have different --enable and --with options.
9863   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9864
9865   ac_popdir=`pwd`
9866   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9867
9868     # Do not complain, so a configure script can configure whichever
9869     # parts of a large source tree are present.
9870     test -d "$srcdir/$ac_dir" || continue
9871
9872     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9873     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9874     $as_echo "$ac_msg" >&6
9875     as_dir="$ac_dir"; as_fn_mkdir_p
9876     ac_builddir=.
9877
9878 case "$ac_dir" in
9879 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9880 *)
9881   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9882   # A ".." for each directory in $ac_dir_suffix.
9883   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9884   case $ac_top_builddir_sub in
9885   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9886   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9887   esac ;;
9888 esac
9889 ac_abs_top_builddir=$ac_pwd
9890 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9891 # for backward compatibility:
9892 ac_top_builddir=$ac_top_build_prefix
9893
9894 case $srcdir in
9895   .)  # We are building in place.
9896     ac_srcdir=.
9897     ac_top_srcdir=$ac_top_builddir_sub
9898     ac_abs_top_srcdir=$ac_pwd ;;
9899   [\\/]* | ?:[\\/]* )  # Absolute name.
9900     ac_srcdir=$srcdir$ac_dir_suffix;
9901     ac_top_srcdir=$srcdir
9902     ac_abs_top_srcdir=$srcdir ;;
9903   *) # Relative name.
9904     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9905     ac_top_srcdir=$ac_top_build_prefix$srcdir
9906     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9907 esac
9908 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9909
9910
9911     cd "$ac_dir"
9912
9913     # Check for guested configure; otherwise get Cygnus style configure.
9914     if test -f "$ac_srcdir/configure.gnu"; then
9915       ac_sub_configure=$ac_srcdir/configure.gnu
9916     elif test -f "$ac_srcdir/configure"; then
9917       ac_sub_configure=$ac_srcdir/configure
9918     elif test -f "$ac_srcdir/configure.in"; then
9919       # This should be Cygnus configure.
9920       ac_sub_configure=$ac_aux_dir/configure
9921     else
9922       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9923 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9924       ac_sub_configure=
9925     fi
9926
9927     # The recursion is here.
9928     if test -n "$ac_sub_configure"; then
9929       # Make the cache file name correct relative to the subdirectory.
9930       case $cache_file in
9931       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9932       *) # Relative name.
9933         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9934       esac
9935
9936       { $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
9937 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9938       # The eval makes quoting arguments work.
9939       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9940            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9941         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9942     fi
9943
9944     cd "$ac_popdir"
9945   done
9946 fi
9947 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9948   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9949 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9950 fi
9951
9952