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