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