Use Painless Security signing key
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
4 #
5 # Report bugs to <http://bugs.freeradius.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: http://bugs.freeradius.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='freeradius'
582 PACKAGE_TARNAME='freeradius'
583 PACKAGE_VERSION='$Id$'
584 PACKAGE_STRING='freeradius $Id$'
585 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
586 PACKAGE_URL='http://www.freeradius.org'
587
588 ac_unique_file="src/main/radiusd.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 enable_option_checking=no
626 ac_subst_vars='LTLIBOBJS
627 LIBOBJS
628 STATIC_MODULES
629 USE_STATIC_LIBS
630 USE_SHARED_LIBS
631 INSTALLSTRIP
632 MODULES
633 subdirs
634 HOSTINFO
635 CRYPTLIB
636 LIBPREFIX
637 COLLECTDC_LDFLAGS
638 COLLECTDC_LIBS
639 PCAP_LDFLAGS
640 PCAP_LIBS
641 OPENSSL_CPPFLAGS
642 OPENSSL_LDFLAGS
643 OPENSSL_LIBS
644 LIBREADLINE
645 TALLOC_LDFLAGS
646 TALLOC_LIBS
647 DIRNAME
648 LOCATE
649 AUTOHEADER
650 AUTOCONF
651 ACLOCAL
652 RUSERS
653 SNMPWALK
654 SNMPGET
655 PERL
656 openssl_version_check_config
657 modconfdir
658 dictdir
659 raddbdir
660 radacctdir
661 logdir
662 GIT
663 FR_MAKEFLAGS
664 MAKE
665 GMAKE
666 clang_path
667 RANLIB
668 EGREP
669 GREP
670 CPP
671 ac_ct_CXX
672 CXXFLAGS
673 CXX
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 target_os
682 target_vendor
683 target_cpu
684 target
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 RADIUSD_VERSION_STRING
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 enable_developer
736 enable_largefile
737 enable_strict_dependencies
738 enable_werror
739 with_docdir
740 with_logdir
741 with_radacctdir
742 with_raddbdir
743 with_dictdir
744 with_ascend_binary
745 with_threads
746 with_tcp
747 with_vmps
748 with_dhcp
749 with_static_modules
750 with_shared_libs
751 with_modules
752 with_experimental_modules
753 with_udpfromto
754 with_rlm_FOO_lib_dir
755 with_rlm_FOO_include_dir
756 with_openssl
757 with_openssl_lib_dir
758 with_openssl_include_dir
759 enable_openssl_version_check
760 with_talloc_lib_dir
761 with_talloc_include_dir
762 with_pcap_lib_dir
763 with_pcap_include_dir
764 with_collectdclient_lib_dir
765 with_collectdclient_include_dir
766 with_cap_lib_dir
767 with_cap_include_dir
768 with_execinfo_lib_dir
769 with_execinfo_include_dir
770 with_pcre
771 with_pcre_lib_dir
772 with_pcre_include_dir
773 with_regex
774 '
775       ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CXX
784 CXXFLAGS
785 CCC
786 CPP'
787 ac_subdirs_all='$mysubdirs'
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841   # If the previous option needs an argument, assign it.
842   if test -n "$ac_prev"; then
843     eval $ac_prev=\$ac_option
844     ac_prev=
845     continue
846   fi
847
848   case $ac_option in
849   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850   *=)   ac_optarg= ;;
851   *)    ac_optarg=yes ;;
852   esac
853
854   # Accept the important Cygnus configure options, so we can diagnose typos.
855
856   case $ac_dashdash$ac_option in
857   --)
858     ac_dashdash=yes ;;
859
860   -bindir | --bindir | --bindi | --bind | --bin | --bi)
861     ac_prev=bindir ;;
862   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863     bindir=$ac_optarg ;;
864
865   -build | --build | --buil | --bui | --bu)
866     ac_prev=build_alias ;;
867   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868     build_alias=$ac_optarg ;;
869
870   -cache-file | --cache-file | --cache-fil | --cache-fi \
871   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872     ac_prev=cache_file ;;
873   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875     cache_file=$ac_optarg ;;
876
877   --config-cache | -C)
878     cache_file=config.cache ;;
879
880   -datadir | --datadir | --datadi | --datad)
881     ac_prev=datadir ;;
882   -datadir=* | --datadir=* | --datadi=* | --datad=*)
883     datadir=$ac_optarg ;;
884
885   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886   | --dataroo | --dataro | --datar)
887     ac_prev=datarootdir ;;
888   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890     datarootdir=$ac_optarg ;;
891
892   -disable-* | --disable-*)
893     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894     # Reject names that are not valid shell variable names.
895     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896       as_fn_error $? "invalid feature name: $ac_useropt"
897     ac_useropt_orig=$ac_useropt
898     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899     case $ac_user_opts in
900       *"
901 "enable_$ac_useropt"
902 "*) ;;
903       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904          ac_unrecognized_sep=', ';;
905     esac
906     eval enable_$ac_useropt=no ;;
907
908   -docdir | --docdir | --docdi | --doc | --do)
909     ac_prev=docdir ;;
910   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911     docdir=$ac_optarg ;;
912
913   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914     ac_prev=dvidir ;;
915   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916     dvidir=$ac_optarg ;;
917
918   -enable-* | --enable-*)
919     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920     # Reject names that are not valid shell variable names.
921     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922       as_fn_error $? "invalid feature name: $ac_useropt"
923     ac_useropt_orig=$ac_useropt
924     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925     case $ac_user_opts in
926       *"
927 "enable_$ac_useropt"
928 "*) ;;
929       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930          ac_unrecognized_sep=', ';;
931     esac
932     eval enable_$ac_useropt=\$ac_optarg ;;
933
934   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936   | --exec | --exe | --ex)
937     ac_prev=exec_prefix ;;
938   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940   | --exec=* | --exe=* | --ex=*)
941     exec_prefix=$ac_optarg ;;
942
943   -gas | --gas | --ga | --g)
944     # Obsolete; use --with-gas.
945     with_gas=yes ;;
946
947   -help | --help | --hel | --he | -h)
948     ac_init_help=long ;;
949   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950     ac_init_help=recursive ;;
951   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952     ac_init_help=short ;;
953
954   -host | --host | --hos | --ho)
955     ac_prev=host_alias ;;
956   -host=* | --host=* | --hos=* | --ho=*)
957     host_alias=$ac_optarg ;;
958
959   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960     ac_prev=htmldir ;;
961   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962   | --ht=*)
963     htmldir=$ac_optarg ;;
964
965   -includedir | --includedir | --includedi | --included | --include \
966   | --includ | --inclu | --incl | --inc)
967     ac_prev=includedir ;;
968   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969   | --includ=* | --inclu=* | --incl=* | --inc=*)
970     includedir=$ac_optarg ;;
971
972   -infodir | --infodir | --infodi | --infod | --info | --inf)
973     ac_prev=infodir ;;
974   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975     infodir=$ac_optarg ;;
976
977   -libdir | --libdir | --libdi | --libd)
978     ac_prev=libdir ;;
979   -libdir=* | --libdir=* | --libdi=* | --libd=*)
980     libdir=$ac_optarg ;;
981
982   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983   | --libexe | --libex | --libe)
984     ac_prev=libexecdir ;;
985   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986   | --libexe=* | --libex=* | --libe=*)
987     libexecdir=$ac_optarg ;;
988
989   -localedir | --localedir | --localedi | --localed | --locale)
990     ac_prev=localedir ;;
991   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992     localedir=$ac_optarg ;;
993
994   -localstatedir | --localstatedir | --localstatedi | --localstated \
995   | --localstate | --localstat | --localsta | --localst | --locals)
996     ac_prev=localstatedir ;;
997   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999     localstatedir=$ac_optarg ;;
1000
1001   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002     ac_prev=mandir ;;
1003   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004     mandir=$ac_optarg ;;
1005
1006   -nfp | --nfp | --nf)
1007     # Obsolete; use --without-fp.
1008     with_fp=no ;;
1009
1010   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011   | --no-cr | --no-c | -n)
1012     no_create=yes ;;
1013
1014   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016     no_recursion=yes ;;
1017
1018   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020   | --oldin | --oldi | --old | --ol | --o)
1021     ac_prev=oldincludedir ;;
1022   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025     oldincludedir=$ac_optarg ;;
1026
1027   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028     ac_prev=prefix ;;
1029   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030     prefix=$ac_optarg ;;
1031
1032   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033   | --program-pre | --program-pr | --program-p)
1034     ac_prev=program_prefix ;;
1035   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037     program_prefix=$ac_optarg ;;
1038
1039   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040   | --program-suf | --program-su | --program-s)
1041     ac_prev=program_suffix ;;
1042   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044     program_suffix=$ac_optarg ;;
1045
1046   -program-transform-name | --program-transform-name \
1047   | --program-transform-nam | --program-transform-na \
1048   | --program-transform-n | --program-transform- \
1049   | --program-transform | --program-transfor \
1050   | --program-transfo | --program-transf \
1051   | --program-trans | --program-tran \
1052   | --progr-tra | --program-tr | --program-t)
1053     ac_prev=program_transform_name ;;
1054   -program-transform-name=* | --program-transform-name=* \
1055   | --program-transform-nam=* | --program-transform-na=* \
1056   | --program-transform-n=* | --program-transform-=* \
1057   | --program-transform=* | --program-transfor=* \
1058   | --program-transfo=* | --program-transf=* \
1059   | --program-trans=* | --program-tran=* \
1060   | --progr-tra=* | --program-tr=* | --program-t=*)
1061     program_transform_name=$ac_optarg ;;
1062
1063   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064     ac_prev=pdfdir ;;
1065   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066     pdfdir=$ac_optarg ;;
1067
1068   -psdir | --psdir | --psdi | --psd | --ps)
1069     ac_prev=psdir ;;
1070   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071     psdir=$ac_optarg ;;
1072
1073   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074   | -silent | --silent | --silen | --sile | --sil)
1075     silent=yes ;;
1076
1077   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078     ac_prev=sbindir ;;
1079   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080   | --sbi=* | --sb=*)
1081     sbindir=$ac_optarg ;;
1082
1083   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085   | --sharedst | --shareds | --shared | --share | --shar \
1086   | --sha | --sh)
1087     ac_prev=sharedstatedir ;;
1088   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091   | --sha=* | --sh=*)
1092     sharedstatedir=$ac_optarg ;;
1093
1094   -site | --site | --sit)
1095     ac_prev=site ;;
1096   -site=* | --site=* | --sit=*)
1097     site=$ac_optarg ;;
1098
1099   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100     ac_prev=srcdir ;;
1101   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102     srcdir=$ac_optarg ;;
1103
1104   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105   | --syscon | --sysco | --sysc | --sys | --sy)
1106     ac_prev=sysconfdir ;;
1107   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109     sysconfdir=$ac_optarg ;;
1110
1111   -target | --target | --targe | --targ | --tar | --ta | --t)
1112     ac_prev=target_alias ;;
1113   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114     target_alias=$ac_optarg ;;
1115
1116   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117     verbose=yes ;;
1118
1119   -version | --version | --versio | --versi | --vers | -V)
1120     ac_init_version=: ;;
1121
1122   -with-* | --with-*)
1123     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124     # Reject names that are not valid shell variable names.
1125     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126       as_fn_error $? "invalid package name: $ac_useropt"
1127     ac_useropt_orig=$ac_useropt
1128     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129     case $ac_user_opts in
1130       *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134          ac_unrecognized_sep=', ';;
1135     esac
1136     eval with_$ac_useropt=\$ac_optarg ;;
1137
1138   -without-* | --without-*)
1139     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142       as_fn_error $? "invalid package name: $ac_useropt"
1143     ac_useropt_orig=$ac_useropt
1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145     case $ac_user_opts in
1146       *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150          ac_unrecognized_sep=', ';;
1151     esac
1152     eval with_$ac_useropt=no ;;
1153
1154   --x)
1155     # Obsolete; use --with-x.
1156     with_x=yes ;;
1157
1158   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159   | --x-incl | --x-inc | --x-in | --x-i)
1160     ac_prev=x_includes ;;
1161   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163     x_includes=$ac_optarg ;;
1164
1165   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167     ac_prev=x_libraries ;;
1168   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170     x_libraries=$ac_optarg ;;
1171
1172   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1174     ;;
1175
1176   *=*)
1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178     # Reject names that are not valid shell variable names.
1179     case $ac_envvar in #(
1180       '' | [0-9]* | *[!_$as_cr_alnum]* )
1181       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182     esac
1183     eval $ac_envvar=\$ac_optarg
1184     export $ac_envvar ;;
1185
1186   *)
1187     # FIXME: should be removed in autoconf 3.0.
1188     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192     ;;
1193
1194   esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199   as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203   case $enable_option_checking in
1204     no) ;;
1205     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207   esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212                 datadir sysconfdir sharedstatedir localstatedir includedir \
1213                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214                 libdir localedir mandir
1215 do
1216   eval ac_val=\$$ac_var
1217   # Remove trailing slashes.
1218   case $ac_val in
1219     */ )
1220       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221       eval $ac_var=\$ac_val;;
1222   esac
1223   # Be sure to have absolute directory names.
1224   case $ac_val in
1225     [\\/$]* | ?:[\\/]* )  continue;;
1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227   esac
1228   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240   if test "x$build_alias" = x; then
1241     cross_compiling=maybe
1242   elif test "x$build_alias" != "x$host_alias"; then
1243     cross_compiling=yes
1244   fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256   as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258   as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263   ac_srcdir_defaulted=yes
1264   # Try the directory containing this script, then the parent directory.
1265   ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267          X"$as_myself" : 'X\(//\)[^/]' \| \
1268          X"$as_myself" : 'X\(//\)$' \| \
1269          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)[^/].*/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\).*/{
1284             s//\1/
1285             q
1286           }
1287           s/.*/./; q'`
1288   srcdir=$ac_confdir
1289   if test ! -r "$srcdir/$ac_unique_file"; then
1290     srcdir=..
1291   fi
1292 else
1293   ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302         pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305   srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_env_${ac_var}_value=\$${ac_var}
1316   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324   # Omit some internal or obsolete options to make the list less imposing.
1325   # This message is too long to be a string in the A/UX 3.1 sh.
1326   cat <<_ACEOF
1327 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE.  See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337   -h, --help              display this help and exit
1338       --help=short        display options specific to this package
1339       --help=recursive    display the short help of all the included packages
1340   -V, --version           display version information and exit
1341   -q, --quiet, --silent   do not print \`checking ...' messages
1342       --cache-file=FILE   cache test results in FILE [disabled]
1343   -C, --config-cache      alias for \`--cache-file=config.cache'
1344   -n, --no-create         do not create output files
1345       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348   --prefix=PREFIX         install architecture-independent files in PREFIX
1349                           [$ac_default_prefix]
1350   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1351                           [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361   --bindir=DIR            user executables [EPREFIX/bin]
1362   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1363   --libexecdir=DIR        program executables [EPREFIX/libexec]
1364   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1365   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1366   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1367   --libdir=DIR            object code libraries [EPREFIX/lib]
1368   --includedir=DIR        C header files [PREFIX/include]
1369   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1370   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1371   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1372   --infodir=DIR           info documentation [DATAROOTDIR/info]
1373   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1374   --mandir=DIR            man documentation [DATAROOTDIR/man]
1375   --docdir=DIR            documentation root [DATAROOTDIR/doc/freeradius]
1376   --htmldir=DIR           html documentation [DOCDIR]
1377   --dvidir=DIR            dvi documentation [DOCDIR]
1378   --pdfdir=DIR            pdf documentation [DOCDIR]
1379   --psdir=DIR             ps documentation [DOCDIR]
1380 _ACEOF
1381
1382   cat <<\_ACEOF
1383
1384 System types:
1385   --build=BUILD     configure for building on BUILD [guessed]
1386   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1387   --target=TARGET   configure for building compilers for TARGET [HOST]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392   case $ac_init_help in
1393      short | recursive ) echo "Configuration of freeradius $Id$:";;
1394    esac
1395   cat <<\_ACEOF
1396
1397 Optional Features:
1398   --disable-option-checking  ignore unrecognized --enable/--with options
1399   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1400   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1401   --enable-developer      enables features of interest to developers.
1402   --disable-largefile     omit support for large files
1403   --enable-strict-dependencies  fail configure on lack of module dependancy.
1404   --enable-werror         causes the build to fail if any warnings are generated.
1405   --disable-openssl-version-check
1406                           disable vulnerable OpenSSL version check
1407
1408
1409 Optional Packages:
1410   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1411   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1412   --with-docdir=DIR       directory for documentation DATADIR/doc/freeradius
1413   --with-logdir=DIR       directory for logfiles LOCALSTATEDIR/log/radius
1414   --with-radacctdir=DIR   directory for detail files LOGDIR/radacct
1415   --with-raddbdir=DIR     directory for config files SYSCONFDIR/raddb
1416   --with-dictdir=DIR      directory for dictionary files DATAROOTDIR/freeradius
1417   --with-ascend-binary    include support for Ascend binary filter attributes (default=yes)
1418   --with-threads          use threads, if available.  (default=yes)
1419   --with-tcp              compile in TCP support. (default=yes)
1420   --with-vmps             compile in VMPS support. (default=yes)
1421   --with-dhcp             compile in DHCP support. (default=yes)
1422   --with-static-modules=QUOTED-MODULE-LIST
1423   --with-shared-libs      build dynamic libraries and link against them.
1424                           (default=yes)
1425   --with-modules=QUOTED-MODULE-LIST
1426   --with-experimental-modules
1427                           use experimental and unstable modules. (default=no,
1428                           unless --enable-developer=yes)
1429   --with-udpfromto        compile in UDPFROMTO support. (default=yes)
1430   --with-rlm-FOO-lib-dir=DIR
1431                           directory in which to look for library files used by
1432                           module FOO
1433   --with-rlm-FOO-include-dir=DIR
1434                           directory in which to look for include files used by
1435                           module FOO
1436   --with-openssl          use OpenSSL. (default=yes)
1437   --with-openssl-lib-dir=DIR
1438                           directory to look for OpenSSL library files
1439   --with-openssl-include-dir=DIR
1440                           directory to look for OpenSSL include files
1441   --with-talloc-lib-dir=DIR
1442                           directory in which to look for talloc library files
1443   --with-talloc-include-dir=DIR
1444                           directory in which to look for talloc include files
1445   --with-pcap-lib-dir=DIR directory in which to look for pcap library files
1446   --with-pcap-include-dir=DIR
1447                           directory in which to look for pcap include files
1448   --with-collectdclient-lib-dir=DIR
1449                           directory in which to look for collectdclient
1450                           library files
1451   --with-collectdclient-include-dir=DIR
1452                           directory in which to look for collectdclient
1453                           include files
1454   --with-cap-lib-dir=DIR  directory in which to look for cap library files
1455   --with-cap-include-dir=DIR
1456                           directory in which to look for cap include files
1457   --with-execinfo-lib-dir=DIR
1458                           directory in which to look for execinfo library
1459                           files
1460   --with-execinfo-include-dir=DIR
1461                           directory in which to look for execinfo include
1462                           files
1463   --with-pcre             use libpcre (if available). (default=yes)
1464   --with-pcre-lib-dir=DIR directory in which to look for pcre library files
1465   --with-pcre-include-dir=DIR
1466                           directory in which to look for pcre include files
1467   --with-regex            Whether to build with regular expressions
1468                           (default=yes)
1469
1470 Some influential environment variables:
1471   CC          C compiler command
1472   CFLAGS      C compiler flags
1473   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1474               nonstandard directory <lib dir>
1475   LIBS        libraries to pass to the linker, e.g. -l<library>
1476   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477               you have headers in a nonstandard directory <include dir>
1478   CXX         C++ compiler command
1479   CXXFLAGS    C++ compiler flags
1480   CPP         C preprocessor
1481
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1484
1485 Report bugs to <http://bugs.freeradius.org>.
1486 freeradius home page: <http://www.freeradius.org>.
1487 _ACEOF
1488 ac_status=$?
1489 fi
1490
1491 if test "$ac_init_help" = "recursive"; then
1492   # If there are subdirs, report their specific --help.
1493   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494     test -d "$ac_dir" ||
1495       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496       continue
1497     ac_builddir=.
1498
1499 case "$ac_dir" in
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *)
1502   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503   # A ".." for each directory in $ac_dir_suffix.
1504   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505   case $ac_top_builddir_sub in
1506   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508   esac ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1514
1515 case $srcdir in
1516   .)  # We are building in place.
1517     ac_srcdir=.
1518     ac_top_srcdir=$ac_top_builddir_sub
1519     ac_abs_top_srcdir=$ac_pwd ;;
1520   [\\/]* | ?:[\\/]* )  # Absolute name.
1521     ac_srcdir=$srcdir$ac_dir_suffix;
1522     ac_top_srcdir=$srcdir
1523     ac_abs_top_srcdir=$srcdir ;;
1524   *) # Relative name.
1525     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526     ac_top_srcdir=$ac_top_build_prefix$srcdir
1527     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 esac
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531     cd "$ac_dir" || { ac_status=$?; continue; }
1532     # Check for guested configure.
1533     if test -f "$ac_srcdir/configure.gnu"; then
1534       echo &&
1535       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536     elif test -f "$ac_srcdir/configure"; then
1537       echo &&
1538       $SHELL "$ac_srcdir/configure" --help=recursive
1539     else
1540       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541     fi || ac_status=$?
1542     cd "$ac_pwd" || { ac_status=$?; break; }
1543   done
1544 fi
1545
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1548   cat <<\_ACEOF
1549 freeradius configure $Id$
1550 generated by GNU Autoconf 2.69
1551
1552 Copyright (C) 2012 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1555 _ACEOF
1556   exit
1557 fi
1558
1559 ## ------------------------ ##
1560 ## Autoconf initialization. ##
1561 ## ------------------------ ##
1562
1563 # ac_fn_c_try_compile LINENO
1564 # --------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_compile ()
1567 {
1568   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569   rm -f conftest.$ac_objext
1570   if { { ac_try="$ac_compile"
1571 case "(($ac_try" in
1572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573   *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577   (eval "$ac_compile") 2>conftest.err
1578   ac_status=$?
1579   if test -s conftest.err; then
1580     grep -v '^ *+' conftest.err >conftest.er1
1581     cat conftest.er1 >&5
1582     mv -f conftest.er1 conftest.err
1583   fi
1584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585   test $ac_status = 0; } && {
1586          test -z "$ac_c_werror_flag" ||
1587          test ! -s conftest.err
1588        } && test -s conftest.$ac_objext; then :
1589   ac_retval=0
1590 else
1591   $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1593
1594         ac_retval=1
1595 fi
1596   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597   as_fn_set_status $ac_retval
1598
1599 } # ac_fn_c_try_compile
1600
1601 # ac_fn_cxx_try_compile LINENO
1602 # ----------------------------
1603 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_cxx_try_compile ()
1605 {
1606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607   rm -f conftest.$ac_objext
1608   if { { ac_try="$ac_compile"
1609 case "(($ac_try" in
1610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611   *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615   (eval "$ac_compile") 2>conftest.err
1616   ac_status=$?
1617   if test -s conftest.err; then
1618     grep -v '^ *+' conftest.err >conftest.er1
1619     cat conftest.er1 >&5
1620     mv -f conftest.er1 conftest.err
1621   fi
1622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623   test $ac_status = 0; } && {
1624          test -z "$ac_cxx_werror_flag" ||
1625          test ! -s conftest.err
1626        } && test -s conftest.$ac_objext; then :
1627   ac_retval=0
1628 else
1629   $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632         ac_retval=1
1633 fi
1634   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635   as_fn_set_status $ac_retval
1636
1637 } # ac_fn_cxx_try_compile
1638
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_cpp ()
1643 {
1644   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645   if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 case "(($ac_try" in
1647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648   *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653   ac_status=$?
1654   if test -s conftest.err; then
1655     grep -v '^ *+' conftest.err >conftest.er1
1656     cat conftest.er1 >&5
1657     mv -f conftest.er1 conftest.err
1658   fi
1659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660   test $ac_status = 0; } > conftest.i && {
1661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662          test ! -s conftest.err
1663        }; then :
1664   ac_retval=0
1665 else
1666   $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669     ac_retval=1
1670 fi
1671   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672   as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_cpp
1675
1676 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1677 # -------------------------------------------------------
1678 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1679 # the include files in INCLUDES and setting the cache variable VAR
1680 # accordingly.
1681 ac_fn_c_check_header_mongrel ()
1682 {
1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684   if eval \${$3+:} false; then :
1685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688   $as_echo_n "(cached) " >&6
1689 fi
1690 eval ac_res=\$$3
1691                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1693 else
1694   # Is the header compilable?
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1696 $as_echo_n "checking $2 usability... " >&6; }
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h.  */
1699 $4
1700 #include <$2>
1701 _ACEOF
1702 if ac_fn_c_try_compile "$LINENO"; then :
1703   ac_header_compiler=yes
1704 else
1705   ac_header_compiler=no
1706 fi
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1709 $as_echo "$ac_header_compiler" >&6; }
1710
1711 # Is the header present?
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1713 $as_echo_n "checking $2 presence... " >&6; }
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h.  */
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_cpp "$LINENO"; then :
1719   ac_header_preproc=yes
1720 else
1721   ac_header_preproc=no
1722 fi
1723 rm -f conftest.err conftest.i conftest.$ac_ext
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1725 $as_echo "$ac_header_preproc" >&6; }
1726
1727 # So?  What about this header?
1728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1729   yes:no: )
1730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1731 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1732     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734     ;;
1735   no:yes:* )
1736     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1737 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1738     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1739 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1740     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1741 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1743 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1744     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1745 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 ( $as_echo "## ----------------------------------------- ##
1747 ## Report this to http://bugs.freeradius.org ##
1748 ## ----------------------------------------- ##"
1749      ) | sed "s/^/$as_me: WARNING:     /" >&2
1750     ;;
1751 esac
1752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755   $as_echo_n "(cached) " >&6
1756 else
1757   eval "$3=\$ac_header_compiler"
1758 fi
1759 eval ac_res=\$$3
1760                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762 fi
1763   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765 } # ac_fn_c_check_header_mongrel
1766
1767 # ac_fn_c_try_run LINENO
1768 # ----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770 # that executables *can* be run.
1771 ac_fn_c_try_run ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777   *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781   (eval "$ac_link") 2>&5
1782   ac_status=$?
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785   { { case "(($ac_try" in
1786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787   *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791   (eval "$ac_try") 2>&5
1792   ac_status=$?
1793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794   test $ac_status = 0; }; }; then :
1795   ac_retval=0
1796 else
1797   $as_echo "$as_me: program exited with status $ac_status" >&5
1798        $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801        ac_retval=$ac_status
1802 fi
1803   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805   as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_run
1808
1809 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists and can be compiled using the include files in
1812 # INCLUDES, setting the cache variable VAR accordingly.
1813 ac_fn_c_check_header_compile ()
1814 {
1815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819   $as_echo_n "(cached) " >&6
1820 else
1821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h.  */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827   eval "$3=yes"
1828 else
1829   eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 fi
1833 eval ac_res=\$$3
1834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838 } # ac_fn_c_check_header_compile
1839
1840 # ac_fn_c_try_link LINENO
1841 # -----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_link ()
1844 {
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   rm -f conftest.$ac_objext conftest$ac_exeext
1847   if { { ac_try="$ac_link"
1848 case "(($ac_try" in
1849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850   *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854   (eval "$ac_link") 2>conftest.err
1855   ac_status=$?
1856   if test -s conftest.err; then
1857     grep -v '^ *+' conftest.err >conftest.er1
1858     cat conftest.er1 >&5
1859     mv -f conftest.er1 conftest.err
1860   fi
1861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862   test $ac_status = 0; } && {
1863          test -z "$ac_c_werror_flag" ||
1864          test ! -s conftest.err
1865        } && test -s conftest$ac_exeext && {
1866          test "$cross_compiling" = yes ||
1867          test -x conftest$ac_exeext
1868        }; then :
1869   ac_retval=0
1870 else
1871   $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874         ac_retval=1
1875 fi
1876   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1877   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1878   # interfere with the next link command; also delete a directory that is
1879   # left behind by Apple's compiler.  We do this before executing the actions.
1880   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882   as_fn_set_status $ac_retval
1883
1884 } # ac_fn_c_try_link
1885
1886 # ac_fn_c_check_func LINENO FUNC VAR
1887 # ----------------------------------
1888 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1889 ac_fn_c_check_func ()
1890 {
1891   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895   $as_echo_n "(cached) " >&6
1896 else
1897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h.  */
1899 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1901 #define $2 innocuous_$2
1902
1903 /* System header to define __stub macros and hopefully few prototypes,
1904     which can conflict with char $2 (); below.
1905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1906     <limits.h> exists even on freestanding compilers.  */
1907
1908 #ifdef __STDC__
1909 # include <limits.h>
1910 #else
1911 # include <assert.h>
1912 #endif
1913
1914 #undef $2
1915
1916 /* Override any GCC internal prototype to avoid an error.
1917    Use char because int might match the return type of a GCC
1918    builtin and then its argument prototype would still apply.  */
1919 #ifdef __cplusplus
1920 extern "C"
1921 #endif
1922 char $2 ();
1923 /* The GNU C library defines this for functions which it implements
1924     to always fail with ENOSYS.  Some functions are actually named
1925     something starting with __ and the normal name is an alias.  */
1926 #if defined __stub_$2 || defined __stub___$2
1927 choke me
1928 #endif
1929
1930 int
1931 main ()
1932 {
1933 return $2 ();
1934   ;
1935   return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_link "$LINENO"; then :
1939   eval "$3=yes"
1940 else
1941   eval "$3=no"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext \
1944     conftest$ac_exeext conftest.$ac_ext
1945 fi
1946 eval ac_res=\$$3
1947                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950
1951 } # ac_fn_c_check_func
1952
1953 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1954 # -------------------------------------------
1955 # Tests whether TYPE exists after having included INCLUDES, setting cache
1956 # variable VAR accordingly.
1957 ac_fn_c_check_type ()
1958 {
1959   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if eval \${$3+:} false; then :
1963   $as_echo_n "(cached) " >&6
1964 else
1965   eval "$3=no"
1966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h.  */
1968 $4
1969 int
1970 main ()
1971 {
1972 if (sizeof ($2))
1973          return 0;
1974   ;
1975   return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h.  */
1981 $4
1982 int
1983 main ()
1984 {
1985 if (sizeof (($2)))
1986             return 0;
1987   ;
1988   return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992
1993 else
1994   eval "$3=yes"
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 eval ac_res=\$$3
2001                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005 } # ac_fn_c_check_type
2006
2007 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2008 # ---------------------------------------------
2009 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2010 # accordingly.
2011 ac_fn_c_check_decl ()
2012 {
2013   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014   as_decl_name=`echo $2|sed 's/ *(.*//'`
2015   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2017 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2018 if eval \${$3+:} false; then :
2019   $as_echo_n "(cached) " >&6
2020 else
2021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h.  */
2023 $4
2024 int
2025 main ()
2026 {
2027 #ifndef $as_decl_name
2028 #ifdef __cplusplus
2029   (void) $as_decl_use;
2030 #else
2031   (void) $as_decl_name;
2032 #endif
2033 #endif
2034
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040   eval "$3=yes"
2041 else
2042   eval "$3=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 eval ac_res=\$$3
2047                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050
2051 } # ac_fn_c_check_decl
2052 cat >config.log <<_ACEOF
2053 This file contains any messages produced by compilers while
2054 running configure, to aid debugging if configure makes a mistake.
2055
2056 It was created by freeradius $as_me $Id$, which was
2057 generated by GNU Autoconf 2.69.  Invocation command line was
2058
2059   $ $0 $@
2060
2061 _ACEOF
2062 exec 5>>config.log
2063 {
2064 cat <<_ASUNAME
2065 ## --------- ##
2066 ## Platform. ##
2067 ## --------- ##
2068
2069 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2070 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2071 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2072 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2073 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2074
2075 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2076 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2077
2078 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2079 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2080 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2081 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2082 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2083 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2084 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2085
2086 _ASUNAME
2087
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091   IFS=$as_save_IFS
2092   test -z "$as_dir" && as_dir=.
2093     $as_echo "PATH: $as_dir"
2094   done
2095 IFS=$as_save_IFS
2096
2097 } >&5
2098
2099 cat >&5 <<_ACEOF
2100
2101
2102 ## ----------- ##
2103 ## Core tests. ##
2104 ## ----------- ##
2105
2106 _ACEOF
2107
2108
2109 # Keep a trace of the command line.
2110 # Strip out --no-create and --no-recursion so they do not pile up.
2111 # Strip out --silent because we don't want to record it for future runs.
2112 # Also quote any args containing shell meta-characters.
2113 # Make two passes to allow for proper duplicate-argument suppression.
2114 ac_configure_args=
2115 ac_configure_args0=
2116 ac_configure_args1=
2117 ac_must_keep_next=false
2118 for ac_pass in 1 2
2119 do
2120   for ac_arg
2121   do
2122     case $ac_arg in
2123     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2124     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2125     | -silent | --silent | --silen | --sile | --sil)
2126       continue ;;
2127     *\'*)
2128       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2129     esac
2130     case $ac_pass in
2131     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2132     2)
2133       as_fn_append ac_configure_args1 " '$ac_arg'"
2134       if test $ac_must_keep_next = true; then
2135         ac_must_keep_next=false # Got value, back to normal.
2136       else
2137         case $ac_arg in
2138           *=* | --config-cache | -C | -disable-* | --disable-* \
2139           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2140           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2141           | -with-* | --with-* | -without-* | --without-* | --x)
2142             case "$ac_configure_args0 " in
2143               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2144             esac
2145             ;;
2146           -* ) ac_must_keep_next=true ;;
2147         esac
2148       fi
2149       as_fn_append ac_configure_args " '$ac_arg'"
2150       ;;
2151     esac
2152   done
2153 done
2154 { ac_configure_args0=; unset ac_configure_args0;}
2155 { ac_configure_args1=; unset ac_configure_args1;}
2156
2157 # When interrupted or exit'd, cleanup temporary files, and complete
2158 # config.log.  We remove comments because anyway the quotes in there
2159 # would cause problems or look ugly.
2160 # WARNING: Use '\'' to represent an apostrophe within the trap.
2161 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2162 trap 'exit_status=$?
2163   # Save into config.log some information that might help in debugging.
2164   {
2165     echo
2166
2167     $as_echo "## ---------------- ##
2168 ## Cache variables. ##
2169 ## ---------------- ##"
2170     echo
2171     # The following way of writing the cache mishandles newlines in values,
2172 (
2173   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2174     eval ac_val=\$$ac_var
2175     case $ac_val in #(
2176     *${as_nl}*)
2177       case $ac_var in #(
2178       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2179 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2180       esac
2181       case $ac_var in #(
2182       _ | IFS | as_nl) ;; #(
2183       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2184       *) { eval $ac_var=; unset $ac_var;} ;;
2185       esac ;;
2186     esac
2187   done
2188   (set) 2>&1 |
2189     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2190     *${as_nl}ac_space=\ *)
2191       sed -n \
2192         "s/'\''/'\''\\\\'\'''\''/g;
2193           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2194       ;; #(
2195     *)
2196       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2197       ;;
2198     esac |
2199     sort
2200 )
2201     echo
2202
2203     $as_echo "## ----------------- ##
2204 ## Output variables. ##
2205 ## ----------------- ##"
2206     echo
2207     for ac_var in $ac_subst_vars
2208     do
2209       eval ac_val=\$$ac_var
2210       case $ac_val in
2211       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212       esac
2213       $as_echo "$ac_var='\''$ac_val'\''"
2214     done | sort
2215     echo
2216
2217     if test -n "$ac_subst_files"; then
2218       $as_echo "## ------------------- ##
2219 ## File substitutions. ##
2220 ## ------------------- ##"
2221       echo
2222       for ac_var in $ac_subst_files
2223       do
2224         eval ac_val=\$$ac_var
2225         case $ac_val in
2226         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227         esac
2228         $as_echo "$ac_var='\''$ac_val'\''"
2229       done | sort
2230       echo
2231     fi
2232
2233     if test -s confdefs.h; then
2234       $as_echo "## ----------- ##
2235 ## confdefs.h. ##
2236 ## ----------- ##"
2237       echo
2238       cat confdefs.h
2239       echo
2240     fi
2241     test "$ac_signal" != 0 &&
2242       $as_echo "$as_me: caught signal $ac_signal"
2243     $as_echo "$as_me: exit $exit_status"
2244   } >&5
2245   rm -f core *.core core.conftest.* &&
2246     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2247     exit $exit_status
2248 ' 0
2249 for ac_signal in 1 2 13 15; do
2250   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2251 done
2252 ac_signal=0
2253
2254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2255 rm -f -r conftest* confdefs.h
2256
2257 $as_echo "/* confdefs.h */" > confdefs.h
2258
2259 # Predefined preprocessor variables.
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_NAME "$PACKAGE_NAME"
2263 _ACEOF
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2267 _ACEOF
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_STRING "$PACKAGE_STRING"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2279 _ACEOF
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_URL "$PACKAGE_URL"
2283 _ACEOF
2284
2285
2286 # Let the site file select an alternate cache file if it wants to.
2287 # Prefer an explicitly selected file to automatically selected ones.
2288 ac_site_file1=NONE
2289 ac_site_file2=NONE
2290 if test -n "$CONFIG_SITE"; then
2291   # We do not want a PATH search for config.site.
2292   case $CONFIG_SITE in #((
2293     -*)  ac_site_file1=./$CONFIG_SITE;;
2294     */*) ac_site_file1=$CONFIG_SITE;;
2295     *)   ac_site_file1=./$CONFIG_SITE;;
2296   esac
2297 elif test "x$prefix" != xNONE; then
2298   ac_site_file1=$prefix/share/config.site
2299   ac_site_file2=$prefix/etc/config.site
2300 else
2301   ac_site_file1=$ac_default_prefix/share/config.site
2302   ac_site_file2=$ac_default_prefix/etc/config.site
2303 fi
2304 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2305 do
2306   test "x$ac_site_file" = xNONE && continue
2307   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2308     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2309 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2310     sed 's/^/| /' "$ac_site_file" >&5
2311     . "$ac_site_file" \
2312       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314 as_fn_error $? "failed to load site script $ac_site_file
2315 See \`config.log' for more details" "$LINENO" 5; }
2316   fi
2317 done
2318
2319 if test -r "$cache_file"; then
2320   # Some versions of bash will fail to source /dev/null (special files
2321   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2322   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2323     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2324 $as_echo "$as_me: loading cache $cache_file" >&6;}
2325     case $cache_file in
2326       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2327       *)                      . "./$cache_file";;
2328     esac
2329   fi
2330 else
2331   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2332 $as_echo "$as_me: creating cache $cache_file" >&6;}
2333   >$cache_file
2334 fi
2335
2336 # Check that the precious variables saved in the cache have kept the same
2337 # value.
2338 ac_cache_corrupted=false
2339 for ac_var in $ac_precious_vars; do
2340   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2341   eval ac_new_set=\$ac_env_${ac_var}_set
2342   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2343   eval ac_new_val=\$ac_env_${ac_var}_value
2344   case $ac_old_set,$ac_new_set in
2345     set,)
2346       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2347 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2348       ac_cache_corrupted=: ;;
2349     ,set)
2350       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2351 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2352       ac_cache_corrupted=: ;;
2353     ,);;
2354     *)
2355       if test "x$ac_old_val" != "x$ac_new_val"; then
2356         # differences in whitespace do not lead to failure.
2357         ac_old_val_w=`echo x $ac_old_val`
2358         ac_new_val_w=`echo x $ac_new_val`
2359         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2360           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2361 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2362           ac_cache_corrupted=:
2363         else
2364           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2365 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2366           eval $ac_var=\$ac_old_val
2367         fi
2368         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2369 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2370         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2371 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2372       fi;;
2373   esac
2374   # Pass precious variables to config.status.
2375   if test "$ac_new_set" = set; then
2376     case $ac_new_val in
2377     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2378     *) ac_arg=$ac_var=$ac_new_val ;;
2379     esac
2380     case " $ac_configure_args " in
2381       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2382       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2383     esac
2384   fi
2385 done
2386 if $ac_cache_corrupted; then
2387   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2390 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2391   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2392 fi
2393 ## -------------------- ##
2394 ## Main body of script. ##
2395 ## -------------------- ##
2396
2397 ac_ext=c
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402
2403
2404
2405 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421 RADIUSD_MAJOR_VERSION=`cat VERSION | cut -f1 -d.`
2422 RADIUSD_MINOR_VERSION=`cat VERSION | cut -f2 -d.`
2423 RADIUSD_INCRM_VERSION=`cat VERSION | cut -f3 -d. | sed 's/[\.-].*$//'`
2424
2425 RADIUSD_VERSION=`printf "%02i%02i%02i" $RADIUSD_MAJOR_VERSION $RADIUSD_MINOR_VERSION $RADIUSD_INCRM_VERSION`
2426
2427 RADIUSD_VERSION_STRING=`cat VERSION`
2428
2429
2430
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2434 _ACEOF
2435
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2439 _ACEOF
2440
2441
2442
2443 # Check whether --enable-developer was given.
2444 if test "${enable_developer+set}" = set; then :
2445   enableval=$enable_developer;  case "$enableval" in
2446   no)
2447     developer=no
2448     ;;
2449   *)
2450     developer=yes
2451   esac
2452
2453 fi
2454
2455
2456 if test -d $srcdir/.git; then
2457   if test "x$developer" != "xno"; then
2458     { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2459 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2460     developer="yes"
2461   fi
2462 fi
2463
2464 if test "x$developer" = "xyes"; then
2465   : ${CFLAGS=-g3}
2466 fi
2467
2468
2469 ac_aux_dir=
2470 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2471   if test -f "$ac_dir/install-sh"; then
2472     ac_aux_dir=$ac_dir
2473     ac_install_sh="$ac_aux_dir/install-sh -c"
2474     break
2475   elif test -f "$ac_dir/install.sh"; then
2476     ac_aux_dir=$ac_dir
2477     ac_install_sh="$ac_aux_dir/install.sh -c"
2478     break
2479   elif test -f "$ac_dir/shtool"; then
2480     ac_aux_dir=$ac_dir
2481     ac_install_sh="$ac_aux_dir/shtool install -c"
2482     break
2483   fi
2484 done
2485 if test -z "$ac_aux_dir"; then
2486   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2487 fi
2488
2489 # These three variables are undocumented and unsupported,
2490 # and are intended to be withdrawn in a future Autoconf release.
2491 # They can cause serious problems if a builder's source tree is in a directory
2492 # whose full name contains unusual characters.
2493 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2494 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2495 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2496
2497
2498 # Make sure we can run config.sub.
2499 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2500   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2501
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2503 $as_echo_n "checking build system type... " >&6; }
2504 if ${ac_cv_build+:} false; then :
2505   $as_echo_n "(cached) " >&6
2506 else
2507   ac_build_alias=$build_alias
2508 test "x$ac_build_alias" = x &&
2509   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2510 test "x$ac_build_alias" = x &&
2511   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2512 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2513   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2514
2515 fi
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2517 $as_echo "$ac_cv_build" >&6; }
2518 case $ac_cv_build in
2519 *-*-*) ;;
2520 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2521 esac
2522 build=$ac_cv_build
2523 ac_save_IFS=$IFS; IFS='-'
2524 set x $ac_cv_build
2525 shift
2526 build_cpu=$1
2527 build_vendor=$2
2528 shift; shift
2529 # Remember, the first character of IFS is used to create $*,
2530 # except with old shells:
2531 build_os=$*
2532 IFS=$ac_save_IFS
2533 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2534
2535
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2537 $as_echo_n "checking host system type... " >&6; }
2538 if ${ac_cv_host+:} false; then :
2539   $as_echo_n "(cached) " >&6
2540 else
2541   if test "x$host_alias" = x; then
2542   ac_cv_host=$ac_cv_build
2543 else
2544   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2545     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2546 fi
2547
2548 fi
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2550 $as_echo "$ac_cv_host" >&6; }
2551 case $ac_cv_host in
2552 *-*-*) ;;
2553 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2554 esac
2555 host=$ac_cv_host
2556 ac_save_IFS=$IFS; IFS='-'
2557 set x $ac_cv_host
2558 shift
2559 host_cpu=$1
2560 host_vendor=$2
2561 shift; shift
2562 # Remember, the first character of IFS is used to create $*,
2563 # except with old shells:
2564 host_os=$*
2565 IFS=$ac_save_IFS
2566 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2567
2568
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2570 $as_echo_n "checking target system type... " >&6; }
2571 if ${ac_cv_target+:} false; then :
2572   $as_echo_n "(cached) " >&6
2573 else
2574   if test "x$target_alias" = x; then
2575   ac_cv_target=$ac_cv_host
2576 else
2577   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2578     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2579 fi
2580
2581 fi
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2583 $as_echo "$ac_cv_target" >&6; }
2584 case $ac_cv_target in
2585 *-*-*) ;;
2586 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2587 esac
2588 target=$ac_cv_target
2589 ac_save_IFS=$IFS; IFS='-'
2590 set x $ac_cv_target
2591 shift
2592 target_cpu=$1
2593 target_vendor=$2
2594 shift; shift
2595 # Remember, the first character of IFS is used to create $*,
2596 # except with old shells:
2597 target_os=$*
2598 IFS=$ac_save_IFS
2599 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2600
2601
2602 # The aliases save the names the user supplied, while $host etc.
2603 # will get canonicalized.
2604 test -n "$target_alias" &&
2605   test "$program_prefix$program_suffix$program_transform_name" = \
2606     NONENONEs,x,x, &&
2607   program_prefix=${target_alias}-
2608
2609
2610 ac_ext=c
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615 if test -n "$ac_tool_prefix"; then
2616   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if ${ac_cv_prog_CC+:} false; then :
2621   $as_echo_n "(cached) " >&6
2622 else
2623   if test -n "$CC"; then
2624   ac_cv_prog_CC="$CC" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629   IFS=$as_save_IFS
2630   test -z "$as_dir" && as_dir=.
2631     for ac_exec_ext in '' $ac_executable_extensions; do
2632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635     break 2
2636   fi
2637 done
2638   done
2639 IFS=$as_save_IFS
2640
2641 fi
2642 fi
2643 CC=$ac_cv_prog_CC
2644 if test -n "$CC"; then
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2646 $as_echo "$CC" >&6; }
2647 else
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2650 fi
2651
2652
2653 fi
2654 if test -z "$ac_cv_prog_CC"; then
2655   ac_ct_CC=$CC
2656   # Extract the first word of "gcc", so it can be a program name with args.
2657 set dummy gcc; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2661   $as_echo_n "(cached) " >&6
2662 else
2663   if test -n "$ac_ct_CC"; then
2664   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669   IFS=$as_save_IFS
2670   test -z "$as_dir" && as_dir=.
2671     for ac_exec_ext in '' $ac_executable_extensions; do
2672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2673     ac_cv_prog_ac_ct_CC="gcc"
2674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675     break 2
2676   fi
2677 done
2678   done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684 if test -n "$ac_ct_CC"; then
2685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2686 $as_echo "$ac_ct_CC" >&6; }
2687 else
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2690 fi
2691
2692   if test "x$ac_ct_CC" = x; then
2693     CC=""
2694   else
2695     case $cross_compiling:$ac_tool_warned in
2696 yes:)
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2699 ac_tool_warned=yes ;;
2700 esac
2701     CC=$ac_ct_CC
2702   fi
2703 else
2704   CC="$ac_cv_prog_CC"
2705 fi
2706
2707 if test -z "$CC"; then
2708           if test -n "$ac_tool_prefix"; then
2709     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}cc; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_CC+:} false; then :
2714   $as_echo_n "(cached) " >&6
2715 else
2716   if test -n "$CC"; then
2717   ac_cv_prog_CC="$CC" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722   IFS=$as_save_IFS
2723   test -z "$as_dir" && as_dir=.
2724     for ac_exec_ext in '' $ac_executable_extensions; do
2725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2726     ac_cv_prog_CC="${ac_tool_prefix}cc"
2727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728     break 2
2729   fi
2730 done
2731   done
2732 IFS=$as_save_IFS
2733
2734 fi
2735 fi
2736 CC=$ac_cv_prog_CC
2737 if test -n "$CC"; then
2738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2739 $as_echo "$CC" >&6; }
2740 else
2741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2743 fi
2744
2745
2746   fi
2747 fi
2748 if test -z "$CC"; then
2749   # Extract the first word of "cc", so it can be a program name with args.
2750 set dummy cc; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if ${ac_cv_prog_CC+:} false; then :
2754   $as_echo_n "(cached) " >&6
2755 else
2756   if test -n "$CC"; then
2757   ac_cv_prog_CC="$CC" # Let the user override the test.
2758 else
2759   ac_prog_rejected=no
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763   IFS=$as_save_IFS
2764   test -z "$as_dir" && as_dir=.
2765     for ac_exec_ext in '' $ac_executable_extensions; do
2766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2768        ac_prog_rejected=yes
2769        continue
2770      fi
2771     ac_cv_prog_CC="cc"
2772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773     break 2
2774   fi
2775 done
2776   done
2777 IFS=$as_save_IFS
2778
2779 if test $ac_prog_rejected = yes; then
2780   # We found a bogon in the path, so make sure we never use it.
2781   set dummy $ac_cv_prog_CC
2782   shift
2783   if test $# != 0; then
2784     # We chose a different compiler from the bogus one.
2785     # However, it has the same basename, so the bogon will be chosen
2786     # first if we set CC to just the basename; use the full file name.
2787     shift
2788     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2789   fi
2790 fi
2791 fi
2792 fi
2793 CC=$ac_cv_prog_CC
2794 if test -n "$CC"; then
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796 $as_echo "$CC" >&6; }
2797 else
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 fi
2801
2802
2803 fi
2804 if test -z "$CC"; then
2805   if test -n "$ac_tool_prefix"; then
2806   for ac_prog in cl.exe
2807   do
2808     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if ${ac_cv_prog_CC+:} false; then :
2813   $as_echo_n "(cached) " >&6
2814 else
2815   if test -n "$CC"; then
2816   ac_cv_prog_CC="$CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821   IFS=$as_save_IFS
2822   test -z "$as_dir" && as_dir=.
2823     for ac_exec_ext in '' $ac_executable_extensions; do
2824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827     break 2
2828   fi
2829 done
2830   done
2831 IFS=$as_save_IFS
2832
2833 fi
2834 fi
2835 CC=$ac_cv_prog_CC
2836 if test -n "$CC"; then
2837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2838 $as_echo "$CC" >&6; }
2839 else
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2842 fi
2843
2844
2845     test -n "$CC" && break
2846   done
2847 fi
2848 if test -z "$CC"; then
2849   ac_ct_CC=$CC
2850   for ac_prog in cl.exe
2851 do
2852   # Extract the first word of "$ac_prog", so it can be a program name with args.
2853 set dummy $ac_prog; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2857   $as_echo_n "(cached) " >&6
2858 else
2859   if test -n "$ac_ct_CC"; then
2860   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865   IFS=$as_save_IFS
2866   test -z "$as_dir" && as_dir=.
2867     for ac_exec_ext in '' $ac_executable_extensions; do
2868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869     ac_cv_prog_ac_ct_CC="$ac_prog"
2870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871     break 2
2872   fi
2873 done
2874   done
2875 IFS=$as_save_IFS
2876
2877 fi
2878 fi
2879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2880 if test -n "$ac_ct_CC"; then
2881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2882 $as_echo "$ac_ct_CC" >&6; }
2883 else
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 fi
2887
2888
2889   test -n "$ac_ct_CC" && break
2890 done
2891
2892   if test "x$ac_ct_CC" = x; then
2893     CC=""
2894   else
2895     case $cross_compiling:$ac_tool_warned in
2896 yes:)
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2899 ac_tool_warned=yes ;;
2900 esac
2901     CC=$ac_ct_CC
2902   fi
2903 fi
2904
2905 fi
2906
2907
2908 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910 as_fn_error $? "no acceptable C compiler found in \$PATH
2911 See \`config.log' for more details" "$LINENO" 5; }
2912
2913 # Provide some information about the compiler.
2914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2915 set X $ac_compile
2916 ac_compiler=$2
2917 for ac_option in --version -v -V -qversion; do
2918   { { ac_try="$ac_compiler $ac_option >&5"
2919 case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924 $as_echo "$ac_try_echo"; } >&5
2925   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2926   ac_status=$?
2927   if test -s conftest.err; then
2928     sed '10a\
2929 ... rest of stderr output deleted ...
2930          10q' conftest.err >conftest.er1
2931     cat conftest.er1 >&5
2932   fi
2933   rm -f conftest.er1 conftest.err
2934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935   test $ac_status = 0; }
2936 done
2937
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939 /* end confdefs.h.  */
2940
2941 int
2942 main ()
2943 {
2944
2945   ;
2946   return 0;
2947 }
2948 _ACEOF
2949 ac_clean_files_save=$ac_clean_files
2950 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2951 # Try to create an executable without -o first, disregard a.out.
2952 # It will help us diagnose broken compilers, and finding out an intuition
2953 # of exeext.
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2955 $as_echo_n "checking whether the C compiler works... " >&6; }
2956 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2957
2958 # The possible output files:
2959 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2960
2961 ac_rmfiles=
2962 for ac_file in $ac_files
2963 do
2964   case $ac_file in
2965     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2966     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2967   esac
2968 done
2969 rm -f $ac_rmfiles
2970
2971 if { { ac_try="$ac_link_default"
2972 case "(($ac_try" in
2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974   *) ac_try_echo=$ac_try;;
2975 esac
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978   (eval "$ac_link_default") 2>&5
2979   ac_status=$?
2980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981   test $ac_status = 0; }; then :
2982   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2983 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2984 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2985 # so that the user can short-circuit this test for compilers unknown to
2986 # Autoconf.
2987 for ac_file in $ac_files ''
2988 do
2989   test -f "$ac_file" || continue
2990   case $ac_file in
2991     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2992         ;;
2993     [ab].out )
2994         # We found the default executable, but exeext='' is most
2995         # certainly right.
2996         break;;
2997     *.* )
2998         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2999         then :; else
3000            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3001         fi
3002         # We set ac_cv_exeext here because the later test for it is not
3003         # safe: cross compilers may not add the suffix if given an `-o'
3004         # argument, so we may need to know it at that point already.
3005         # Even if this section looks crufty: it has the advantage of
3006         # actually working.
3007         break;;
3008     * )
3009         break;;
3010   esac
3011 done
3012 test "$ac_cv_exeext" = no && ac_cv_exeext=
3013
3014 else
3015   ac_file=''
3016 fi
3017 if test -z "$ac_file"; then :
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 $as_echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 as_fn_error 77 "C compiler cannot create executables
3026 See \`config.log' for more details" "$LINENO" 5; }
3027 else
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3029 $as_echo "yes" >&6; }
3030 fi
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3032 $as_echo_n "checking for C compiler default output file name... " >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3034 $as_echo "$ac_file" >&6; }
3035 ac_exeext=$ac_cv_exeext
3036
3037 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3038 ac_clean_files=$ac_clean_files_save
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3040 $as_echo_n "checking for suffix of executables... " >&6; }
3041 if { { ac_try="$ac_link"
3042 case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047 $as_echo "$ac_try_echo"; } >&5
3048   (eval "$ac_link") 2>&5
3049   ac_status=$?
3050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051   test $ac_status = 0; }; then :
3052   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3053 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3054 # work properly (i.e., refer to `conftest.exe'), while it won't with
3055 # `rm'.
3056 for ac_file in conftest.exe conftest conftest.*; do
3057   test -f "$ac_file" || continue
3058   case $ac_file in
3059     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3060     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3061           break;;
3062     * ) break;;
3063   esac
3064 done
3065 else
3066   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details" "$LINENO" 5; }
3070 fi
3071 rm -f conftest conftest$ac_cv_exeext
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3073 $as_echo "$ac_cv_exeext" >&6; }
3074
3075 rm -f conftest.$ac_ext
3076 EXEEXT=$ac_cv_exeext
3077 ac_exeext=$EXEEXT
3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h.  */
3080 #include <stdio.h>
3081 int
3082 main ()
3083 {
3084 FILE *f = fopen ("conftest.out", "w");
3085  return ferror (f) || fclose (f) != 0;
3086
3087   ;
3088   return 0;
3089 }
3090 _ACEOF
3091 ac_clean_files="$ac_clean_files conftest.out"
3092 # Check that the compiler produces executables we can run.  If not, either
3093 # the compiler is broken, or we cross compile.
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3095 $as_echo_n "checking whether we are cross compiling... " >&6; }
3096 if test "$cross_compiling" != yes; then
3097   { { ac_try="$ac_link"
3098 case "(($ac_try" in
3099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100   *) ac_try_echo=$ac_try;;
3101 esac
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104   (eval "$ac_link") 2>&5
3105   ac_status=$?
3106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107   test $ac_status = 0; }
3108   if { ac_try='./conftest$ac_cv_exeext'
3109   { { case "(($ac_try" in
3110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111   *) ac_try_echo=$ac_try;;
3112 esac
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115   (eval "$ac_try") 2>&5
3116   ac_status=$?
3117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118   test $ac_status = 0; }; }; then
3119     cross_compiling=no
3120   else
3121     if test "$cross_compiling" = maybe; then
3122         cross_compiling=yes
3123     else
3124         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 as_fn_error $? "cannot run C compiled programs.
3127 If you meant to cross compile, use \`--host'.
3128 See \`config.log' for more details" "$LINENO" 5; }
3129     fi
3130   fi
3131 fi
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3133 $as_echo "$cross_compiling" >&6; }
3134
3135 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3136 ac_clean_files=$ac_clean_files_save
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3138 $as_echo_n "checking for suffix of object files... " >&6; }
3139 if ${ac_cv_objext+:} false; then :
3140   $as_echo_n "(cached) " >&6
3141 else
3142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h.  */
3144
3145 int
3146 main ()
3147 {
3148
3149   ;
3150   return 0;
3151 }
3152 _ACEOF
3153 rm -f conftest.o conftest.obj
3154 if { { ac_try="$ac_compile"
3155 case "(($ac_try" in
3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157   *) ac_try_echo=$ac_try;;
3158 esac
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161   (eval "$ac_compile") 2>&5
3162   ac_status=$?
3163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164   test $ac_status = 0; }; then :
3165   for ac_file in conftest.o conftest.obj conftest.*; do
3166   test -f "$ac_file" || continue;
3167   case $ac_file in
3168     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3169     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3170        break;;
3171   esac
3172 done
3173 else
3174   $as_echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error $? "cannot compute suffix of object files: cannot compile
3180 See \`config.log' for more details" "$LINENO" 5; }
3181 fi
3182 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3183 fi
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3185 $as_echo "$ac_cv_objext" >&6; }
3186 OBJEXT=$ac_cv_objext
3187 ac_objext=$OBJEXT
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3189 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3190 if ${ac_cv_c_compiler_gnu+:} false; then :
3191   $as_echo_n "(cached) " >&6
3192 else
3193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h.  */
3195
3196 int
3197 main ()
3198 {
3199 #ifndef __GNUC__
3200        choke me
3201 #endif
3202
3203   ;
3204   return 0;
3205 }
3206 _ACEOF
3207 if ac_fn_c_try_compile "$LINENO"; then :
3208   ac_compiler_gnu=yes
3209 else
3210   ac_compiler_gnu=no
3211 fi
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3214
3215 fi
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3217 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3218 if test $ac_compiler_gnu = yes; then
3219   GCC=yes
3220 else
3221   GCC=
3222 fi
3223 ac_test_CFLAGS=${CFLAGS+set}
3224 ac_save_CFLAGS=$CFLAGS
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3226 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3227 if ${ac_cv_prog_cc_g+:} false; then :
3228   $as_echo_n "(cached) " >&6
3229 else
3230   ac_save_c_werror_flag=$ac_c_werror_flag
3231    ac_c_werror_flag=yes
3232    ac_cv_prog_cc_g=no
3233    CFLAGS="-g"
3234    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h.  */
3236
3237 int
3238 main ()
3239 {
3240
3241   ;
3242   return 0;
3243 }
3244 _ACEOF
3245 if ac_fn_c_try_compile "$LINENO"; then :
3246   ac_cv_prog_cc_g=yes
3247 else
3248   CFLAGS=""
3249       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h.  */
3251
3252 int
3253 main ()
3254 {
3255
3256   ;
3257   return 0;
3258 }
3259 _ACEOF
3260 if ac_fn_c_try_compile "$LINENO"; then :
3261
3262 else
3263   ac_c_werror_flag=$ac_save_c_werror_flag
3264          CFLAGS="-g"
3265          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h.  */
3267
3268 int
3269 main ()
3270 {
3271
3272   ;
3273   return 0;
3274 }
3275 _ACEOF
3276 if ac_fn_c_try_compile "$LINENO"; then :
3277   ac_cv_prog_cc_g=yes
3278 fi
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 fi
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 fi
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284    ac_c_werror_flag=$ac_save_c_werror_flag
3285 fi
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3287 $as_echo "$ac_cv_prog_cc_g" >&6; }
3288 if test "$ac_test_CFLAGS" = set; then
3289   CFLAGS=$ac_save_CFLAGS
3290 elif test $ac_cv_prog_cc_g = yes; then
3291   if test "$GCC" = yes; then
3292     CFLAGS="-g -O2"
3293   else
3294     CFLAGS="-g"
3295   fi
3296 else
3297   if test "$GCC" = yes; then
3298     CFLAGS="-O2"
3299   else
3300     CFLAGS=
3301   fi
3302 fi
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3304 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3305 if ${ac_cv_prog_cc_c89+:} false; then :
3306   $as_echo_n "(cached) " >&6
3307 else
3308   ac_cv_prog_cc_c89=no
3309 ac_save_CC=$CC
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h.  */
3312 #include <stdarg.h>
3313 #include <stdio.h>
3314 struct stat;
3315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3316 struct buf { int x; };
3317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318 static char *e (p, i)
3319      char **p;
3320      int i;
3321 {
3322   return p[i];
3323 }
3324 static char *f (char * (*g) (char **, int), char **p, ...)
3325 {
3326   char *s;
3327   va_list v;
3328   va_start (v,p);
3329   s = g (p, va_arg (v,int));
3330   va_end (v);
3331   return s;
3332 }
3333
3334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3335    function prototypes and stuff, but not '\xHH' hex character constants.
3336    These don't provoke an error unfortunately, instead are silently treated
3337    as 'x'.  The following induces an error, until -std is added to get
3338    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3339    array size at least.  It's necessary to write '\x00'==0 to get something
3340    that's true only with -std.  */
3341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3342
3343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344    inside strings and character constants.  */
3345 #define FOO(x) 'x'
3346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3347
3348 int test (int i, double x);
3349 struct s1 {int (*f) (int a);};
3350 struct s2 {int (*f) (double a);};
3351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3352 int argc;
3353 char **argv;
3354 int
3355 main ()
3356 {
3357 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3358   ;
3359   return 0;
3360 }
3361 _ACEOF
3362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3364 do
3365   CC="$ac_save_CC $ac_arg"
3366   if ac_fn_c_try_compile "$LINENO"; then :
3367   ac_cv_prog_cc_c89=$ac_arg
3368 fi
3369 rm -f core conftest.err conftest.$ac_objext
3370   test "x$ac_cv_prog_cc_c89" != "xno" && break
3371 done
3372 rm -f conftest.$ac_ext
3373 CC=$ac_save_CC
3374
3375 fi
3376 # AC_CACHE_VAL
3377 case "x$ac_cv_prog_cc_c89" in
3378   x)
3379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3380 $as_echo "none needed" >&6; } ;;
3381   xno)
3382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3383 $as_echo "unsupported" >&6; } ;;
3384   *)
3385     CC="$CC $ac_cv_prog_cc_c89"
3386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3387 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3388 esac
3389 if test "x$ac_cv_prog_cc_c89" != xno; then :
3390
3391 fi
3392
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398
3399 ac_ext=cpp
3400 ac_cpp='$CXXCPP $CPPFLAGS'
3401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3404 if test -z "$CXX"; then
3405   if test -n "$CCC"; then
3406     CXX=$CCC
3407   else
3408     if test -n "$ac_tool_prefix"; then
3409   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3410   do
3411     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_CXX+:} false; then :
3416   $as_echo_n "(cached) " >&6
3417 else
3418   if test -n "$CXX"; then
3419   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424   IFS=$as_save_IFS
3425   test -z "$as_dir" && as_dir=.
3426     for ac_exec_ext in '' $ac_executable_extensions; do
3427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430     break 2
3431   fi
3432 done
3433   done
3434 IFS=$as_save_IFS
3435
3436 fi
3437 fi
3438 CXX=$ac_cv_prog_CXX
3439 if test -n "$CXX"; then
3440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3441 $as_echo "$CXX" >&6; }
3442 else
3443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 fi
3446
3447
3448     test -n "$CXX" && break
3449   done
3450 fi
3451 if test -z "$CXX"; then
3452   ac_ct_CXX=$CXX
3453   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3454 do
3455   # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy $ac_prog; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3460   $as_echo_n "(cached) " >&6
3461 else
3462   if test -n "$ac_ct_CXX"; then
3463   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468   IFS=$as_save_IFS
3469   test -z "$as_dir" && as_dir=.
3470     for ac_exec_ext in '' $ac_executable_extensions; do
3471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472     ac_cv_prog_ac_ct_CXX="$ac_prog"
3473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474     break 2
3475   fi
3476 done
3477   done
3478 IFS=$as_save_IFS
3479
3480 fi
3481 fi
3482 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3483 if test -n "$ac_ct_CXX"; then
3484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3485 $as_echo "$ac_ct_CXX" >&6; }
3486 else
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3489 fi
3490
3491
3492   test -n "$ac_ct_CXX" && break
3493 done
3494
3495   if test "x$ac_ct_CXX" = x; then
3496     CXX="g++"
3497   else
3498     case $cross_compiling:$ac_tool_warned in
3499 yes:)
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502 ac_tool_warned=yes ;;
3503 esac
3504     CXX=$ac_ct_CXX
3505   fi
3506 fi
3507
3508   fi
3509 fi
3510 # Provide some information about the compiler.
3511 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3512 set X $ac_compile
3513 ac_compiler=$2
3514 for ac_option in --version -v -V -qversion; do
3515   { { ac_try="$ac_compiler $ac_option >&5"
3516 case "(($ac_try" in
3517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518   *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3523   ac_status=$?
3524   if test -s conftest.err; then
3525     sed '10a\
3526 ... rest of stderr output deleted ...
3527          10q' conftest.err >conftest.er1
3528     cat conftest.er1 >&5
3529   fi
3530   rm -f conftest.er1 conftest.err
3531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532   test $ac_status = 0; }
3533 done
3534
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3536 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3537 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h.  */
3542
3543 int
3544 main ()
3545 {
3546 #ifndef __GNUC__
3547        choke me
3548 #endif
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 if ac_fn_cxx_try_compile "$LINENO"; then :
3555   ac_compiler_gnu=yes
3556 else
3557   ac_compiler_gnu=no
3558 fi
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3561
3562 fi
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3564 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3565 if test $ac_compiler_gnu = yes; then
3566   GXX=yes
3567 else
3568   GXX=
3569 fi
3570 ac_test_CXXFLAGS=${CXXFLAGS+set}
3571 ac_save_CXXFLAGS=$CXXFLAGS
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3573 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3574 if ${ac_cv_prog_cxx_g+:} false; then :
3575   $as_echo_n "(cached) " >&6
3576 else
3577   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3578    ac_cxx_werror_flag=yes
3579    ac_cv_prog_cxx_g=no
3580    CXXFLAGS="-g"
3581    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h.  */
3583
3584 int
3585 main ()
3586 {
3587
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 if ac_fn_cxx_try_compile "$LINENO"; then :
3593   ac_cv_prog_cxx_g=yes
3594 else
3595   CXXFLAGS=""
3596       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h.  */
3598
3599 int
3600 main ()
3601 {
3602
3603   ;
3604   return 0;
3605 }
3606 _ACEOF
3607 if ac_fn_cxx_try_compile "$LINENO"; then :
3608
3609 else
3610   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3611          CXXFLAGS="-g"
3612          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h.  */
3614
3615 int
3616 main ()
3617 {
3618
3619   ;
3620   return 0;
3621 }
3622 _ACEOF
3623 if ac_fn_cxx_try_compile "$LINENO"; then :
3624   ac_cv_prog_cxx_g=yes
3625 fi
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 fi
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629 fi
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3632 fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3634 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3635 if test "$ac_test_CXXFLAGS" = set; then
3636   CXXFLAGS=$ac_save_CXXFLAGS
3637 elif test $ac_cv_prog_cxx_g = yes; then
3638   if test "$GXX" = yes; then
3639     CXXFLAGS="-g -O2"
3640   else
3641     CXXFLAGS="-g"
3642   fi
3643 else
3644   if test "$GXX" = yes; then
3645     CXXFLAGS="-O2"
3646   else
3647     CXXFLAGS=
3648   fi
3649 fi
3650 ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655
3656
3657
3658 ac_ext=c
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3664 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3665 # On Suns, sometimes $CPP names a directory.
3666 if test -n "$CPP" && test -d "$CPP"; then
3667   CPP=
3668 fi
3669 if test -z "$CPP"; then
3670   if ${ac_cv_prog_CPP+:} false; then :
3671   $as_echo_n "(cached) " >&6
3672 else
3673       # Double quotes because CPP needs to be expanded
3674     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3675     do
3676       ac_preproc_ok=false
3677 for ac_c_preproc_warn_flag in '' yes
3678 do
3679   # Use a header file that comes with gcc, so configuring glibc
3680   # with a fresh cross-compiler works.
3681   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3682   # <limits.h> exists even on freestanding compilers.
3683   # On the NeXT, cc -E runs the code through the compiler's parser,
3684   # not just through cpp. "Syntax error" is here to catch this case.
3685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h.  */
3687 #ifdef __STDC__
3688 # include <limits.h>
3689 #else
3690 # include <assert.h>
3691 #endif
3692                      Syntax error
3693 _ACEOF
3694 if ac_fn_c_try_cpp "$LINENO"; then :
3695
3696 else
3697   # Broken: fails on valid input.
3698 continue
3699 fi
3700 rm -f conftest.err conftest.i conftest.$ac_ext
3701
3702   # OK, works on sane cases.  Now check whether nonexistent headers
3703   # can be detected and how.
3704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h.  */
3706 #include <ac_nonexistent.h>
3707 _ACEOF
3708 if ac_fn_c_try_cpp "$LINENO"; then :
3709   # Broken: success on invalid input.
3710 continue
3711 else
3712   # Passes both tests.
3713 ac_preproc_ok=:
3714 break
3715 fi
3716 rm -f conftest.err conftest.i conftest.$ac_ext
3717
3718 done
3719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3720 rm -f conftest.i conftest.err conftest.$ac_ext
3721 if $ac_preproc_ok; then :
3722   break
3723 fi
3724
3725     done
3726     ac_cv_prog_CPP=$CPP
3727
3728 fi
3729   CPP=$ac_cv_prog_CPP
3730 else
3731   ac_cv_prog_CPP=$CPP
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3734 $as_echo "$CPP" >&6; }
3735 ac_preproc_ok=false
3736 for ac_c_preproc_warn_flag in '' yes
3737 do
3738   # Use a header file that comes with gcc, so configuring glibc
3739   # with a fresh cross-compiler works.
3740   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3741   # <limits.h> exists even on freestanding compilers.
3742   # On the NeXT, cc -E runs the code through the compiler's parser,
3743   # not just through cpp. "Syntax error" is here to catch this case.
3744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h.  */
3746 #ifdef __STDC__
3747 # include <limits.h>
3748 #else
3749 # include <assert.h>
3750 #endif
3751                      Syntax error
3752 _ACEOF
3753 if ac_fn_c_try_cpp "$LINENO"; then :
3754
3755 else
3756   # Broken: fails on valid input.
3757 continue
3758 fi
3759 rm -f conftest.err conftest.i conftest.$ac_ext
3760
3761   # OK, works on sane cases.  Now check whether nonexistent headers
3762   # can be detected and how.
3763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h.  */
3765 #include <ac_nonexistent.h>
3766 _ACEOF
3767 if ac_fn_c_try_cpp "$LINENO"; then :
3768   # Broken: success on invalid input.
3769 continue
3770 else
3771   # Passes both tests.
3772 ac_preproc_ok=:
3773 break
3774 fi
3775 rm -f conftest.err conftest.i conftest.$ac_ext
3776
3777 done
3778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3779 rm -f conftest.i conftest.err conftest.$ac_ext
3780 if $ac_preproc_ok; then :
3781
3782 else
3783   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3786 See \`config.log' for more details" "$LINENO" 5; }
3787 fi
3788
3789 ac_ext=c
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794
3795
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3797 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3798 if ${ac_cv_path_GREP+:} false; then :
3799   $as_echo_n "(cached) " >&6
3800 else
3801   if test -z "$GREP"; then
3802   ac_path_GREP_found=false
3803   # Loop through the user's path and test for each of PROGNAME-LIST
3804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3806 do
3807   IFS=$as_save_IFS
3808   test -z "$as_dir" && as_dir=.
3809     for ac_prog in grep ggrep; do
3810     for ac_exec_ext in '' $ac_executable_extensions; do
3811       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3812       as_fn_executable_p "$ac_path_GREP" || continue
3813 # Check for GNU ac_path_GREP and select it if it is found.
3814   # Check for GNU $ac_path_GREP
3815 case `"$ac_path_GREP" --version 2>&1` in
3816 *GNU*)
3817   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3818 *)
3819   ac_count=0
3820   $as_echo_n 0123456789 >"conftest.in"
3821   while :
3822   do
3823     cat "conftest.in" "conftest.in" >"conftest.tmp"
3824     mv "conftest.tmp" "conftest.in"
3825     cp "conftest.in" "conftest.nl"
3826     $as_echo 'GREP' >> "conftest.nl"
3827     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3828     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3829     as_fn_arith $ac_count + 1 && ac_count=$as_val
3830     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3831       # Best one so far, save it but keep looking for a better one
3832       ac_cv_path_GREP="$ac_path_GREP"
3833       ac_path_GREP_max=$ac_count
3834     fi
3835     # 10*(2^10) chars as input seems more than enough
3836     test $ac_count -gt 10 && break
3837   done
3838   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3839 esac
3840
3841       $ac_path_GREP_found && break 3
3842     done
3843   done
3844   done
3845 IFS=$as_save_IFS
3846   if test -z "$ac_cv_path_GREP"; then
3847     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3848   fi
3849 else
3850   ac_cv_path_GREP=$GREP
3851 fi
3852
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3855 $as_echo "$ac_cv_path_GREP" >&6; }
3856  GREP="$ac_cv_path_GREP"
3857
3858
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3860 $as_echo_n "checking for egrep... " >&6; }
3861 if ${ac_cv_path_EGREP+:} false; then :
3862   $as_echo_n "(cached) " >&6
3863 else
3864   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3865    then ac_cv_path_EGREP="$GREP -E"
3866    else
3867      if test -z "$EGREP"; then
3868   ac_path_EGREP_found=false
3869   # Loop through the user's path and test for each of PROGNAME-LIST
3870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872 do
3873   IFS=$as_save_IFS
3874   test -z "$as_dir" && as_dir=.
3875     for ac_prog in egrep; do
3876     for ac_exec_ext in '' $ac_executable_extensions; do
3877       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3878       as_fn_executable_p "$ac_path_EGREP" || continue
3879 # Check for GNU ac_path_EGREP and select it if it is found.
3880   # Check for GNU $ac_path_EGREP
3881 case `"$ac_path_EGREP" --version 2>&1` in
3882 *GNU*)
3883   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3884 *)
3885   ac_count=0
3886   $as_echo_n 0123456789 >"conftest.in"
3887   while :
3888   do
3889     cat "conftest.in" "conftest.in" >"conftest.tmp"
3890     mv "conftest.tmp" "conftest.in"
3891     cp "conftest.in" "conftest.nl"
3892     $as_echo 'EGREP' >> "conftest.nl"
3893     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3894     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3895     as_fn_arith $ac_count + 1 && ac_count=$as_val
3896     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3897       # Best one so far, save it but keep looking for a better one
3898       ac_cv_path_EGREP="$ac_path_EGREP"
3899       ac_path_EGREP_max=$ac_count
3900     fi
3901     # 10*(2^10) chars as input seems more than enough
3902     test $ac_count -gt 10 && break
3903   done
3904   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3905 esac
3906
3907       $ac_path_EGREP_found && break 3
3908     done
3909   done
3910   done
3911 IFS=$as_save_IFS
3912   if test -z "$ac_cv_path_EGREP"; then
3913     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3914   fi
3915 else
3916   ac_cv_path_EGREP=$EGREP
3917 fi
3918
3919    fi
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3922 $as_echo "$ac_cv_path_EGREP" >&6; }
3923  EGREP="$ac_cv_path_EGREP"
3924
3925
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3927 $as_echo_n "checking for ANSI C header files... " >&6; }
3928 if ${ac_cv_header_stdc+:} false; then :
3929   $as_echo_n "(cached) " >&6
3930 else
3931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h.  */
3933 #include <stdlib.h>
3934 #include <stdarg.h>
3935 #include <string.h>
3936 #include <float.h>
3937
3938 int
3939 main ()
3940 {
3941
3942   ;
3943   return 0;
3944 }
3945 _ACEOF
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947   ac_cv_header_stdc=yes
3948 else
3949   ac_cv_header_stdc=no
3950 fi
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952
3953 if test $ac_cv_header_stdc = yes; then
3954   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h.  */
3957 #include <string.h>
3958
3959 _ACEOF
3960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3961   $EGREP "memchr" >/dev/null 2>&1; then :
3962
3963 else
3964   ac_cv_header_stdc=no
3965 fi
3966 rm -f conftest*
3967
3968 fi
3969
3970 if test $ac_cv_header_stdc = yes; then
3971   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h.  */
3974 #include <stdlib.h>
3975
3976 _ACEOF
3977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3978   $EGREP "free" >/dev/null 2>&1; then :
3979
3980 else
3981   ac_cv_header_stdc=no
3982 fi
3983 rm -f conftest*
3984
3985 fi
3986
3987 if test $ac_cv_header_stdc = yes; then
3988   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3989   if test "$cross_compiling" = yes; then :
3990   :
3991 else
3992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h.  */
3994 #include <ctype.h>
3995 #include <stdlib.h>
3996 #if ((' ' & 0x0FF) == 0x020)
3997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3999 #else
4000 # define ISLOWER(c) \
4001                    (('a' <= (c) && (c) <= 'i') \
4002                      || ('j' <= (c) && (c) <= 'r') \
4003                      || ('s' <= (c) && (c) <= 'z'))
4004 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4005 #endif
4006
4007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4008 int
4009 main ()
4010 {
4011   int i;
4012   for (i = 0; i < 256; i++)
4013     if (XOR (islower (i), ISLOWER (i))
4014         || toupper (i) != TOUPPER (i))
4015       return 2;
4016   return 0;
4017 }
4018 _ACEOF
4019 if ac_fn_c_try_run "$LINENO"; then :
4020
4021 else
4022   ac_cv_header_stdc=no
4023 fi
4024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4025   conftest.$ac_objext conftest.beam conftest.$ac_ext
4026 fi
4027
4028 fi
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4031 $as_echo "$ac_cv_header_stdc" >&6; }
4032 if test $ac_cv_header_stdc = yes; then
4033
4034 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4035
4036 fi
4037
4038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4039 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4040                   inttypes.h stdint.h unistd.h
4041 do :
4042   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4043 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4044 "
4045 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4046   cat >>confdefs.h <<_ACEOF
4047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4048 _ACEOF
4049
4050 fi
4051
4052 done
4053
4054
4055
4056   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4057 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4058   MINIX=yes
4059 else
4060   MINIX=
4061 fi
4062
4063
4064   if test "$MINIX" = yes; then
4065
4066 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4067
4068
4069 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4070
4071
4072 $as_echo "#define _MINIX 1" >>confdefs.h
4073
4074   fi
4075
4076
4077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4078 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4079 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4080   $as_echo_n "(cached) " >&6
4081 else
4082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h.  */
4084
4085 #         define __EXTENSIONS__ 1
4086           $ac_includes_default
4087 int
4088 main ()
4089 {
4090
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096   ac_cv_safe_to_define___extensions__=yes
4097 else
4098   ac_cv_safe_to_define___extensions__=no
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 fi
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4103 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4104   test $ac_cv_safe_to_define___extensions__ = yes &&
4105     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4106
4107   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4108
4109   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4110
4111   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4112
4113   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4114
4115
4116
4117
4118 if test $ac_cv_c_compiler_gnu = yes; then
4119     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4120 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4121 if ${ac_cv_prog_gcc_traditional+:} false; then :
4122   $as_echo_n "(cached) " >&6
4123 else
4124     ac_pattern="Autoconf.*'x'"
4125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h.  */
4127 #include <sgtty.h>
4128 Autoconf TIOCGETP
4129 _ACEOF
4130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4131   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4132   ac_cv_prog_gcc_traditional=yes
4133 else
4134   ac_cv_prog_gcc_traditional=no
4135 fi
4136 rm -f conftest*
4137
4138
4139   if test $ac_cv_prog_gcc_traditional = no; then
4140     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h.  */
4142 #include <termio.h>
4143 Autoconf TCGETA
4144 _ACEOF
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4147   ac_cv_prog_gcc_traditional=yes
4148 fi
4149 rm -f conftest*
4150
4151   fi
4152 fi
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4154 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4155   if test $ac_cv_prog_gcc_traditional = yes; then
4156     CC="$CC -traditional"
4157   fi
4158 fi
4159
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4161 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4162 if ${ac_cv_prog_suncc+:} false; then :
4163   $as_echo_n "(cached) " >&6
4164 else
4165   cat > conftest.c <<EOF
4166 #ifdef __SUNPRO_C
4167   yes;
4168 #endif
4169 EOF
4170 if { ac_try='${CC-cc} -E conftest.c'
4171   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4172   (eval $ac_try) 2>&5
4173   ac_status=$?
4174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4175   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4176   ac_cv_prog_suncc=yes
4177 else
4178   ac_cv_prog_suncc=no
4179 fi
4180 fi
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4182 $as_echo "$ac_cv_prog_suncc" >&6; }
4183 if test -n "$ac_tool_prefix"; then
4184   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4185 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if ${ac_cv_prog_RANLIB+:} false; then :
4189   $as_echo_n "(cached) " >&6
4190 else
4191   if test -n "$RANLIB"; then
4192   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4196 do
4197   IFS=$as_save_IFS
4198   test -z "$as_dir" && as_dir=.
4199     for ac_exec_ext in '' $ac_executable_extensions; do
4200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203     break 2
4204   fi
4205 done
4206   done
4207 IFS=$as_save_IFS
4208
4209 fi
4210 fi
4211 RANLIB=$ac_cv_prog_RANLIB
4212 if test -n "$RANLIB"; then
4213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4214 $as_echo "$RANLIB" >&6; }
4215 else
4216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4218 fi
4219
4220
4221 fi
4222 if test -z "$ac_cv_prog_RANLIB"; then
4223   ac_ct_RANLIB=$RANLIB
4224   # Extract the first word of "ranlib", so it can be a program name with args.
4225 set dummy ranlib; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4229   $as_echo_n "(cached) " >&6
4230 else
4231   if test -n "$ac_ct_RANLIB"; then
4232   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237   IFS=$as_save_IFS
4238   test -z "$as_dir" && as_dir=.
4239     for ac_exec_ext in '' $ac_executable_extensions; do
4240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241     ac_cv_prog_ac_ct_RANLIB="ranlib"
4242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243     break 2
4244   fi
4245 done
4246   done
4247 IFS=$as_save_IFS
4248
4249 fi
4250 fi
4251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4252 if test -n "$ac_ct_RANLIB"; then
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4254 $as_echo "$ac_ct_RANLIB" >&6; }
4255 else
4256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4258 fi
4259
4260   if test "x$ac_ct_RANLIB" = x; then
4261     RANLIB=":"
4262   else
4263     case $cross_compiling:$ac_tool_warned in
4264 yes:)
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267 ac_tool_warned=yes ;;
4268 esac
4269     RANLIB=$ac_ct_RANLIB
4270   fi
4271 else
4272   RANLIB="$ac_cv_prog_RANLIB"
4273 fi
4274
4275
4276
4277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4278 $as_echo_n "checking if compiler is clang... " >&6; }
4279 if ${ax_cv_cc_clang+:} false; then :
4280   $as_echo_n "(cached) " >&6
4281 else
4282
4283
4284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h.  */
4286
4287 int
4288 main ()
4289 {
4290
4291     #ifndef __clang__
4292          not clang
4293     #endif
4294
4295   ;
4296   return 0;
4297 }
4298 _ACEOF
4299 if ac_fn_c_try_compile "$LINENO"; then :
4300   ax_cv_cc_clang=yes
4301 else
4302   ax_cv_cc_clang=no
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4308 $as_echo "$ax_cv_cc_clang" >&6; }
4309
4310 if test "x$ax_cv_cc_clang" = "xyes"; then
4311   clang_path="$CC"
4312
4313 else
4314   clang_path=""
4315
4316 fi
4317
4318
4319 if test "x$GCC" = "xyes"; then
4320   CFLAGS="$CFLAGS -Wall -std=c99 -D_GNU_SOURCE"
4321 fi
4322
4323
4324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4325 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4326 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4327   $as_echo_n "(cached) " >&6
4328 else
4329
4330
4331     CFLAGS_SAVED=$CFLAGS
4332     CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4333
4334     ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
4340     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h.  */
4342
4343 int
4344 main ()
4345 {
4346 return 0;
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352   ax_cv_cc_qunused_arguments_flag="yes"
4353 else
4354   ax_cv_cc_qunused_arguments_flag="no"
4355 fi
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357     ac_ext=c
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362
4363
4364     CFLAGS="$CFLAGS_SAVED"
4365
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4368 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4369
4370 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4371   CFLAGS="$CFLAGS -Qunused-arguments"
4372   LDFLAGS="$LDFLAGS -Qunused-arguments"
4373 fi
4374
4375 # Check whether --enable-largefile was given.
4376 if test "${enable_largefile+set}" = set; then :
4377   enableval=$enable_largefile;
4378 fi
4379
4380 if test "$enable_largefile" != no; then
4381
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4383 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4384 if ${ac_cv_sys_largefile_CC+:} false; then :
4385   $as_echo_n "(cached) " >&6
4386 else
4387   ac_cv_sys_largefile_CC=no
4388      if test "$GCC" != yes; then
4389        ac_save_CC=$CC
4390        while :; do
4391          # IRIX 6.2 and later do not support large files by default,
4392          # so use the C compiler's -n32 option if that helps.
4393          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h.  */
4395 #include <sys/types.h>
4396  /* Check that off_t can represent 2**63 - 1 correctly.
4397     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4398     since some C++ compilers masquerading as C compilers
4399     incorrectly reject 9223372036854775807.  */
4400 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4401   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4402                        && LARGE_OFF_T % 2147483647 == 1)
4403                       ? 1 : -1];
4404 int
4405 main ()
4406 {
4407
4408   ;
4409   return 0;
4410 }
4411 _ACEOF
4412          if ac_fn_c_try_compile "$LINENO"; then :
4413   break
4414 fi
4415 rm -f core conftest.err conftest.$ac_objext
4416          CC="$CC -n32"
4417          if ac_fn_c_try_compile "$LINENO"; then :
4418   ac_cv_sys_largefile_CC=' -n32'; break
4419 fi
4420 rm -f core conftest.err conftest.$ac_objext
4421          break
4422        done
4423        CC=$ac_save_CC
4424        rm -f conftest.$ac_ext
4425     fi
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4428 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4429   if test "$ac_cv_sys_largefile_CC" != no; then
4430     CC=$CC$ac_cv_sys_largefile_CC
4431   fi
4432
4433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4434 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4435 if ${ac_cv_sys_file_offset_bits+:} false; then :
4436   $as_echo_n "(cached) " >&6
4437 else
4438   while :; do
4439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h.  */
4441 #include <sys/types.h>
4442  /* Check that off_t can represent 2**63 - 1 correctly.
4443     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4444     since some C++ compilers masquerading as C compilers
4445     incorrectly reject 9223372036854775807.  */
4446 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4447   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4448                        && LARGE_OFF_T % 2147483647 == 1)
4449                       ? 1 : -1];
4450 int
4451 main ()
4452 {
4453
4454   ;
4455   return 0;
4456 }
4457 _ACEOF
4458 if ac_fn_c_try_compile "$LINENO"; then :
4459   ac_cv_sys_file_offset_bits=no; break
4460 fi
4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h.  */
4464 #define _FILE_OFFSET_BITS 64
4465 #include <sys/types.h>
4466  /* Check that off_t can represent 2**63 - 1 correctly.
4467     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4468     since some C++ compilers masquerading as C compilers
4469     incorrectly reject 9223372036854775807.  */
4470 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4471   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4472                        && LARGE_OFF_T % 2147483647 == 1)
4473                       ? 1 : -1];
4474 int
4475 main ()
4476 {
4477
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 if ac_fn_c_try_compile "$LINENO"; then :
4483   ac_cv_sys_file_offset_bits=64; break
4484 fi
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486   ac_cv_sys_file_offset_bits=unknown
4487   break
4488 done
4489 fi
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4491 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4492 case $ac_cv_sys_file_offset_bits in #(
4493   no | unknown) ;;
4494   *)
4495 cat >>confdefs.h <<_ACEOF
4496 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4497 _ACEOF
4498 ;;
4499 esac
4500 rm -rf conftest*
4501   if test $ac_cv_sys_file_offset_bits = unknown; then
4502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4503 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4504 if ${ac_cv_sys_large_files+:} false; then :
4505   $as_echo_n "(cached) " >&6
4506 else
4507   while :; do
4508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h.  */
4510 #include <sys/types.h>
4511  /* Check that off_t can represent 2**63 - 1 correctly.
4512     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4513     since some C++ compilers masquerading as C compilers
4514     incorrectly reject 9223372036854775807.  */
4515 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4516   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4517                        && LARGE_OFF_T % 2147483647 == 1)
4518                       ? 1 : -1];
4519 int
4520 main ()
4521 {
4522
4523   ;
4524   return 0;
4525 }
4526 _ACEOF
4527 if ac_fn_c_try_compile "$LINENO"; then :
4528   ac_cv_sys_large_files=no; break
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h.  */
4533 #define _LARGE_FILES 1
4534 #include <sys/types.h>
4535  /* Check that off_t can represent 2**63 - 1 correctly.
4536     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4537     since some C++ compilers masquerading as C compilers
4538     incorrectly reject 9223372036854775807.  */
4539 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4540   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4541                        && LARGE_OFF_T % 2147483647 == 1)
4542                       ? 1 : -1];
4543 int
4544 main ()
4545 {
4546
4547   ;
4548   return 0;
4549 }
4550 _ACEOF
4551 if ac_fn_c_try_compile "$LINENO"; then :
4552   ac_cv_sys_large_files=1; break
4553 fi
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555   ac_cv_sys_large_files=unknown
4556   break
4557 done
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4560 $as_echo "$ac_cv_sys_large_files" >&6; }
4561 case $ac_cv_sys_large_files in #(
4562   no | unknown) ;;
4563   *)
4564 cat >>confdefs.h <<_ACEOF
4565 #define _LARGE_FILES $ac_cv_sys_large_files
4566 _ACEOF
4567 ;;
4568 esac
4569 rm -rf conftest*
4570   fi
4571
4572
4573 fi
4574
4575
4576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4577 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4578 if ${ac_cv_c_bigendian+:} false; then :
4579   $as_echo_n "(cached) " >&6
4580 else
4581   ac_cv_c_bigendian=unknown
4582     # See if we're dealing with a universal compiler.
4583     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h.  */
4585 #ifndef __APPLE_CC__
4586                not a universal capable compiler
4587              #endif
4588              typedef int dummy;
4589
4590 _ACEOF
4591 if ac_fn_c_try_compile "$LINENO"; then :
4592
4593         # Check for potential -arch flags.  It is not universal unless
4594         # there are at least two -arch flags with different values.
4595         ac_arch=
4596         ac_prev=
4597         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4598          if test -n "$ac_prev"; then
4599            case $ac_word in
4600              i?86 | x86_64 | ppc | ppc64)
4601                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4602                  ac_arch=$ac_word
4603                else
4604                  ac_cv_c_bigendian=universal
4605                  break
4606                fi
4607                ;;
4608            esac
4609            ac_prev=
4610          elif test "x$ac_word" = "x-arch"; then
4611            ac_prev=arch
4612          fi
4613        done
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616     if test $ac_cv_c_bigendian = unknown; then
4617       # See if sys/param.h defines the BYTE_ORDER macro.
4618       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h.  */
4620 #include <sys/types.h>
4621              #include <sys/param.h>
4622
4623 int
4624 main ()
4625 {
4626 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4627                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4628                      && LITTLE_ENDIAN)
4629               bogus endian macros
4630              #endif
4631
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 if ac_fn_c_try_compile "$LINENO"; then :
4637   # It does; now see whether it defined to BIG_ENDIAN or not.
4638          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h.  */
4640 #include <sys/types.h>
4641                 #include <sys/param.h>
4642
4643 int
4644 main ()
4645 {
4646 #if BYTE_ORDER != BIG_ENDIAN
4647                  not big endian
4648                 #endif
4649
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 if ac_fn_c_try_compile "$LINENO"; then :
4655   ac_cv_c_bigendian=yes
4656 else
4657   ac_cv_c_bigendian=no
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 fi
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662     fi
4663     if test $ac_cv_c_bigendian = unknown; then
4664       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4665       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h.  */
4667 #include <limits.h>
4668
4669 int
4670 main ()
4671 {
4672 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4673               bogus endian macros
4674              #endif
4675
4676   ;
4677   return 0;
4678 }
4679 _ACEOF
4680 if ac_fn_c_try_compile "$LINENO"; then :
4681   # It does; now see whether it defined to _BIG_ENDIAN or not.
4682          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h.  */
4684 #include <limits.h>
4685
4686 int
4687 main ()
4688 {
4689 #ifndef _BIG_ENDIAN
4690                  not big endian
4691                 #endif
4692
4693   ;
4694   return 0;
4695 }
4696 _ACEOF
4697 if ac_fn_c_try_compile "$LINENO"; then :
4698   ac_cv_c_bigendian=yes
4699 else
4700   ac_cv_c_bigendian=no
4701 fi
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 fi
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705     fi
4706     if test $ac_cv_c_bigendian = unknown; then
4707       # Compile a test program.
4708       if test "$cross_compiling" = yes; then :
4709   # Try to guess by grepping values from an object file.
4710          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h.  */
4712 short int ascii_mm[] =
4713                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4714                 short int ascii_ii[] =
4715                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4716                 int use_ascii (int i) {
4717                   return ascii_mm[i] + ascii_ii[i];
4718                 }
4719                 short int ebcdic_ii[] =
4720                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4721                 short int ebcdic_mm[] =
4722                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4723                 int use_ebcdic (int i) {
4724                   return ebcdic_mm[i] + ebcdic_ii[i];
4725                 }
4726                 extern int foo;
4727
4728 int
4729 main ()
4730 {
4731 return use_ascii (foo) == use_ebcdic (foo);
4732   ;
4733   return 0;
4734 }
4735 _ACEOF
4736 if ac_fn_c_try_compile "$LINENO"; then :
4737   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4738               ac_cv_c_bigendian=yes
4739             fi
4740             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4741               if test "$ac_cv_c_bigendian" = unknown; then
4742                 ac_cv_c_bigendian=no
4743               else
4744                 # finding both strings is unlikely to happen, but who knows?
4745                 ac_cv_c_bigendian=unknown
4746               fi
4747             fi
4748 fi
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 else
4751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h.  */
4753 $ac_includes_default
4754 int
4755 main ()
4756 {
4757
4758              /* Are we little or big endian?  From Harbison&Steele.  */
4759              union
4760              {
4761                long int l;
4762                char c[sizeof (long int)];
4763              } u;
4764              u.l = 1;
4765              return u.c[sizeof (long int) - 1] == 1;
4766
4767   ;
4768   return 0;
4769 }
4770 _ACEOF
4771 if ac_fn_c_try_run "$LINENO"; then :
4772   ac_cv_c_bigendian=no
4773 else
4774   ac_cv_c_bigendian=yes
4775 fi
4776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4777   conftest.$ac_objext conftest.beam conftest.$ac_ext
4778 fi
4779
4780     fi
4781 fi
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4783 $as_echo "$ac_cv_c_bigendian" >&6; }
4784  case $ac_cv_c_bigendian in #(
4785    yes)
4786
4787 $as_echo "#define FR_BIG_ENDIAN 1" >>confdefs.h
4788 ;; #(
4789    no)
4790
4791 $as_echo "#define FR_LITTLE_ENDIAN 1" >>confdefs.h
4792
4793  ;; #(
4794    universal)
4795
4796 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4797
4798      ;; #(
4799    *)
4800      as_fn_error $? "unknown endianness
4801  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4802  esac
4803
4804
4805 # Extract the first word of "gmake", so it can be a program name with args.
4806 set dummy gmake; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if ${ac_cv_prog_GMAKE+:} false; then :
4810   $as_echo_n "(cached) " >&6
4811 else
4812   if test -n "$GMAKE"; then
4813   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4814 else
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4817 do
4818   IFS=$as_save_IFS
4819   test -z "$as_dir" && as_dir=.
4820     for ac_exec_ext in '' $ac_executable_extensions; do
4821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822     ac_cv_prog_GMAKE="yes"
4823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824     break 2
4825   fi
4826 done
4827   done
4828 IFS=$as_save_IFS
4829
4830   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4831 fi
4832 fi
4833 GMAKE=$ac_cv_prog_GMAKE
4834 if test -n "$GMAKE"; then
4835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4836 $as_echo "$GMAKE" >&6; }
4837 else
4838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4840 fi
4841
4842
4843 if test $GMAKE = no; then
4844   # Extract the first word of "make", so it can be a program name with args.
4845 set dummy make; ac_word=$2
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847 $as_echo_n "checking for $ac_word... " >&6; }
4848 if ${ac_cv_path_MAKE+:} false; then :
4849   $as_echo_n "(cached) " >&6
4850 else
4851   case $MAKE in
4852   [\\/]* | ?:[\\/]*)
4853   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4854   ;;
4855   *)
4856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859   IFS=$as_save_IFS
4860   test -z "$as_dir" && as_dir=.
4861     for ac_exec_ext in '' $ac_executable_extensions; do
4862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865     break 2
4866   fi
4867 done
4868   done
4869 IFS=$as_save_IFS
4870
4871   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4872   ;;
4873 esac
4874 fi
4875 MAKE=$ac_cv_path_MAKE
4876 if test -n "$MAKE"; then
4877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4878 $as_echo "$MAKE" >&6; }
4879 else
4880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4882 fi
4883
4884
4885 else
4886   # Extract the first word of "gmake", so it can be a program name with args.
4887 set dummy gmake; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if ${ac_cv_path_MAKE+:} false; then :
4891   $as_echo_n "(cached) " >&6
4892 else
4893   case $MAKE in
4894   [\\/]* | ?:[\\/]*)
4895   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4896   ;;
4897   *)
4898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901   IFS=$as_save_IFS
4902   test -z "$as_dir" && as_dir=.
4903     for ac_exec_ext in '' $ac_executable_extensions; do
4904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907     break 2
4908   fi
4909 done
4910   done
4911 IFS=$as_save_IFS
4912
4913   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4914   ;;
4915 esac
4916 fi
4917 MAKE=$ac_cv_path_MAKE
4918 if test -n "$MAKE"; then
4919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4920 $as_echo "$MAKE" >&6; }
4921 else
4922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4924 fi
4925
4926
4927 fi
4928 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4929 if test -z "$makever"; then
4930   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
4931 fi
4932
4933
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4935 $as_echo_n "checking number of system cores... " >&6; }
4936 if ${ax_cv_system_cores+:} false; then :
4937   $as_echo_n "(cached) " >&6
4938 else
4939
4940       ac_ext=c
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945
4946       if test "$cross_compiling" = yes; then :
4947   ax_cv_system_cores=
4948
4949 else
4950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h.  */
4952
4953           #include <stdio.h>
4954           #include <stdint.h>
4955           #ifdef _WIN32
4956           #  include <windows.h>
4957           #elif MACOS
4958           #  include <sys/param.h>
4959           #  include <sys/sysctl.h>
4960           #else
4961           #  include <unistd.h>
4962           #endif
4963
4964           int main (int argc, char *argv[])
4965           {
4966             uint32_t count;
4967
4968             #ifdef WIN32
4969             SYSTEM_INFO sysinfo;
4970             GetSystemInfo(&sysinfo);
4971
4972             count = sysinfo.dwNumberOfProcessors;
4973
4974             #elif MACOS
4975             int nm[2];
4976             size_t len = 4;
4977
4978             nm[0] = CTL_HW;
4979             nm[1] = HW_AVAILCPU;
4980             sysctl(nm, 2, &count, &len, NULL, 0);
4981
4982             if(count < 1) {
4983               nm[1] = HW_NCPU;
4984               sysctl(nm, 2, &count, &len, NULL, 0);
4985               if(count < 1) {
4986                 count = 1;
4987               }
4988             }
4989
4990             #else
4991             count = sysconf(_SC_NPROCESSORS_ONLN);
4992             #endif
4993
4994             return count;
4995           }
4996
4997 _ACEOF
4998 if ac_fn_c_try_run "$LINENO"; then :
4999   ax_cv_system_cores=$?
5000 else
5001   ax_cv_system_cores=$?
5002 fi
5003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5004   conftest.$ac_objext conftest.beam conftest.$ac_ext
5005 fi
5006
5007     ac_ext=c
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012
5013
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
5016 $as_echo "$ax_cv_system_cores" >&6; }
5017
5018
5019
5020
5021 # Extract the first word of "git", so it can be a program name with args.
5022 set dummy git; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_prog_GIT+:} false; then :
5026   $as_echo_n "(cached) " >&6
5027 else
5028   if test -n "$GIT"; then
5029   ac_cv_prog_GIT="$GIT" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034   IFS=$as_save_IFS
5035   test -z "$as_dir" && as_dir=.
5036     for ac_exec_ext in '' $ac_executable_extensions; do
5037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038     ac_cv_prog_GIT="yes"
5039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043   done
5044 IFS=$as_save_IFS
5045
5046   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5047 fi
5048 fi
5049 GIT=$ac_cv_prog_GIT
5050 if test -n "$GIT"; then
5051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5052 $as_echo "$GIT" >&6; }
5053 else
5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5056 fi
5057
5058
5059
5060
5061 # Check whether --enable-strict-dependencies was given.
5062 if test "${enable_strict_dependencies+set}" = set; then :
5063   enableval=$enable_strict_dependencies;
5064 fi
5065
5066
5067 # Check whether --enable-werror was given.
5068 if test "${enable_werror+set}" = set; then :
5069   enableval=$enable_werror;  case "$enableval" in
5070     no)
5071       werror=no
5072     ;;
5073     *)
5074       werror=yes
5075   esac
5076
5077 fi
5078
5079
5080 docdir='${datadir}/doc/freeradius'
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5082 $as_echo_n "checking docdir... " >&6; }
5083
5084 # Check whether --with-docdir was given.
5085 if test "${with_docdir+set}" = set; then :
5086   withval=$with_docdir;  case "$withval" in
5087   no)
5088     docdir=no
5089     ;;
5090   yes)
5091     ;;
5092   [\\/$]* | ?:[\\/]* )
5093     docdir="$withval"
5094     ;;
5095   *)
5096     as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5097     ;;
5098   esac
5099
5100 fi
5101
5102
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5104 $as_echo "$docdir" >&6; }
5105 if test "x$docdir" = xno; then
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5107 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5108 fi
5109
5110 logdir='${localstatedir}/log/radius'
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5112 $as_echo_n "checking logdir... " >&6; }
5113
5114 # Check whether --with-logdir was given.
5115 if test "${with_logdir+set}" = set; then :
5116   withval=$with_logdir;  case "$withval" in
5117   no)
5118     as_fn_error $? "Need logdir" "$LINENO" 5
5119     ;;
5120   yes)
5121     ;;
5122   [\\/$]* | ?:[\\/]* )
5123     logdir="$withval"
5124     ;;
5125   *)
5126     as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5127     ;;
5128   esac
5129
5130 fi
5131
5132
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5134 $as_echo "$logdir" >&6; }
5135
5136 radacctdir='${logdir}/radacct'
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5138 $as_echo_n "checking radacctdir... " >&6; }
5139
5140 # Check whether --with-radacctdir was given.
5141 if test "${with_radacctdir+set}" = set; then :
5142   withval=$with_radacctdir;  case "$withval" in
5143   no)
5144     as_fn_error $? "Need radacctdir" "$LINENO" 5
5145     ;;
5146   yes)
5147     ;;
5148   [\\/$]* | ?:[\\/]* )
5149     radacctdir="$withval"
5150     ;;
5151   *)
5152     as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5153     ;;
5154   esac
5155
5156 fi
5157
5158
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5160 $as_echo "$radacctdir" >&6; }
5161
5162 raddbdir='${sysconfdir}/raddb'
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5164 $as_echo_n "checking raddbdir... " >&6; }
5165
5166 # Check whether --with-raddbdir was given.
5167 if test "${with_raddbdir+set}" = set; then :
5168   withval=$with_raddbdir;  case "$withval" in
5169   no)
5170     as_fn_error $? "Need raddbdir" "$LINENO" 5
5171     ;;
5172   yes)
5173     ;;
5174   [\\/$]* | ?:[\\/]* )
5175     raddbdir="$withval"
5176     ;;
5177   *)
5178     as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5179     ;;
5180   esac
5181
5182 fi
5183
5184
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5186 $as_echo "$raddbdir" >&6; }
5187
5188 dictdir='${datarootdir}/freeradius'
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dictdir" >&5
5190 $as_echo_n "checking dictdir... " >&6; }
5191
5192 # Check whether --with-dictdir was given.
5193 if test "${with_dictdir+set}" = set; then :
5194   withval=$with_dictdir;  case "$withval" in
5195   no)
5196     as_fn_error $? "Need dictdir" "$LINENO" 5
5197     ;;
5198   yes)
5199     ;;
5200   [\\/$]* | ?:[\\/]* )
5201     dictdir="$withval"
5202     ;;
5203   *)
5204     as_fn_error $? "expected an absolute directory name for --with-dictdir: $withval" "$LINENO" 5
5205     ;;
5206   esac
5207
5208 fi
5209
5210
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dictdir" >&5
5212 $as_echo "$dictdir" >&6; }
5213
5214 modconfdir='${raddbdir}/mods-config'
5215
5216
5217 WITH_ASCEND_BINARY=yes
5218
5219 # Check whether --with-ascend-binary was given.
5220 if test "${with_ascend_binary+set}" = set; then :
5221   withval=$with_ascend_binary;  case "$withval" in
5222   yes)
5223     ;;
5224   *)
5225     WITH_ASCEND_BINARY=no
5226   esac
5227
5228 fi
5229
5230 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5231
5232 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5233
5234 fi
5235
5236 WITH_THREADS=yes
5237
5238 # Check whether --with-threads was given.
5239 if test "${with_threads+set}" = set; then :
5240   withval=$with_threads;  case "$withval" in
5241   yes)
5242     ;;
5243   *)
5244     WITH_THREADS=no
5245   esac
5246
5247 fi
5248
5249
5250 WITH_TCP=yes
5251
5252 # Check whether --with-tcp was given.
5253 if test "${with_tcp+set}" = set; then :
5254   withval=$with_tcp;  case "$withval" in
5255   yes)
5256     ;;
5257   *)
5258     WITH_TCP=no
5259   esac
5260
5261 fi
5262
5263 if test "x$WITH_TCP" = "xyes"; then
5264
5265 $as_echo "#define WITH_TCP 1" >>confdefs.h
5266
5267 fi
5268
5269 WITH_VMPS=yes
5270
5271 # Check whether --with-vmps was given.
5272 if test "${with_vmps+set}" = set; then :
5273   withval=$with_vmps;  case "$withval" in
5274   yes)
5275     ;;
5276   *)
5277     WITH_VMPS=no
5278   esac
5279
5280 fi
5281
5282 if test "x$WITH_VMPS" = "xyes"; then
5283
5284 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5285
5286 fi
5287
5288 WITH_DHCP=yes
5289
5290 # Check whether --with-dhcp was given.
5291 if test "${with_dhcp+set}" = set; then :
5292   withval=$with_dhcp;  case "$withval" in
5293   yes)
5294     ;;
5295   *)
5296     WITH_DHCP=no
5297   esac
5298
5299 fi
5300
5301 if test "x$WITH_DHCP" = "xyes"; then
5302
5303 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5304
5305 fi
5306
5307 STATIC_MODULES=
5308
5309 # Check whether --with-static_modules was given.
5310 if test "${with_static_modules+set}" = set; then :
5311   withval=$with_static_modules;
5312   for i in $withval; do
5313     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5314   done
5315
5316 fi
5317
5318
5319 USE_SHARED_LIBS=yes
5320
5321 # Check whether --with-shared-libs was given.
5322 if test "${with_shared_libs+set}" = set; then :
5323   withval=$with_shared_libs;  case "$withval" in
5324   no)
5325     USE_SHARED_LIBS=no
5326     ;;
5327   *)
5328   esac
5329
5330 fi
5331
5332
5333 MODULES=
5334
5335 # Check whether --with-modules was given.
5336 if test "${with_modules+set}" = set; then :
5337   withval=$with_modules;
5338  for i in $withval; do
5339    MODULES="$MODULES $i"
5340  done
5341
5342 fi
5343
5344
5345 EXPERIMENTAL=
5346
5347 # Check whether --with-experimental-modules was given.
5348 if test "${with_experimental_modules+set}" = set; then :
5349   withval=$with_experimental_modules;  case "$withval" in
5350   yes)
5351     EXPERIMENTAL=yes
5352     ;;
5353   no)
5354     EXPERIMENTAL=no
5355     ;;
5356   *)
5357   esac
5358
5359 fi
5360
5361
5362 WITH_UDPFROMTO=yes
5363
5364 # Check whether --with-udpfromto was given.
5365 if test "${with_udpfromto+set}" = set; then :
5366   withval=$with_udpfromto;  case "$withval" in
5367   yes)
5368     WITH_UDPFROMTO=yes
5369     ;;
5370   *)
5371     WITH_UDPFROMTO=no
5372   esac
5373
5374 fi
5375
5376
5377 if test "x$WITH_UDPFROMTO" = "xyes"; then
5378
5379 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5380
5381 fi
5382
5383
5384
5385 # Check whether --with-rlm-FOO-lib-dir was given.
5386 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5387   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
5388   *)
5389     ;;
5390   esac
5391
5392 fi
5393
5394
5395
5396 # Check whether --with-rlm-FOO-include-dir was given.
5397 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5398   withval=$with_rlm_FOO_include_dir;  case "$withval" in
5399   *)
5400     ;;
5401   esac
5402
5403 fi
5404
5405
5406 WITH_OPENSSL=yes
5407
5408 # Check whether --with-openssl was given.
5409 if test "${with_openssl+set}" = set; then :
5410   withval=$with_openssl;  case "$withval" in
5411   no)
5412     WITH_OPENSSL=no
5413     ;;
5414   *)
5415     WITH_OPENSSL=yes
5416     ;;
5417   esac
5418
5419 fi
5420
5421
5422 openssl_lib_dir=
5423
5424 # Check whether --with-openssl-lib-dir was given.
5425 if test "${with_openssl_lib_dir+set}" = set; then :
5426   withval=$with_openssl_lib_dir;  case "$withval" in
5427   *) openssl_lib_dir="$withval"
5428     ;;
5429   esac
5430
5431 fi
5432
5433
5434 openssl_include_dir=
5435
5436 # Check whether --with-openssl-include-dir was given.
5437 if test "${with_openssl_include_dir+set}" = set; then :
5438   withval=$with_openssl_include_dir;  case "$withval" in
5439   *) openssl_include_dir="$withval"
5440     ;;
5441   esac
5442
5443 fi
5444
5445
5446 # Check whether --enable-openssl-version-check was given.
5447 if test "${enable_openssl_version_check+set}" = set; then :
5448   enableval=$enable_openssl_version_check;
5449 fi
5450
5451 if test "x$enable_openssl_version_check" != "xno"; then
5452
5453 $as_echo "#define ENABLE_OPENSSL_VERSION_CHECK 1" >>confdefs.h
5454
5455   openssl_version_check_config="\
5456         #
5457         #  allow_vulnerable_openssl: Allow the server to start with
5458         #  versions of OpenSSL known to have critical vulnerabilities.
5459         #
5460         #  This check is based on the version number reported by libssl
5461         #  and may not reflect patches applied to libssl by
5462         #  distribution maintainers.
5463         #
5464         allow_vulnerable_openssl = no"
5465 else
5466   openssl_version_check_config=
5467 fi
5468
5469
5470
5471
5472 CHECKRAD=checkrad
5473 # Extract the first word of "perl", so it can be a program name with args.
5474 set dummy perl; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_path_PERL+:} false; then :
5478   $as_echo_n "(cached) " >&6
5479 else
5480   case $PERL in
5481   [\\/]* | ?:[\\/]*)
5482   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5483   ;;
5484   *)
5485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5487 do
5488   IFS=$as_save_IFS
5489   test -z "$as_dir" && as_dir=.
5490     for ac_exec_ext in '' $ac_executable_extensions; do
5491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494     break 2
5495   fi
5496 done
5497   done
5498 IFS=$as_save_IFS
5499
5500   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5501   ;;
5502 esac
5503 fi
5504 PERL=$ac_cv_path_PERL
5505 if test -n "$PERL"; then
5506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5507 $as_echo "$PERL" >&6; }
5508 else
5509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5511 fi
5512
5513
5514 if test "x$ac_cv_path_PERL" = "x"; then
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5516 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5517 fi
5518 # Extract the first word of "snmpget", so it can be a program name with args.
5519 set dummy snmpget; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_path_SNMPGET+:} false; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525   case $SNMPGET in
5526   [\\/]* | ?:[\\/]*)
5527   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5528   ;;
5529   *)
5530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 for as_dir in $PATH
5532 do
5533   IFS=$as_save_IFS
5534   test -z "$as_dir" && as_dir=.
5535     for ac_exec_ext in '' $ac_executable_extensions; do
5536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5537     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539     break 2
5540   fi
5541 done
5542   done
5543 IFS=$as_save_IFS
5544
5545   ;;
5546 esac
5547 fi
5548 SNMPGET=$ac_cv_path_SNMPGET
5549 if test -n "$SNMPGET"; then
5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5551 $as_echo "$SNMPGET" >&6; }
5552 else
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556
5557
5558 if test "x$ac_cv_path_SNMPGET" = "x"; then
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5560 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5561 fi
5562
5563 # Extract the first word of "snmpwalk", so it can be a program name with args.
5564 set dummy snmpwalk; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_path_SNMPWALK+:} false; then :
5568   $as_echo_n "(cached) " >&6
5569 else
5570   case $SNMPWALK in
5571   [\\/]* | ?:[\\/]*)
5572   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5573   ;;
5574   *)
5575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5577 do
5578   IFS=$as_save_IFS
5579   test -z "$as_dir" && as_dir=.
5580     for ac_exec_ext in '' $ac_executable_extensions; do
5581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5582     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584     break 2
5585   fi
5586 done
5587   done
5588 IFS=$as_save_IFS
5589
5590   ;;
5591 esac
5592 fi
5593 SNMPWALK=$ac_cv_path_SNMPWALK
5594 if test -n "$SNMPWALK"; then
5595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5596 $as_echo "$SNMPWALK" >&6; }
5597 else
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5600 fi
5601
5602
5603 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5604   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5605 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5606 fi
5607
5608 # Extract the first word of "rusers", so it can be a program name with args.
5609 set dummy rusers; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if ${ac_cv_path_RUSERS+:} false; then :
5613   $as_echo_n "(cached) " >&6
5614 else
5615   case $RUSERS in
5616   [\\/]* | ?:[\\/]*)
5617   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5618   ;;
5619   *)
5620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
5623   IFS=$as_save_IFS
5624   test -z "$as_dir" && as_dir=.
5625     for ac_exec_ext in '' $ac_executable_extensions; do
5626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629     break 2
5630   fi
5631 done
5632   done
5633 IFS=$as_save_IFS
5634
5635   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5636   ;;
5637 esac
5638 fi
5639 RUSERS=$ac_cv_path_RUSERS
5640 if test -n "$RUSERS"; then
5641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5642 $as_echo "$RUSERS" >&6; }
5643 else
5644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }
5646 fi
5647
5648
5649
5650 missing_dir=`cd $ac_aux_dir && pwd`
5651 # Expand $ac_aux_dir to an absolute path.
5652 am_aux_dir=`cd "$ac_aux_dir" && pwd`
5653
5654 if test x"${MISSING+set}" != xset; then
5655   case $am_aux_dir in
5656   *\ * | *\     *)
5657     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5658   *)
5659     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5660   esac
5661 fi
5662 # Use eval to expand $SHELL
5663 if eval "$MISSING --is-lightweight"; then
5664   am_missing_run="$MISSING "
5665 else
5666   am_missing_run=
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5668 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5669 fi
5670
5671
5672 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5673
5674
5675 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5676
5677
5678 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5679
5680
5681 # Extract the first word of "locate", so it can be a program name with args.
5682 set dummy locate; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_path_LOCATE+:} false; then :
5686   $as_echo_n "(cached) " >&6
5687 else
5688   case $LOCATE in
5689   [\\/]* | ?:[\\/]*)
5690   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5691   ;;
5692   *)
5693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696   IFS=$as_save_IFS
5697   test -z "$as_dir" && as_dir=.
5698     for ac_exec_ext in '' $ac_executable_extensions; do
5699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702     break 2
5703   fi
5704 done
5705   done
5706 IFS=$as_save_IFS
5707
5708   ;;
5709 esac
5710 fi
5711 LOCATE=$ac_cv_path_LOCATE
5712 if test -n "$LOCATE"; then
5713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5714 $as_echo "$LOCATE" >&6; }
5715 else
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5718 fi
5719
5720
5721 # Extract the first word of "dirname", so it can be a program name with args.
5722 set dummy dirname; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if ${ac_cv_path_DIRNAME+:} false; then :
5726   $as_echo_n "(cached) " >&6
5727 else
5728   case $DIRNAME in
5729   [\\/]* | ?:[\\/]*)
5730   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5731   ;;
5732   *)
5733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736   IFS=$as_save_IFS
5737   test -z "$as_dir" && as_dir=.
5738     for ac_exec_ext in '' $ac_executable_extensions; do
5739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742     break 2
5743   fi
5744 done
5745   done
5746 IFS=$as_save_IFS
5747
5748   ;;
5749 esac
5750 fi
5751 DIRNAME=$ac_cv_path_DIRNAME
5752 if test -n "$DIRNAME"; then
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5754 $as_echo "$DIRNAME" >&6; }
5755 else
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759
5760
5761 # Extract the first word of "grep", so it can be a program name with args.
5762 set dummy grep; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_path_GREP+:} false; then :
5766   $as_echo_n "(cached) " >&6
5767 else
5768   case $GREP in
5769   [\\/]* | ?:[\\/]*)
5770   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5771   ;;
5772   *)
5773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776   IFS=$as_save_IFS
5777   test -z "$as_dir" && as_dir=.
5778     for ac_exec_ext in '' $ac_executable_extensions; do
5779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782     break 2
5783   fi
5784 done
5785   done
5786 IFS=$as_save_IFS
5787
5788   ;;
5789 esac
5790 fi
5791 GREP=$ac_cv_path_GREP
5792 if test -n "$GREP"; then
5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5794 $as_echo "$GREP" >&6; }
5795 else
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5798 fi
5799
5800
5801
5802
5803 talloc_lib_dir=
5804
5805 # Check whether --with-talloc-lib-dir was given.
5806 if test "${with_talloc_lib_dir+set}" = set; then :
5807   withval=$with_talloc_lib_dir; case "$withval" in
5808     no)
5809       as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
5810       ;;
5811     yes)
5812       ;;
5813     *)
5814       talloc_lib_dir="$withval"
5815       ;;
5816   esac
5817 fi
5818
5819
5820 talloc_include_dir=
5821
5822 # Check whether --with-talloc-include-dir was given.
5823 if test "${with_talloc_include_dir+set}" = set; then :
5824   withval=$with_talloc_include_dir; case "$withval" in
5825     no)
5826       as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
5827       ;;
5828     yes)
5829       ;;
5830     *)
5831       talloc_include_dir="$withval"
5832       ;;
5833   esac
5834 fi
5835
5836
5837 smart_try_dir="$talloc_lib_dir"
5838
5839
5840 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
5841 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
5842
5843 old_LIBS="$LIBS"
5844 old_CPPFLAGS="$CPPFLAGS"
5845 smart_lib=
5846 smart_ldflags=
5847 smart_lib_dir=
5848
5849 if test "x$smart_try_dir" != "x"; then
5850   for try in $smart_try_dir; do
5851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5852 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5853     LIBS="-ltalloc $old_LIBS"
5854     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5855     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h.  */
5857 extern char _talloc();
5858 int
5859 main ()
5860 {
5861 _talloc()
5862   ;
5863   return 0;
5864 }
5865 _ACEOF
5866 if ac_fn_c_try_link "$LINENO"; then :
5867
5868                  smart_lib="-ltalloc"
5869                  smart_ldflags="-L$try -Wl,-rpath,$try"
5870                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5871 $as_echo "yes" >&6; }
5872                  break
5873
5874 else
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878 rm -f core conftest.err conftest.$ac_objext \
5879     conftest$ac_exeext conftest.$ac_ext
5880   done
5881   LIBS="$old_LIBS"
5882   CPPFLAGS="$old_CPPFLAGS"
5883 fi
5884
5885 if test "x$smart_lib" = "x"; then
5886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
5887 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
5888   LIBS="-ltalloc $old_LIBS"
5889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h.  */
5891 extern char _talloc();
5892 int
5893 main ()
5894 {
5895 _talloc()
5896   ;
5897   return 0;
5898 }
5899 _ACEOF
5900 if ac_fn_c_try_link "$LINENO"; then :
5901
5902                 smart_lib="-ltalloc"
5903                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5904 $as_echo "yes" >&6; }
5905
5906 else
5907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908 $as_echo "no" >&6; }
5909 fi
5910 rm -f core conftest.err conftest.$ac_objext \
5911     conftest$ac_exeext conftest.$ac_ext
5912   LIBS="$old_LIBS"
5913 fi
5914
5915 if test "x$smart_lib" = "x"; then
5916
5917
5918 if test "x$LOCATE" != "x"; then
5919         DIRS=
5920   file=libtalloc${libltdl_cv_shlibext}
5921
5922   for x in `${LOCATE} $file 2>/dev/null`; do
5923                                         base=`echo $x | sed "s%/${file}%%"`
5924     if test "x$x" = "x$base"; then
5925       continue;
5926     fi
5927
5928     dir=`${DIRNAME} $x 2>/dev/null`
5929                 exclude=`echo ${dir} | ${GREP} /home`
5930     if test "x$exclude" != "x"; then
5931       continue
5932     fi
5933
5934                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5935     if test "x$already" = "x"; then
5936       DIRS="$DIRS $dir"
5937     fi
5938   done
5939 fi
5940
5941 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5942
5943
5944
5945 if test "x$LOCATE" != "x"; then
5946         DIRS=
5947   file=libtalloc.a
5948
5949   for x in `${LOCATE} $file 2>/dev/null`; do
5950                                         base=`echo $x | sed "s%/${file}%%"`
5951     if test "x$x" = "x$base"; then
5952       continue;
5953     fi
5954
5955     dir=`${DIRNAME} $x 2>/dev/null`
5956                 exclude=`echo ${dir} | ${GREP} /home`
5957     if test "x$exclude" != "x"; then
5958       continue
5959     fi
5960
5961                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5962     if test "x$already" = "x"; then
5963       DIRS="$DIRS $dir"
5964     fi
5965   done
5966 fi
5967
5968 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5969
5970
5971   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
5972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5973 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5974     LIBS="-ltalloc $old_LIBS"
5975     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5976     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h.  */
5978 extern char _talloc();
5979 int
5980 main ()
5981 {
5982 _talloc()
5983   ;
5984   return 0;
5985 }
5986 _ACEOF
5987 if ac_fn_c_try_link "$LINENO"; then :
5988
5989                   smart_lib="-ltalloc"
5990                   smart_ldflags="-L$try -Wl,-rpath,$try"
5991                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5992 $as_echo "yes" >&6; }
5993                   break
5994
5995 else
5996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext \
6000     conftest$ac_exeext conftest.$ac_ext
6001   done
6002   LIBS="$old_LIBS"
6003   CPPFLAGS="$old_CPPFLAGS"
6004 fi
6005
6006 if test "x$smart_lib" != "x"; then
6007   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6008   LIBS="$smart_ldflags $smart_lib $old_LIBS"
6009   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6010 fi
6011
6012 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
6013   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
6014 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
6015   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
6016 fi
6017
6018 TALLOC_LIBS="${smart_lib}"
6019 TALLOC_LDFLAGS="${smart_ldflags}"
6020
6021
6022 LIBS="$old_LIBS"
6023
6024 old_CFLAGS=$CFLAGS
6025 if test "x$WITH_THREADS" = "xyes"; then
6026   if test $ac_cv_prog_suncc = "yes"; then
6027     CFLAGS="$CFLAGS -mt"
6028   fi
6029
6030   for ac_header in pthread.h
6031 do :
6032   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6033 if test "x$ac_cv_header_pthread_h" = xyes; then :
6034   cat >>confdefs.h <<_ACEOF
6035 #define HAVE_PTHREAD_H 1
6036 _ACEOF
6037
6038 else
6039
6040       WITH_THREADS="no"
6041       fail=pthread.h
6042
6043 fi
6044
6045 done
6046
6047
6048                 if test "x$WITH_THREADS" != "xno"; then
6049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6050 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6051 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6052   $as_echo_n "(cached) " >&6
6053 else
6054   ac_check_lib_save_LIBS=$LIBS
6055 LIBS="-lpthread  $LIBS"
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h.  */
6058
6059 /* Override any GCC internal prototype to avoid an error.
6060    Use char because int might match the return type of a GCC
6061    builtin and then its argument prototype would still apply.  */
6062 #ifdef __cplusplus
6063 extern "C"
6064 #endif
6065 char pthread_create ();
6066 int
6067 main ()
6068 {
6069 return pthread_create ();
6070   ;
6071   return 0;
6072 }
6073 _ACEOF
6074 if ac_fn_c_try_link "$LINENO"; then :
6075   ac_cv_lib_pthread_pthread_create=yes
6076 else
6077   ac_cv_lib_pthread_pthread_create=no
6078 fi
6079 rm -f core conftest.err conftest.$ac_objext \
6080     conftest$ac_exeext conftest.$ac_ext
6081 LIBS=$ac_check_lib_save_LIBS
6082 fi
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6084 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6085 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6086
6087         HAVE_LPTHREAD='yes'
6088         CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
6089         LIBS="-lpthread $LIBS"
6090
6091
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-pthread\"" >&5
6093 $as_echo_n "checking for the compiler flag \"-pthread\"... " >&6; }
6094 if ${ax_cv_cc_pthread_flag+:} false; then :
6095   $as_echo_n "(cached) " >&6
6096 else
6097
6098
6099     CFLAGS_SAVED=$CFLAGS
6100     CFLAGS="$CFLAGS -Werror -pthread"
6101
6102     ac_ext=c
6103 ac_cpp='$CPP $CPPFLAGS'
6104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6107
6108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h.  */
6110
6111 int
6112 main ()
6113 {
6114 return 0;
6115   ;
6116   return 0;
6117 }
6118 _ACEOF
6119 if ac_fn_c_try_compile "$LINENO"; then :
6120   ax_cv_cc_pthread_flag="yes"
6121 else
6122   ax_cv_cc_pthread_flag="no"
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125     ac_ext=c
6126 ac_cpp='$CPP $CPPFLAGS'
6127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6130
6131
6132     CFLAGS="$CFLAGS_SAVED"
6133
6134 fi
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_pthread_flag" >&5
6136 $as_echo "$ax_cv_cc_pthread_flag" >&6; }
6137
6138         if test "x$ax_cv_cc_pthread_flag" != 'xyes'; then
6139           CFLAGS="$CFLAGS -pthread"
6140         fi
6141
6142
6143 fi
6144
6145
6146                         if test "x$HAVE_LPTHREAD" != "xyes"; then
6147       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
6148 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
6149 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
6150   $as_echo_n "(cached) " >&6
6151 else
6152   ac_check_lib_save_LIBS=$LIBS
6153 LIBS="-lc_r  $LIBS"
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h.  */
6156
6157 /* Override any GCC internal prototype to avoid an error.
6158    Use char because int might match the return type of a GCC
6159    builtin and then its argument prototype would still apply.  */
6160 #ifdef __cplusplus
6161 extern "C"
6162 #endif
6163 char pthread_create ();
6164 int
6165 main ()
6166 {
6167 return pthread_create ();
6168   ;
6169   return 0;
6170 }
6171 _ACEOF
6172 if ac_fn_c_try_link "$LINENO"; then :
6173   ac_cv_lib_c_r_pthread_create=yes
6174 else
6175   ac_cv_lib_c_r_pthread_create=no
6176 fi
6177 rm -f core conftest.err conftest.$ac_objext \
6178     conftest$ac_exeext conftest.$ac_ext
6179 LIBS=$ac_check_lib_save_LIBS
6180 fi
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
6182 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
6183 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
6184
6185           CFLAGS="$CFLAGS -D_THREAD_SAFE"
6186
6187
6188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-pthread\"" >&5
6189 $as_echo_n "checking for the compiler flag \"-pthread\"... " >&6; }
6190 if ${ax_cv_cc_pthread_flag+:} false; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193
6194
6195     CFLAGS_SAVED=$CFLAGS
6196     CFLAGS="$CFLAGS -Werror -pthread"
6197
6198     ac_ext=c
6199 ac_cpp='$CPP $CPPFLAGS'
6200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6203
6204     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h.  */
6206
6207 int
6208 main ()
6209 {
6210 return 0;
6211   ;
6212   return 0;
6213 }
6214 _ACEOF
6215 if ac_fn_c_try_compile "$LINENO"; then :
6216   ax_cv_cc_pthread_flag="yes"
6217 else
6218   ax_cv_cc_pthread_flag="no"
6219 fi
6220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221     ac_ext=c
6222 ac_cpp='$CPP $CPPFLAGS'
6223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6226
6227
6228     CFLAGS="$CFLAGS_SAVED"
6229
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_pthread_flag" >&5
6232 $as_echo "$ax_cv_cc_pthread_flag" >&6; }
6233
6234           if test "x$ax_cv_cc_pthread_flag" != 'xyes'; then
6235             LIBS="-lc_r $LIBS"
6236           else
6237             CFLAGS="$CFLAGS -pthread"
6238           fi
6239
6240 else
6241    fail=-lc_r or -lpthread
6242
6243 fi
6244
6245     fi
6246   fi
6247
6248   if test "x$WITH_THREADS" != "xyes"; then
6249     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building with thread support." >&5
6250 $as_echo "$as_me: WARNING: silently not building with thread support." >&2;}
6251     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: thread support requires: $fail." >&5
6252 $as_echo "$as_me: WARNING: FAILURE: thread support requires: $fail." >&2;}
6253   else
6254
6255 $as_echo "#define WITH_THREADS 1" >>confdefs.h
6256
6257   fi
6258 fi
6259
6260 if test "x$WITH_THREADS" != "xyes"; then
6261   CFLAGS=$old_CFLAGS
6262   ac_cv_header_pthread_h="no"
6263   WITH_THREADS=no
6264 else
6265
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
6267 $as_echo_n "checking for library containing sem_init... " >&6; }
6268 if ${ac_cv_search_sem_init+:} false; then :
6269   $as_echo_n "(cached) " >&6
6270 else
6271   ac_func_search_save_LIBS=$LIBS
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h.  */
6274
6275 /* Override any GCC internal prototype to avoid an error.
6276    Use char because int might match the return type of a GCC
6277    builtin and then its argument prototype would still apply.  */
6278 #ifdef __cplusplus
6279 extern "C"
6280 #endif
6281 char sem_init ();
6282 int
6283 main ()
6284 {
6285 return sem_init ();
6286   ;
6287   return 0;
6288 }
6289 _ACEOF
6290 for ac_lib in '' pthread sem posix4 rt semaphore; do
6291   if test -z "$ac_lib"; then
6292     ac_res="none required"
6293   else
6294     ac_res=-l$ac_lib
6295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6296   fi
6297   if ac_fn_c_try_link "$LINENO"; then :
6298   ac_cv_search_sem_init=$ac_res
6299 fi
6300 rm -f core conftest.err conftest.$ac_objext \
6301     conftest$ac_exeext
6302   if ${ac_cv_search_sem_init+:} false; then :
6303   break
6304 fi
6305 done
6306 if ${ac_cv_search_sem_init+:} false; then :
6307
6308 else
6309   ac_cv_search_sem_init=no
6310 fi
6311 rm conftest.$ac_ext
6312 LIBS=$ac_func_search_save_LIBS
6313 fi
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
6315 $as_echo "$ac_cv_search_sem_init" >&6; }
6316 ac_res=$ac_cv_search_sem_init
6317 if test "$ac_res" != no; then :
6318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6319
6320 else
6321   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
6322
6323 fi
6324
6325 fi
6326
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6328 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6329 if ${ac_cv_lib_dl_dlopen+:} false; then :
6330   $as_echo_n "(cached) " >&6
6331 else
6332   ac_check_lib_save_LIBS=$LIBS
6333 LIBS="-ldl  $LIBS"
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h.  */
6336
6337 /* Override any GCC internal prototype to avoid an error.
6338    Use char because int might match the return type of a GCC
6339    builtin and then its argument prototype would still apply.  */
6340 #ifdef __cplusplus
6341 extern "C"
6342 #endif
6343 char dlopen ();
6344 int
6345 main ()
6346 {
6347 return dlopen ();
6348   ;
6349   return 0;
6350 }
6351 _ACEOF
6352 if ac_fn_c_try_link "$LINENO"; then :
6353   ac_cv_lib_dl_dlopen=yes
6354 else
6355   ac_cv_lib_dl_dlopen=no
6356 fi
6357 rm -f core conftest.err conftest.$ac_objext \
6358     conftest$ac_exeext conftest.$ac_ext
6359 LIBS=$ac_check_lib_save_LIBS
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6362 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6363 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6364   cat >>confdefs.h <<_ACEOF
6365 #define HAVE_LIBDL 1
6366 _ACEOF
6367
6368   LIBS="-ldl $LIBS"
6369
6370 fi
6371
6372
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
6374 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
6375 if ${ac_cv_lib_socket_getsockname+:} false; then :
6376   $as_echo_n "(cached) " >&6
6377 else
6378   ac_check_lib_save_LIBS=$LIBS
6379 LIBS="-lsocket  $LIBS"
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h.  */
6382
6383 /* Override any GCC internal prototype to avoid an error.
6384    Use char because int might match the return type of a GCC
6385    builtin and then its argument prototype would still apply.  */
6386 #ifdef __cplusplus
6387 extern "C"
6388 #endif
6389 char getsockname ();
6390 int
6391 main ()
6392 {
6393 return getsockname ();
6394   ;
6395   return 0;
6396 }
6397 _ACEOF
6398 if ac_fn_c_try_link "$LINENO"; then :
6399   ac_cv_lib_socket_getsockname=yes
6400 else
6401   ac_cv_lib_socket_getsockname=no
6402 fi
6403 rm -f core conftest.err conftest.$ac_objext \
6404     conftest$ac_exeext conftest.$ac_ext
6405 LIBS=$ac_check_lib_save_LIBS
6406 fi
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
6408 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
6409 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
6410   cat >>confdefs.h <<_ACEOF
6411 #define HAVE_LIBSOCKET 1
6412 _ACEOF
6413
6414   LIBS="-lsocket $LIBS"
6415
6416 fi
6417
6418
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
6420 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
6421 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
6422   $as_echo_n "(cached) " >&6
6423 else
6424   ac_check_lib_save_LIBS=$LIBS
6425 LIBS="-lresolv  $LIBS"
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h.  */
6428
6429 /* Override any GCC internal prototype to avoid an error.
6430    Use char because int might match the return type of a GCC
6431    builtin and then its argument prototype would still apply.  */
6432 #ifdef __cplusplus
6433 extern "C"
6434 #endif
6435 char inet_aton ();
6436 int
6437 main ()
6438 {
6439 return inet_aton ();
6440   ;
6441   return 0;
6442 }
6443 _ACEOF
6444 if ac_fn_c_try_link "$LINENO"; then :
6445   ac_cv_lib_resolv_inet_aton=yes
6446 else
6447   ac_cv_lib_resolv_inet_aton=no
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext \
6450     conftest$ac_exeext conftest.$ac_ext
6451 LIBS=$ac_check_lib_save_LIBS
6452 fi
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6454 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6455 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6456   cat >>confdefs.h <<_ACEOF
6457 #define HAVE_LIBRESOLV 1
6458 _ACEOF
6459
6460   LIBS="-lresolv $LIBS"
6461
6462 fi
6463
6464
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6466 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6467 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6468   $as_echo_n "(cached) " >&6
6469 else
6470   ac_check_lib_save_LIBS=$LIBS
6471 LIBS="-lnsl  $LIBS"
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h.  */
6474
6475 /* Override any GCC internal prototype to avoid an error.
6476    Use char because int might match the return type of a GCC
6477    builtin and then its argument prototype would still apply.  */
6478 #ifdef __cplusplus
6479 extern "C"
6480 #endif
6481 char inet_ntoa ();
6482 int
6483 main ()
6484 {
6485 return inet_ntoa ();
6486   ;
6487   return 0;
6488 }
6489 _ACEOF
6490 if ac_fn_c_try_link "$LINENO"; then :
6491   ac_cv_lib_nsl_inet_ntoa=yes
6492 else
6493   ac_cv_lib_nsl_inet_ntoa=no
6494 fi
6495 rm -f core conftest.err conftest.$ac_objext \
6496     conftest$ac_exeext conftest.$ac_ext
6497 LIBS=$ac_check_lib_save_LIBS
6498 fi
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6500 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6501 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6502   cat >>confdefs.h <<_ACEOF
6503 #define HAVE_LIBNSL 1
6504 _ACEOF
6505
6506   LIBS="-lnsl $LIBS"
6507
6508 fi
6509
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6511 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6512 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6513   $as_echo_n "(cached) " >&6
6514 else
6515   ac_check_lib_save_LIBS=$LIBS
6516 LIBS="-lws2_32  $LIBS"
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h.  */
6519
6520 /* Override any GCC internal prototype to avoid an error.
6521    Use char because int might match the return type of a GCC
6522    builtin and then its argument prototype would still apply.  */
6523 #ifdef __cplusplus
6524 extern "C"
6525 #endif
6526 char htonl ();
6527 int
6528 main ()
6529 {
6530 return htonl ();
6531   ;
6532   return 0;
6533 }
6534 _ACEOF
6535 if ac_fn_c_try_link "$LINENO"; then :
6536   ac_cv_lib_ws2_32_htonl=yes
6537 else
6538   ac_cv_lib_ws2_32_htonl=no
6539 fi
6540 rm -f core conftest.err conftest.$ac_objext \
6541     conftest$ac_exeext conftest.$ac_ext
6542 LIBS=$ac_check_lib_save_LIBS
6543 fi
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6545 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6546 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6547   cat >>confdefs.h <<_ACEOF
6548 #define HAVE_LIBWS2_32 1
6549 _ACEOF
6550
6551   LIBS="-lws2_32 $LIBS"
6552
6553 fi
6554
6555
6556 pcap_lib_dir=
6557
6558 # Check whether --with-pcap-lib-dir was given.
6559 if test "${with_pcap_lib_dir+set}" = set; then :
6560   withval=$with_pcap_lib_dir; case "$withval" in
6561     no)
6562       as_fn_error $? "Need pcap-lib-dir" "$LINENO" 5
6563       ;;
6564     yes)
6565       ;;
6566     *)
6567       pcap_lib_dir="$withval"
6568       ;;
6569   esac
6570 fi
6571
6572
6573 pcap_include_dir=
6574
6575 # Check whether --with-pcap-include-dir was given.
6576 if test "${with_pcap_include_dir+set}" = set; then :
6577   withval=$with_pcap_include_dir; case "$withval" in
6578     no)
6579       as_fn_error $? "Need pcap-include-dir" "$LINENO" 5
6580       ;;
6581     yes)
6582       ;;
6583     *)
6584       pcap_include_dir="$withval"
6585       ;;
6586   esac
6587 fi
6588
6589
6590 smart_try_dir="$pcap_lib_dir"
6591
6592
6593 sm_lib_safe=`echo "pcap" | sed 'y%./+-%__p_%'`
6594 sm_func_safe=`echo "pcap_open_live" | sed 'y%./+-%__p_%'`
6595
6596 old_LIBS="$LIBS"
6597 old_CPPFLAGS="$CPPFLAGS"
6598 smart_lib=
6599 smart_ldflags=
6600 smart_lib_dir=
6601
6602 if test "x$smart_try_dir" != "x"; then
6603   for try in $smart_try_dir; do
6604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6605 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6606     LIBS="-lpcap $old_LIBS"
6607     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6608     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h.  */
6610 extern char pcap_open_live();
6611 int
6612 main ()
6613 {
6614 pcap_open_live()
6615   ;
6616   return 0;
6617 }
6618 _ACEOF
6619 if ac_fn_c_try_link "$LINENO"; then :
6620
6621                  smart_lib="-lpcap"
6622                  smart_ldflags="-L$try -Wl,-rpath,$try"
6623                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6624 $as_echo "yes" >&6; }
6625                  break
6626
6627 else
6628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6630 fi
6631 rm -f core conftest.err conftest.$ac_objext \
6632     conftest$ac_exeext conftest.$ac_ext
6633   done
6634   LIBS="$old_LIBS"
6635   CPPFLAGS="$old_CPPFLAGS"
6636 fi
6637
6638 if test "x$smart_lib" = "x"; then
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6640 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6641   LIBS="-lpcap $old_LIBS"
6642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h.  */
6644 extern char pcap_open_live();
6645 int
6646 main ()
6647 {
6648 pcap_open_live()
6649   ;
6650   return 0;
6651 }
6652 _ACEOF
6653 if ac_fn_c_try_link "$LINENO"; then :
6654
6655                 smart_lib="-lpcap"
6656                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6657 $as_echo "yes" >&6; }
6658
6659 else
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6662 fi
6663 rm -f core conftest.err conftest.$ac_objext \
6664     conftest$ac_exeext conftest.$ac_ext
6665   LIBS="$old_LIBS"
6666 fi
6667
6668 if test "x$smart_lib" = "x"; then
6669
6670
6671 if test "x$LOCATE" != "x"; then
6672         DIRS=
6673   file=libpcap${libltdl_cv_shlibext}
6674
6675   for x in `${LOCATE} $file 2>/dev/null`; do
6676                                         base=`echo $x | sed "s%/${file}%%"`
6677     if test "x$x" = "x$base"; then
6678       continue;
6679     fi
6680
6681     dir=`${DIRNAME} $x 2>/dev/null`
6682                 exclude=`echo ${dir} | ${GREP} /home`
6683     if test "x$exclude" != "x"; then
6684       continue
6685     fi
6686
6687                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6688     if test "x$already" = "x"; then
6689       DIRS="$DIRS $dir"
6690     fi
6691   done
6692 fi
6693
6694 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6695
6696
6697
6698 if test "x$LOCATE" != "x"; then
6699         DIRS=
6700   file=libpcap.a
6701
6702   for x in `${LOCATE} $file 2>/dev/null`; do
6703                                         base=`echo $x | sed "s%/${file}%%"`
6704     if test "x$x" = "x$base"; then
6705       continue;
6706     fi
6707
6708     dir=`${DIRNAME} $x 2>/dev/null`
6709                 exclude=`echo ${dir} | ${GREP} /home`
6710     if test "x$exclude" != "x"; then
6711       continue
6712     fi
6713
6714                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6715     if test "x$already" = "x"; then
6716       DIRS="$DIRS $dir"
6717     fi
6718   done
6719 fi
6720
6721 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6722
6723
6724   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6726 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6727     LIBS="-lpcap $old_LIBS"
6728     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6729     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h.  */
6731 extern char pcap_open_live();
6732 int
6733 main ()
6734 {
6735 pcap_open_live()
6736   ;
6737   return 0;
6738 }
6739 _ACEOF
6740 if ac_fn_c_try_link "$LINENO"; then :
6741
6742                   smart_lib="-lpcap"
6743                   smart_ldflags="-L$try -Wl,-rpath,$try"
6744                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6745 $as_echo "yes" >&6; }
6746                   break
6747
6748 else
6749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6751 fi
6752 rm -f core conftest.err conftest.$ac_objext \
6753     conftest$ac_exeext conftest.$ac_ext
6754   done
6755   LIBS="$old_LIBS"
6756   CPPFLAGS="$old_CPPFLAGS"
6757 fi
6758
6759 if test "x$smart_lib" != "x"; then
6760   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6761   LIBS="$smart_ldflags $smart_lib $old_LIBS"
6762   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6763 fi
6764
6765 if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes"; then
6766   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener.  Use --with-pcap-lib-dir=<path>." >&5
6767 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener.  Use --with-pcap-lib-dir=<path>." >&2;}
6768 else
6769
6770 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6771
6772
6773   for ac_func in \
6774     pcap_fopen_offline \
6775     pcap_dump_fopen \
6776     pcap_create \
6777     pcap_activate
6778
6779 do :
6780   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6781 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6782 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6783   cat >>confdefs.h <<_ACEOF
6784 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6785 _ACEOF
6786
6787 fi
6788 done
6789
6790
6791   PCAP_LIBS="${smart_lib}"
6792   PCAP_LDFLAGS="${smart_ldflags}"
6793 fi
6794 LIBS="${old_LIBS}"
6795
6796 collectdclient_lib_dir=
6797
6798 # Check whether --with-collectdclient-lib-dir was given.
6799 if test "${with_collectdclient_lib_dir+set}" = set; then :
6800   withval=$with_collectdclient_lib_dir; case "$withval" in
6801     no)
6802       as_fn_error $? "Need collectdclient-lib-dir" "$LINENO" 5
6803       ;;
6804     yes)
6805       ;;
6806     *)
6807       collectdclient_lib_dir="$withval"
6808       ;;
6809   esac
6810 fi
6811
6812
6813 collectdclient_include_dir=
6814
6815 # Check whether --with-collectdclient-include-dir was given.
6816 if test "${with_collectdclient_include_dir+set}" = set; then :
6817   withval=$with_collectdclient_include_dir; case "$withval" in
6818     no)
6819       as_fn_error $? "Need collectdclient-include-dir" "$LINENO" 5
6820       ;;
6821     yes)
6822       ;;
6823     *)
6824       collectdclient_include_dir="$withval"
6825       ;;
6826   esac
6827 fi
6828
6829
6830 smart_try_dir="$collectdclient_lib_dir"
6831
6832
6833 sm_lib_safe=`echo "collectdclient" | sed 'y%./+-%__p_%'`
6834 sm_func_safe=`echo "lcc_connect" | sed 'y%./+-%__p_%'`
6835
6836 old_LIBS="$LIBS"
6837 old_CPPFLAGS="$CPPFLAGS"
6838 smart_lib=
6839 smart_ldflags=
6840 smart_lib_dir=
6841
6842 if test "x$smart_try_dir" != "x"; then
6843   for try in $smart_try_dir; do
6844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6845 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6846     LIBS="-lcollectdclient $old_LIBS"
6847     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6848     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h.  */
6850 extern char lcc_connect();
6851 int
6852 main ()
6853 {
6854 lcc_connect()
6855   ;
6856   return 0;
6857 }
6858 _ACEOF
6859 if ac_fn_c_try_link "$LINENO"; then :
6860
6861                  smart_lib="-lcollectdclient"
6862                  smart_ldflags="-L$try -Wl,-rpath,$try"
6863                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6864 $as_echo "yes" >&6; }
6865                  break
6866
6867 else
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871 rm -f core conftest.err conftest.$ac_objext \
6872     conftest$ac_exeext conftest.$ac_ext
6873   done
6874   LIBS="$old_LIBS"
6875   CPPFLAGS="$old_CPPFLAGS"
6876 fi
6877
6878 if test "x$smart_lib" = "x"; then
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient" >&5
6880 $as_echo_n "checking for lcc_connect in -lcollectdclient... " >&6; }
6881   LIBS="-lcollectdclient $old_LIBS"
6882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h.  */
6884 extern char lcc_connect();
6885 int
6886 main ()
6887 {
6888 lcc_connect()
6889   ;
6890   return 0;
6891 }
6892 _ACEOF
6893 if ac_fn_c_try_link "$LINENO"; then :
6894
6895                 smart_lib="-lcollectdclient"
6896                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6897 $as_echo "yes" >&6; }
6898
6899 else
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901 $as_echo "no" >&6; }
6902 fi
6903 rm -f core conftest.err conftest.$ac_objext \
6904     conftest$ac_exeext conftest.$ac_ext
6905   LIBS="$old_LIBS"
6906 fi
6907
6908 if test "x$smart_lib" = "x"; then
6909
6910
6911 if test "x$LOCATE" != "x"; then
6912         DIRS=
6913   file=libcollectdclient${libltdl_cv_shlibext}
6914
6915   for x in `${LOCATE} $file 2>/dev/null`; do
6916                                         base=`echo $x | sed "s%/${file}%%"`
6917     if test "x$x" = "x$base"; then
6918       continue;
6919     fi
6920
6921     dir=`${DIRNAME} $x 2>/dev/null`
6922                 exclude=`echo ${dir} | ${GREP} /home`
6923     if test "x$exclude" != "x"; then
6924       continue
6925     fi
6926
6927                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6928     if test "x$already" = "x"; then
6929       DIRS="$DIRS $dir"
6930     fi
6931   done
6932 fi
6933
6934 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6935
6936
6937
6938 if test "x$LOCATE" != "x"; then
6939         DIRS=
6940   file=libcollectdclient.a
6941
6942   for x in `${LOCATE} $file 2>/dev/null`; do
6943                                         base=`echo $x | sed "s%/${file}%%"`
6944     if test "x$x" = "x$base"; then
6945       continue;
6946     fi
6947
6948     dir=`${DIRNAME} $x 2>/dev/null`
6949                 exclude=`echo ${dir} | ${GREP} /home`
6950     if test "x$exclude" != "x"; then
6951       continue
6952     fi
6953
6954                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6955     if test "x$already" = "x"; then
6956       DIRS="$DIRS $dir"
6957     fi
6958   done
6959 fi
6960
6961 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6962
6963
6964   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6966 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6967     LIBS="-lcollectdclient $old_LIBS"
6968     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6969     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h.  */
6971 extern char lcc_connect();
6972 int
6973 main ()
6974 {
6975 lcc_connect()
6976   ;
6977   return 0;
6978 }
6979 _ACEOF
6980 if ac_fn_c_try_link "$LINENO"; then :
6981
6982                   smart_lib="-lcollectdclient"
6983                   smart_ldflags="-L$try -Wl,-rpath,$try"
6984                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6985 $as_echo "yes" >&6; }
6986                   break
6987
6988 else
6989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6991 fi
6992 rm -f core conftest.err conftest.$ac_objext \
6993     conftest$ac_exeext conftest.$ac_ext
6994   done
6995   LIBS="$old_LIBS"
6996   CPPFLAGS="$old_CPPFLAGS"
6997 fi
6998
6999 if test "x$smart_lib" != "x"; then
7000   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7001   LIBS="$smart_ldflags $smart_lib $old_LIBS"
7002   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
7003 fi
7004
7005 if test "x$ac_cv_lib_collectdclient_lcc_connect" != "xyes"; then
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&5
7007 $as_echo "$as_me: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&2;}
7008 else
7009   COLLECTDC_LIBS="${smart_lib}"
7010   COLLECTDC_LDFLAGS="${smart_ldflags}"
7011 fi
7012 LIBS="${old_LIBS}"
7013
7014 cap_lib_dir=
7015
7016 # Check whether --with-cap-lib-dir was given.
7017 if test "${with_cap_lib_dir+set}" = set; then :
7018   withval=$with_cap_lib_dir; case "$withval" in
7019     no)
7020       as_fn_error $? "Need cap-lib-dir" "$LINENO" 5
7021       ;;
7022     yes)
7023       ;;
7024     *)
7025       cap_lib_dir="$withval"
7026       ;;
7027   esac
7028 fi
7029
7030
7031 cap_include_dir=
7032
7033 # Check whether --with-cap-include-dir was given.
7034 if test "${with_cap_include_dir+set}" = set; then :
7035   withval=$with_cap_include_dir; case "$withval" in
7036     no)
7037       as_fn_error $? "Need cap-include-dir" "$LINENO" 5
7038       ;;
7039     yes)
7040       ;;
7041     *)
7042       cap_include_dir="$withval"
7043       ;;
7044   esac
7045 fi
7046
7047
7048 smart_try_dir="$cap_lib_dir"
7049
7050
7051 sm_lib_safe=`echo "cap" | sed 'y%./+-%__p_%'`
7052 sm_func_safe=`echo "cap_get_proc" | sed 'y%./+-%__p_%'`
7053
7054 old_LIBS="$LIBS"
7055 old_CPPFLAGS="$CPPFLAGS"
7056 smart_lib=
7057 smart_ldflags=
7058 smart_lib_dir=
7059
7060 if test "x$smart_try_dir" != "x"; then
7061   for try in $smart_try_dir; do
7062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5
7063 $as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; }
7064     LIBS="-lcap $old_LIBS"
7065     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7066     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h.  */
7068 extern char cap_get_proc();
7069 int
7070 main ()
7071 {
7072 cap_get_proc()
7073   ;
7074   return 0;
7075 }
7076 _ACEOF
7077 if ac_fn_c_try_link "$LINENO"; then :
7078
7079                  smart_lib="-lcap"
7080                  smart_ldflags="-L$try -Wl,-rpath,$try"
7081                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7082 $as_echo "yes" >&6; }
7083                  break
7084
7085 else
7086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7088 fi
7089 rm -f core conftest.err conftest.$ac_objext \
7090     conftest$ac_exeext conftest.$ac_ext
7091   done
7092   LIBS="$old_LIBS"
7093   CPPFLAGS="$old_CPPFLAGS"
7094 fi
7095
7096 if test "x$smart_lib" = "x"; then
7097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
7098 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
7099   LIBS="-lcap $old_LIBS"
7100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h.  */
7102 extern char cap_get_proc();
7103 int
7104 main ()
7105 {
7106 cap_get_proc()
7107   ;
7108   return 0;
7109 }
7110 _ACEOF
7111 if ac_fn_c_try_link "$LINENO"; then :
7112
7113                 smart_lib="-lcap"
7114                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7115 $as_echo "yes" >&6; }
7116
7117 else
7118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7120 fi
7121 rm -f core conftest.err conftest.$ac_objext \
7122     conftest$ac_exeext conftest.$ac_ext
7123   LIBS="$old_LIBS"
7124 fi
7125
7126 if test "x$smart_lib" = "x"; then
7127
7128
7129 if test "x$LOCATE" != "x"; then
7130         DIRS=
7131   file=libcap${libltdl_cv_shlibext}
7132
7133   for x in `${LOCATE} $file 2>/dev/null`; do
7134                                         base=`echo $x | sed "s%/${file}%%"`
7135     if test "x$x" = "x$base"; then
7136       continue;
7137     fi
7138
7139     dir=`${DIRNAME} $x 2>/dev/null`
7140                 exclude=`echo ${dir} | ${GREP} /home`
7141     if test "x$exclude" != "x"; then
7142       continue
7143     fi
7144
7145                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7146     if test "x$already" = "x"; then
7147       DIRS="$DIRS $dir"
7148     fi
7149   done
7150 fi
7151
7152 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7153
7154
7155
7156 if test "x$LOCATE" != "x"; then
7157         DIRS=
7158   file=libcap.a
7159
7160   for x in `${LOCATE} $file 2>/dev/null`; do
7161                                         base=`echo $x | sed "s%/${file}%%"`
7162     if test "x$x" = "x$base"; then
7163       continue;
7164     fi
7165
7166     dir=`${DIRNAME} $x 2>/dev/null`
7167                 exclude=`echo ${dir} | ${GREP} /home`
7168     if test "x$exclude" != "x"; then
7169       continue
7170     fi
7171
7172                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7173     if test "x$already" = "x"; then
7174       DIRS="$DIRS $dir"
7175     fi
7176   done
7177 fi
7178
7179 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7180
7181
7182   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
7183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5
7184 $as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; }
7185     LIBS="-lcap $old_LIBS"
7186     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7187     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h.  */
7189 extern char cap_get_proc();
7190 int
7191 main ()
7192 {
7193 cap_get_proc()
7194   ;
7195   return 0;
7196 }
7197 _ACEOF
7198 if ac_fn_c_try_link "$LINENO"; then :
7199
7200                   smart_lib="-lcap"
7201                   smart_ldflags="-L$try -Wl,-rpath,$try"
7202                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7203 $as_echo "yes" >&6; }
7204                   break
7205
7206 else
7207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7209 fi
7210 rm -f core conftest.err conftest.$ac_objext \
7211     conftest$ac_exeext conftest.$ac_ext
7212   done
7213   LIBS="$old_LIBS"
7214   CPPFLAGS="$old_CPPFLAGS"
7215 fi
7216
7217 if test "x$smart_lib" != "x"; then
7218   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7219   LIBS="$smart_ldflags $smart_lib $old_LIBS"
7220   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
7221 fi
7222
7223 if test "x$ac_cv_lib_cap_cap_get_proc" != "xyes"; then
7224   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cap library not found, debugger checks will not be enabled. Use --with-cap-lib-dir=<path>." >&5
7225 $as_echo "$as_me: WARNING: cap library not found, debugger checks will not be enabled. Use --with-cap-lib-dir=<path>." >&2;}
7226 else
7227
7228 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7229
7230   HAVE_LIBCAP=1
7231 fi
7232
7233
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
7235 $as_echo_n "checking for a readline compatible library... " >&6; }
7236 if ${vl_cv_lib_readline+:} false; then :
7237   $as_echo_n "(cached) " >&6
7238 else
7239
7240     ORIG_LIBS="$LIBS"
7241     for readline_lib in readline edit editline; do
7242       for termcap_lib in "" termcap curses ncurses; do
7243         if test -z "$termcap_lib"; then
7244           TRY_LIB="-l$readline_lib"
7245         else
7246           TRY_LIB="-l$readline_lib -l$termcap_lib"
7247         fi
7248         LIBS="$ORIG_LIBS $TRY_LIB"
7249         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h.  */
7251
7252 /* Override any GCC internal prototype to avoid an error.
7253    Use char because int might match the return type of a GCC
7254    builtin and then its argument prototype would still apply.  */
7255 #ifdef __cplusplus
7256 extern "C"
7257 #endif
7258 char readline ();
7259 int
7260 main ()
7261 {
7262 return readline ();
7263   ;
7264   return 0;
7265 }
7266 _ACEOF
7267 if ac_fn_c_try_link "$LINENO"; then :
7268   vl_cv_lib_readline="$TRY_LIB"
7269 fi
7270 rm -f core conftest.err conftest.$ac_objext \
7271     conftest$ac_exeext conftest.$ac_ext
7272         if test -n "$vl_cv_lib_readline"; then
7273           break
7274         fi
7275       done
7276       if test -n "$vl_cv_lib_readline"; then
7277         break
7278       fi
7279     done
7280     if test -z "$vl_cv_lib_readline"; then
7281       vl_cv_lib_readline="no"
7282       LIBS="$ORIG_LIBS"
7283     fi
7284
7285 fi
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
7287 $as_echo "$vl_cv_lib_readline" >&6; }
7288
7289   if test "$vl_cv_lib_readline" != "no"; then
7290     LIBREADLINE="$vl_cv_lib_readline"
7291
7292 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
7293
7294     for ac_header in readline.h readline/readline.h
7295 do :
7296   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7298 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7299   cat >>confdefs.h <<_ACEOF
7300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7301 _ACEOF
7302
7303 fi
7304
7305 done
7306
7307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
7308 $as_echo_n "checking whether readline supports history... " >&6; }
7309 if ${vl_cv_lib_readline_history+:} false; then :
7310   $as_echo_n "(cached) " >&6
7311 else
7312
7313       vl_cv_lib_readline_history="no"
7314       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h.  */
7316
7317 /* Override any GCC internal prototype to avoid an error.
7318    Use char because int might match the return type of a GCC
7319    builtin and then its argument prototype would still apply.  */
7320 #ifdef __cplusplus
7321 extern "C"
7322 #endif
7323 char add_history ();
7324 int
7325 main ()
7326 {
7327 return add_history ();
7328   ;
7329   return 0;
7330 }
7331 _ACEOF
7332 if ac_fn_c_try_link "$LINENO"; then :
7333   vl_cv_lib_readline_history="yes"
7334 fi
7335 rm -f core conftest.err conftest.$ac_objext \
7336     conftest$ac_exeext conftest.$ac_ext
7337
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
7340 $as_echo "$vl_cv_lib_readline_history" >&6; }
7341     if test "$vl_cv_lib_readline_history" = "yes"; then
7342
7343 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
7344
7345       for ac_header in history.h readline/history.h
7346 do :
7347   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7348 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7349 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7350   cat >>confdefs.h <<_ACEOF
7351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7352 _ACEOF
7353
7354 fi
7355
7356 done
7357
7358     fi
7359   fi
7360
7361
7362
7363
7364 smart_try_dir="$talloc_include_dir"
7365
7366
7367 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7368 old_CPPFLAGS="$CPPFLAGS"
7369 smart_include=
7370 smart_include_dir="/usr/local/include /opt/include"
7371
7372 _smart_try_dir=
7373 _smart_include_dir=
7374
7375 for _prefix in $smart_prefix ""; do
7376   for _dir in $smart_try_dir; do
7377     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
7378   done
7379
7380   for _dir in $smart_include_dir; do
7381     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
7382   done
7383 done
7384
7385 if test "x$_smart_try_dir" != "x"; then
7386   for try in $_smart_try_dir; do
7387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7388 $as_echo_n "checking for talloc.h in $try... " >&6; }
7389     CPPFLAGS="-isystem $try $old_CPPFLAGS"
7390     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h.  */
7392
7393                     #include <talloc.h>
7394 int
7395 main ()
7396 {
7397 int a = 1;
7398   ;
7399   return 0;
7400 }
7401 _ACEOF
7402 if ac_fn_c_try_compile "$LINENO"; then :
7403
7404                      smart_include="-isystem $try"
7405                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7406 $as_echo "yes" >&6; }
7407                      break
7408
7409 else
7410
7411                      smart_include=
7412                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7414
7415 fi
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417   done
7418   CPPFLAGS="$old_CPPFLAGS"
7419 fi
7420
7421 if test "x$smart_include" = "x"; then
7422   for _prefix in $smart_prefix; do
7423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/talloc.h" >&5
7424 $as_echo_n "checking for ${_prefix}/talloc.h... " >&6; }
7425
7426     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h.  */
7428
7429                     #include <talloc.h>
7430 int
7431 main ()
7432 {
7433 int a = 1;
7434   ;
7435   return 0;
7436 }
7437 _ACEOF
7438 if ac_fn_c_try_compile "$LINENO"; then :
7439
7440                      smart_include="-isystem ${_prefix}/"
7441                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7442 $as_echo "yes" >&6; }
7443                      break
7444
7445 else
7446
7447                      smart_include=
7448                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450
7451 fi
7452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453   done
7454 fi
7455
7456 if test "x$smart_include" = "x"; then
7457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7458 $as_echo_n "checking for talloc.h... " >&6; }
7459
7460     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h.  */
7462
7463                     #include <talloc.h>
7464 int
7465 main ()
7466 {
7467 int a = 1;
7468   ;
7469   return 0;
7470 }
7471 _ACEOF
7472 if ac_fn_c_try_compile "$LINENO"; then :
7473
7474                      smart_include=" "
7475                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7476 $as_echo "yes" >&6; }
7477                      break
7478
7479 else
7480
7481                      smart_include=
7482                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484
7485 fi
7486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487 fi
7488
7489 if test "x$smart_include" = "x"; then
7490
7491   for prefix in $smart_prefix; do
7492
7493
7494 if test "x$LOCATE" != "x"; then
7495         DIRS=
7496   file="${_prefix}/${1}"
7497
7498   for x in `${LOCATE} $file 2>/dev/null`; do
7499                                         base=`echo $x | sed "s%/${file}%%"`
7500     if test "x$x" = "x$base"; then
7501       continue;
7502     fi
7503
7504     dir=`${DIRNAME} $x 2>/dev/null`
7505                 exclude=`echo ${dir} | ${GREP} /home`
7506     if test "x$exclude" != "x"; then
7507       continue
7508     fi
7509
7510                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7511     if test "x$already" = "x"; then
7512       DIRS="$DIRS $dir"
7513     fi
7514   done
7515 fi
7516
7517 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7518
7519   done
7520
7521
7522 if test "x$LOCATE" != "x"; then
7523         DIRS=
7524   file=talloc.h
7525
7526   for x in `${LOCATE} $file 2>/dev/null`; do
7527                                         base=`echo $x | sed "s%/${file}%%"`
7528     if test "x$x" = "x$base"; then
7529       continue;
7530     fi
7531
7532     dir=`${DIRNAME} $x 2>/dev/null`
7533                 exclude=`echo ${dir} | ${GREP} /home`
7534     if test "x$exclude" != "x"; then
7535       continue
7536     fi
7537
7538                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7539     if test "x$already" = "x"; then
7540       DIRS="$DIRS $dir"
7541     fi
7542   done
7543 fi
7544
7545 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7546
7547
7548   for try in $_smart_include_dir; do
7549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7550 $as_echo_n "checking for talloc.h in $try... " >&6; }
7551     CPPFLAGS="-isystem $try $old_CPPFLAGS"
7552     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h.  */
7554
7555                     #include <talloc.h>
7556 int
7557 main ()
7558 {
7559 int a = 1;
7560   ;
7561   return 0;
7562 }
7563 _ACEOF
7564 if ac_fn_c_try_compile "$LINENO"; then :
7565
7566                      smart_include="-isystem $try"
7567                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7568 $as_echo "yes" >&6; }
7569                      break
7570
7571 else
7572
7573                      smart_include=
7574                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7576
7577 fi
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579   done
7580   CPPFLAGS="$old_CPPFLAGS"
7581 fi
7582
7583 if test "x$smart_include" != "x"; then
7584   eval "ac_cv_header_$ac_safe=yes"
7585   CPPFLAGS="$smart_include $old_CPPFLAGS"
7586   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
7587 fi
7588
7589 smart_prefix=
7590
7591 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7593 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7594   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7595 fi
7596
7597 case "$host" in
7598   *-interix*)
7599     CFLAGS="$CFLAGS -D_ALL_SOURCE"
7600     ;;
7601   *-darwin*)
7602     CFLAGS="$CFLAGS -DDARWIN"
7603     LIBS="-framework DirectoryService $LIBS"
7604
7605 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
7606
7607     ;;
7608 esac
7609
7610 ac_header_dirent=no
7611 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7612   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7614 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7615 if eval \${$as_ac_Header+:} false; then :
7616   $as_echo_n "(cached) " >&6
7617 else
7618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h.  */
7620 #include <sys/types.h>
7621 #include <$ac_hdr>
7622
7623 int
7624 main ()
7625 {
7626 if ((DIR *) 0)
7627 return 0;
7628   ;
7629   return 0;
7630 }
7631 _ACEOF
7632 if ac_fn_c_try_compile "$LINENO"; then :
7633   eval "$as_ac_Header=yes"
7634 else
7635   eval "$as_ac_Header=no"
7636 fi
7637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638 fi
7639 eval ac_res=\$$as_ac_Header
7640                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7641 $as_echo "$ac_res" >&6; }
7642 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7643   cat >>confdefs.h <<_ACEOF
7644 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7645 _ACEOF
7646
7647 ac_header_dirent=$ac_hdr; break
7648 fi
7649
7650 done
7651 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7652 if test $ac_header_dirent = dirent.h; then
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7654 $as_echo_n "checking for library containing opendir... " >&6; }
7655 if ${ac_cv_search_opendir+:} false; then :
7656   $as_echo_n "(cached) " >&6
7657 else
7658   ac_func_search_save_LIBS=$LIBS
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h.  */
7661
7662 /* Override any GCC internal prototype to avoid an error.
7663    Use char because int might match the return type of a GCC
7664    builtin and then its argument prototype would still apply.  */
7665 #ifdef __cplusplus
7666 extern "C"
7667 #endif
7668 char opendir ();
7669 int
7670 main ()
7671 {
7672 return opendir ();
7673   ;
7674   return 0;
7675 }
7676 _ACEOF
7677 for ac_lib in '' dir; do
7678   if test -z "$ac_lib"; then
7679     ac_res="none required"
7680   else
7681     ac_res=-l$ac_lib
7682     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7683   fi
7684   if ac_fn_c_try_link "$LINENO"; then :
7685   ac_cv_search_opendir=$ac_res
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext \
7688     conftest$ac_exeext
7689   if ${ac_cv_search_opendir+:} false; then :
7690   break
7691 fi
7692 done
7693 if ${ac_cv_search_opendir+:} false; then :
7694
7695 else
7696   ac_cv_search_opendir=no
7697 fi
7698 rm conftest.$ac_ext
7699 LIBS=$ac_func_search_save_LIBS
7700 fi
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7702 $as_echo "$ac_cv_search_opendir" >&6; }
7703 ac_res=$ac_cv_search_opendir
7704 if test "$ac_res" != no; then :
7705   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7706
7707 fi
7708
7709 else
7710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7711 $as_echo_n "checking for library containing opendir... " >&6; }
7712 if ${ac_cv_search_opendir+:} false; then :
7713   $as_echo_n "(cached) " >&6
7714 else
7715   ac_func_search_save_LIBS=$LIBS
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h.  */
7718
7719 /* Override any GCC internal prototype to avoid an error.
7720    Use char because int might match the return type of a GCC
7721    builtin and then its argument prototype would still apply.  */
7722 #ifdef __cplusplus
7723 extern "C"
7724 #endif
7725 char opendir ();
7726 int
7727 main ()
7728 {
7729 return opendir ();
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 for ac_lib in '' x; do
7735   if test -z "$ac_lib"; then
7736     ac_res="none required"
7737   else
7738     ac_res=-l$ac_lib
7739     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7740   fi
7741   if ac_fn_c_try_link "$LINENO"; then :
7742   ac_cv_search_opendir=$ac_res
7743 fi
7744 rm -f core conftest.err conftest.$ac_objext \
7745     conftest$ac_exeext
7746   if ${ac_cv_search_opendir+:} false; then :
7747   break
7748 fi
7749 done
7750 if ${ac_cv_search_opendir+:} false; then :
7751
7752 else
7753   ac_cv_search_opendir=no
7754 fi
7755 rm conftest.$ac_ext
7756 LIBS=$ac_func_search_save_LIBS
7757 fi
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7759 $as_echo "$ac_cv_search_opendir" >&6; }
7760 ac_res=$ac_cv_search_opendir
7761 if test "$ac_res" != no; then :
7762   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7763
7764 fi
7765
7766 fi
7767
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7769 $as_echo_n "checking for ANSI C header files... " >&6; }
7770 if ${ac_cv_header_stdc+:} false; then :
7771   $as_echo_n "(cached) " >&6
7772 else
7773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h.  */
7775 #include <stdlib.h>
7776 #include <stdarg.h>
7777 #include <string.h>
7778 #include <float.h>
7779
7780 int
7781 main ()
7782 {
7783
7784   ;
7785   return 0;
7786 }
7787 _ACEOF
7788 if ac_fn_c_try_compile "$LINENO"; then :
7789   ac_cv_header_stdc=yes
7790 else
7791   ac_cv_header_stdc=no
7792 fi
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794
7795 if test $ac_cv_header_stdc = yes; then
7796   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h.  */
7799 #include <string.h>
7800
7801 _ACEOF
7802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7803   $EGREP "memchr" >/dev/null 2>&1; then :
7804
7805 else
7806   ac_cv_header_stdc=no
7807 fi
7808 rm -f conftest*
7809
7810 fi
7811
7812 if test $ac_cv_header_stdc = yes; then
7813   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h.  */
7816 #include <stdlib.h>
7817
7818 _ACEOF
7819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7820   $EGREP "free" >/dev/null 2>&1; then :
7821
7822 else
7823   ac_cv_header_stdc=no
7824 fi
7825 rm -f conftest*
7826
7827 fi
7828
7829 if test $ac_cv_header_stdc = yes; then
7830   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7831   if test "$cross_compiling" = yes; then :
7832   :
7833 else
7834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h.  */
7836 #include <ctype.h>
7837 #include <stdlib.h>
7838 #if ((' ' & 0x0FF) == 0x020)
7839 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7840 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7841 #else
7842 # define ISLOWER(c) \
7843                    (('a' <= (c) && (c) <= 'i') \
7844                      || ('j' <= (c) && (c) <= 'r') \
7845                      || ('s' <= (c) && (c) <= 'z'))
7846 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7847 #endif
7848
7849 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7850 int
7851 main ()
7852 {
7853   int i;
7854   for (i = 0; i < 256; i++)
7855     if (XOR (islower (i), ISLOWER (i))
7856         || toupper (i) != TOUPPER (i))
7857       return 2;
7858   return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_run "$LINENO"; then :
7862
7863 else
7864   ac_cv_header_stdc=no
7865 fi
7866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7867   conftest.$ac_objext conftest.beam conftest.$ac_ext
7868 fi
7869
7870 fi
7871 fi
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7873 $as_echo "$ac_cv_header_stdc" >&6; }
7874 if test $ac_cv_header_stdc = yes; then
7875
7876 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7877
7878 fi
7879
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7881 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7882 if ${ac_cv_header_time+:} false; then :
7883   $as_echo_n "(cached) " >&6
7884 else
7885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h.  */
7887 #include <sys/types.h>
7888 #include <sys/time.h>
7889 #include <time.h>
7890
7891 int
7892 main ()
7893 {
7894 if ((struct tm *) 0)
7895 return 0;
7896   ;
7897   return 0;
7898 }
7899 _ACEOF
7900 if ac_fn_c_try_compile "$LINENO"; then :
7901   ac_cv_header_time=yes
7902 else
7903   ac_cv_header_time=no
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7908 $as_echo "$ac_cv_header_time" >&6; }
7909 if test $ac_cv_header_time = yes; then
7910
7911 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7912
7913 fi
7914
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7916 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7917 if ${ac_cv_header_sys_wait_h+:} false; then :
7918   $as_echo_n "(cached) " >&6
7919 else
7920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h.  */
7922 #include <sys/types.h>
7923 #include <sys/wait.h>
7924 #ifndef WEXITSTATUS
7925 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7926 #endif
7927 #ifndef WIFEXITED
7928 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7929 #endif
7930
7931 int
7932 main ()
7933 {
7934   int s;
7935   wait (&s);
7936   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 if ac_fn_c_try_compile "$LINENO"; then :
7942   ac_cv_header_sys_wait_h=yes
7943 else
7944   ac_cv_header_sys_wait_h=no
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947 fi
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7949 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7950 if test $ac_cv_header_sys_wait_h = yes; then
7951
7952 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7953
7954 fi
7955
7956
7957 for ac_header in \
7958   arpa/inet.h \
7959   crypt.h \
7960   dlfcn.h \
7961   errno.h \
7962   fcntl.h \
7963   features.h \
7964   fnmatch.h \
7965   getopt.h \
7966   glob.h \
7967   grp.h \
7968   inttypes.h \
7969   limits.h \
7970   malloc.h \
7971   netdb.h \
7972   netinet/in.h \
7973   prot.h \
7974   pwd.h \
7975   resource.h \
7976   semaphore.h \
7977   sia.h \
7978   siad.h \
7979   signal.h \
7980   stdbool.h \
7981   stddef.h \
7982   stdint.h \
7983   stdio.h \
7984   sys/event.h \
7985   sys/fcntl.h \
7986   sys/prctl.h \
7987   sys/ptrace.h \
7988   sys/resource.h \
7989   sys/security.h \
7990   sys/select.h \
7991   sys/socket.h \
7992   sys/time.h \
7993   sys/types.h \
7994   sys/un.h \
7995   sys/wait.h \
7996   syslog.h \
7997   unistd.h \
7998   utime.h \
7999   utmp.h \
8000   utmpx.h \
8001   winsock.h
8002
8003 do :
8004   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8005 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8006 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8007   cat >>confdefs.h <<_ACEOF
8008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8009 _ACEOF
8010
8011 fi
8012
8013 done
8014
8015
8016 for ac_header in net/if.h
8017 do :
8018   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
8019     #ifdef HAVE_SYS_SOCKET_H
8020     #  include <sys/socket.h>
8021     #endif
8022
8023
8024 "
8025 if test "x$ac_cv_header_net_if_h" = xyes; then :
8026   cat >>confdefs.h <<_ACEOF
8027 #define HAVE_NET_IF_H 1
8028 _ACEOF
8029
8030 fi
8031
8032 done
8033
8034
8035 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
8036 then
8037
8038 $as_echo "#define OSFC2 /**/" >>confdefs.h
8039
8040 fi
8041
8042 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
8043 then
8044
8045 $as_echo "#define OSFSIA /**/" >>confdefs.h
8046
8047 fi
8048
8049 if test "x$WITH_OPENSSL" = xyes; then
8050   OLD_LIBS="$LIBS"
8051
8052         CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
8053
8054         smart_try_dir="$openssl_lib_dir"
8055
8056
8057 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
8058 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
8059
8060 old_LIBS="$LIBS"
8061 old_CPPFLAGS="$CPPFLAGS"
8062 smart_lib=
8063 smart_ldflags=
8064 smart_lib_dir=
8065
8066 if test "x$smart_try_dir" != "x"; then
8067   for try in $smart_try_dir; do
8068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
8069 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
8070     LIBS="-lcrypto $old_LIBS"
8071     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8072     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h.  */
8074 extern char DH_new();
8075 int
8076 main ()
8077 {
8078 DH_new()
8079   ;
8080   return 0;
8081 }
8082 _ACEOF
8083 if ac_fn_c_try_link "$LINENO"; then :
8084
8085                  smart_lib="-lcrypto"
8086                  smart_ldflags="-L$try -Wl,-rpath,$try"
8087                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8088 $as_echo "yes" >&6; }
8089                  break
8090
8091 else
8092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 fi
8095 rm -f core conftest.err conftest.$ac_objext \
8096     conftest$ac_exeext conftest.$ac_ext
8097   done
8098   LIBS="$old_LIBS"
8099   CPPFLAGS="$old_CPPFLAGS"
8100 fi
8101
8102 if test "x$smart_lib" = "x"; then
8103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
8104 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
8105   LIBS="-lcrypto $old_LIBS"
8106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h.  */
8108 extern char DH_new();
8109 int
8110 main ()
8111 {
8112 DH_new()
8113   ;
8114   return 0;
8115 }
8116 _ACEOF
8117 if ac_fn_c_try_link "$LINENO"; then :
8118
8119                 smart_lib="-lcrypto"
8120                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8121 $as_echo "yes" >&6; }
8122
8123 else
8124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8126 fi
8127 rm -f core conftest.err conftest.$ac_objext \
8128     conftest$ac_exeext conftest.$ac_ext
8129   LIBS="$old_LIBS"
8130 fi
8131
8132 if test "x$smart_lib" = "x"; then
8133
8134
8135 if test "x$LOCATE" != "x"; then
8136         DIRS=
8137   file=libcrypto${libltdl_cv_shlibext}
8138
8139   for x in `${LOCATE} $file 2>/dev/null`; do
8140                                         base=`echo $x | sed "s%/${file}%%"`
8141     if test "x$x" = "x$base"; then
8142       continue;
8143     fi
8144
8145     dir=`${DIRNAME} $x 2>/dev/null`
8146                 exclude=`echo ${dir} | ${GREP} /home`
8147     if test "x$exclude" != "x"; then
8148       continue
8149     fi
8150
8151                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8152     if test "x$already" = "x"; then
8153       DIRS="$DIRS $dir"
8154     fi
8155   done
8156 fi
8157
8158 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8159
8160
8161
8162 if test "x$LOCATE" != "x"; then
8163         DIRS=
8164   file=libcrypto.a
8165
8166   for x in `${LOCATE} $file 2>/dev/null`; do
8167                                         base=`echo $x | sed "s%/${file}%%"`
8168     if test "x$x" = "x$base"; then
8169       continue;
8170     fi
8171
8172     dir=`${DIRNAME} $x 2>/dev/null`
8173                 exclude=`echo ${dir} | ${GREP} /home`
8174     if test "x$exclude" != "x"; then
8175       continue
8176     fi
8177
8178                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8179     if test "x$already" = "x"; then
8180       DIRS="$DIRS $dir"
8181     fi
8182   done
8183 fi
8184
8185 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8186
8187
8188   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
8190 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
8191     LIBS="-lcrypto $old_LIBS"
8192     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8193     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h.  */
8195 extern char DH_new();
8196 int
8197 main ()
8198 {
8199 DH_new()
8200   ;
8201   return 0;
8202 }
8203 _ACEOF
8204 if ac_fn_c_try_link "$LINENO"; then :
8205
8206                   smart_lib="-lcrypto"
8207                   smart_ldflags="-L$try -Wl,-rpath,$try"
8208                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8209 $as_echo "yes" >&6; }
8210                   break
8211
8212 else
8213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 $as_echo "no" >&6; }
8215 fi
8216 rm -f core conftest.err conftest.$ac_objext \
8217     conftest$ac_exeext conftest.$ac_ext
8218   done
8219   LIBS="$old_LIBS"
8220   CPPFLAGS="$old_CPPFLAGS"
8221 fi
8222
8223 if test "x$smart_lib" != "x"; then
8224   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8225   LIBS="$smart_ldflags $smart_lib $old_LIBS"
8226   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8227 fi
8228
8229   if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
8230
8231 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
8232
8233     OPENSSL_LIBS="$smart_lib"
8234     OPENSSL_LDFLAGS="$smart_ldflags"
8235
8236
8237
8238 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
8239 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
8240
8241 old_LIBS="$LIBS"
8242 old_CPPFLAGS="$CPPFLAGS"
8243 smart_lib=
8244 smart_ldflags=
8245 smart_lib_dir=
8246
8247 if test "x$smart_try_dir" != "x"; then
8248   for try in $smart_try_dir; do
8249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8250 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8251     LIBS="-lssl $old_LIBS"
8252     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8253     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h.  */
8255 extern char SSL_new();
8256 int
8257 main ()
8258 {
8259 SSL_new()
8260   ;
8261   return 0;
8262 }
8263 _ACEOF
8264 if ac_fn_c_try_link "$LINENO"; then :
8265
8266                  smart_lib="-lssl"
8267                  smart_ldflags="-L$try -Wl,-rpath,$try"
8268                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8269 $as_echo "yes" >&6; }
8270                  break
8271
8272 else
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8275 fi
8276 rm -f core conftest.err conftest.$ac_objext \
8277     conftest$ac_exeext conftest.$ac_ext
8278   done
8279   LIBS="$old_LIBS"
8280   CPPFLAGS="$old_CPPFLAGS"
8281 fi
8282
8283 if test "x$smart_lib" = "x"; then
8284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
8285 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
8286   LIBS="-lssl $old_LIBS"
8287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h.  */
8289 extern char SSL_new();
8290 int
8291 main ()
8292 {
8293 SSL_new()
8294   ;
8295   return 0;
8296 }
8297 _ACEOF
8298 if ac_fn_c_try_link "$LINENO"; then :
8299
8300                 smart_lib="-lssl"
8301                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8302 $as_echo "yes" >&6; }
8303
8304 else
8305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext \
8309     conftest$ac_exeext conftest.$ac_ext
8310   LIBS="$old_LIBS"
8311 fi
8312
8313 if test "x$smart_lib" = "x"; then
8314
8315
8316 if test "x$LOCATE" != "x"; then
8317         DIRS=
8318   file=libssl${libltdl_cv_shlibext}
8319
8320   for x in `${LOCATE} $file 2>/dev/null`; do
8321                                         base=`echo $x | sed "s%/${file}%%"`
8322     if test "x$x" = "x$base"; then
8323       continue;
8324     fi
8325
8326     dir=`${DIRNAME} $x 2>/dev/null`
8327                 exclude=`echo ${dir} | ${GREP} /home`
8328     if test "x$exclude" != "x"; then
8329       continue
8330     fi
8331
8332                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8333     if test "x$already" = "x"; then
8334       DIRS="$DIRS $dir"
8335     fi
8336   done
8337 fi
8338
8339 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8340
8341
8342
8343 if test "x$LOCATE" != "x"; then
8344         DIRS=
8345   file=libssl.a
8346
8347   for x in `${LOCATE} $file 2>/dev/null`; do
8348                                         base=`echo $x | sed "s%/${file}%%"`
8349     if test "x$x" = "x$base"; then
8350       continue;
8351     fi
8352
8353     dir=`${DIRNAME} $x 2>/dev/null`
8354                 exclude=`echo ${dir} | ${GREP} /home`
8355     if test "x$exclude" != "x"; then
8356       continue
8357     fi
8358
8359                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8360     if test "x$already" = "x"; then
8361       DIRS="$DIRS $dir"
8362     fi
8363   done
8364 fi
8365
8366 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8367
8368
8369   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8371 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8372     LIBS="-lssl $old_LIBS"
8373     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8374     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h.  */
8376 extern char SSL_new();
8377 int
8378 main ()
8379 {
8380 SSL_new()
8381   ;
8382   return 0;
8383 }
8384 _ACEOF
8385 if ac_fn_c_try_link "$LINENO"; then :
8386
8387                   smart_lib="-lssl"
8388                   smart_ldflags="-L$try -Wl,-rpath,$try"
8389                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8390 $as_echo "yes" >&6; }
8391                   break
8392
8393 else
8394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8396 fi
8397 rm -f core conftest.err conftest.$ac_objext \
8398     conftest$ac_exeext conftest.$ac_ext
8399   done
8400   LIBS="$old_LIBS"
8401   CPPFLAGS="$old_CPPFLAGS"
8402 fi
8403
8404 if test "x$smart_lib" != "x"; then
8405   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8406   LIBS="$smart_ldflags $smart_lib $old_LIBS"
8407   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8408 fi
8409
8410     if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
8411       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8413 as_fn_error $? "failed linking to libssl. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8414 See \`config.log' for more details" "$LINENO" 5; }
8415     else
8416
8417 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
8418
8419       OPENSSL_LIBS="$OPENSSL_LIBS $smart_lib"
8420
8421       if test "$OPENSSL_LDFLAGS" != "$smart_ldflags"; then
8422         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8424 as_fn_error $? "\"inconsistent LDFLAGS between -lssl '$smart_ldflags' and -lcrypto '$OPENSSL_LDFLAGS'\"
8425 See \`config.log' for more details" "$LINENO" 5; }
8426       fi
8427     fi
8428   else
8429     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8431 as_fn_error $? "failed linking to libcrypto. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8432 See \`config.log' for more details" "$LINENO" 5; }
8433   fi
8434
8435   smart_try_dir="$openssl_include_dir"
8436
8437
8438 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
8439 old_CPPFLAGS="$CPPFLAGS"
8440 smart_include=
8441 smart_include_dir="/usr/local/include /opt/include"
8442
8443 _smart_try_dir=
8444 _smart_include_dir=
8445
8446 for _prefix in $smart_prefix ""; do
8447   for _dir in $smart_try_dir; do
8448     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8449   done
8450
8451   for _dir in $smart_include_dir; do
8452     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8453   done
8454 done
8455
8456 if test "x$_smart_try_dir" != "x"; then
8457   for try in $_smart_try_dir; do
8458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8459 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8460     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8461     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h.  */
8463
8464                     #include <openssl/ssl.h>
8465 int
8466 main ()
8467 {
8468 int a = 1;
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 if ac_fn_c_try_compile "$LINENO"; then :
8474
8475                      smart_include="-isystem $try"
8476                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8477 $as_echo "yes" >&6; }
8478                      break
8479
8480 else
8481
8482                      smart_include=
8483                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8485
8486 fi
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488   done
8489   CPPFLAGS="$old_CPPFLAGS"
8490 fi
8491
8492 if test "x$smart_include" = "x"; then
8493   for _prefix in $smart_prefix; do
8494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/openssl/ssl.h" >&5
8495 $as_echo_n "checking for ${_prefix}/openssl/ssl.h... " >&6; }
8496
8497     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h.  */
8499
8500                     #include <openssl/ssl.h>
8501 int
8502 main ()
8503 {
8504 int a = 1;
8505   ;
8506   return 0;
8507 }
8508 _ACEOF
8509 if ac_fn_c_try_compile "$LINENO"; then :
8510
8511                      smart_include="-isystem ${_prefix}/"
8512                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8513 $as_echo "yes" >&6; }
8514                      break
8515
8516 else
8517
8518                      smart_include=
8519                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8521
8522 fi
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524   done
8525 fi
8526
8527 if test "x$smart_include" = "x"; then
8528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h" >&5
8529 $as_echo_n "checking for openssl/ssl.h... " >&6; }
8530
8531     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h.  */
8533
8534                     #include <openssl/ssl.h>
8535 int
8536 main ()
8537 {
8538 int a = 1;
8539   ;
8540   return 0;
8541 }
8542 _ACEOF
8543 if ac_fn_c_try_compile "$LINENO"; then :
8544
8545                      smart_include=" "
8546                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8547 $as_echo "yes" >&6; }
8548                      break
8549
8550 else
8551
8552                      smart_include=
8553                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8555
8556 fi
8557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8558 fi
8559
8560 if test "x$smart_include" = "x"; then
8561
8562   for prefix in $smart_prefix; do
8563
8564
8565 if test "x$LOCATE" != "x"; then
8566         DIRS=
8567   file="${_prefix}/${1}"
8568
8569   for x in `${LOCATE} $file 2>/dev/null`; do
8570                                         base=`echo $x | sed "s%/${file}%%"`
8571     if test "x$x" = "x$base"; then
8572       continue;
8573     fi
8574
8575     dir=`${DIRNAME} $x 2>/dev/null`
8576                 exclude=`echo ${dir} | ${GREP} /home`
8577     if test "x$exclude" != "x"; then
8578       continue
8579     fi
8580
8581                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8582     if test "x$already" = "x"; then
8583       DIRS="$DIRS $dir"
8584     fi
8585   done
8586 fi
8587
8588 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8589
8590   done
8591
8592
8593 if test "x$LOCATE" != "x"; then
8594         DIRS=
8595   file=openssl/ssl.h
8596
8597   for x in `${LOCATE} $file 2>/dev/null`; do
8598                                         base=`echo $x | sed "s%/${file}%%"`
8599     if test "x$x" = "x$base"; then
8600       continue;
8601     fi
8602
8603     dir=`${DIRNAME} $x 2>/dev/null`
8604                 exclude=`echo ${dir} | ${GREP} /home`
8605     if test "x$exclude" != "x"; then
8606       continue
8607     fi
8608
8609                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8610     if test "x$already" = "x"; then
8611       DIRS="$DIRS $dir"
8612     fi
8613   done
8614 fi
8615
8616 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8617
8618
8619   for try in $_smart_include_dir; do
8620     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8621 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8622     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8623     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h.  */
8625
8626                     #include <openssl/ssl.h>
8627 int
8628 main ()
8629 {
8630 int a = 1;
8631   ;
8632   return 0;
8633 }
8634 _ACEOF
8635 if ac_fn_c_try_compile "$LINENO"; then :
8636
8637                      smart_include="-isystem $try"
8638                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8639 $as_echo "yes" >&6; }
8640                      break
8641
8642 else
8643
8644                      smart_include=
8645                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8647
8648 fi
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650   done
8651   CPPFLAGS="$old_CPPFLAGS"
8652 fi
8653
8654 if test "x$smart_include" != "x"; then
8655   eval "ac_cv_header_$ac_safe=yes"
8656   CPPFLAGS="$smart_include $old_CPPFLAGS"
8657   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8658 fi
8659
8660 smart_prefix=
8661
8662   if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
8663
8664 $as_echo "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
8665
8666
8667     for ac_header in \
8668       openssl/asn1.h \
8669       openssl/conf.h \
8670       openssl/crypto.h \
8671       openssl/err.h \
8672       openssl/evp.h \
8673       openssl/hmac.h \
8674       openssl/md5.h \
8675       openssl/md4.h \
8676       openssl/sha.h \
8677       openssl/ssl.h \
8678       openssl/ocsp.h \
8679       openssl/engine.h
8680 do :
8681   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8682 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8683 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8684   cat >>confdefs.h <<_ACEOF
8685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8686 _ACEOF
8687   OPENSSL_CPPFLAGS="$smart_include"
8688 else
8689
8690         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8692 as_fn_error $? "failed locating OpenSSL headers. Use --with-openssl-include-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8693 See \`config.log' for more details" "$LINENO" 5; }
8694
8695
8696 fi
8697
8698 done
8699
8700
8701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
8702 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
8703     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h.  */
8705 #include <openssl/crypto.h>
8706        #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
8707        yes
8708        #endif
8709
8710 _ACEOF
8711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8712   $EGREP "yes" >/dev/null 2>&1; then :
8713
8714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8715 $as_echo "yes" >&6; }
8716
8717 else
8718
8719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8721         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8723 as_fn_error $? "OpenSSL version too old
8724 See \`config.log' for more details" "$LINENO" 5; }
8725
8726
8727 fi
8728 rm -f conftest*
8729
8730
8731                         old_CPPFLAGS="$CPPFLAGS"
8732     CPPFLAGS="$OPENSSL_CPPFLAGS $CPPFLAGS"
8733
8734                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
8735 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
8736     if test "$cross_compiling" = yes; then :
8737
8738         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling (assuming yes)" >&5
8739 $as_echo "cross-compiling (assuming yes)" >&6; }
8740
8741
8742 else
8743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h.  */
8745
8746           #include <stdio.h>
8747           #include <openssl/opensslv.h>
8748           #include <openssl/crypto.h>
8749
8750 int
8751 main ()
8752 {
8753
8754           printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
8755           if (SSLeay() == OPENSSL_VERSION_NUMBER) {
8756             return 0;
8757           } else {
8758             return 1;
8759           }
8760
8761
8762   ;
8763   return 0;
8764 }
8765 _ACEOF
8766 if ac_fn_c_try_run "$LINENO"; then :
8767
8768         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8769 $as_echo "yes" >&6; }
8770
8771 else
8772
8773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8775         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8777 as_fn_error $? "OpenSSL library version does not match header version
8778 See \`config.log' for more details" "$LINENO" 5; }
8779
8780 fi
8781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8782   conftest.$ac_objext conftest.beam conftest.$ac_ext
8783 fi
8784
8785                 for ac_func in \
8786       SSL_get_client_random \
8787       SSL_get_server_random \
8788       SSL_SESSION_get_master_key \
8789       HMAC_CTX_new \
8790       HMAC_CTX_free \
8791       ASN1_STRING_get0_data \
8792       CONF_modules_load_file \
8793       CRYPTO_set_id_callback \
8794       CRYPTO_set_locking_callback
8795
8796 do :
8797   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8798 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8799 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8800   cat >>confdefs.h <<_ACEOF
8801 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8802 _ACEOF
8803
8804 fi
8805 done
8806
8807     CPPFLAGS="$old_CPPFLAGS"
8808   fi
8809
8810   LIBS="$OLD_LIBS"
8811
8812
8813
8814   export OPENSSL_LIBS OPENSSL_LDFLAGS OPENSSL_CPPFLAGS
8815 fi
8816
8817 if test "x$PCAP_LIBS" = x; then
8818   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
8819 $as_echo "$as_me: skipping test for pcap.h." >&6;}
8820 else
8821         smart_try_dir="$pcap_include_dir"
8822
8823
8824 ac_safe=`echo "pcap.h" | sed 'y%./+-%__pm%'`
8825 old_CPPFLAGS="$CPPFLAGS"
8826 smart_include=
8827 smart_include_dir="/usr/local/include /opt/include"
8828
8829 _smart_try_dir=
8830 _smart_include_dir=
8831
8832 for _prefix in $smart_prefix ""; do
8833   for _dir in $smart_try_dir; do
8834     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8835   done
8836
8837   for _dir in $smart_include_dir; do
8838     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8839   done
8840 done
8841
8842 if test "x$_smart_try_dir" != "x"; then
8843   for try in $_smart_try_dir; do
8844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8845 $as_echo_n "checking for pcap.h in $try... " >&6; }
8846     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8847     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h.  */
8849
8850                     #include <pcap.h>
8851 int
8852 main ()
8853 {
8854 int a = 1;
8855   ;
8856   return 0;
8857 }
8858 _ACEOF
8859 if ac_fn_c_try_compile "$LINENO"; then :
8860
8861                      smart_include="-isystem $try"
8862                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8863 $as_echo "yes" >&6; }
8864                      break
8865
8866 else
8867
8868                      smart_include=
8869                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8871
8872 fi
8873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8874   done
8875   CPPFLAGS="$old_CPPFLAGS"
8876 fi
8877
8878 if test "x$smart_include" = "x"; then
8879   for _prefix in $smart_prefix; do
8880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcap.h" >&5
8881 $as_echo_n "checking for ${_prefix}/pcap.h... " >&6; }
8882
8883     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h.  */
8885
8886                     #include <pcap.h>
8887 int
8888 main ()
8889 {
8890 int a = 1;
8891   ;
8892   return 0;
8893 }
8894 _ACEOF
8895 if ac_fn_c_try_compile "$LINENO"; then :
8896
8897                      smart_include="-isystem ${_prefix}/"
8898                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8899 $as_echo "yes" >&6; }
8900                      break
8901
8902 else
8903
8904                      smart_include=
8905                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8907
8908 fi
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8910   done
8911 fi
8912
8913 if test "x$smart_include" = "x"; then
8914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5
8915 $as_echo_n "checking for pcap.h... " >&6; }
8916
8917     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h.  */
8919
8920                     #include <pcap.h>
8921 int
8922 main ()
8923 {
8924 int a = 1;
8925   ;
8926   return 0;
8927 }
8928 _ACEOF
8929 if ac_fn_c_try_compile "$LINENO"; then :
8930
8931                      smart_include=" "
8932                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8933 $as_echo "yes" >&6; }
8934                      break
8935
8936 else
8937
8938                      smart_include=
8939                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 $as_echo "no" >&6; }
8941
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 fi
8945
8946 if test "x$smart_include" = "x"; then
8947
8948   for prefix in $smart_prefix; do
8949
8950
8951 if test "x$LOCATE" != "x"; then
8952         DIRS=
8953   file="${_prefix}/${1}"
8954
8955   for x in `${LOCATE} $file 2>/dev/null`; do
8956                                         base=`echo $x | sed "s%/${file}%%"`
8957     if test "x$x" = "x$base"; then
8958       continue;
8959     fi
8960
8961     dir=`${DIRNAME} $x 2>/dev/null`
8962                 exclude=`echo ${dir} | ${GREP} /home`
8963     if test "x$exclude" != "x"; then
8964       continue
8965     fi
8966
8967                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8968     if test "x$already" = "x"; then
8969       DIRS="$DIRS $dir"
8970     fi
8971   done
8972 fi
8973
8974 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8975
8976   done
8977
8978
8979 if test "x$LOCATE" != "x"; then
8980         DIRS=
8981   file=pcap.h
8982
8983   for x in `${LOCATE} $file 2>/dev/null`; do
8984                                         base=`echo $x | sed "s%/${file}%%"`
8985     if test "x$x" = "x$base"; then
8986       continue;
8987     fi
8988
8989     dir=`${DIRNAME} $x 2>/dev/null`
8990                 exclude=`echo ${dir} | ${GREP} /home`
8991     if test "x$exclude" != "x"; then
8992       continue
8993     fi
8994
8995                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8996     if test "x$already" = "x"; then
8997       DIRS="$DIRS $dir"
8998     fi
8999   done
9000 fi
9001
9002 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9003
9004
9005   for try in $_smart_include_dir; do
9006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
9007 $as_echo_n "checking for pcap.h in $try... " >&6; }
9008     CPPFLAGS="-isystem $try $old_CPPFLAGS"
9009     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h.  */
9011
9012                     #include <pcap.h>
9013 int
9014 main ()
9015 {
9016 int a = 1;
9017   ;
9018   return 0;
9019 }
9020 _ACEOF
9021 if ac_fn_c_try_compile "$LINENO"; then :
9022
9023                      smart_include="-isystem $try"
9024                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9025 $as_echo "yes" >&6; }
9026                      break
9027
9028 else
9029
9030                      smart_include=
9031                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 $as_echo "no" >&6; }
9033
9034 fi
9035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9036   done
9037   CPPFLAGS="$old_CPPFLAGS"
9038 fi
9039
9040 if test "x$smart_include" != "x"; then
9041   eval "ac_cv_header_$ac_safe=yes"
9042   CPPFLAGS="$smart_include $old_CPPFLAGS"
9043   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9044 fi
9045
9046 smart_prefix=
9047
9048   if test "x$ac_cv_header_pcap_h" == "xyes"; then
9049
9050 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
9051
9052
9053
9054   else
9055     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&5
9056 $as_echo "$as_me: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&2;}
9057   fi
9058 fi
9059
9060 if test "x$COLLECTDC_LIBS" = x; then
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for collectd/client.h." >&5
9062 $as_echo "$as_me: skipping test for collectd/client.h." >&6;}
9063 else
9064         smart_try_dir="$collectdclient_include_dir"
9065
9066
9067 ac_safe=`echo "collectd/client.h" | sed 'y%./+-%__pm%'`
9068 old_CPPFLAGS="$CPPFLAGS"
9069 smart_include=
9070 smart_include_dir="/usr/local/include /opt/include"
9071
9072 _smart_try_dir=
9073 _smart_include_dir=
9074
9075 for _prefix in $smart_prefix ""; do
9076   for _dir in $smart_try_dir; do
9077     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
9078   done
9079
9080   for _dir in $smart_include_dir; do
9081     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
9082   done
9083 done
9084
9085 if test "x$_smart_try_dir" != "x"; then
9086   for try in $_smart_try_dir; do
9087     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
9088 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
9089     CPPFLAGS="-isystem $try $old_CPPFLAGS"
9090     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h.  */
9092
9093                     #include <collectd/client.h>
9094 int
9095 main ()
9096 {
9097 int a = 1;
9098   ;
9099   return 0;
9100 }
9101 _ACEOF
9102 if ac_fn_c_try_compile "$LINENO"; then :
9103
9104                      smart_include="-isystem $try"
9105                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9106 $as_echo "yes" >&6; }
9107                      break
9108
9109 else
9110
9111                      smart_include=
9112                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113 $as_echo "no" >&6; }
9114
9115 fi
9116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9117   done
9118   CPPFLAGS="$old_CPPFLAGS"
9119 fi
9120
9121 if test "x$smart_include" = "x"; then
9122   for _prefix in $smart_prefix; do
9123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/collectd/client.h" >&5
9124 $as_echo_n "checking for ${_prefix}/collectd/client.h... " >&6; }
9125
9126     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h.  */
9128
9129                     #include <collectd/client.h>
9130 int
9131 main ()
9132 {
9133 int a = 1;
9134   ;
9135   return 0;
9136 }
9137 _ACEOF
9138 if ac_fn_c_try_compile "$LINENO"; then :
9139
9140                      smart_include="-isystem ${_prefix}/"
9141                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9142 $as_echo "yes" >&6; }
9143                      break
9144
9145 else
9146
9147                      smart_include=
9148                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 $as_echo "no" >&6; }
9150
9151 fi
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153   done
9154 fi
9155
9156 if test "x$smart_include" = "x"; then
9157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h" >&5
9158 $as_echo_n "checking for collectd/client.h... " >&6; }
9159
9160     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h.  */
9162
9163                     #include <collectd/client.h>
9164 int
9165 main ()
9166 {
9167 int a = 1;
9168   ;
9169   return 0;
9170 }
9171 _ACEOF
9172 if ac_fn_c_try_compile "$LINENO"; then :
9173
9174                      smart_include=" "
9175                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9176 $as_echo "yes" >&6; }
9177                      break
9178
9179 else
9180
9181                      smart_include=
9182                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9183 $as_echo "no" >&6; }
9184
9185 fi
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 fi
9188
9189 if test "x$smart_include" = "x"; then
9190
9191   for prefix in $smart_prefix; do
9192
9193
9194 if test "x$LOCATE" != "x"; then
9195         DIRS=
9196   file="${_prefix}/${1}"
9197
9198   for x in `${LOCATE} $file 2>/dev/null`; do
9199                                         base=`echo $x | sed "s%/${file}%%"`
9200     if test "x$x" = "x$base"; then
9201       continue;
9202     fi
9203
9204     dir=`${DIRNAME} $x 2>/dev/null`
9205                 exclude=`echo ${dir} | ${GREP} /home`
9206     if test "x$exclude" != "x"; then
9207       continue
9208     fi
9209
9210                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9211     if test "x$already" = "x"; then
9212       DIRS="$DIRS $dir"
9213     fi
9214   done
9215 fi
9216
9217 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9218
9219   done
9220
9221
9222 if test "x$LOCATE" != "x"; then
9223         DIRS=
9224   file=collectd/client.h
9225
9226   for x in `${LOCATE} $file 2>/dev/null`; do
9227                                         base=`echo $x | sed "s%/${file}%%"`
9228     if test "x$x" = "x$base"; then
9229       continue;
9230     fi
9231
9232     dir=`${DIRNAME} $x 2>/dev/null`
9233                 exclude=`echo ${dir} | ${GREP} /home`
9234     if test "x$exclude" != "x"; then
9235       continue
9236     fi
9237
9238                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9239     if test "x$already" = "x"; then
9240       DIRS="$DIRS $dir"
9241     fi
9242   done
9243 fi
9244
9245 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9246
9247
9248   for try in $_smart_include_dir; do
9249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
9250 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
9251     CPPFLAGS="-isystem $try $old_CPPFLAGS"
9252     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h.  */
9254
9255                     #include <collectd/client.h>
9256 int
9257 main ()
9258 {
9259 int a = 1;
9260   ;
9261   return 0;
9262 }
9263 _ACEOF
9264 if ac_fn_c_try_compile "$LINENO"; then :
9265
9266                      smart_include="-isystem $try"
9267                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9268 $as_echo "yes" >&6; }
9269                      break
9270
9271 else
9272
9273                      smart_include=
9274                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9275 $as_echo "no" >&6; }
9276
9277 fi
9278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279   done
9280   CPPFLAGS="$old_CPPFLAGS"
9281 fi
9282
9283 if test "x$smart_include" != "x"; then
9284   eval "ac_cv_header_$ac_safe=yes"
9285   CPPFLAGS="$smart_include $old_CPPFLAGS"
9286   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9287 fi
9288
9289 smart_prefix=
9290
9291   if test "x$ac_cv_header_collectd_client_h" == "xyes"; then
9292
9293 $as_echo "#define HAVE_COLLECTDC_H 1" >>confdefs.h
9294
9295
9296
9297   else
9298     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&5
9299 $as_echo "$as_me: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&2;}
9300   fi
9301 fi
9302
9303 if test "x$HAVE_LIBCAP" = x; then
9304   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for cap.h." >&5
9305 $as_echo "$as_me: skipping test for cap.h." >&6;}
9306 else
9307         smart_try_dir="$cap_include_dir"
9308
9309
9310 ac_safe=`echo "sys/capability.h" | sed 'y%./+-%__pm%'`
9311 old_CPPFLAGS="$CPPFLAGS"
9312 smart_include=
9313 smart_include_dir="/usr/local/include /opt/include"
9314
9315 _smart_try_dir=
9316 _smart_include_dir=
9317
9318 for _prefix in $smart_prefix ""; do
9319   for _dir in $smart_try_dir; do
9320     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
9321   done
9322
9323   for _dir in $smart_include_dir; do
9324     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
9325   done
9326 done
9327
9328 if test "x$_smart_try_dir" != "x"; then
9329   for try in $_smart_try_dir; do
9330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5
9331 $as_echo_n "checking for sys/capability.h in $try... " >&6; }
9332     CPPFLAGS="-isystem $try $old_CPPFLAGS"
9333     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h.  */
9335
9336                     #include <sys/capability.h>
9337 int
9338 main ()
9339 {
9340 int a = 1;
9341   ;
9342   return 0;
9343 }
9344 _ACEOF
9345 if ac_fn_c_try_compile "$LINENO"; then :
9346
9347                      smart_include="-isystem $try"
9348                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9349 $as_echo "yes" >&6; }
9350                      break
9351
9352 else
9353
9354                      smart_include=
9355                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356 $as_echo "no" >&6; }
9357
9358 fi
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360   done
9361   CPPFLAGS="$old_CPPFLAGS"
9362 fi
9363
9364 if test "x$smart_include" = "x"; then
9365   for _prefix in $smart_prefix; do
9366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/sys/capability.h" >&5
9367 $as_echo_n "checking for ${_prefix}/sys/capability.h... " >&6; }
9368
9369     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h.  */
9371
9372                     #include <sys/capability.h>
9373 int
9374 main ()
9375 {
9376 int a = 1;
9377   ;
9378   return 0;
9379 }
9380 _ACEOF
9381 if ac_fn_c_try_compile "$LINENO"; then :
9382
9383                      smart_include="-isystem ${_prefix}/"
9384                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9385 $as_echo "yes" >&6; }
9386                      break
9387
9388 else
9389
9390                      smart_include=
9391                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9392 $as_echo "no" >&6; }
9393
9394 fi
9395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9396   done
9397 fi
9398
9399 if test "x$smart_include" = "x"; then
9400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h" >&5
9401 $as_echo_n "checking for sys/capability.h... " >&6; }
9402
9403     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h.  */
9405
9406                     #include <sys/capability.h>
9407 int
9408 main ()
9409 {
9410 int a = 1;
9411   ;
9412   return 0;
9413 }
9414 _ACEOF
9415 if ac_fn_c_try_compile "$LINENO"; then :
9416
9417                      smart_include=" "
9418                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9419 $as_echo "yes" >&6; }
9420                      break
9421
9422 else
9423
9424                      smart_include=
9425                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426 $as_echo "no" >&6; }
9427
9428 fi
9429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9430 fi
9431
9432 if test "x$smart_include" = "x"; then
9433
9434   for prefix in $smart_prefix; do
9435
9436
9437 if test "x$LOCATE" != "x"; then
9438         DIRS=
9439   file="${_prefix}/${1}"
9440
9441   for x in `${LOCATE} $file 2>/dev/null`; do
9442                                         base=`echo $x | sed "s%/${file}%%"`
9443     if test "x$x" = "x$base"; then
9444       continue;
9445     fi
9446
9447     dir=`${DIRNAME} $x 2>/dev/null`
9448                 exclude=`echo ${dir} | ${GREP} /home`
9449     if test "x$exclude" != "x"; then
9450       continue
9451     fi
9452
9453                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9454     if test "x$already" = "x"; then
9455       DIRS="$DIRS $dir"
9456     fi
9457   done
9458 fi
9459
9460 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9461
9462   done
9463
9464
9465 if test "x$LOCATE" != "x"; then
9466         DIRS=
9467   file=sys/capability.h
9468
9469   for x in `${LOCATE} $file 2>/dev/null`; do
9470                                         base=`echo $x | sed "s%/${file}%%"`
9471     if test "x$x" = "x$base"; then
9472       continue;
9473     fi
9474
9475     dir=`${DIRNAME} $x 2>/dev/null`
9476                 exclude=`echo ${dir} | ${GREP} /home`
9477     if test "x$exclude" != "x"; then
9478       continue
9479     fi
9480
9481                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9482     if test "x$already" = "x"; then
9483       DIRS="$DIRS $dir"
9484     fi
9485   done
9486 fi
9487
9488 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9489
9490
9491   for try in $_smart_include_dir; do
9492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5
9493 $as_echo_n "checking for sys/capability.h in $try... " >&6; }
9494     CPPFLAGS="-isystem $try $old_CPPFLAGS"
9495     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h.  */
9497
9498                     #include <sys/capability.h>
9499 int
9500 main ()
9501 {
9502 int a = 1;
9503   ;
9504   return 0;
9505 }
9506 _ACEOF
9507 if ac_fn_c_try_compile "$LINENO"; then :
9508
9509                      smart_include="-isystem $try"
9510                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9511 $as_echo "yes" >&6; }
9512                      break
9513
9514 else
9515
9516                      smart_include=
9517                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9519
9520 fi
9521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9522   done
9523   CPPFLAGS="$old_CPPFLAGS"
9524 fi
9525
9526 if test "x$smart_include" != "x"; then
9527   eval "ac_cv_header_$ac_safe=yes"
9528   CPPFLAGS="$smart_include $old_CPPFLAGS"
9529   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9530 fi
9531
9532 smart_prefix=
9533
9534   if test "x$ac_cv_header_sys_capability_h" == "xyes"; then
9535
9536 $as_echo "#define HAVE_CAPABILITY_H 1" >>confdefs.h
9537
9538   else
9539     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&5
9540 $as_echo "$as_me: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&2;}
9541   fi
9542 fi
9543
9544
9545 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9546 if test "x$ac_cv_type_off_t" = xyes; then :
9547
9548 else
9549
9550 cat >>confdefs.h <<_ACEOF
9551 #define off_t long int
9552 _ACEOF
9553
9554 fi
9555
9556 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9557 if test "x$ac_cv_type_pid_t" = xyes; then :
9558
9559 else
9560
9561 cat >>confdefs.h <<_ACEOF
9562 #define pid_t int
9563 _ACEOF
9564
9565 fi
9566
9567 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9568 if test "x$ac_cv_type_size_t" = xyes; then :
9569
9570 else
9571
9572 cat >>confdefs.h <<_ACEOF
9573 #define size_t unsigned int
9574 _ACEOF
9575
9576 fi
9577
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9579 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9580 if ${ac_cv_type_uid_t+:} false; then :
9581   $as_echo_n "(cached) " >&6
9582 else
9583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h.  */
9585 #include <sys/types.h>
9586
9587 _ACEOF
9588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9589   $EGREP "uid_t" >/dev/null 2>&1; then :
9590   ac_cv_type_uid_t=yes
9591 else
9592   ac_cv_type_uid_t=no
9593 fi
9594 rm -f conftest*
9595
9596 fi
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9598 $as_echo "$ac_cv_type_uid_t" >&6; }
9599 if test $ac_cv_type_uid_t = no; then
9600
9601 $as_echo "#define uid_t int" >>confdefs.h
9602
9603
9604 $as_echo "#define gid_t int" >>confdefs.h
9605
9606 fi
9607
9608
9609
9610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
9611 $as_echo_n "checking for socklen_t... " >&6; }
9612 if ${ac_cv_type_socklen_t+:} false; then :
9613   $as_echo_n "(cached) " >&6
9614 else
9615    ac_cv_type_socklen_t=no
9616       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h.  */
9618 #ifdef HAVE_SYS_TYPES_H
9619     #  include <sys/types.h>
9620     #endif
9621
9622     #ifdef HAVE_SYS_SOCKET_H
9623     #  include <sys/socket.h>
9624     #endif
9625
9626 int
9627 main ()
9628 {
9629 socklen_t foo
9630   ;
9631   return 0;
9632 }
9633 _ACEOF
9634 if ac_fn_c_try_compile "$LINENO"; then :
9635   ac_cv_type_socklen_t=yes
9636 fi
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638
9639
9640 fi
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
9642 $as_echo "$ac_cv_type_socklen_t" >&6; }
9643
9644   if test "$ac_cv_type_socklen_t" != "yes"; then
9645
9646 $as_echo "#define socklen_t int" >>confdefs.h
9647
9648   fi
9649
9650
9651
9652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
9653 $as_echo_n "checking for uint8_t... " >&6; }
9654 if ${ac_cv_type_uint8_t+:} false; then :
9655   $as_echo_n "(cached) " >&6
9656 else
9657    ac_cv_type_uint8_t=no
9658       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659 /* end confdefs.h.  */
9660 #ifdef HAVE_INTTYPES_H
9661     #  include <inttypes.h>
9662     #endif
9663
9664     #ifdef HAVE_STDINT_H
9665     #  include <stdint.h>
9666     #endif
9667
9668 int
9669 main ()
9670 {
9671 uint8_t foo
9672   ;
9673   return 0;
9674 }
9675 _ACEOF
9676 if ac_fn_c_try_compile "$LINENO"; then :
9677   ac_cv_type_uint8_t=yes
9678 fi
9679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9680
9681
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
9684 $as_echo "$ac_cv_type_uint8_t" >&6; }
9685
9686   if test "$ac_cv_type_uint8_t" != "yes"; then
9687
9688 $as_echo "#define uint8_t unsigned char" >>confdefs.h
9689
9690   fi
9691
9692
9693
9694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
9695 $as_echo_n "checking for uint16_t... " >&6; }
9696 if ${ac_cv_type_uint16_t+:} false; then :
9697   $as_echo_n "(cached) " >&6
9698 else
9699    ac_cv_type_uint16_t=no
9700       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h.  */
9702 #ifdef HAVE_INTTYPES_H
9703     #  include <inttypes.h>
9704     #endif
9705
9706     #ifdef HAVE_STDINT_H
9707     #  include <stdint.h>
9708     #endif
9709
9710 int
9711 main ()
9712 {
9713 uint16_t foo
9714   ;
9715   return 0;
9716 }
9717 _ACEOF
9718 if ac_fn_c_try_compile "$LINENO"; then :
9719   ac_cv_type_uint16_t=yes
9720 fi
9721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9722
9723
9724 fi
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
9726 $as_echo "$ac_cv_type_uint16_t" >&6; }
9727
9728   if test "$ac_cv_type_uint16_t" != "yes"; then
9729
9730 $as_echo "#define uint16_t unsigned short" >>confdefs.h
9731
9732   fi
9733
9734
9735
9736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
9737 $as_echo_n "checking for uint32_t... " >&6; }
9738 if ${ac_cv_type_uint32_t+:} false; then :
9739   $as_echo_n "(cached) " >&6
9740 else
9741    ac_cv_type_uint32_t=no
9742       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h.  */
9744 #ifdef HAVE_INTTYPES_H
9745     #  include <inttypes.h>
9746     #endif
9747
9748     #ifdef HAVE_STDINT_H
9749     #  include <stdint.h>
9750     #endif
9751
9752 int
9753 main ()
9754 {
9755 uint32_t foo
9756   ;
9757   return 0;
9758 }
9759 _ACEOF
9760 if ac_fn_c_try_compile "$LINENO"; then :
9761   ac_cv_type_uint32_t=yes
9762 fi
9763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9764
9765
9766 fi
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
9768 $as_echo "$ac_cv_type_uint32_t" >&6; }
9769
9770   if test "$ac_cv_type_uint32_t" != "yes"; then
9771
9772 $as_echo "#define uint32_t unsigned int" >>confdefs.h
9773
9774   fi
9775
9776
9777
9778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
9779 $as_echo_n "checking for uint64_t... " >&6; }
9780 if ${ac_cv_type_uint64_t+:} false; then :
9781   $as_echo_n "(cached) " >&6
9782 else
9783    ac_cv_type_uint64_t=no
9784       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h.  */
9786 #ifdef HAVE_INTTYPES_H
9787     #  include <inttypes.h>
9788     #endif
9789
9790     #ifdef HAVE_STDINT_H
9791     #  include <stdint.h>
9792     #endif
9793
9794 int
9795 main ()
9796 {
9797 uint64_t foo
9798   ;
9799   return 0;
9800 }
9801 _ACEOF
9802 if ac_fn_c_try_compile "$LINENO"; then :
9803   ac_cv_type_uint64_t=yes
9804 fi
9805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806
9807
9808 fi
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5
9810 $as_echo "$ac_cv_type_uint64_t" >&6; }
9811
9812   if test "$ac_cv_type_uint64_t" != "yes"; then
9813
9814 $as_echo "#define uint64_t unsigned long long" >>confdefs.h
9815
9816   fi
9817
9818
9819 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
9820 if test "x$ac_cv_type___uint128_t" = xyes; then :
9821
9822 $as_echo "#define HAVE___UINT128_T 1" >>confdefs.h
9823
9824 fi
9825
9826
9827 ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "
9828     #ifdef HAVE_INTTYPES_H
9829     #  include <inttypes.h>
9830     #endif
9831
9832     #ifdef HAVE_STDINT_H
9833     #  include <stdint.h>
9834     #endif
9835
9836
9837 "
9838 if test "x$ac_cv_type_uint128_t" = xyes; then :
9839
9840 $as_echo "#define HAVE_UINT128_T 1" >>confdefs.h
9841
9842 fi
9843
9844
9845 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
9846     #ifdef HAVE_NETINET_IN_H
9847     #  include <netinet/in.h>
9848     #endif
9849
9850
9851 "
9852 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
9853
9854 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
9855
9856 fi
9857
9858
9859 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9860     #ifdef HAVE_NETINET_IN_H
9861     #  include <netinet/in.h>
9862     #endif
9863
9864     #ifdef HAVE_SYS_SOCKET_H
9865     #  include <sys/socket.h>
9866     #endif
9867
9868 "
9869 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
9870
9871 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
9872
9873 fi
9874
9875
9876 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
9877     #ifdef HAVE_NETINET_IN_H
9878     #  include <netinet/in.h>
9879     #endif
9880
9881 "
9882 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
9883
9884 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
9885
9886 fi
9887
9888
9889 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
9890     #ifdef HAVE_SYS_TYPES_H
9891     #  include <sys/types.h>
9892     #endif
9893
9894     #ifdef HAVE_SYS_SOCKET_H
9895     #  include <sys/socket.h>
9896     #endif
9897
9898     #ifdef HAVE_NETDB_H
9899     #  include <netdb.h>
9900     #endif
9901
9902
9903 "
9904 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
9905
9906 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
9907
9908 fi
9909
9910
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_t is defined" >&5
9912 $as_echo_n "checking if sig_t is defined... " >&6; }
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h.  */
9915
9916       #ifdef HAVE_SIGNAL_H
9917       #  include <signal.h>
9918       #endif
9919
9920 int
9921 main ()
9922 {
9923
9924       sig_t func;
9925       return 0;
9926
9927
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 if ac_fn_c_try_link "$LINENO"; then :
9933
9934       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9935 $as_echo "yes" >&6; }
9936
9937 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
9938
9939
9940 else
9941
9942       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9943 $as_echo "no" >&6; }
9944
9945
9946 fi
9947 rm -f core conftest.err conftest.$ac_objext \
9948     conftest$ac_exeext conftest.$ac_ext
9949
9950 for ac_func in \
9951   bindat \
9952   clock_gettime \
9953   closefrom \
9954   ctime_r \
9955   dladdr \
9956   fcntl \
9957   fopencookie \
9958   funopen \
9959   getaddrinfo \
9960   getnameinfo \
9961   getopt_long \
9962   getpeereid \
9963   getresuid \
9964   gettimeofday \
9965   getusershell \
9966   gmtime_r \
9967   if_indextoname \
9968   inet_aton \
9969   inet_ntop \
9970   inet_pton \
9971   initgroups \
9972   kqueue \
9973   localtime_r \
9974   mallopt \
9975   mkdirat \
9976   openat \
9977   pthread_sigmask \
9978   setlinebuf \
9979   setresuid \
9980   setsid \
9981   setuid \
9982   setvbuf \
9983   sigaction \
9984   sigprocmask \
9985   snprintf \
9986   strcasecmp \
9987   strlcat \
9988   strlcpy \
9989   strncasecmp \
9990   strsep \
9991   strsignal \
9992   unlinkat \
9993   vdprintf \
9994   vsnprintf
9995
9996 do :
9997   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9998 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9999 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10000   cat >>confdefs.h <<_ACEOF
10001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10002 _ACEOF
10003
10004 fi
10005 done
10006
10007
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10009 $as_echo_n "checking return type of signal handlers... " >&6; }
10010 if ${ac_cv_type_signal+:} false; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h.  */
10015 #include <sys/types.h>
10016 #include <signal.h>
10017
10018 int
10019 main ()
10020 {
10021 return *(signal (0, 0)) (0) == 1;
10022   ;
10023   return 0;
10024 }
10025 _ACEOF
10026 if ac_fn_c_try_compile "$LINENO"; then :
10027   ac_cv_type_signal=int
10028 else
10029   ac_cv_type_signal=void
10030 fi
10031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10032 fi
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10034 $as_echo "$ac_cv_type_signal" >&6; }
10035
10036 cat >>confdefs.h <<_ACEOF
10037 #define RETSIGTYPE $ac_cv_type_signal
10038 _ACEOF
10039
10040
10041
10042 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
10043
10044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
10045 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
10046
10047
10048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h.  */
10050
10051 #include <utmpx.h>
10052 #ifdef HAVE_STDDEF_H
10053 #include <stddef.h>
10054 #endif
10055 #ifndef offsetof
10056 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10057 #endif
10058
10059 int
10060 main ()
10061 {
10062  int foo = offsetof(struct utmpx, ut_xtime)
10063   ;
10064   return 0;
10065 }
10066 _ACEOF
10067 if ac_fn_c_try_compile "$LINENO"; then :
10068   has_element=" "
10069 else
10070   has_element=
10071 fi
10072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073
10074   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
10075   if test "x$has_element" != "x"; then
10076     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10077 $as_echo "yes" >&6; }
10078     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
10079   else
10080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081 $as_echo "no" >&6; }
10082     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
10083  fi
10084
10085  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
10086
10087 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
10088
10089  fi
10090 fi
10091
10092
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
10094 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
10095
10096
10097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098 /* end confdefs.h.  */
10099
10100 #include <netinet/in.h>
10101 #ifdef HAVE_STDDEF_H
10102 #include <stddef.h>
10103 #endif
10104 #ifndef offsetof
10105 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10106 #endif
10107
10108 int
10109 main ()
10110 {
10111  int foo = offsetof(struct in_pktinfo, ipi_addr)
10112   ;
10113   return 0;
10114 }
10115 _ACEOF
10116 if ac_fn_c_try_compile "$LINENO"; then :
10117   has_element=" "
10118 else
10119   has_element=
10120 fi
10121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10122
10123   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
10124   if test "x$has_element" != "x"; then
10125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10126 $as_echo "yes" >&6; }
10127     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
10128   else
10129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 $as_echo "no" >&6; }
10131     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
10132  fi
10133
10134 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
10135
10136 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
10137
10138 fi
10139
10140
10141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
10142 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
10143
10144
10145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h.  */
10147
10148 #include <netinet/in.h>
10149 #ifdef HAVE_STDDEF_H
10150 #include <stddef.h>
10151 #endif
10152 #ifndef offsetof
10153 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10154 #endif
10155
10156 int
10157 main ()
10158 {
10159  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 if ac_fn_c_try_compile "$LINENO"; then :
10165   has_element=" "
10166 else
10167   has_element=
10168 fi
10169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10170
10171   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
10172   if test "x$has_element" != "x"; then
10173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10174 $as_echo "yes" >&6; }
10175     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
10176   else
10177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10179     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
10180  fi
10181
10182 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
10183
10184 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
10185
10186 fi
10187
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonll is defined" >&5
10189 $as_echo_n "checking if htonll is defined... " >&6; }
10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h.  */
10192
10193       #include <sys/types.h>
10194       #include <netinet/in.h>
10195
10196 int
10197 main ()
10198 {
10199
10200       return htonll(0);
10201
10202
10203   ;
10204   return 0;
10205 }
10206 _ACEOF
10207 if ac_fn_c_try_link "$LINENO"; then :
10208
10209       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10210 $as_echo "yes" >&6; }
10211
10212 $as_echo "#define HAVE_HTONLL 1" >>confdefs.h
10213
10214
10215 else
10216
10217       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10218 $as_echo "no" >&6; }
10219
10220
10221 fi
10222 rm -f core conftest.err conftest.$ac_objext \
10223     conftest$ac_exeext conftest.$ac_ext
10224
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonlll is defined" >&5
10226 $as_echo_n "checking if htonlll is defined... " >&6; }
10227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228 /* end confdefs.h.  */
10229
10230       #include <sys/types.h>
10231       #include <netinet/in.h>
10232
10233 int
10234 main ()
10235 {
10236
10237       return htonlll(0);
10238
10239
10240   ;
10241   return 0;
10242 }
10243 _ACEOF
10244 if ac_fn_c_try_link "$LINENO"; then :
10245
10246       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10247 $as_echo "yes" >&6; }
10248
10249 $as_echo "#define HAVE_HTONLLL 1" >>confdefs.h
10250
10251
10252 else
10253
10254       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10255 $as_echo "no" >&6; }
10256
10257
10258 fi
10259 rm -f core conftest.err conftest.$ac_objext \
10260     conftest$ac_exeext conftest.$ac_ext
10261
10262
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10264 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10265 if ${ac_cv_c_const+:} false; then :
10266   $as_echo_n "(cached) " >&6
10267 else
10268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h.  */
10270
10271 int
10272 main ()
10273 {
10274
10275 #ifndef __cplusplus
10276   /* Ultrix mips cc rejects this sort of thing.  */
10277   typedef int charset[2];
10278   const charset cs = { 0, 0 };
10279   /* SunOS 4.1.1 cc rejects this.  */
10280   char const *const *pcpcc;
10281   char **ppc;
10282   /* NEC SVR4.0.2 mips cc rejects this.  */
10283   struct point {int x, y;};
10284   static struct point const zero = {0,0};
10285   /* AIX XL C 1.02.0.0 rejects this.
10286      It does not let you subtract one const X* pointer from another in
10287      an arm of an if-expression whose if-part is not a constant
10288      expression */
10289   const char *g = "string";
10290   pcpcc = &g + (g ? g-g : 0);
10291   /* HPUX 7.0 cc rejects these. */
10292   ++pcpcc;
10293   ppc = (char**) pcpcc;
10294   pcpcc = (char const *const *) ppc;
10295   { /* SCO 3.2v4 cc rejects this sort of thing.  */
10296     char tx;
10297     char *t = &tx;
10298     char const *s = 0 ? (char *) 0 : (char const *) 0;
10299
10300     *t++ = 0;
10301     if (s) return 0;
10302   }
10303   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10304     int x[] = {25, 17};
10305     const int *foo = &x[0];
10306     ++foo;
10307   }
10308   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10309     typedef const int *iptr;
10310     iptr p = 0;
10311     ++p;
10312   }
10313   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
10314        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10315     struct s { int j; const int *ap[3]; } bx;
10316     struct s *b = &bx; b->j = 5;
10317   }
10318   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10319     const int foo = 10;
10320     if (!foo) return 0;
10321   }
10322   return !cs[0] && !zero.x;
10323 #endif
10324
10325   ;
10326   return 0;
10327 }
10328 _ACEOF
10329 if ac_fn_c_try_compile "$LINENO"; then :
10330   ac_cv_c_const=yes
10331 else
10332   ac_cv_c_const=no
10333 fi
10334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10335 fi
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10337 $as_echo "$ac_cv_c_const" >&6; }
10338 if test $ac_cv_c_const = no; then
10339
10340 $as_echo "#define const /**/" >>confdefs.h
10341
10342 fi
10343
10344
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
10346 $as_echo_n "checking type of OS... " >&6; }
10347 OS=`uname -s`
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
10349 $as_echo "$OS" >&6; }
10350 if test "$OS" = "OS/2"; then
10351   LIBPREFIX=
10352 else
10353   LIBPREFIX=lib
10354 fi
10355
10356
10357 if test "x$developer" = "xyes"; then
10358   { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
10359 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
10360
10361
10362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
10363 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
10364 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
10365   $as_echo_n "(cached) " >&6
10366 else
10367
10368
10369     CFLAGS_SAVED=$CFLAGS
10370     CFLAGS="$CFLAGS -Werror -Wdocumentation"
10371
10372     ac_ext=c
10373 ac_cpp='$CPP $CPPFLAGS'
10374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10377
10378     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h.  */
10380
10381 int
10382 main ()
10383 {
10384 return 0;
10385   ;
10386   return 0;
10387 }
10388 _ACEOF
10389 if ac_fn_c_try_compile "$LINENO"; then :
10390   ax_cv_cc_wdocumentation_flag="yes"
10391 else
10392   ax_cv_cc_wdocumentation_flag="no"
10393 fi
10394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10395     ac_ext=c
10396 ac_cpp='$CPP $CPPFLAGS'
10397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10400
10401
10402     CFLAGS="$CFLAGS_SAVED"
10403
10404 fi
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
10406 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
10407
10408   if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
10409     devflags="-Wdocumentation"
10410   fi
10411
10412
10413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Weverything\"" >&5
10414 $as_echo_n "checking for the compiler flag \"-Weverything\"... " >&6; }
10415 if ${ax_cv_cc_weverything_flag+:} false; then :
10416   $as_echo_n "(cached) " >&6
10417 else
10418
10419
10420     CFLAGS_SAVED=$CFLAGS
10421     CFLAGS="$CFLAGS -Werror -Weverything -Wno-unused-macros -Wno-unreachable-code-return"
10422
10423     ac_ext=c
10424 ac_cpp='$CPP $CPPFLAGS'
10425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10428
10429     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h.  */
10431
10432 int
10433 main ()
10434 {
10435 return 0;
10436   ;
10437   return 0;
10438 }
10439 _ACEOF
10440 if ac_fn_c_try_compile "$LINENO"; then :
10441   ax_cv_cc_weverything_flag="yes"
10442 else
10443   ax_cv_cc_weverything_flag="no"
10444 fi
10445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10446     ac_ext=c
10447 ac_cpp='$CPP $CPPFLAGS'
10448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10451
10452
10453     CFLAGS="$CFLAGS_SAVED"
10454
10455 fi
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_weverything_flag" >&5
10457 $as_echo "$ax_cv_cc_weverything_flag" >&6; }
10458
10459   if test "x$ax_cv_cc_weverything_flag" = "xyes"; then
10460     devflags="$devflags -W -Weverything -Wformat=2 -Wno-missing-field-initializers -Wno-date-time -Wno-padded -Wno-gnu-zero-variadic-macro-arguments -Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-conversion -Wno-switch-enum -Wno-gnu-statement-expression -Wno-extended-offsetof -Wno-cast-align -Wno-documentation-unknown-command -Wno-covered-switch-default -Wno-packed -DWITH_VERIFY_PTR=1"
10461   else
10462     if test "x$GCC" = "xyes"; then
10463       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"
10464       INSTALLSTRIP=""
10465     fi
10466   fi
10467
10468   { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
10469 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
10470
10471   CFLAGS="$CFLAGS $devflags"
10472         if test "x$EXPERIMENTAL" != "xno"; then
10473     { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
10474 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
10475     EXPERIMENTAL=yes
10476   fi
10477 else
10478   devflags=""
10479   CFLAGS="$CFLAGS -DNDEBUG"
10480   INSTALLSTRIP=""
10481 fi
10482
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
10484 $as_echo_n "checking if building with -DNDEBUG... " >&6; }
10485 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
10486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10487 $as_echo "yes" >&6; }
10488
10489 $as_echo "#define WITH_NDEBUG 1" >>confdefs.h
10490
10491 else
10492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10494 fi
10495
10496 export EXPERIMENTAL
10497
10498 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
10499   RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
10500
10501 cat >>confdefs.h <<_ACEOF
10502 #define RADIUSD_VERSION_COMMIT ${RADIUSD_VERSION_COMMIT}
10503 _ACEOF
10504
10505 fi
10506
10507
10508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
10509 $as_echo_n "checking for __thread support in compiler... " >&6; }
10510   if test "$cross_compiling" = yes; then :
10511   have_tls=no
10512 else
10513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h.  */
10515
10516         static __thread int val;
10517         int main(int argc, char **argv) {
10518           val = 0;
10519           return val;
10520         }
10521
10522
10523 _ACEOF
10524 if ac_fn_c_try_run "$LINENO"; then :
10525   have_tls=yes
10526 else
10527   have_tls=no
10528 fi
10529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10530   conftest.$ac_objext conftest.beam conftest.$ac_ext
10531 fi
10532
10533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10534 $as_echo "$have_tls" >&6; }
10535   if test "x$have_tls" = "xyes"; then
10536
10537 $as_echo "#define TLS_STORAGE_CLASS __thread" >>confdefs.h
10538
10539   fi
10540
10541   if test "x$have_tls" = "xno"; then
10542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __declspec(thread) support in compiler" >&5
10543 $as_echo_n "checking for __declspec(thread) support in compiler... " >&6; }
10544     if test "$cross_compiling" = yes; then :
10545   have_tls=no
10546 else
10547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h.  */
10549
10550           static _Thread_local int val;
10551           int main(int argc, char **argv) {
10552             val = 0;
10553             return val;
10554           }
10555
10556
10557 _ACEOF
10558 if ac_fn_c_try_run "$LINENO"; then :
10559   have_tls=yes
10560 else
10561   have_tls=no
10562 fi
10563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10564   conftest.$ac_objext conftest.beam conftest.$ac_ext
10565 fi
10566
10567     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10568 $as_echo "$have_tls" >&6; }
10569     if test "x$have_tls" = "xyes"; then
10570
10571 $as_echo "#define TLS_STORAGE_CLASS __declspec(thread)" >>confdefs.h
10572
10573     fi
10574   fi
10575   if test "x$have_tls" = "xno"; then
10576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Thread_local support in compiler" >&5
10577 $as_echo_n "checking for _Thread_local support in compiler... " >&6; }
10578     if test "$cross_compiling" = yes; then :
10579   have_tls=no
10580 else
10581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h.  */
10583
10584           static _Thread_local int val;
10585           int main(int argc, char **argv) {
10586             val = 0;
10587             return val;
10588           }
10589
10590
10591 _ACEOF
10592 if ac_fn_c_try_run "$LINENO"; then :
10593   have_tls=yes
10594 else
10595   have_tls=no
10596 fi
10597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10598   conftest.$ac_objext conftest.beam conftest.$ac_ext
10599 fi
10600
10601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10602 $as_echo "$have_tls" >&6; }
10603     if test "x$have_tls" = "xyes"; then
10604
10605 $as_echo "#define TLS_STORAGE_CLASS _Thread_local" >>confdefs.h
10606
10607     fi
10608   fi
10609
10610
10611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_choose_expr support in compiler" >&5
10612 $as_echo_n "checking for __builtin_choose_expr support in compiler... " >&6; }
10613 if ${ax_cv_cc_builtin_choose_expr+:} false; then :
10614   $as_echo_n "(cached) " >&6
10615 else
10616
10617     if test "$cross_compiling" = yes; then :
10618   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10620 as_fn_error $? "cannot run test program while cross compiling
10621 See \`config.log' for more details" "$LINENO" 5; }
10622 else
10623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h.  */
10625
10626
10627           int main(int argc, char **argv) {
10628             if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10629             return __builtin_choose_expr(0, 1, 0);
10630           }
10631
10632
10633 _ACEOF
10634 if ac_fn_c_try_run "$LINENO"; then :
10635   ax_cv_cc_builtin_choose_expr=yes
10636 else
10637   ax_cv_cc_builtin_choose_expr=no
10638
10639 fi
10640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10641   conftest.$ac_objext conftest.beam conftest.$ac_ext
10642 fi
10643
10644
10645 fi
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_choose_expr" >&5
10647 $as_echo "$ax_cv_cc_builtin_choose_expr" >&6; }
10648   if test "x$ax_cv_cc_builtin_choose_expr" = "xyes"; then
10649
10650 $as_echo "#define HAVE_BUILTIN_CHOOSE_EXPR 1" >>confdefs.h
10651
10652   fi
10653
10654
10655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p support in compiler" >&5
10656 $as_echo_n "checking for __builtin_types_compatible_p support in compiler... " >&6; }
10657 if ${ax_cv_cc_builtin_types_compatible_p+:} false; then :
10658   $as_echo_n "(cached) " >&6
10659 else
10660
10661     if test "$cross_compiling" = yes; then :
10662   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10664 as_fn_error $? "cannot run test program while cross compiling
10665 See \`config.log' for more details" "$LINENO" 5; }
10666 else
10667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h.  */
10669
10670
10671           int main(int argc, char **argv) {
10672             if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10673             return !(__builtin_types_compatible_p(char *, char *));
10674           }
10675
10676
10677 _ACEOF
10678 if ac_fn_c_try_run "$LINENO"; then :
10679   ax_cv_cc_builtin_types_compatible_p=yes
10680 else
10681   ax_cv_cc_builtin_types_compatible_p=no
10682
10683 fi
10684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10685   conftest.$ac_objext conftest.beam conftest.$ac_ext
10686 fi
10687
10688
10689 fi
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_types_compatible_p" >&5
10691 $as_echo "$ax_cv_cc_builtin_types_compatible_p" >&6; }
10692   if test "x$ax_cv_cc_builtin_types_compatible_p" = "xyes"; then
10693
10694 $as_echo "#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
10695
10696   fi
10697
10698
10699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64 support in compiler" >&5
10700 $as_echo_n "checking for __builtin_bswap64 support in compiler... " >&6; }
10701 if ${ax_cv_cc_builtin_bswap64+:} false; then :
10702   $as_echo_n "(cached) " >&6
10703 else
10704
10705     if test "$cross_compiling" = yes; then :
10706   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10708 as_fn_error $? "cannot run test program while cross compiling
10709 See \`config.log' for more details" "$LINENO" 5; }
10710 else
10711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h.  */
10713
10714
10715           int main(int argc, char **argv) {
10716             if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10717             return (__builtin_bswap64(0));
10718           }
10719
10720
10721 _ACEOF
10722 if ac_fn_c_try_run "$LINENO"; then :
10723   ax_cv_cc_builtin_bswap64=yes
10724 else
10725   ax_cv_cc_builtin_bswap64=no
10726
10727 fi
10728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10729   conftest.$ac_objext conftest.beam conftest.$ac_ext
10730 fi
10731
10732
10733 fi
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_bswap64" >&5
10735 $as_echo "$ax_cv_cc_builtin_bswap64" >&6; }
10736   if test "x$ax_cv_cc_builtin_bswap64" = "xyes"; then
10737
10738 $as_echo "#define HAVE_BUILTIN_BSWAP_64 1" >>confdefs.h
10739
10740   fi
10741
10742
10743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((__bounded__)) support in compiler" >&5
10744 $as_echo_n "checking for __attribute__((__bounded__)) support in compiler... " >&6; }
10745 if ${ax_cv_cc_bounded_attribute+:} false; then :
10746   $as_echo_n "(cached) " >&6
10747 else
10748
10749     CFLAGS_SAVED=$CFLAGS
10750     CFLAGS="$CFLAGS -Werror"
10751     if test "$cross_compiling" = yes; then :
10752   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10754 as_fn_error $? "cannot run test program while cross compiling
10755 See \`config.log' for more details" "$LINENO" 5; }
10756 else
10757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h.  */
10759
10760
10761           void test(char *buff) __attribute__ ((__bounded__ (__string__, 1, 1)));
10762           int main(int argc, char **argv) {
10763             if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10764             return 0;
10765           }
10766
10767
10768 _ACEOF
10769 if ac_fn_c_try_run "$LINENO"; then :
10770   ax_cv_cc_bounded_attribute=yes
10771 else
10772   ax_cv_cc_bounded_attribute=no
10773
10774 fi
10775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10776   conftest.$ac_objext conftest.beam conftest.$ac_ext
10777 fi
10778
10779     CFLAGS="$CFLAGS_SAVED"
10780
10781 fi
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_bounded_attribute" >&5
10783 $as_echo "$ax_cv_cc_bounded_attribute" >&6; }
10784   if test "x$ax_cv_cc_bounded_attribute" = "xyes"; then
10785
10786 $as_echo "#define HAVE_ATTRIBUTE_BOUNDED 1" >>confdefs.h
10787
10788   fi
10789
10790
10791
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc_set_memlimit in -ltalloc" >&5
10793 $as_echo_n "checking for talloc_set_memlimit in -ltalloc... " >&6; }
10794 if ${ac_cv_lib_talloc_talloc_set_memlimit+:} false; then :
10795   $as_echo_n "(cached) " >&6
10796 else
10797   ac_check_lib_save_LIBS=$LIBS
10798 LIBS="-ltalloc  $LIBS"
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h.  */
10801
10802 /* Override any GCC internal prototype to avoid an error.
10803    Use char because int might match the return type of a GCC
10804    builtin and then its argument prototype would still apply.  */
10805 #ifdef __cplusplus
10806 extern "C"
10807 #endif
10808 char talloc_set_memlimit ();
10809 int
10810 main ()
10811 {
10812 return talloc_set_memlimit ();
10813   ;
10814   return 0;
10815 }
10816 _ACEOF
10817 if ac_fn_c_try_link "$LINENO"; then :
10818   ac_cv_lib_talloc_talloc_set_memlimit=yes
10819 else
10820   ac_cv_lib_talloc_talloc_set_memlimit=no
10821 fi
10822 rm -f core conftest.err conftest.$ac_objext \
10823     conftest$ac_exeext conftest.$ac_ext
10824 LIBS=$ac_check_lib_save_LIBS
10825 fi
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_talloc_talloc_set_memlimit" >&5
10827 $as_echo "$ac_cv_lib_talloc_talloc_set_memlimit" >&6; }
10828 if test "x$ac_cv_lib_talloc_talloc_set_memlimit" = xyes; then :
10829
10830
10831 $as_echo "#define HAVE_TALLOC_SET_MEMLIMIT 1" >>confdefs.h
10832
10833
10834
10835 fi
10836
10837
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10839 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10840 if ${ac_cv_lib_crypt_crypt+:} false; then :
10841   $as_echo_n "(cached) " >&6
10842 else
10843   ac_check_lib_save_LIBS=$LIBS
10844 LIBS="-lcrypt  $LIBS"
10845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h.  */
10847
10848 /* Override any GCC internal prototype to avoid an error.
10849    Use char because int might match the return type of a GCC
10850    builtin and then its argument prototype would still apply.  */
10851 #ifdef __cplusplus
10852 extern "C"
10853 #endif
10854 char crypt ();
10855 int
10856 main ()
10857 {
10858 return crypt ();
10859   ;
10860   return 0;
10861 }
10862 _ACEOF
10863 if ac_fn_c_try_link "$LINENO"; then :
10864   ac_cv_lib_crypt_crypt=yes
10865 else
10866   ac_cv_lib_crypt_crypt=no
10867 fi
10868 rm -f core conftest.err conftest.$ac_objext \
10869     conftest$ac_exeext conftest.$ac_ext
10870 LIBS=$ac_check_lib_save_LIBS
10871 fi
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10873 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10874 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10875   CRYPTLIB="-lcrypt"
10876
10877 fi
10878
10879
10880 if test "$CRYPTLIB" != ""; then
10881
10882 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10883
10884 else
10885   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
10886 if test "x$ac_cv_func_crypt" = xyes; then :
10887
10888 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10889
10890 fi
10891
10892 fi
10893
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
10895 $as_echo_n "checking for setkey in -lcipher... " >&6; }
10896 if ${ac_cv_lib_cipher_setkey+:} false; then :
10897   $as_echo_n "(cached) " >&6
10898 else
10899   ac_check_lib_save_LIBS=$LIBS
10900 LIBS="-lcipher  $LIBS"
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h.  */
10903
10904 /* Override any GCC internal prototype to avoid an error.
10905    Use char because int might match the return type of a GCC
10906    builtin and then its argument prototype would still apply.  */
10907 #ifdef __cplusplus
10908 extern "C"
10909 #endif
10910 char setkey ();
10911 int
10912 main ()
10913 {
10914 return setkey ();
10915   ;
10916   return 0;
10917 }
10918 _ACEOF
10919 if ac_fn_c_try_link "$LINENO"; then :
10920   ac_cv_lib_cipher_setkey=yes
10921 else
10922   ac_cv_lib_cipher_setkey=no
10923 fi
10924 rm -f core conftest.err conftest.$ac_objext \
10925     conftest$ac_exeext conftest.$ac_ext
10926 LIBS=$ac_check_lib_save_LIBS
10927 fi
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
10929 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
10930 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
10931   CRYPTLIB="${CRYPTLIB} -lcipher"
10932
10933 fi
10934
10935
10936
10937 execinfo_lib_dir=
10938
10939 # Check whether --with-execinfo-lib-dir was given.
10940 if test "${with_execinfo_lib_dir+set}" = set; then :
10941   withval=$with_execinfo_lib_dir;  case "$withval" in
10942     no)
10943         as_fn_error $? "Need execinfo-lib-dir" "$LINENO" 5
10944         ;;
10945     yes)
10946         ;;
10947     *)
10948         execinfo_lib_dir="$withval"
10949         ;;
10950   esac
10951
10952 fi
10953
10954
10955 execinfo_include_dir=
10956
10957 # Check whether --with-execinfo-include-dir was given.
10958 if test "${with_execinfo_include_dir+set}" = set; then :
10959   withval=$with_execinfo_include_dir;  case "$withval" in
10960     no)
10961         as_fn_error $? "Need execinfo-include-dir" "$LINENO" 5
10962         ;;
10963     yes)
10964         ;;
10965     *)
10966         execinfo_include_dir="$withval"
10967         ;;
10968   esac
10969
10970 fi
10971
10972
10973 smart_try_dir=$execinfo_include_dir
10974
10975
10976 ac_safe=`echo "execinfo.h" | sed 'y%./+-%__pm%'`
10977 old_CPPFLAGS="$CPPFLAGS"
10978 smart_include=
10979 smart_include_dir="/usr/local/include /opt/include"
10980
10981 _smart_try_dir=
10982 _smart_include_dir=
10983
10984 for _prefix in $smart_prefix ""; do
10985   for _dir in $smart_try_dir; do
10986     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
10987   done
10988
10989   for _dir in $smart_include_dir; do
10990     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
10991   done
10992 done
10993
10994 if test "x$_smart_try_dir" != "x"; then
10995   for try in $_smart_try_dir; do
10996     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
10997 $as_echo_n "checking for execinfo.h in $try... " >&6; }
10998     CPPFLAGS="-isystem $try $old_CPPFLAGS"
10999     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h.  */
11001
11002                     #include <execinfo.h>
11003 int
11004 main ()
11005 {
11006 int a = 1;
11007   ;
11008   return 0;
11009 }
11010 _ACEOF
11011 if ac_fn_c_try_compile "$LINENO"; then :
11012
11013                      smart_include="-isystem $try"
11014                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11015 $as_echo "yes" >&6; }
11016                      break
11017
11018 else
11019
11020                      smart_include=
11021                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; }
11023
11024 fi
11025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11026   done
11027   CPPFLAGS="$old_CPPFLAGS"
11028 fi
11029
11030 if test "x$smart_include" = "x"; then
11031   for _prefix in $smart_prefix; do
11032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/execinfo.h" >&5
11033 $as_echo_n "checking for ${_prefix}/execinfo.h... " >&6; }
11034
11035     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h.  */
11037
11038                     #include <execinfo.h>
11039 int
11040 main ()
11041 {
11042 int a = 1;
11043   ;
11044   return 0;
11045 }
11046 _ACEOF
11047 if ac_fn_c_try_compile "$LINENO"; then :
11048
11049                      smart_include="-isystem ${_prefix}/"
11050                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11051 $as_echo "yes" >&6; }
11052                      break
11053
11054 else
11055
11056                      smart_include=
11057                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058 $as_echo "no" >&6; }
11059
11060 fi
11061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062   done
11063 fi
11064
11065 if test "x$smart_include" = "x"; then
11066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h" >&5
11067 $as_echo_n "checking for execinfo.h... " >&6; }
11068
11069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h.  */
11071
11072                     #include <execinfo.h>
11073 int
11074 main ()
11075 {
11076 int a = 1;
11077   ;
11078   return 0;
11079 }
11080 _ACEOF
11081 if ac_fn_c_try_compile "$LINENO"; then :
11082
11083                      smart_include=" "
11084                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11085 $as_echo "yes" >&6; }
11086                      break
11087
11088 else
11089
11090                      smart_include=
11091                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092 $as_echo "no" >&6; }
11093
11094 fi
11095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096 fi
11097
11098 if test "x$smart_include" = "x"; then
11099
11100   for prefix in $smart_prefix; do
11101
11102
11103 if test "x$LOCATE" != "x"; then
11104         DIRS=
11105   file="${_prefix}/${1}"
11106
11107   for x in `${LOCATE} $file 2>/dev/null`; do
11108                                         base=`echo $x | sed "s%/${file}%%"`
11109     if test "x$x" = "x$base"; then
11110       continue;
11111     fi
11112
11113     dir=`${DIRNAME} $x 2>/dev/null`
11114                 exclude=`echo ${dir} | ${GREP} /home`
11115     if test "x$exclude" != "x"; then
11116       continue
11117     fi
11118
11119                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11120     if test "x$already" = "x"; then
11121       DIRS="$DIRS $dir"
11122     fi
11123   done
11124 fi
11125
11126 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11127
11128   done
11129
11130
11131 if test "x$LOCATE" != "x"; then
11132         DIRS=
11133   file=execinfo.h
11134
11135   for x in `${LOCATE} $file 2>/dev/null`; do
11136                                         base=`echo $x | sed "s%/${file}%%"`
11137     if test "x$x" = "x$base"; then
11138       continue;
11139     fi
11140
11141     dir=`${DIRNAME} $x 2>/dev/null`
11142                 exclude=`echo ${dir} | ${GREP} /home`
11143     if test "x$exclude" != "x"; then
11144       continue
11145     fi
11146
11147                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11148     if test "x$already" = "x"; then
11149       DIRS="$DIRS $dir"
11150     fi
11151   done
11152 fi
11153
11154 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11155
11156
11157   for try in $_smart_include_dir; do
11158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
11159 $as_echo_n "checking for execinfo.h in $try... " >&6; }
11160     CPPFLAGS="-isystem $try $old_CPPFLAGS"
11161     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h.  */
11163
11164                     #include <execinfo.h>
11165 int
11166 main ()
11167 {
11168 int a = 1;
11169   ;
11170   return 0;
11171 }
11172 _ACEOF
11173 if ac_fn_c_try_compile "$LINENO"; then :
11174
11175                      smart_include="-isystem $try"
11176                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11177 $as_echo "yes" >&6; }
11178                      break
11179
11180 else
11181
11182                      smart_include=
11183                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11185
11186 fi
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188   done
11189   CPPFLAGS="$old_CPPFLAGS"
11190 fi
11191
11192 if test "x$smart_include" != "x"; then
11193   eval "ac_cv_header_$ac_safe=yes"
11194   CPPFLAGS="$smart_include $old_CPPFLAGS"
11195   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11196 fi
11197
11198 smart_prefix=
11199
11200 if test "x$ac_cv_header_execinfo_h" = "xyes"; then
11201   smart_try_dir=$execinfo_lib_dir
11202
11203
11204 sm_lib_safe=`echo "execinfo" | sed 'y%./+-%__p_%'`
11205 sm_func_safe=`echo "backtrace_symbols" | sed 'y%./+-%__p_%'`
11206
11207 old_LIBS="$LIBS"
11208 old_CPPFLAGS="$CPPFLAGS"
11209 smart_lib=
11210 smart_ldflags=
11211 smart_lib_dir=
11212
11213 if test "x$smart_try_dir" != "x"; then
11214   for try in $smart_try_dir; do
11215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
11216 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
11217     LIBS="-lexecinfo $old_LIBS"
11218     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11219     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h.  */
11221 extern char backtrace_symbols();
11222 int
11223 main ()
11224 {
11225 backtrace_symbols()
11226   ;
11227   return 0;
11228 }
11229 _ACEOF
11230 if ac_fn_c_try_link "$LINENO"; then :
11231
11232                  smart_lib="-lexecinfo"
11233                  smart_ldflags="-L$try -Wl,-rpath,$try"
11234                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11235 $as_echo "yes" >&6; }
11236                  break
11237
11238 else
11239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240 $as_echo "no" >&6; }
11241 fi
11242 rm -f core conftest.err conftest.$ac_objext \
11243     conftest$ac_exeext conftest.$ac_ext
11244   done
11245   LIBS="$old_LIBS"
11246   CPPFLAGS="$old_CPPFLAGS"
11247 fi
11248
11249 if test "x$smart_lib" = "x"; then
11250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo" >&5
11251 $as_echo_n "checking for backtrace_symbols in -lexecinfo... " >&6; }
11252   LIBS="-lexecinfo $old_LIBS"
11253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h.  */
11255 extern char backtrace_symbols();
11256 int
11257 main ()
11258 {
11259 backtrace_symbols()
11260   ;
11261   return 0;
11262 }
11263 _ACEOF
11264 if ac_fn_c_try_link "$LINENO"; then :
11265
11266                 smart_lib="-lexecinfo"
11267                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11268 $as_echo "yes" >&6; }
11269
11270 else
11271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11272 $as_echo "no" >&6; }
11273 fi
11274 rm -f core conftest.err conftest.$ac_objext \
11275     conftest$ac_exeext conftest.$ac_ext
11276   LIBS="$old_LIBS"
11277 fi
11278
11279 if test "x$smart_lib" = "x"; then
11280
11281
11282 if test "x$LOCATE" != "x"; then
11283         DIRS=
11284   file=libexecinfo${libltdl_cv_shlibext}
11285
11286   for x in `${LOCATE} $file 2>/dev/null`; do
11287                                         base=`echo $x | sed "s%/${file}%%"`
11288     if test "x$x" = "x$base"; then
11289       continue;
11290     fi
11291
11292     dir=`${DIRNAME} $x 2>/dev/null`
11293                 exclude=`echo ${dir} | ${GREP} /home`
11294     if test "x$exclude" != "x"; then
11295       continue
11296     fi
11297
11298                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11299     if test "x$already" = "x"; then
11300       DIRS="$DIRS $dir"
11301     fi
11302   done
11303 fi
11304
11305 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11306
11307
11308
11309 if test "x$LOCATE" != "x"; then
11310         DIRS=
11311   file=libexecinfo.a
11312
11313   for x in `${LOCATE} $file 2>/dev/null`; do
11314                                         base=`echo $x | sed "s%/${file}%%"`
11315     if test "x$x" = "x$base"; then
11316       continue;
11317     fi
11318
11319     dir=`${DIRNAME} $x 2>/dev/null`
11320                 exclude=`echo ${dir} | ${GREP} /home`
11321     if test "x$exclude" != "x"; then
11322       continue
11323     fi
11324
11325                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11326     if test "x$already" = "x"; then
11327       DIRS="$DIRS $dir"
11328     fi
11329   done
11330 fi
11331
11332 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11333
11334
11335   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
11337 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
11338     LIBS="-lexecinfo $old_LIBS"
11339     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11340     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h.  */
11342 extern char backtrace_symbols();
11343 int
11344 main ()
11345 {
11346 backtrace_symbols()
11347   ;
11348   return 0;
11349 }
11350 _ACEOF
11351 if ac_fn_c_try_link "$LINENO"; then :
11352
11353                   smart_lib="-lexecinfo"
11354                   smart_ldflags="-L$try -Wl,-rpath,$try"
11355                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11356 $as_echo "yes" >&6; }
11357                   break
11358
11359 else
11360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11362 fi
11363 rm -f core conftest.err conftest.$ac_objext \
11364     conftest$ac_exeext conftest.$ac_ext
11365   done
11366   LIBS="$old_LIBS"
11367   CPPFLAGS="$old_CPPFLAGS"
11368 fi
11369
11370 if test "x$smart_lib" != "x"; then
11371   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11372   LIBS="$smart_ldflags $smart_lib $old_LIBS"
11373   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11374 fi
11375
11376   if test "x$ac_cv_lib_execinfo_backtrace_symbols" != "xyes"; then
11377         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if execinfo provided as part of libc" >&5
11378 $as_echo_n "checking if execinfo provided as part of libc... " >&6; }
11379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h.  */
11381
11382         #include <execinfo.h>
11383
11384 int
11385 main ()
11386 {
11387
11388         void *sym[1];
11389         backtrace_symbols(&sym, sizeof(sym))
11390   ;
11391   return 0;
11392 }
11393 _ACEOF
11394 if ac_fn_c_try_link "$LINENO"; then :
11395
11396         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11397 $as_echo "yes" >&6; }
11398         ac_cv_lib_execinfo_backtrace_symbols="yes"
11399
11400 else
11401
11402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403 $as_echo "no" >&6; }
11404
11405
11406 fi
11407 rm -f core conftest.err conftest.$ac_objext \
11408     conftest$ac_exeext conftest.$ac_ext
11409   fi
11410
11411   if test "x$ac_cv_lib_execinfo_backtrace_symbols" = "xyes"; then
11412
11413 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
11414
11415   fi
11416 fi
11417
11418 PCRE=yes
11419
11420 # Check whether --with-pcre was given.
11421 if test "${with_pcre+set}" = set; then :
11422   withval=$with_pcre;  case "$withval" in
11423     no)
11424     PCRE=no
11425         ;;
11426     yes)
11427     PCRE=yes
11428         ;;
11429   esac
11430
11431 fi
11432
11433
11434 pcre_lib_dir=
11435
11436 # Check whether --with-pcre-lib-dir was given.
11437 if test "${with_pcre_lib_dir+set}" = set; then :
11438   withval=$with_pcre_lib_dir;  case "$withval" in
11439     no)
11440         as_fn_error $? "Need pcre-lib-dir" "$LINENO" 5
11441         ;;
11442     yes)
11443         ;;
11444     *)
11445         pcre_lib_dir="$withval"
11446         ;;
11447   esac
11448
11449 fi
11450
11451
11452 pcre_include_dir=
11453
11454 # Check whether --with-pcre-include-dir was given.
11455 if test "${with_pcre_include_dir+set}" = set; then :
11456   withval=$with_pcre_include_dir;  case "$withval" in
11457     no)
11458         as_fn_error $? "Need pcre-include-dir" "$LINENO" 5
11459         ;;
11460     yes)
11461         ;;
11462     *)
11463         pcre_include_dir="$withval"
11464         ;;
11465   esac
11466
11467 fi
11468
11469
11470 REGEX=
11471
11472 # Check whether --with-regex was given.
11473 if test "${with_regex+set}" = set; then :
11474   withval=$with_regex;  case "$withval" in
11475     no)
11476         REGEX=no
11477         ;;
11478     *)
11479         ;;
11480   esac
11481
11482 fi
11483
11484
11485 if test "x$REGEX" != "xno" && test "x$PCRE" != "xno"; then
11486   smart_try_dir=$pcre_include_dir
11487
11488
11489 ac_safe=`echo "pcre.h" | sed 'y%./+-%__pm%'`
11490 old_CPPFLAGS="$CPPFLAGS"
11491 smart_include=
11492 smart_include_dir="/usr/local/include /opt/include"
11493
11494 _smart_try_dir=
11495 _smart_include_dir=
11496
11497 for _prefix in $smart_prefix ""; do
11498   for _dir in $smart_try_dir; do
11499     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11500   done
11501
11502   for _dir in $smart_include_dir; do
11503     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11504   done
11505 done
11506
11507 if test "x$_smart_try_dir" != "x"; then
11508   for try in $_smart_try_dir; do
11509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h in $try" >&5
11510 $as_echo_n "checking for pcre.h in $try... " >&6; }
11511     CPPFLAGS="-isystem $try $old_CPPFLAGS"
11512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h.  */
11514
11515                     #include <pcre.h>
11516 int
11517 main ()
11518 {
11519 int a = 1;
11520   ;
11521   return 0;
11522 }
11523 _ACEOF
11524 if ac_fn_c_try_compile "$LINENO"; then :
11525
11526                      smart_include="-isystem $try"
11527                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11528 $as_echo "yes" >&6; }
11529                      break
11530
11531 else
11532
11533                      smart_include=
11534                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11536
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11539   done
11540   CPPFLAGS="$old_CPPFLAGS"
11541 fi
11542
11543 if test "x$smart_include" = "x"; then
11544   for _prefix in $smart_prefix; do
11545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcre.h" >&5
11546 $as_echo_n "checking for ${_prefix}/pcre.h... " >&6; }
11547
11548     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h.  */
11550
11551                     #include <pcre.h>
11552 int
11553 main ()
11554 {
11555 int a = 1;
11556   ;
11557   return 0;
11558 }
11559 _ACEOF
11560 if ac_fn_c_try_compile "$LINENO"; then :
11561
11562                      smart_include="-isystem ${_prefix}/"
11563                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11564 $as_echo "yes" >&6; }
11565                      break
11566
11567 else
11568
11569                      smart_include=
11570                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571 $as_echo "no" >&6; }
11572
11573 fi
11574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11575   done
11576 fi
11577
11578 if test "x$smart_include" = "x"; then
11579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
11580 $as_echo_n "checking for pcre.h... " >&6; }
11581
11582     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h.  */
11584
11585                     #include <pcre.h>
11586 int
11587 main ()
11588 {
11589 int a = 1;
11590   ;
11591   return 0;
11592 }
11593 _ACEOF
11594 if ac_fn_c_try_compile "$LINENO"; then :
11595
11596                      smart_include=" "
11597                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11598 $as_echo "yes" >&6; }
11599                      break
11600
11601 else
11602
11603                      smart_include=
11604                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11606
11607 fi
11608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11609 fi
11610
11611 if test "x$smart_include" = "x"; then
11612
11613   for prefix in $smart_prefix; do
11614
11615
11616 if test "x$LOCATE" != "x"; then
11617         DIRS=
11618   file="${_prefix}/${1}"
11619
11620   for x in `${LOCATE} $file 2>/dev/null`; do
11621                                         base=`echo $x | sed "s%/${file}%%"`
11622     if test "x$x" = "x$base"; then
11623       continue;
11624     fi
11625
11626     dir=`${DIRNAME} $x 2>/dev/null`
11627                 exclude=`echo ${dir} | ${GREP} /home`
11628     if test "x$exclude" != "x"; then
11629       continue
11630     fi
11631
11632                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11633     if test "x$already" = "x"; then
11634       DIRS="$DIRS $dir"
11635     fi
11636   done
11637 fi
11638
11639 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11640
11641   done
11642
11643
11644 if test "x$LOCATE" != "x"; then
11645         DIRS=
11646   file=pcre.h
11647
11648   for x in `${LOCATE} $file 2>/dev/null`; do
11649                                         base=`echo $x | sed "s%/${file}%%"`
11650     if test "x$x" = "x$base"; then
11651       continue;
11652     fi
11653
11654     dir=`${DIRNAME} $x 2>/dev/null`
11655                 exclude=`echo ${dir} | ${GREP} /home`
11656     if test "x$exclude" != "x"; then
11657       continue
11658     fi
11659
11660                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11661     if test "x$already" = "x"; then
11662       DIRS="$DIRS $dir"
11663     fi
11664   done
11665 fi
11666
11667 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11668
11669
11670   for try in $_smart_include_dir; do
11671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h in $try" >&5
11672 $as_echo_n "checking for pcre.h in $try... " >&6; }
11673     CPPFLAGS="-isystem $try $old_CPPFLAGS"
11674     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h.  */
11676
11677                     #include <pcre.h>
11678 int
11679 main ()
11680 {
11681 int a = 1;
11682   ;
11683   return 0;
11684 }
11685 _ACEOF
11686 if ac_fn_c_try_compile "$LINENO"; then :
11687
11688                      smart_include="-isystem $try"
11689                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11690 $as_echo "yes" >&6; }
11691                      break
11692
11693 else
11694
11695                      smart_include=
11696                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11698
11699 fi
11700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11701   done
11702   CPPFLAGS="$old_CPPFLAGS"
11703 fi
11704
11705 if test "x$smart_include" != "x"; then
11706   eval "ac_cv_header_$ac_safe=yes"
11707   CPPFLAGS="$smart_include $old_CPPFLAGS"
11708   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11709 fi
11710
11711 smart_prefix=
11712
11713   if test "x$ac_cv_header_pcre_h" = "xyes"; then
11714     smart_try_dir=$pcre_lib_dir
11715
11716
11717 sm_lib_safe=`echo "pcre" | sed 'y%./+-%__p_%'`
11718 sm_func_safe=`echo "pcre_compile" | sed 'y%./+-%__p_%'`
11719
11720 old_LIBS="$LIBS"
11721 old_CPPFLAGS="$CPPFLAGS"
11722 smart_lib=
11723 smart_ldflags=
11724 smart_lib_dir=
11725
11726 if test "x$smart_try_dir" != "x"; then
11727   for try in $smart_try_dir; do
11728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11729 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11730     LIBS="-lpcre $old_LIBS"
11731     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11732     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h.  */
11734 extern char pcre_compile();
11735 int
11736 main ()
11737 {
11738 pcre_compile()
11739   ;
11740   return 0;
11741 }
11742 _ACEOF
11743 if ac_fn_c_try_link "$LINENO"; then :
11744
11745                  smart_lib="-lpcre"
11746                  smart_ldflags="-L$try -Wl,-rpath,$try"
11747                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11748 $as_echo "yes" >&6; }
11749                  break
11750
11751 else
11752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11754 fi
11755 rm -f core conftest.err conftest.$ac_objext \
11756     conftest$ac_exeext conftest.$ac_ext
11757   done
11758   LIBS="$old_LIBS"
11759   CPPFLAGS="$old_CPPFLAGS"
11760 fi
11761
11762 if test "x$smart_lib" = "x"; then
11763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
11764 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
11765   LIBS="-lpcre $old_LIBS"
11766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h.  */
11768 extern char pcre_compile();
11769 int
11770 main ()
11771 {
11772 pcre_compile()
11773   ;
11774   return 0;
11775 }
11776 _ACEOF
11777 if ac_fn_c_try_link "$LINENO"; then :
11778
11779                 smart_lib="-lpcre"
11780                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11781 $as_echo "yes" >&6; }
11782
11783 else
11784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785 $as_echo "no" >&6; }
11786 fi
11787 rm -f core conftest.err conftest.$ac_objext \
11788     conftest$ac_exeext conftest.$ac_ext
11789   LIBS="$old_LIBS"
11790 fi
11791
11792 if test "x$smart_lib" = "x"; then
11793
11794
11795 if test "x$LOCATE" != "x"; then
11796         DIRS=
11797   file=libpcre${libltdl_cv_shlibext}
11798
11799   for x in `${LOCATE} $file 2>/dev/null`; do
11800                                         base=`echo $x | sed "s%/${file}%%"`
11801     if test "x$x" = "x$base"; then
11802       continue;
11803     fi
11804
11805     dir=`${DIRNAME} $x 2>/dev/null`
11806                 exclude=`echo ${dir} | ${GREP} /home`
11807     if test "x$exclude" != "x"; then
11808       continue
11809     fi
11810
11811                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11812     if test "x$already" = "x"; then
11813       DIRS="$DIRS $dir"
11814     fi
11815   done
11816 fi
11817
11818 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11819
11820
11821
11822 if test "x$LOCATE" != "x"; then
11823         DIRS=
11824   file=libpcre.a
11825
11826   for x in `${LOCATE} $file 2>/dev/null`; do
11827                                         base=`echo $x | sed "s%/${file}%%"`
11828     if test "x$x" = "x$base"; then
11829       continue;
11830     fi
11831
11832     dir=`${DIRNAME} $x 2>/dev/null`
11833                 exclude=`echo ${dir} | ${GREP} /home`
11834     if test "x$exclude" != "x"; then
11835       continue
11836     fi
11837
11838                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11839     if test "x$already" = "x"; then
11840       DIRS="$DIRS $dir"
11841     fi
11842   done
11843 fi
11844
11845 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11846
11847
11848   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11850 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11851     LIBS="-lpcre $old_LIBS"
11852     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11853     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854 /* end confdefs.h.  */
11855 extern char pcre_compile();
11856 int
11857 main ()
11858 {
11859 pcre_compile()
11860   ;
11861   return 0;
11862 }
11863 _ACEOF
11864 if ac_fn_c_try_link "$LINENO"; then :
11865
11866                   smart_lib="-lpcre"
11867                   smart_ldflags="-L$try -Wl,-rpath,$try"
11868                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11869 $as_echo "yes" >&6; }
11870                   break
11871
11872 else
11873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11875 fi
11876 rm -f core conftest.err conftest.$ac_objext \
11877     conftest$ac_exeext conftest.$ac_ext
11878   done
11879   LIBS="$old_LIBS"
11880   CPPFLAGS="$old_CPPFLAGS"
11881 fi
11882
11883 if test "x$smart_lib" != "x"; then
11884   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11885   LIBS="$smart_ldflags $smart_lib $old_LIBS"
11886   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11887 fi
11888
11889     if test "x$ac_cv_lib_pcre_pcre_compile" = "xyes"; then
11890       REGEX=yes
11891
11892 $as_echo "#define HAVE_PCRE 1" >>confdefs.h
11893
11894
11895 $as_echo "#define HAVE_BINSAFE_REGEX 1" >>confdefs.h
11896
11897     fi
11898   fi
11899 fi
11900
11901 if test "x$REGEX" = "x"; then
11902   smart_try_dir=
11903
11904
11905 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
11906 old_CPPFLAGS="$CPPFLAGS"
11907 smart_include=
11908 smart_include_dir="/usr/local/include /opt/include"
11909
11910 _smart_try_dir=
11911 _smart_include_dir=
11912
11913 for _prefix in $smart_prefix ""; do
11914   for _dir in $smart_try_dir; do
11915     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11916   done
11917
11918   for _dir in $smart_include_dir; do
11919     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11920   done
11921 done
11922
11923 if test "x$_smart_try_dir" != "x"; then
11924   for try in $_smart_try_dir; do
11925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
11926 $as_echo_n "checking for regex.h in $try... " >&6; }
11927     CPPFLAGS="-isystem $try $old_CPPFLAGS"
11928     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h.  */
11930
11931                     #include <regex.h>
11932 int
11933 main ()
11934 {
11935 int a = 1;
11936   ;
11937   return 0;
11938 }
11939 _ACEOF
11940 if ac_fn_c_try_compile "$LINENO"; then :
11941
11942                      smart_include="-isystem $try"
11943                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11944 $as_echo "yes" >&6; }
11945                      break
11946
11947 else
11948
11949                      smart_include=
11950                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11952
11953 fi
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11955   done
11956   CPPFLAGS="$old_CPPFLAGS"
11957 fi
11958
11959 if test "x$smart_include" = "x"; then
11960   for _prefix in $smart_prefix; do
11961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/regex.h" >&5
11962 $as_echo_n "checking for ${_prefix}/regex.h... " >&6; }
11963
11964     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h.  */
11966
11967                     #include <regex.h>
11968 int
11969 main ()
11970 {
11971 int a = 1;
11972   ;
11973   return 0;
11974 }
11975 _ACEOF
11976 if ac_fn_c_try_compile "$LINENO"; then :
11977
11978                      smart_include="-isystem ${_prefix}/"
11979                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11980 $as_echo "yes" >&6; }
11981                      break
11982
11983 else
11984
11985                      smart_include=
11986                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11988
11989 fi
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991   done
11992 fi
11993
11994 if test "x$smart_include" = "x"; then
11995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
11996 $as_echo_n "checking for regex.h... " >&6; }
11997
11998     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h.  */
12000
12001                     #include <regex.h>
12002 int
12003 main ()
12004 {
12005 int a = 1;
12006   ;
12007   return 0;
12008 }
12009 _ACEOF
12010 if ac_fn_c_try_compile "$LINENO"; then :
12011
12012                      smart_include=" "
12013                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12014 $as_echo "yes" >&6; }
12015                      break
12016
12017 else
12018
12019                      smart_include=
12020                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12022
12023 fi
12024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025 fi
12026
12027 if test "x$smart_include" = "x"; then
12028
12029   for prefix in $smart_prefix; do
12030
12031
12032 if test "x$LOCATE" != "x"; then
12033         DIRS=
12034   file="${_prefix}/${1}"
12035
12036   for x in `${LOCATE} $file 2>/dev/null`; do
12037                                         base=`echo $x | sed "s%/${file}%%"`
12038     if test "x$x" = "x$base"; then
12039       continue;
12040     fi
12041
12042     dir=`${DIRNAME} $x 2>/dev/null`
12043                 exclude=`echo ${dir} | ${GREP} /home`
12044     if test "x$exclude" != "x"; then
12045       continue
12046     fi
12047
12048                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
12049     if test "x$already" = "x"; then
12050       DIRS="$DIRS $dir"
12051     fi
12052   done
12053 fi
12054
12055 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
12056
12057   done
12058
12059
12060 if test "x$LOCATE" != "x"; then
12061         DIRS=
12062   file=regex.h
12063
12064   for x in `${LOCATE} $file 2>/dev/null`; do
12065                                         base=`echo $x | sed "s%/${file}%%"`
12066     if test "x$x" = "x$base"; then
12067       continue;
12068     fi
12069
12070     dir=`${DIRNAME} $x 2>/dev/null`
12071                 exclude=`echo ${dir} | ${GREP} /home`
12072     if test "x$exclude" != "x"; then
12073       continue
12074     fi
12075
12076                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
12077     if test "x$already" = "x"; then
12078       DIRS="$DIRS $dir"
12079     fi
12080   done
12081 fi
12082
12083 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
12084
12085
12086   for try in $_smart_include_dir; do
12087     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
12088 $as_echo_n "checking for regex.h in $try... " >&6; }
12089     CPPFLAGS="-isystem $try $old_CPPFLAGS"
12090     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h.  */
12092
12093                     #include <regex.h>
12094 int
12095 main ()
12096 {
12097 int a = 1;
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_compile "$LINENO"; then :
12103
12104                      smart_include="-isystem $try"
12105                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12106 $as_echo "yes" >&6; }
12107                      break
12108
12109 else
12110
12111                      smart_include=
12112                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12114
12115 fi
12116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117   done
12118   CPPFLAGS="$old_CPPFLAGS"
12119 fi
12120
12121 if test "x$smart_include" != "x"; then
12122   eval "ac_cv_header_$ac_safe=yes"
12123   CPPFLAGS="$smart_include $old_CPPFLAGS"
12124   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
12125 fi
12126
12127 smart_prefix=
12128
12129   if test "x$ac_cv_header_regex_h" = "xyes"; then
12130     REGEX=yes
12131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended regular expressions" >&5
12132 $as_echo_n "checking for extended regular expressions... " >&6; }
12133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h.  */
12135
12136         #include <regex.h>
12137         #ifdef REG_EXTENDED
12138         yes
12139         #endif
12140
12141 _ACEOF
12142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12143   $EGREP "yes" >/dev/null 2>&1; then :
12144
12145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12146 $as_echo "yes" >&6; }
12147
12148 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
12149
12150
12151 else
12152
12153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155
12156
12157 fi
12158 rm -f conftest*
12159
12160
12161                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
12162 $as_echo_n "checking for regcomp in -lregex... " >&6; }
12163 if ${ac_cv_lib_regex_regcomp+:} false; then :
12164   $as_echo_n "(cached) " >&6
12165 else
12166   ac_check_lib_save_LIBS=$LIBS
12167 LIBS="-lregex  $LIBS"
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h.  */
12170
12171 /* Override any GCC internal prototype to avoid an error.
12172    Use char because int might match the return type of a GCC
12173    builtin and then its argument prototype would still apply.  */
12174 #ifdef __cplusplus
12175 extern "C"
12176 #endif
12177 char regcomp ();
12178 int
12179 main ()
12180 {
12181 return regcomp ();
12182   ;
12183   return 0;
12184 }
12185 _ACEOF
12186 if ac_fn_c_try_link "$LINENO"; then :
12187   ac_cv_lib_regex_regcomp=yes
12188 else
12189   ac_cv_lib_regex_regcomp=no
12190 fi
12191 rm -f core conftest.err conftest.$ac_objext \
12192     conftest$ac_exeext conftest.$ac_ext
12193 LIBS=$ac_check_lib_save_LIBS
12194 fi
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
12196 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
12197 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
12198
12199         LIBS="-lregex $LIBS"
12200
12201
12202 fi
12203
12204
12205                     for ac_func in \
12206       regncomp \
12207       regnexec
12208
12209 do :
12210   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12212 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12213   cat >>confdefs.h <<_ACEOF
12214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12215 _ACEOF
12216
12217 fi
12218 done
12219
12220     if test x"$ac_cv_func_regncomp" = x"yes" && test  x"$ac_cv_func_regnexec" = x"yes"; then
12221
12222 $as_echo "#define HAVE_BINSAFE_REGEX 1" >>confdefs.h
12223
12224     fi
12225   fi
12226 fi
12227
12228 if test "x$REGEX" = "xyes"; then
12229
12230 $as_echo "#define HAVE_REGEX 1" >>confdefs.h
12231
12232 fi
12233
12234
12235 $as_echo "#define GNUSTYLE 1" >>confdefs.h
12236
12237
12238
12239 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
12240
12241
12242
12243 $as_echo "#define BSDSTYLE 3" >>confdefs.h
12244
12245
12246 gethostbyaddrrstyle=""
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
12248 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
12249 case "$host" in
12250   *-freebsd*)
12251                             ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
12252         #ifdef HAVE_NETDB_H
12253         #include <netdb.h>
12254         #endif
12255
12256 "
12257 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
12258   ac_have_decl=1
12259 else
12260   ac_have_decl=0
12261 fi
12262
12263 cat >>confdefs.h <<_ACEOF
12264 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
12265 _ACEOF
12266 if test $ac_have_decl = 1; then :
12267
12268 else
12269
12270
12271 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
12272
12273         gethostbyaddrrstyle=BSD
12274         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
12275 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
12276
12277 fi
12278
12279     ;;
12280 esac
12281
12282 if test "x$gethostbyaddrrstyle" = "x"; then
12283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h.  */
12285
12286       #include <stdio.h>
12287       #include <netdb.h>
12288
12289 int
12290 main ()
12291 {
12292  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
12293   ;
12294   return 0;
12295 }
12296 _ACEOF
12297 if ac_fn_c_try_link "$LINENO"; then :
12298
12299
12300 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
12301
12302       gethostbyaddrrstyle=GNU
12303
12304
12305 fi
12306 rm -f core conftest.err conftest.$ac_objext \
12307     conftest$ac_exeext conftest.$ac_ext
12308 fi
12309
12310 if test "x$gethostbyaddrrstyle" = "x"; then
12311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h.  */
12313
12314       #include <stdio.h>
12315       #include <netdb.h>
12316
12317 int
12318 main ()
12319 {
12320  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
12321   ;
12322   return 0;
12323 }
12324 _ACEOF
12325 if ac_fn_c_try_link "$LINENO"; then :
12326
12327
12328 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
12329
12330       gethostbyaddrrstyle=SYSV
12331
12332
12333 fi
12334 rm -f core conftest.err conftest.$ac_objext \
12335     conftest$ac_exeext conftest.$ac_ext
12336 fi
12337
12338
12339 if test "x$gethostbyaddrrstyle" = "x"; then
12340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h.  */
12342
12343       #include <stdio.h>
12344       #include <netdb.h>
12345
12346 int
12347 main ()
12348 {
12349  gethostbyaddr(NULL, 0, 0)
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 if ac_fn_c_try_link "$LINENO"; then :
12355
12356
12357 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
12358
12359       gethostbyaddrrstyle=BSD
12360
12361
12362 fi
12363 rm -f core conftest.err conftest.$ac_objext \
12364     conftest$ac_exeext conftest.$ac_ext
12365 fi
12366
12367 if test "x$gethostbyaddrrstyle" = "x"; then
12368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
12369 $as_echo "none!  It must not exist, here." >&6; }
12370 else
12371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
12372 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
12373 fi
12374
12375 if test "x$gethostbyaddrrstyle" = "xBSD"; then
12376   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
12377 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
12378 fi
12379
12380 gethostbynamerstyle=""
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
12382 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h.  */
12385
12386     #include <stdio.h>
12387     #include <netdb.h>
12388
12389 int
12390 main ()
12391 {
12392  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
12393   ;
12394   return 0;
12395 }
12396 _ACEOF
12397 if ac_fn_c_try_link "$LINENO"; then :
12398
12399
12400 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
12401
12402     gethostbynamerstyle=GNU
12403
12404
12405 fi
12406 rm -f core conftest.err conftest.$ac_objext \
12407     conftest$ac_exeext conftest.$ac_ext
12408
12409 if test "x$gethostbynamerstyle" = "x"; then
12410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h.  */
12412
12413       #include <stdio.h>
12414       #include <netdb.h>
12415
12416 int
12417 main ()
12418 {
12419  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
12420   ;
12421   return 0;
12422 }
12423 _ACEOF
12424 if ac_fn_c_try_link "$LINENO"; then :
12425
12426
12427 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
12428
12429       gethostbynamerstyle=SYSV
12430
12431
12432 fi
12433 rm -f core conftest.err conftest.$ac_objext \
12434     conftest$ac_exeext conftest.$ac_ext
12435 fi
12436
12437 if test "x$gethostbynamerstyle" = "x"; then
12438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h.  */
12440
12441       #include <stdio.h>
12442       #include <netdb.h>
12443
12444 int
12445 main ()
12446 {
12447  gethostbyname(NULL)
12448   ;
12449   return 0;
12450 }
12451 _ACEOF
12452 if ac_fn_c_try_link "$LINENO"; then :
12453
12454
12455 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
12456
12457       gethostbynamerstyle=BSD
12458
12459
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext \
12462     conftest$ac_exeext conftest.$ac_ext
12463 fi
12464
12465 if test "x$gethostbynamerstyle" = "x"; then
12466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
12467 $as_echo "none!  It must not exist, here." >&6; }
12468 else
12469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
12470 $as_echo "${gethostbynamerstyle}-style" >&6; }
12471 fi
12472
12473 if test "x$gethostbynamerstyle" = "xBSD"; then
12474   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
12475 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
12476 fi
12477
12478 if test "x$ac_cv_header_pwd_h" = "xyes"; then
12479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getpwnam_r" >&5
12480 $as_echo_n "checking getpwnam_r... " >&6; }
12481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h.  */
12483
12484       #include <stdlib.h>
12485       #include <sys/types.h>
12486       #include <pwd.h>
12487
12488 int
12489 main ()
12490 {
12491  getpwnam_r(NULL, NULL, NULL, 0, NULL)
12492   ;
12493   return 0;
12494 }
12495 _ACEOF
12496 if ac_fn_c_try_link "$LINENO"; then :
12497
12498       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12499 $as_echo "yes" >&6; }
12500
12501 $as_echo "#define HAVE_GETPWNAM_R 1" >>confdefs.h
12502
12503
12504 else
12505
12506         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507 $as_echo "no" >&6; }
12508
12509
12510 fi
12511 rm -f core conftest.err conftest.$ac_objext \
12512     conftest$ac_exeext conftest.$ac_ext
12513 fi
12514
12515 if test "x$ac_cv_header_grp_h" = "xyes"; then
12516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getgrnam_r" >&5
12517 $as_echo_n "checking getgrnam_r... " >&6; }
12518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h.  */
12520
12521       #include <stdlib.h>
12522       #include <sys/types.h>
12523       #include <grp.h>
12524
12525 int
12526 main ()
12527 {
12528  getgrnam_r(NULL, NULL, NULL, 0, NULL)
12529   ;
12530   return 0;
12531 }
12532 _ACEOF
12533 if ac_fn_c_try_link "$LINENO"; then :
12534
12535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12536 $as_echo "yes" >&6; }
12537
12538 $as_echo "#define HAVE_GETGRNAM_R 1" >>confdefs.h
12539
12540
12541 else
12542
12543         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12545
12546
12547 fi
12548 rm -f core conftest.err conftest.$ac_objext \
12549     conftest$ac_exeext conftest.$ac_ext
12550 fi
12551
12552
12553
12554 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
12555
12556
12557 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
12558
12559 ctimerstyle=""
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
12561 $as_echo_n "checking ctime_r() syntax... " >&6; }
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h.  */
12564
12565     #include <time.h>
12566
12567 int
12568 main ()
12569 {
12570  ctime_r(NULL, NULL, 0)
12571   ;
12572   return 0;
12573 }
12574 _ACEOF
12575 if ac_fn_c_try_link "$LINENO"; then :
12576
12577
12578 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
12579
12580     ctimerstyle="SOLARIS"
12581
12582
12583 fi
12584 rm -f core conftest.err conftest.$ac_objext \
12585     conftest$ac_exeext conftest.$ac_ext
12586
12587 if test "x$ctimerstyle" = "x"; then
12588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h.  */
12590
12591       #include <time.h>
12592
12593 int
12594 main ()
12595 {
12596  ctime_r(NULL, NULL)
12597   ;
12598   return 0;
12599 }
12600 _ACEOF
12601 if ac_fn_c_try_link "$LINENO"; then :
12602
12603
12604 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
12605
12606       ctimerstyle="POSIX"
12607
12608
12609 fi
12610 rm -f core conftest.err conftest.$ac_objext \
12611     conftest$ac_exeext conftest.$ac_ext
12612 fi
12613
12614 if test "x$ctimerstyle" = "x"; then
12615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
12616 $as_echo "none!  It must not exist, here." >&6; }
12617 else
12618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
12619 $as_echo "${ctimerstyle}-style" >&6; }
12620 fi
12621
12622 HOSTINFO=$host
12623
12624
12625
12626 top_builddir=`pwd`
12627 export top_builddir
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
12629 $as_echo "top_builddir=$top_builddir" >&6; }
12630
12631
12632
12633
12634 if test "x$EXPERIMENTAL" = "xyes"; then
12635   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
12636     MODULES="$MODULES $foo"
12637   done
12638 else
12639             for foo in `cat "${srcdir}"/src/modules/stable`; do
12640       MODULES="$MODULES $foo"
12641    done
12642 fi
12643
12644 mysubdirs=""
12645 for bar in $MODULES; do
12646   if test -f "${srcdir}"/src/modules/$bar/configure; then
12647     mysubdirs="$mysubdirs src/modules/$bar"
12648   fi
12649 done
12650
12651
12652
12653 subdirs="$subdirs $mysubdirs"
12654
12655
12656
12657 if test "x$werror" == "xyes"; then
12658   CFLAGS="-Werror $CFLAGS"
12659 fi
12660
12661 ac_config_commands="$ac_config_commands stamp-h"
12662
12663 ac_config_commands="$ac_config_commands build-radpaths-h"
12664
12665 ac_config_commands="$ac_config_commands main-chmod"
12666
12667 ac_config_commands="$ac_config_commands scripts-chmod"
12668
12669
12670
12671
12672
12673
12674 USE_STATIC_LIBS="yes"
12675
12676
12677
12678
12679   unset ac_cv_env_LIBS_set
12680   unset ac_cv_env_LIBS_value
12681
12682   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"
12683
12684 cat >confcache <<\_ACEOF
12685 # This file is a shell script that caches the results of configure
12686 # tests run on this system so they can be shared between configure
12687 # scripts and configure runs, see configure's option --config-cache.
12688 # It is not useful on other systems.  If it contains results you don't
12689 # want to keep, you may remove or edit it.
12690 #
12691 # config.status only pays attention to the cache file if you give it
12692 # the --recheck option to rerun configure.
12693 #
12694 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12695 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12696 # following values.
12697
12698 _ACEOF
12699
12700 # The following way of writing the cache mishandles newlines in values,
12701 # but we know of no workaround that is simple, portable, and efficient.
12702 # So, we kill variables containing newlines.
12703 # Ultrix sh set writes to stderr and can't be redirected directly,
12704 # and sets the high bit in the cache file unless we assign to the vars.
12705 (
12706   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12707     eval ac_val=\$$ac_var
12708     case $ac_val in #(
12709     *${as_nl}*)
12710       case $ac_var in #(
12711       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12712 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12713       esac
12714       case $ac_var in #(
12715       _ | IFS | as_nl) ;; #(
12716       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12717       *) { eval $ac_var=; unset $ac_var;} ;;
12718       esac ;;
12719     esac
12720   done
12721
12722   (set) 2>&1 |
12723     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12724     *${as_nl}ac_space=\ *)
12725       # `set' does not quote correctly, so add quotes: double-quote
12726       # substitution turns \\\\ into \\, and sed turns \\ into \.
12727       sed -n \
12728         "s/'/'\\\\''/g;
12729           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12730       ;; #(
12731     *)
12732       # `set' quotes correctly as required by POSIX, so do not add quotes.
12733       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12734       ;;
12735     esac |
12736     sort
12737 ) |
12738   sed '
12739      /^ac_cv_env_/b end
12740      t clear
12741      :clear
12742      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12743      t end
12744      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12745      :end' >>confcache
12746 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12747   if test -w "$cache_file"; then
12748     if test "x$cache_file" != "x/dev/null"; then
12749       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12750 $as_echo "$as_me: updating cache $cache_file" >&6;}
12751       if test ! -f "$cache_file" || test -h "$cache_file"; then
12752         cat confcache >"$cache_file"
12753       else
12754         case $cache_file in #(
12755         */* | ?:*)
12756           mv -f confcache "$cache_file"$$ &&
12757           mv -f "$cache_file"$$ "$cache_file" ;; #(
12758         *)
12759           mv -f confcache "$cache_file" ;;
12760         esac
12761       fi
12762     fi
12763   else
12764     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12765 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12766   fi
12767 fi
12768 rm -f confcache
12769
12770 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12771 # Let make expand exec_prefix.
12772 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12773
12774 DEFS=-DHAVE_CONFIG_H
12775
12776 ac_libobjs=
12777 ac_ltlibobjs=
12778 U=
12779 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12780   # 1. Remove the extension, and $U if already installed.
12781   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12782   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12783   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12784   #    will be set to the directory where LIBOBJS objects are built.
12785   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12786   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12787 done
12788 LIBOBJS=$ac_libobjs
12789
12790 LTLIBOBJS=$ac_ltlibobjs
12791
12792
12793
12794
12795 : "${CONFIG_STATUS=./config.status}"
12796 ac_write_fail=0
12797 ac_clean_files_save=$ac_clean_files
12798 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12800 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12801 as_write_fail=0
12802 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12803 #! $SHELL
12804 # Generated by $as_me.
12805 # Run this file to recreate the current configuration.
12806 # Compiler output produced by configure, useful for debugging
12807 # configure, is in config.log if it exists.
12808
12809 debug=false
12810 ac_cs_recheck=false
12811 ac_cs_silent=false
12812
12813 SHELL=\${CONFIG_SHELL-$SHELL}
12814 export SHELL
12815 _ASEOF
12816 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12817 ## -------------------- ##
12818 ## M4sh Initialization. ##
12819 ## -------------------- ##
12820
12821 # Be more Bourne compatible
12822 DUALCASE=1; export DUALCASE # for MKS sh
12823 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12824   emulate sh
12825   NULLCMD=:
12826   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12827   # is contrary to our usage.  Disable this feature.
12828   alias -g '${1+"$@"}'='"$@"'
12829   setopt NO_GLOB_SUBST
12830 else
12831   case `(set -o) 2>/dev/null` in #(
12832   *posix*) :
12833     set -o posix ;; #(
12834   *) :
12835      ;;
12836 esac
12837 fi
12838
12839
12840 as_nl='
12841 '
12842 export as_nl
12843 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12844 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12845 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12846 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12847 # Prefer a ksh shell builtin over an external printf program on Solaris,
12848 # but without wasting forks for bash or zsh.
12849 if test -z "$BASH_VERSION$ZSH_VERSION" \
12850     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12851   as_echo='print -r --'
12852   as_echo_n='print -rn --'
12853 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12854   as_echo='printf %s\n'
12855   as_echo_n='printf %s'
12856 else
12857   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12858     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12859     as_echo_n='/usr/ucb/echo -n'
12860   else
12861     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12862     as_echo_n_body='eval
12863       arg=$1;
12864       case $arg in #(
12865       *"$as_nl"*)
12866         expr "X$arg" : "X\\(.*\\)$as_nl";
12867         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12868       esac;
12869       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12870     '
12871     export as_echo_n_body
12872     as_echo_n='sh -c $as_echo_n_body as_echo'
12873   fi
12874   export as_echo_body
12875   as_echo='sh -c $as_echo_body as_echo'
12876 fi
12877
12878 # The user is always right.
12879 if test "${PATH_SEPARATOR+set}" != set; then
12880   PATH_SEPARATOR=:
12881   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12882     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12883       PATH_SEPARATOR=';'
12884   }
12885 fi
12886
12887
12888 # IFS
12889 # We need space, tab and new line, in precisely that order.  Quoting is
12890 # there to prevent editors from complaining about space-tab.
12891 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12892 # splitting by setting IFS to empty value.)
12893 IFS=" ""        $as_nl"
12894
12895 # Find who we are.  Look in the path if we contain no directory separator.
12896 as_myself=
12897 case $0 in #((
12898   *[\\/]* ) as_myself=$0 ;;
12899   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in $PATH
12901 do
12902   IFS=$as_save_IFS
12903   test -z "$as_dir" && as_dir=.
12904     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12905   done
12906 IFS=$as_save_IFS
12907
12908      ;;
12909 esac
12910 # We did not find ourselves, most probably we were run as `sh COMMAND'
12911 # in which case we are not to be found in the path.
12912 if test "x$as_myself" = x; then
12913   as_myself=$0
12914 fi
12915 if test ! -f "$as_myself"; then
12916   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12917   exit 1
12918 fi
12919
12920 # Unset variables that we do not need and which cause bugs (e.g. in
12921 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12922 # suppresses any "Segmentation fault" message there.  '((' could
12923 # trigger a bug in pdksh 5.2.14.
12924 for as_var in BASH_ENV ENV MAIL MAILPATH
12925 do eval test x\${$as_var+set} = xset \
12926   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12927 done
12928 PS1='$ '
12929 PS2='> '
12930 PS4='+ '
12931
12932 # NLS nuisances.
12933 LC_ALL=C
12934 export LC_ALL
12935 LANGUAGE=C
12936 export LANGUAGE
12937
12938 # CDPATH.
12939 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12940
12941
12942 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12943 # ----------------------------------------
12944 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12945 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12946 # script with STATUS, using 1 if that was 0.
12947 as_fn_error ()
12948 {
12949   as_status=$1; test $as_status -eq 0 && as_status=1
12950   if test "$4"; then
12951     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12952     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12953   fi
12954   $as_echo "$as_me: error: $2" >&2
12955   as_fn_exit $as_status
12956 } # as_fn_error
12957
12958
12959 # as_fn_set_status STATUS
12960 # -----------------------
12961 # Set $? to STATUS, without forking.
12962 as_fn_set_status ()
12963 {
12964   return $1
12965 } # as_fn_set_status
12966
12967 # as_fn_exit STATUS
12968 # -----------------
12969 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12970 as_fn_exit ()
12971 {
12972   set +e
12973   as_fn_set_status $1
12974   exit $1
12975 } # as_fn_exit
12976
12977 # as_fn_unset VAR
12978 # ---------------
12979 # Portably unset VAR.
12980 as_fn_unset ()
12981 {
12982   { eval $1=; unset $1;}
12983 }
12984 as_unset=as_fn_unset
12985 # as_fn_append VAR VALUE
12986 # ----------------------
12987 # Append the text in VALUE to the end of the definition contained in VAR. Take
12988 # advantage of any shell optimizations that allow amortized linear growth over
12989 # repeated appends, instead of the typical quadratic growth present in naive
12990 # implementations.
12991 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12992   eval 'as_fn_append ()
12993   {
12994     eval $1+=\$2
12995   }'
12996 else
12997   as_fn_append ()
12998   {
12999     eval $1=\$$1\$2
13000   }
13001 fi # as_fn_append
13002
13003 # as_fn_arith ARG...
13004 # ------------------
13005 # Perform arithmetic evaluation on the ARGs, and store the result in the
13006 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13007 # must be portable across $(()) and expr.
13008 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13009   eval 'as_fn_arith ()
13010   {
13011     as_val=$(( $* ))
13012   }'
13013 else
13014   as_fn_arith ()
13015   {
13016     as_val=`expr "$@" || test $? -eq 1`
13017   }
13018 fi # as_fn_arith
13019
13020
13021 if expr a : '\(a\)' >/dev/null 2>&1 &&
13022    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13023   as_expr=expr
13024 else
13025   as_expr=false
13026 fi
13027
13028 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13029   as_basename=basename
13030 else
13031   as_basename=false
13032 fi
13033
13034 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13035   as_dirname=dirname
13036 else
13037   as_dirname=false
13038 fi
13039
13040 as_me=`$as_basename -- "$0" ||
13041 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13042          X"$0" : 'X\(//\)$' \| \
13043          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13044 $as_echo X/"$0" |
13045     sed '/^.*\/\([^/][^/]*\)\/*$/{
13046             s//\1/
13047             q
13048           }
13049           /^X\/\(\/\/\)$/{
13050             s//\1/
13051             q
13052           }
13053           /^X\/\(\/\).*/{
13054             s//\1/
13055             q
13056           }
13057           s/.*/./; q'`
13058
13059 # Avoid depending upon Character Ranges.
13060 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13061 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13062 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13063 as_cr_digits='0123456789'
13064 as_cr_alnum=$as_cr_Letters$as_cr_digits
13065
13066 ECHO_C= ECHO_N= ECHO_T=
13067 case `echo -n x` in #(((((
13068 -n*)
13069   case `echo 'xy\c'` in
13070   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13071   xy)  ECHO_C='\c';;
13072   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13073        ECHO_T=' ';;
13074   esac;;
13075 *)
13076   ECHO_N='-n';;
13077 esac
13078
13079 rm -f conf$$ conf$$.exe conf$$.file
13080 if test -d conf$$.dir; then
13081   rm -f conf$$.dir/conf$$.file
13082 else
13083   rm -f conf$$.dir
13084   mkdir conf$$.dir 2>/dev/null
13085 fi
13086 if (echo >conf$$.file) 2>/dev/null; then
13087   if ln -s conf$$.file conf$$ 2>/dev/null; then
13088     as_ln_s='ln -s'
13089     # ... but there are two gotchas:
13090     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13091     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13092     # In both cases, we have to default to `cp -pR'.
13093     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13094       as_ln_s='cp -pR'
13095   elif ln conf$$.file conf$$ 2>/dev/null; then
13096     as_ln_s=ln
13097   else
13098     as_ln_s='cp -pR'
13099   fi
13100 else
13101   as_ln_s='cp -pR'
13102 fi
13103 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13104 rmdir conf$$.dir 2>/dev/null
13105
13106
13107 # as_fn_mkdir_p
13108 # -------------
13109 # Create "$as_dir" as a directory, including parents if necessary.
13110 as_fn_mkdir_p ()
13111 {
13112
13113   case $as_dir in #(
13114   -*) as_dir=./$as_dir;;
13115   esac
13116   test -d "$as_dir" || eval $as_mkdir_p || {
13117     as_dirs=
13118     while :; do
13119       case $as_dir in #(
13120       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13121       *) as_qdir=$as_dir;;
13122       esac
13123       as_dirs="'$as_qdir' $as_dirs"
13124       as_dir=`$as_dirname -- "$as_dir" ||
13125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13126          X"$as_dir" : 'X\(//\)[^/]' \| \
13127          X"$as_dir" : 'X\(//\)$' \| \
13128          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13129 $as_echo X"$as_dir" |
13130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13131             s//\1/
13132             q
13133           }
13134           /^X\(\/\/\)[^/].*/{
13135             s//\1/
13136             q
13137           }
13138           /^X\(\/\/\)$/{
13139             s//\1/
13140             q
13141           }
13142           /^X\(\/\).*/{
13143             s//\1/
13144             q
13145           }
13146           s/.*/./; q'`
13147       test -d "$as_dir" && break
13148     done
13149     test -z "$as_dirs" || eval "mkdir $as_dirs"
13150   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13151
13152
13153 } # as_fn_mkdir_p
13154 if mkdir -p . 2>/dev/null; then
13155   as_mkdir_p='mkdir -p "$as_dir"'
13156 else
13157   test -d ./-p && rmdir ./-p
13158   as_mkdir_p=false
13159 fi
13160
13161
13162 # as_fn_executable_p FILE
13163 # -----------------------
13164 # Test if FILE is an executable regular file.
13165 as_fn_executable_p ()
13166 {
13167   test -f "$1" && test -x "$1"
13168 } # as_fn_executable_p
13169 as_test_x='test -x'
13170 as_executable_p=as_fn_executable_p
13171
13172 # Sed expression to map a string onto a valid CPP name.
13173 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13174
13175 # Sed expression to map a string onto a valid variable name.
13176 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13177
13178
13179 exec 6>&1
13180 ## ----------------------------------- ##
13181 ## Main body of $CONFIG_STATUS script. ##
13182 ## ----------------------------------- ##
13183 _ASEOF
13184 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13185
13186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13187 # Save the log message, to keep $0 and so on meaningful, and to
13188 # report actual input values of CONFIG_FILES etc. instead of their
13189 # values after options handling.
13190 ac_log="
13191 This file was extended by freeradius $as_me $Id$, which was
13192 generated by GNU Autoconf 2.69.  Invocation command line was
13193
13194   CONFIG_FILES    = $CONFIG_FILES
13195   CONFIG_HEADERS  = $CONFIG_HEADERS
13196   CONFIG_LINKS    = $CONFIG_LINKS
13197   CONFIG_COMMANDS = $CONFIG_COMMANDS
13198   $ $0 $@
13199
13200 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13201 "
13202
13203 _ACEOF
13204
13205 case $ac_config_files in *"
13206 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13207 esac
13208
13209 case $ac_config_headers in *"
13210 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13211 esac
13212
13213
13214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13215 # Files that config.status was made for.
13216 config_files="$ac_config_files"
13217 config_headers="$ac_config_headers"
13218 config_commands="$ac_config_commands"
13219
13220 _ACEOF
13221
13222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13223 ac_cs_usage="\
13224 \`$as_me' instantiates files and other configuration actions
13225 from templates according to the current configuration.  Unless the files
13226 and actions are specified as TAGs, all are instantiated by default.
13227
13228 Usage: $0 [OPTION]... [TAG]...
13229
13230   -h, --help       print this help, then exit
13231   -V, --version    print version number and configuration settings, then exit
13232       --config     print configuration, then exit
13233   -q, --quiet, --silent
13234                    do not print progress messages
13235   -d, --debug      don't remove temporary files
13236       --recheck    update $as_me by reconfiguring in the same conditions
13237       --file=FILE[:TEMPLATE]
13238                    instantiate the configuration file FILE
13239       --header=FILE[:TEMPLATE]
13240                    instantiate the configuration header FILE
13241
13242 Configuration files:
13243 $config_files
13244
13245 Configuration headers:
13246 $config_headers
13247
13248 Configuration commands:
13249 $config_commands
13250
13251 Report bugs to <http://bugs.freeradius.org>.
13252 freeradius home page: <http://www.freeradius.org>."
13253
13254 _ACEOF
13255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13256 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13257 ac_cs_version="\\
13258 freeradius config.status $Id$
13259 configured by $0, generated by GNU Autoconf 2.69,
13260   with options \\"\$ac_cs_config\\"
13261
13262 Copyright (C) 2012 Free Software Foundation, Inc.
13263 This config.status script is free software; the Free Software Foundation
13264 gives unlimited permission to copy, distribute and modify it."
13265
13266 ac_pwd='$ac_pwd'
13267 srcdir='$srcdir'
13268 test -n "\$AWK" || AWK=awk
13269 _ACEOF
13270
13271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13272 # The default lists apply if the user does not specify any file.
13273 ac_need_defaults=:
13274 while test $# != 0
13275 do
13276   case $1 in
13277   --*=?*)
13278     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13279     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13280     ac_shift=:
13281     ;;
13282   --*=)
13283     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13284     ac_optarg=
13285     ac_shift=:
13286     ;;
13287   *)
13288     ac_option=$1
13289     ac_optarg=$2
13290     ac_shift=shift
13291     ;;
13292   esac
13293
13294   case $ac_option in
13295   # Handling of the options.
13296   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13297     ac_cs_recheck=: ;;
13298   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13299     $as_echo "$ac_cs_version"; exit ;;
13300   --config | --confi | --conf | --con | --co | --c )
13301     $as_echo "$ac_cs_config"; exit ;;
13302   --debug | --debu | --deb | --de | --d | -d )
13303     debug=: ;;
13304   --file | --fil | --fi | --f )
13305     $ac_shift
13306     case $ac_optarg in
13307     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13308     '') as_fn_error $? "missing file argument" ;;
13309     esac
13310     as_fn_append CONFIG_FILES " '$ac_optarg'"
13311     ac_need_defaults=false;;
13312   --header | --heade | --head | --hea )
13313     $ac_shift
13314     case $ac_optarg in
13315     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13316     esac
13317     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13318     ac_need_defaults=false;;
13319   --he | --h)
13320     # Conflict between --help and --header
13321     as_fn_error $? "ambiguous option: \`$1'
13322 Try \`$0 --help' for more information.";;
13323   --help | --hel | -h )
13324     $as_echo "$ac_cs_usage"; exit ;;
13325   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13326   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13327     ac_cs_silent=: ;;
13328
13329   # This is an error.
13330   -*) as_fn_error $? "unrecognized option: \`$1'
13331 Try \`$0 --help' for more information." ;;
13332
13333   *) as_fn_append ac_config_targets " $1"
13334      ac_need_defaults=false ;;
13335
13336   esac
13337   shift
13338 done
13339
13340 ac_configure_extra_args=
13341
13342 if $ac_cs_silent; then
13343   exec 6>/dev/null
13344   ac_configure_extra_args="$ac_configure_extra_args --silent"
13345 fi
13346
13347 _ACEOF
13348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13349 if \$ac_cs_recheck; then
13350   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13351   shift
13352   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13353   CONFIG_SHELL='$SHELL'
13354   export CONFIG_SHELL
13355   exec "\$@"
13356 fi
13357
13358 _ACEOF
13359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13360 exec 5>>config.log
13361 {
13362   echo
13363   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13364 ## Running $as_me. ##
13365 _ASBOX
13366   $as_echo "$ac_log"
13367 } >&5
13368
13369 _ACEOF
13370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13371 _ACEOF
13372
13373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13374
13375 # Handling of arguments.
13376 for ac_config_target in $ac_config_targets
13377 do
13378   case $ac_config_target in
13379     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
13380     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13381     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
13382     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
13383     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
13384     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
13385     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
13386     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
13387     "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
13388     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
13389     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
13390     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
13391     "./scripts/cron/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.daily" ;;
13392     "./scripts/cron/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.monthly" ;;
13393     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
13394     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
13395     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
13396
13397   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13398   esac
13399 done
13400
13401
13402 # If the user did not use the arguments to specify the items to instantiate,
13403 # then the envvar interface is used.  Set only those that are not.
13404 # We use the long form for the default assignment because of an extremely
13405 # bizarre bug on SunOS 4.1.3.
13406 if $ac_need_defaults; then
13407   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13408   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13409   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13410 fi
13411
13412 # Have a temporary directory for convenience.  Make it in the build tree
13413 # simply because there is no reason against having it here, and in addition,
13414 # creating and moving files from /tmp can sometimes cause problems.
13415 # Hook for its removal unless debugging.
13416 # Note that there is a small window in which the directory will not be cleaned:
13417 # after its creation but before its name has been assigned to `$tmp'.
13418 $debug ||
13419 {
13420   tmp= ac_tmp=
13421   trap 'exit_status=$?
13422   : "${ac_tmp:=$tmp}"
13423   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13424 ' 0
13425   trap 'as_fn_exit 1' 1 2 13 15
13426 }
13427 # Create a (secure) tmp directory for tmp files.
13428
13429 {
13430   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13431   test -d "$tmp"
13432 }  ||
13433 {
13434   tmp=./conf$$-$RANDOM
13435   (umask 077 && mkdir "$tmp")
13436 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13437 ac_tmp=$tmp
13438
13439 # Set up the scripts for CONFIG_FILES section.
13440 # No need to generate them if there are no CONFIG_FILES.
13441 # This happens for instance with `./config.status config.h'.
13442 if test -n "$CONFIG_FILES"; then
13443
13444
13445 ac_cr=`echo X | tr X '\015'`
13446 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13447 # But we know of no other shell where ac_cr would be empty at this
13448 # point, so we can use a bashism as a fallback.
13449 if test "x$ac_cr" = x; then
13450   eval ac_cr=\$\'\\r\'
13451 fi
13452 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13453 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13454   ac_cs_awk_cr='\\r'
13455 else
13456   ac_cs_awk_cr=$ac_cr
13457 fi
13458
13459 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13460 _ACEOF
13461
13462
13463 {
13464   echo "cat >conf$$subs.awk <<_ACEOF" &&
13465   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13466   echo "_ACEOF"
13467 } >conf$$subs.sh ||
13468   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13469 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13470 ac_delim='%!_!# '
13471 for ac_last_try in false false false false false :; do
13472   . ./conf$$subs.sh ||
13473     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13474
13475   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13476   if test $ac_delim_n = $ac_delim_num; then
13477     break
13478   elif $ac_last_try; then
13479     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13480   else
13481     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13482   fi
13483 done
13484 rm -f conf$$subs.sh
13485
13486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13487 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13488 _ACEOF
13489 sed -n '
13490 h
13491 s/^/S["/; s/!.*/"]=/
13492 p
13493 g
13494 s/^[^!]*!//
13495 :repl
13496 t repl
13497 s/'"$ac_delim"'$//
13498 t delim
13499 :nl
13500 h
13501 s/\(.\{148\}\)..*/\1/
13502 t more1
13503 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13504 p
13505 n
13506 b repl
13507 :more1
13508 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13509 p
13510 g
13511 s/.\{148\}//
13512 t nl
13513 :delim
13514 h
13515 s/\(.\{148\}\)..*/\1/
13516 t more2
13517 s/["\\]/\\&/g; s/^/"/; s/$/"/
13518 p
13519 b
13520 :more2
13521 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13522 p
13523 g
13524 s/.\{148\}//
13525 t delim
13526 ' <conf$$subs.awk | sed '
13527 /^[^""]/{
13528   N
13529   s/\n//
13530 }
13531 ' >>$CONFIG_STATUS || ac_write_fail=1
13532 rm -f conf$$subs.awk
13533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13534 _ACAWK
13535 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13536   for (key in S) S_is_set[key] = 1
13537   FS = "\a"
13538
13539 }
13540 {
13541   line = $ 0
13542   nfields = split(line, field, "@")
13543   substed = 0
13544   len = length(field[1])
13545   for (i = 2; i < nfields; i++) {
13546     key = field[i]
13547     keylen = length(key)
13548     if (S_is_set[key]) {
13549       value = S[key]
13550       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13551       len += length(value) + length(field[++i])
13552       substed = 1
13553     } else
13554       len += 1 + keylen
13555   }
13556
13557   print line
13558 }
13559
13560 _ACAWK
13561 _ACEOF
13562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13563 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13564   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13565 else
13566   cat
13567 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13568   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13569 _ACEOF
13570
13571 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13572 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13573 # trailing colons and then remove the whole line if VPATH becomes empty
13574 # (actually we leave an empty line to preserve line numbers).
13575 if test "x$srcdir" = x.; then
13576   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13577 h
13578 s///
13579 s/^/:/
13580 s/[      ]*$/:/
13581 s/:\$(srcdir):/:/g
13582 s/:\${srcdir}:/:/g
13583 s/:@srcdir@:/:/g
13584 s/^:*//
13585 s/:*$//
13586 x
13587 s/\(=[   ]*\).*/\1/
13588 G
13589 s/\n//
13590 s/^[^=]*=[       ]*$//
13591 }'
13592 fi
13593
13594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13595 fi # test -n "$CONFIG_FILES"
13596
13597 # Set up the scripts for CONFIG_HEADERS section.
13598 # No need to generate them if there are no CONFIG_HEADERS.
13599 # This happens for instance with `./config.status Makefile'.
13600 if test -n "$CONFIG_HEADERS"; then
13601 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13602 BEGIN {
13603 _ACEOF
13604
13605 # Transform confdefs.h into an awk script `defines.awk', embedded as
13606 # here-document in config.status, that substitutes the proper values into
13607 # config.h.in to produce config.h.
13608
13609 # Create a delimiter string that does not exist in confdefs.h, to ease
13610 # handling of long lines.
13611 ac_delim='%!_!# '
13612 for ac_last_try in false false :; do
13613   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13614   if test -z "$ac_tt"; then
13615     break
13616   elif $ac_last_try; then
13617     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13618   else
13619     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13620   fi
13621 done
13622
13623 # For the awk script, D is an array of macro values keyed by name,
13624 # likewise P contains macro parameters if any.  Preserve backslash
13625 # newline sequences.
13626
13627 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13628 sed -n '
13629 s/.\{148\}/&'"$ac_delim"'/g
13630 t rset
13631 :rset
13632 s/^[     ]*#[    ]*define[       ][      ]*/ /
13633 t def
13634 d
13635 :def
13636 s/\\$//
13637 t bsnl
13638 s/["\\]/\\&/g
13639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13640 D["\1"]=" \3"/p
13641 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13642 d
13643 :bsnl
13644 s/["\\]/\\&/g
13645 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13646 D["\1"]=" \3\\\\\\n"\\/p
13647 t cont
13648 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13649 t cont
13650 d
13651 :cont
13652 n
13653 s/.\{148\}/&'"$ac_delim"'/g
13654 t clear
13655 :clear
13656 s/\\$//
13657 t bsnlc
13658 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13659 d
13660 :bsnlc
13661 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13662 b cont
13663 ' <confdefs.h | sed '
13664 s/'"$ac_delim"'/"\\\
13665 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13666
13667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13668   for (key in D) D_is_set[key] = 1
13669   FS = "\a"
13670 }
13671 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13672   line = \$ 0
13673   split(line, arg, " ")
13674   if (arg[1] == "#") {
13675     defundef = arg[2]
13676     mac1 = arg[3]
13677   } else {
13678     defundef = substr(arg[1], 2)
13679     mac1 = arg[2]
13680   }
13681   split(mac1, mac2, "(") #)
13682   macro = mac2[1]
13683   prefix = substr(line, 1, index(line, defundef) - 1)
13684   if (D_is_set[macro]) {
13685     # Preserve the white space surrounding the "#".
13686     print prefix "define", macro P[macro] D[macro]
13687     next
13688   } else {
13689     # Replace #undef with comments.  This is necessary, for example,
13690     # in the case of _POSIX_SOURCE, which is predefined and required
13691     # on some systems where configure will not decide to define it.
13692     if (defundef == "undef") {
13693       print "/*", prefix defundef, macro, "*/"
13694       next
13695     }
13696   }
13697 }
13698 { print }
13699 _ACAWK
13700 _ACEOF
13701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13702   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13703 fi # test -n "$CONFIG_HEADERS"
13704
13705
13706 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13707 shift
13708 for ac_tag
13709 do
13710   case $ac_tag in
13711   :[FHLC]) ac_mode=$ac_tag; continue;;
13712   esac
13713   case $ac_mode$ac_tag in
13714   :[FHL]*:*);;
13715   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13716   :[FH]-) ac_tag=-:-;;
13717   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13718   esac
13719   ac_save_IFS=$IFS
13720   IFS=:
13721   set x $ac_tag
13722   IFS=$ac_save_IFS
13723   shift
13724   ac_file=$1
13725   shift
13726
13727   case $ac_mode in
13728   :L) ac_source=$1;;
13729   :[FH])
13730     ac_file_inputs=
13731     for ac_f
13732     do
13733       case $ac_f in
13734       -) ac_f="$ac_tmp/stdin";;
13735       *) # Look for the file first in the build tree, then in the source tree
13736          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13737          # because $ac_f cannot contain `:'.
13738          test -f "$ac_f" ||
13739            case $ac_f in
13740            [\\/$]*) false;;
13741            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13742            esac ||
13743            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13744       esac
13745       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13746       as_fn_append ac_file_inputs " '$ac_f'"
13747     done
13748
13749     # Let's still pretend it is `configure' which instantiates (i.e., don't
13750     # use $as_me), people would be surprised to read:
13751     #    /* config.h.  Generated by config.status.  */
13752     configure_input='Generated from '`
13753           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13754         `' by configure.'
13755     if test x"$ac_file" != x-; then
13756       configure_input="$ac_file.  $configure_input"
13757       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13758 $as_echo "$as_me: creating $ac_file" >&6;}
13759     fi
13760     # Neutralize special characters interpreted by sed in replacement strings.
13761     case $configure_input in #(
13762     *\&* | *\|* | *\\* )
13763        ac_sed_conf_input=`$as_echo "$configure_input" |
13764        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13765     *) ac_sed_conf_input=$configure_input;;
13766     esac
13767
13768     case $ac_tag in
13769     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13770       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13771     esac
13772     ;;
13773   esac
13774
13775   ac_dir=`$as_dirname -- "$ac_file" ||
13776 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13777          X"$ac_file" : 'X\(//\)[^/]' \| \
13778          X"$ac_file" : 'X\(//\)$' \| \
13779          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13780 $as_echo X"$ac_file" |
13781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13782             s//\1/
13783             q
13784           }
13785           /^X\(\/\/\)[^/].*/{
13786             s//\1/
13787             q
13788           }
13789           /^X\(\/\/\)$/{
13790             s//\1/
13791             q
13792           }
13793           /^X\(\/\).*/{
13794             s//\1/
13795             q
13796           }
13797           s/.*/./; q'`
13798   as_dir="$ac_dir"; as_fn_mkdir_p
13799   ac_builddir=.
13800
13801 case "$ac_dir" in
13802 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13803 *)
13804   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13805   # A ".." for each directory in $ac_dir_suffix.
13806   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13807   case $ac_top_builddir_sub in
13808   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13809   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13810   esac ;;
13811 esac
13812 ac_abs_top_builddir=$ac_pwd
13813 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13814 # for backward compatibility:
13815 ac_top_builddir=$ac_top_build_prefix
13816
13817 case $srcdir in
13818   .)  # We are building in place.
13819     ac_srcdir=.
13820     ac_top_srcdir=$ac_top_builddir_sub
13821     ac_abs_top_srcdir=$ac_pwd ;;
13822   [\\/]* | ?:[\\/]* )  # Absolute name.
13823     ac_srcdir=$srcdir$ac_dir_suffix;
13824     ac_top_srcdir=$srcdir
13825     ac_abs_top_srcdir=$srcdir ;;
13826   *) # Relative name.
13827     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13828     ac_top_srcdir=$ac_top_build_prefix$srcdir
13829     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13830 esac
13831 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13832
13833
13834   case $ac_mode in
13835   :F)
13836   #
13837   # CONFIG_FILE
13838   #
13839
13840 _ACEOF
13841
13842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13843 # If the template does not know about datarootdir, expand it.
13844 # FIXME: This hack should be removed a few years after 2.60.
13845 ac_datarootdir_hack=; ac_datarootdir_seen=
13846 ac_sed_dataroot='
13847 /datarootdir/ {
13848   p
13849   q
13850 }
13851 /@datadir@/p
13852 /@docdir@/p
13853 /@infodir@/p
13854 /@localedir@/p
13855 /@mandir@/p'
13856 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13857 *datarootdir*) ac_datarootdir_seen=yes;;
13858 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13859   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13860 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13861 _ACEOF
13862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13863   ac_datarootdir_hack='
13864   s&@datadir@&$datadir&g
13865   s&@docdir@&$docdir&g
13866   s&@infodir@&$infodir&g
13867   s&@localedir@&$localedir&g
13868   s&@mandir@&$mandir&g
13869   s&\\\${datarootdir}&$datarootdir&g' ;;
13870 esac
13871 _ACEOF
13872
13873 # Neutralize VPATH when `$srcdir' = `.'.
13874 # Shell code in configure.ac might set extrasub.
13875 # FIXME: do we really want to maintain this feature?
13876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13877 ac_sed_extra="$ac_vpsub
13878 $extrasub
13879 _ACEOF
13880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13881 :t
13882 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13883 s|@configure_input@|$ac_sed_conf_input|;t t
13884 s&@top_builddir@&$ac_top_builddir_sub&;t t
13885 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13886 s&@srcdir@&$ac_srcdir&;t t
13887 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13888 s&@top_srcdir@&$ac_top_srcdir&;t t
13889 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13890 s&@builddir@&$ac_builddir&;t t
13891 s&@abs_builddir@&$ac_abs_builddir&;t t
13892 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13893 $ac_datarootdir_hack
13894 "
13895 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13896   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13897
13898 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13899   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13900   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13901       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13902   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13903 which seems to be undefined.  Please make sure it is defined" >&5
13904 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13905 which seems to be undefined.  Please make sure it is defined" >&2;}
13906
13907   rm -f "$ac_tmp/stdin"
13908   case $ac_file in
13909   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13910   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13911   esac \
13912   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13913  ;;
13914   :H)
13915   #
13916   # CONFIG_HEADER
13917   #
13918   if test x"$ac_file" != x-; then
13919     {
13920       $as_echo "/* $configure_input  */" \
13921       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13922     } >"$ac_tmp/config.h" \
13923       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13924     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13925       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13926 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13927     else
13928       rm -f "$ac_file"
13929       mv "$ac_tmp/config.h" "$ac_file" \
13930         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13931     fi
13932   else
13933     $as_echo "/* $configure_input  */" \
13934       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13935       || as_fn_error $? "could not create -" "$LINENO" 5
13936   fi
13937  ;;
13938
13939   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13940 $as_echo "$as_me: executing $ac_file commands" >&6;}
13941  ;;
13942   esac
13943
13944
13945   case $ac_file$ac_mode in
13946     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
13947     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
13948     "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
13949     "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd cron/radiusd.cron.daily cron/radiusd.cron.monthly cryptpasswd) ;;
13950
13951   esac
13952 done # for ac_tag
13953
13954
13955 as_fn_exit 0
13956 _ACEOF
13957 ac_clean_files=$ac_clean_files_save
13958
13959 test $ac_write_fail = 0 ||
13960   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13961
13962
13963 # configure is writing to config.log, and then calls config.status.
13964 # config.status does its own redirection, appending to config.log.
13965 # Unfortunately, on DOS this fails, as config.log is still kept open
13966 # by configure, so config.status won't be able to write to it; its
13967 # output is simply discarded.  So we exec the FD to /dev/null,
13968 # effectively closing config.log, so it can be properly (re)opened and
13969 # appended to by config.status.  When coming back to configure, we
13970 # need to make the FD available again.
13971 if test "$no_create" != yes; then
13972   ac_cs_success=:
13973   ac_config_status_args=
13974   test "$silent" = yes &&
13975     ac_config_status_args="$ac_config_status_args --quiet"
13976   exec 5>/dev/null
13977   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13978   exec 5>>config.log
13979   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13980   # would make configure fail if this is the last instruction.
13981   $ac_cs_success || as_fn_exit 1
13982 fi
13983
13984 #
13985 # CONFIG_SUBDIRS section.
13986 #
13987 if test "$no_recursion" != yes; then
13988
13989   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
13990   # so they do not pile up.
13991   ac_sub_configure_args=
13992   ac_prev=
13993   eval "set x $ac_configure_args"
13994   shift
13995   for ac_arg
13996   do
13997     if test -n "$ac_prev"; then
13998       ac_prev=
13999       continue
14000     fi
14001     case $ac_arg in
14002     -cache-file | --cache-file | --cache-fil | --cache-fi \
14003     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14004       ac_prev=cache_file ;;
14005     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14006     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14007     | --c=*)
14008       ;;
14009     --config-cache | -C)
14010       ;;
14011     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14012       ac_prev=srcdir ;;
14013     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14014       ;;
14015     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14016       ac_prev=prefix ;;
14017     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14018       ;;
14019     --disable-option-checking)
14020       ;;
14021     *)
14022       case $ac_arg in
14023       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14024       esac
14025       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14026     esac
14027   done
14028
14029   # Always prepend --prefix to ensure using the same prefix
14030   # in subdir configurations.
14031   ac_arg="--prefix=$prefix"
14032   case $ac_arg in
14033   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14034   esac
14035   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14036
14037   # Pass --silent
14038   if test "$silent" = yes; then
14039     ac_sub_configure_args="--silent $ac_sub_configure_args"
14040   fi
14041
14042   # Always prepend --disable-option-checking to silence warnings, since
14043   # different subdirs can have different --enable and --with options.
14044   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14045
14046   ac_popdir=`pwd`
14047   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14048
14049     # Do not complain, so a configure script can configure whichever
14050     # parts of a large source tree are present.
14051     test -d "$srcdir/$ac_dir" || continue
14052
14053     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14054     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14055     $as_echo "$ac_msg" >&6
14056     as_dir="$ac_dir"; as_fn_mkdir_p
14057     ac_builddir=.
14058
14059 case "$ac_dir" in
14060 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14061 *)
14062   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14063   # A ".." for each directory in $ac_dir_suffix.
14064   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14065   case $ac_top_builddir_sub in
14066   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14067   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14068   esac ;;
14069 esac
14070 ac_abs_top_builddir=$ac_pwd
14071 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14072 # for backward compatibility:
14073 ac_top_builddir=$ac_top_build_prefix
14074
14075 case $srcdir in
14076   .)  # We are building in place.
14077     ac_srcdir=.
14078     ac_top_srcdir=$ac_top_builddir_sub
14079     ac_abs_top_srcdir=$ac_pwd ;;
14080   [\\/]* | ?:[\\/]* )  # Absolute name.
14081     ac_srcdir=$srcdir$ac_dir_suffix;
14082     ac_top_srcdir=$srcdir
14083     ac_abs_top_srcdir=$srcdir ;;
14084   *) # Relative name.
14085     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14086     ac_top_srcdir=$ac_top_build_prefix$srcdir
14087     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14088 esac
14089 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14090
14091
14092     cd "$ac_dir"
14093
14094     # Check for guested configure; otherwise get Cygnus style configure.
14095     if test -f "$ac_srcdir/configure.gnu"; then
14096       ac_sub_configure=$ac_srcdir/configure.gnu
14097     elif test -f "$ac_srcdir/configure"; then
14098       ac_sub_configure=$ac_srcdir/configure
14099     elif test -f "$ac_srcdir/configure.in"; then
14100       # This should be Cygnus configure.
14101       ac_sub_configure=$ac_aux_dir/configure
14102     else
14103       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14104 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14105       ac_sub_configure=
14106     fi
14107
14108     # The recursion is here.
14109     if test -n "$ac_sub_configure"; then
14110       # Make the cache file name correct relative to the subdirectory.
14111       case $cache_file in
14112       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14113       *) # Relative name.
14114         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14115       esac
14116
14117       { $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
14118 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14119       # The eval makes quoting arguments work.
14120       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14121            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14122         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14123     fi
14124
14125     cd "$ac_popdir"
14126   done
14127 fi
14128 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14129   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14130 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14131 fi
14132
14133