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