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