3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --enable-strict-dependencies Fail configure on lack of module dependancy."
27 --with-FOO-include-dir=DIR Dir for includes for FOO, module dependancy."
29 --with-FOO-lib-dir=DIR Dir for libraries for FOO, module dependancy."
31 --with-logdir=DIR Directory for logfiles [LOCALSTATEDIR/log/radius] "
33 --with-radacctdir=PATH Directory for detail files [LOGDIR/radacct] "
35 --with-raddbdir=DIR Directory for config files [SYSCONFDIR/raddb] "
37 --with-dict-nocase Make dictionary case-independant (default=yes)"
39 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)"
41 --with-threads Use threads, if available. (default=yes) "
43 --with-thread-pool Use a pool of threads for high-load systems. (default=no) "
45 --with-snmp Compile in SNMP support. (default=yes)"
47 --disable-ltdl-install do not install libltdl"
49 --with-static-modules=QUOTED-MODULE-LIST"
51 --enable-developer Turns on super-duper-extra-compile-warnings
54 # Initialize some variables set by options.
55 # The variables have the same names as the options, with
56 # dashes changed to underlines.
58 cache_file=./config.cache
67 program_transform_name=s,x,x,
75 bindir='${exec_prefix}/bin'
76 sbindir='${exec_prefix}/sbin'
77 libexecdir='${exec_prefix}/libexec'
78 datadir='${prefix}/share'
79 sysconfdir='${prefix}/etc'
80 sharedstatedir='${prefix}/com'
81 localstatedir='${prefix}/var'
82 libdir='${exec_prefix}/lib'
83 includedir='${prefix}/include'
84 oldincludedir='/usr/include'
85 infodir='${prefix}/info'
86 mandir='${prefix}/man'
88 # Initialize some other variables.
91 SHELL=${CONFIG_SHELL-/bin/sh}
92 # Maximum number of lines to put in a shell here document.
99 # If the previous option needs an argument, assign it.
100 if test -n "$ac_prev"; then
101 eval "$ac_prev=\$ac_option"
107 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
111 # Accept the important Cygnus configure options, so we can diagnose typos.
115 -bindir | --bindir | --bindi | --bind | --bin | --bi)
117 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
118 bindir="$ac_optarg" ;;
120 -build | --build | --buil | --bui | --bu)
122 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
123 build="$ac_optarg" ;;
125 -cache-file | --cache-file | --cache-fil | --cache-fi \
126 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
127 ac_prev=cache_file ;;
128 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
129 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
130 cache_file="$ac_optarg" ;;
132 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
134 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
136 datadir="$ac_optarg" ;;
138 -disable-* | --disable-*)
139 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}=no" ;;
147 -enable-* | --enable-*)
148 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}='$ac_optarg'" ;;
160 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
161 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
162 | --exec | --exe | --ex)
163 ac_prev=exec_prefix ;;
164 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
165 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
166 | --exec=* | --exe=* | --ex=*)
167 exec_prefix="$ac_optarg" ;;
169 -gas | --gas | --ga | --g)
170 # Obsolete; use --with-gas.
173 -help | --help | --hel | --he)
174 # Omit some internal or obsolete options to make the list less imposing.
175 # This message is too long to be a string in the A/UX 3.1 sh.
177 Usage: configure [options] [host]
178 Options: [defaults in brackets after descriptions]
180 --cache-file=FILE cache test results in FILE
181 --help print this message
182 --no-create do not create output files
183 --quiet, --silent do not print \`checking...' messages
184 --version print the version of autoconf that created configure
185 Directory and file names:
186 --prefix=PREFIX install architecture-independent files in PREFIX
188 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
190 --bindir=DIR user executables in DIR [EPREFIX/bin]
191 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
192 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
193 --datadir=DIR read-only architecture-independent data in DIR
195 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
196 --sharedstatedir=DIR modifiable architecture-independent data in DIR
198 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
199 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
200 --includedir=DIR C header files in DIR [PREFIX/include]
201 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
202 --infodir=DIR info documentation in DIR [PREFIX/info]
203 --mandir=DIR man documentation in DIR [PREFIX/man]
204 --srcdir=DIR find the sources in DIR [configure dir or ..]
205 --program-prefix=PREFIX prepend PREFIX to installed program names
206 --program-suffix=SUFFIX append SUFFIX to installed program names
207 --program-transform-name=PROGRAM
208 run sed PROGRAM on installed program names
212 --build=BUILD configure for building on BUILD [BUILD=HOST]
213 --host=HOST configure for HOST [guessed]
214 --target=TARGET configure for TARGET [TARGET=HOST]
215 Features and packages:
216 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
217 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
218 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
219 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
220 --x-includes=DIR X include files are in DIR
221 --x-libraries=DIR X library files are in DIR
223 if test -n "$ac_help"; then
224 echo "--enable and --with options recognized:$ac_help"
228 -host | --host | --hos | --ho)
230 -host=* | --host=* | --hos=* | --ho=*)
233 -includedir | --includedir | --includedi | --included | --include \
234 | --includ | --inclu | --incl | --inc)
235 ac_prev=includedir ;;
236 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
237 | --includ=* | --inclu=* | --incl=* | --inc=*)
238 includedir="$ac_optarg" ;;
240 -infodir | --infodir | --infodi | --infod | --info | --inf)
242 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
243 infodir="$ac_optarg" ;;
245 -libdir | --libdir | --libdi | --libd)
247 -libdir=* | --libdir=* | --libdi=* | --libd=*)
248 libdir="$ac_optarg" ;;
250 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
251 | --libexe | --libex | --libe)
252 ac_prev=libexecdir ;;
253 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
254 | --libexe=* | --libex=* | --libe=*)
255 libexecdir="$ac_optarg" ;;
257 -localstatedir | --localstatedir | --localstatedi | --localstated \
258 | --localstate | --localstat | --localsta | --localst \
259 | --locals | --local | --loca | --loc | --lo)
260 ac_prev=localstatedir ;;
261 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
262 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
263 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
264 localstatedir="$ac_optarg" ;;
266 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
268 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
269 mandir="$ac_optarg" ;;
272 # Obsolete; use --without-fp.
275 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
279 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
280 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
283 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
284 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
285 | --oldin | --oldi | --old | --ol | --o)
286 ac_prev=oldincludedir ;;
287 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
288 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
289 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
290 oldincludedir="$ac_optarg" ;;
292 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
294 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
295 prefix="$ac_optarg" ;;
297 -program-prefix | --program-prefix | --program-prefi | --program-pref \
298 | --program-pre | --program-pr | --program-p)
299 ac_prev=program_prefix ;;
300 -program-prefix=* | --program-prefix=* | --program-prefi=* \
301 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
302 program_prefix="$ac_optarg" ;;
304 -program-suffix | --program-suffix | --program-suffi | --program-suff \
305 | --program-suf | --program-su | --program-s)
306 ac_prev=program_suffix ;;
307 -program-suffix=* | --program-suffix=* | --program-suffi=* \
308 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
309 program_suffix="$ac_optarg" ;;
311 -program-transform-name | --program-transform-name \
312 | --program-transform-nam | --program-transform-na \
313 | --program-transform-n | --program-transform- \
314 | --program-transform | --program-transfor \
315 | --program-transfo | --program-transf \
316 | --program-trans | --program-tran \
317 | --progr-tra | --program-tr | --program-t)
318 ac_prev=program_transform_name ;;
319 -program-transform-name=* | --program-transform-name=* \
320 | --program-transform-nam=* | --program-transform-na=* \
321 | --program-transform-n=* | --program-transform-=* \
322 | --program-transform=* | --program-transfor=* \
323 | --program-transfo=* | --program-transf=* \
324 | --program-trans=* | --program-tran=* \
325 | --progr-tra=* | --program-tr=* | --program-t=*)
326 program_transform_name="$ac_optarg" ;;
328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
329 | -silent | --silent | --silen | --sile | --sil)
332 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
334 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
336 sbindir="$ac_optarg" ;;
338 -sharedstatedir | --sharedstatedir | --sharedstatedi \
339 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
340 | --sharedst | --shareds | --shared | --share | --shar \
342 ac_prev=sharedstatedir ;;
343 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
344 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
345 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
347 sharedstatedir="$ac_optarg" ;;
349 -site | --site | --sit)
351 -site=* | --site=* | --sit=*)
354 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
356 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
357 srcdir="$ac_optarg" ;;
359 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
360 | --syscon | --sysco | --sysc | --sys | --sy)
361 ac_prev=sysconfdir ;;
362 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
363 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
364 sysconfdir="$ac_optarg" ;;
366 -target | --target | --targe | --targ | --tar | --ta | --t)
368 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
369 target="$ac_optarg" ;;
371 -v | -verbose | --verbose | --verbos | --verbo | --verb)
374 -version | --version | --versio | --versi | --vers)
375 echo "configure generated by autoconf version 2.13"
379 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}='$ac_optarg'" ;;
391 -without-* | --without-*)
392 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
398 eval "with_${ac_package}=no" ;;
401 # Obsolete; use --with-x.
404 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
405 | --x-incl | --x-inc | --x-in | --x-i)
406 ac_prev=x_includes ;;
407 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
408 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
409 x_includes="$ac_optarg" ;;
411 -x-libraries | --x-libraries | --x-librarie | --x-librari \
412 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
413 ac_prev=x_libraries ;;
414 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
415 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
416 x_libraries="$ac_optarg" ;;
418 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
422 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
423 echo "configure: warning: $ac_option: invalid host type" 1>&2
425 if test "x$nonopt" != xNONE; then
426 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
434 if test -n "$ac_prev"; then
435 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
438 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
440 # File descriptor usage:
443 # 2 errors and warnings
444 # 3 some systems may open it to /dev/tty
445 # 4 used on the Kubota Titan
446 # 6 checking for... messages and results
447 # 5 compiler messages saved in config.log
448 if test "$silent" = yes; then
456 This file contains any messages produced by compilers while
457 running configure, to aid debugging if configure makes a mistake.
460 # Strip out --no-create and --no-recursion so they do not pile up.
461 # Also quote any args containing shell metacharacters.
466 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
467 | --no-cr | --no-c) ;;
468 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
469 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
470 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
471 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
472 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
477 # Only set these to C if already set. These must not be set unconditionally
478 # because not all systems understand e.g. LANG=C (notably SCO).
479 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
480 # Non-C LC_CTYPE values break the ctype check.
481 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
482 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
483 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
484 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
486 # confdefs.h avoids OS command line length limits that DEFS can exceed.
487 rm -rf conftest* confdefs.h
488 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
491 # A filename unique to this package, relative to the directory that
492 # configure is in, which we can look for to find out if srcdir is correct.
493 ac_unique_file=src/main/radiusd.c
495 # Find the source files, if location was not specified.
496 if test -z "$srcdir"; then
497 ac_srcdir_defaulted=yes
498 # Try the directory containing this script, then its parent.
500 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
501 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
503 if test ! -r $srcdir/$ac_unique_file; then
507 ac_srcdir_defaulted=no
509 if test ! -r $srcdir/$ac_unique_file; then
510 if test "$ac_srcdir_defaulted" = yes; then
511 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
513 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
516 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
518 # Prefer explicitly selected file to automatically selected ones.
519 if test -z "$CONFIG_SITE"; then
520 if test "x$prefix" != xNONE; then
521 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
523 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
526 for ac_site_file in $CONFIG_SITE; do
527 if test -r "$ac_site_file"; then
528 echo "loading site script $ac_site_file"
533 if test -r "$cache_file"; then
534 echo "loading cache $cache_file"
537 echo "creating cache $cache_file"
542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
543 ac_cpp='$CPP $CPPFLAGS'
544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
546 cross_compiling=$ac_cv_prog_cc_cross
550 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
551 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
552 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
559 ac_n= ac_c='\c' ac_t=
564 # From configure.in Revision: 1.114
568 # Extract the first word of "gcc", so it can be a program name with args.
569 set dummy gcc; ac_word=$2
570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
571 echo "configure:572: checking for $ac_word" >&5
572 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
573 echo $ac_n "(cached) $ac_c" 1>&6
575 if test -n "$CC"; then
576 ac_cv_prog_CC="$CC" # Let the user override the test.
578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
580 for ac_dir in $ac_dummy; do
581 test -z "$ac_dir" && ac_dir=.
582 if test -f $ac_dir/$ac_word; then
591 if test -n "$CC"; then
592 echo "$ac_t""$CC" 1>&6
594 echo "$ac_t""no" 1>&6
597 if test -z "$CC"; then
598 # Extract the first word of "cc", so it can be a program name with args.
599 set dummy cc; ac_word=$2
600 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
601 echo "configure:602: checking for $ac_word" >&5
602 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
603 echo $ac_n "(cached) $ac_c" 1>&6
605 if test -n "$CC"; then
606 ac_cv_prog_CC="$CC" # Let the user override the test.
608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
611 for ac_dir in $ac_dummy; do
612 test -z "$ac_dir" && ac_dir=.
613 if test -f $ac_dir/$ac_word; then
614 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
623 if test $ac_prog_rejected = yes; then
624 # We found a bogon in the path, so make sure we never use it.
625 set dummy $ac_cv_prog_CC
627 if test $# -gt 0; then
628 # We chose a different compiler from the bogus one.
629 # However, it has the same basename, so the bogon will be chosen
630 # first if we set CC to just the basename; use the full file name.
632 set dummy "$ac_dir/$ac_word" "$@"
640 if test -n "$CC"; then
641 echo "$ac_t""$CC" 1>&6
643 echo "$ac_t""no" 1>&6
646 if test -z "$CC"; then
649 # Extract the first word of "cl", so it can be a program name with args.
650 set dummy cl; ac_word=$2
651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
652 echo "configure:653: checking for $ac_word" >&5
653 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
654 echo $ac_n "(cached) $ac_c" 1>&6
656 if test -n "$CC"; then
657 ac_cv_prog_CC="$CC" # Let the user override the test.
659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
661 for ac_dir in $ac_dummy; do
662 test -z "$ac_dir" && ac_dir=.
663 if test -f $ac_dir/$ac_word; then
672 if test -n "$CC"; then
673 echo "$ac_t""$CC" 1>&6
675 echo "$ac_t""no" 1>&6
680 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
683 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
684 echo "configure:685: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
688 ac_cpp='$CPP $CPPFLAGS'
689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
691 cross_compiling=$ac_cv_prog_cc_cross
693 cat > conftest.$ac_ext << EOF
695 #line 696 "configure"
696 #include "confdefs.h"
700 if { (eval echo configure:701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
701 ac_cv_prog_cc_works=yes
702 # If we can't run a trivial program, we are probably using a cross compiler.
703 if (./conftest; exit) 2>/dev/null; then
704 ac_cv_prog_cc_cross=no
706 ac_cv_prog_cc_cross=yes
709 echo "configure: failed program was:" >&5
710 cat conftest.$ac_ext >&5
711 ac_cv_prog_cc_works=no
715 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
716 ac_cpp='$CPP $CPPFLAGS'
717 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
718 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
719 cross_compiling=$ac_cv_prog_cc_cross
721 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
722 if test $ac_cv_prog_cc_works = no; then
723 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
725 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
726 echo "configure:727: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
727 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
728 cross_compiling=$ac_cv_prog_cc_cross
730 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
731 echo "configure:732: checking whether we are using GNU C" >&5
732 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
733 echo $ac_n "(cached) $ac_c" 1>&6
735 cat > conftest.c <<EOF
740 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
747 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
749 if test $ac_cv_prog_gcc = yes; then
755 ac_test_CFLAGS="${CFLAGS+set}"
756 ac_save_CFLAGS="$CFLAGS"
758 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
759 echo "configure:760: checking whether ${CC-cc} accepts -g" >&5
760 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
761 echo $ac_n "(cached) $ac_c" 1>&6
763 echo 'void f(){}' > conftest.c
764 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
773 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
774 if test "$ac_test_CFLAGS" = set; then
775 CFLAGS="$ac_save_CFLAGS"
776 elif test $ac_cv_prog_cc_g = yes; then
777 if test "$GCC" = yes; then
783 if test "$GCC" = yes; then
790 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
791 echo "configure:792: checking how to run the C preprocessor" >&5
792 # On Suns, sometimes $CPP names a directory.
793 if test -n "$CPP" && test -d "$CPP"; then
796 if test -z "$CPP"; then
797 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
800 # This must be in double quotes, not single quotes, because CPP may get
801 # substituted into the Makefile and "${CC-cc}" will confuse make.
803 # On the NeXT, cc -E runs the code through the compiler's parser,
804 # not just through cpp.
805 cat > conftest.$ac_ext <<EOF
806 #line 807 "configure"
807 #include "confdefs.h"
811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
812 { (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
814 if test -z "$ac_err"; then
818 echo "configure: failed program was:" >&5
819 cat conftest.$ac_ext >&5
821 CPP="${CC-cc} -E -traditional-cpp"
822 cat > conftest.$ac_ext <<EOF
823 #line 824 "configure"
824 #include "confdefs.h"
828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
829 { (eval echo configure:830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
831 if test -z "$ac_err"; then
835 echo "configure: failed program was:" >&5
836 cat conftest.$ac_ext >&5
838 CPP="${CC-cc} -nologo -E"
839 cat > conftest.$ac_ext <<EOF
840 #line 841 "configure"
841 #include "confdefs.h"
845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
846 { (eval echo configure:847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
848 if test -z "$ac_err"; then
852 echo "configure: failed program was:" >&5
853 cat conftest.$ac_ext >&5
862 ac_cv_prog_CPP="$CPP"
864 CPP="$ac_cv_prog_CPP"
866 ac_cv_prog_CPP="$CPP"
868 echo "$ac_t""$CPP" 1>&6
870 if test $ac_cv_prog_gcc = yes; then
871 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
872 echo "configure:873: checking whether ${CC-cc} needs -traditional" >&5
873 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
876 ac_pattern="Autoconf.*'x'"
877 cat > conftest.$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
884 egrep "$ac_pattern" >/dev/null 2>&1; then
886 ac_cv_prog_gcc_traditional=yes
889 ac_cv_prog_gcc_traditional=no
894 if test $ac_cv_prog_gcc_traditional = no; then
895 cat > conftest.$ac_ext <<EOF
896 #line 897 "configure"
897 #include "confdefs.h"
901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
902 egrep "$ac_pattern" >/dev/null 2>&1; then
904 ac_cv_prog_gcc_traditional=yes
911 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
912 if test $ac_cv_prog_gcc_traditional = yes; then
913 CC="$CC -traditional"
917 echo $ac_n "checking whether we are using SUNPro C""... $ac_c" 1>&6
918 echo "configure:919: checking whether we are using SUNPro C" >&5
919 if eval "test \"`echo '$''{'ac_cv_prog_suncc'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6
922 cat > conftest.c <<EOF
927 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
934 echo "$ac_t""$ac_cv_prog_suncc" 1>&6
935 # Extract the first word of "ranlib", so it can be a program name with args.
936 set dummy ranlib; ac_word=$2
937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
938 echo "configure:939: checking for $ac_word" >&5
939 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
942 if test -n "$RANLIB"; then
943 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
947 for ac_dir in $ac_dummy; do
948 test -z "$ac_dir" && ac_dir=.
949 if test -f $ac_dir/$ac_word; then
950 ac_cv_prog_RANLIB="ranlib"
955 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
958 RANLIB="$ac_cv_prog_RANLIB"
959 if test -n "$RANLIB"; then
960 echo "$ac_t""$RANLIB" 1>&6
962 echo "$ac_t""no" 1>&6
968 # Extract the first word of "gmake", so it can be a program name with args.
969 set dummy gmake; ac_word=$2
970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
971 echo "configure:972: checking for $ac_word" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_GMAKE'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 if test -n "$GMAKE"; then
976 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
980 for ac_dir in $ac_dummy; do
981 test -z "$ac_dir" && ac_dir=.
982 if test -f $ac_dir/$ac_word; then
983 ac_cv_prog_GMAKE="yes"
988 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
991 GMAKE="$ac_cv_prog_GMAKE"
992 if test -n "$GMAKE"; then
993 echo "$ac_t""$GMAKE" 1>&6
995 echo "$ac_t""no" 1>&6
998 if test $GMAKE = no; then
999 # Extract the first word of "make", so it can be a program name with args.
1000 set dummy make; ac_word=$2
1001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1002 echo "configure:1003: checking for $ac_word" >&5
1003 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1008 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1011 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1016 for ac_dir in $ac_dummy; do
1017 test -z "$ac_dir" && ac_dir=.
1018 if test -f $ac_dir/$ac_word; then
1019 ac_cv_path_MAKE="$ac_dir/$ac_word"
1024 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
1028 MAKE="$ac_cv_path_MAKE"
1029 if test -n "$MAKE"; then
1030 echo "$ac_t""$MAKE" 1>&6
1032 echo "$ac_t""no" 1>&6
1036 # Extract the first word of "gmake", so it can be a program name with args.
1037 set dummy gmake; ac_word=$2
1038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1039 echo "configure:1040: checking for $ac_word" >&5
1040 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1045 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1048 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1053 for ac_dir in $ac_dummy; do
1054 test -z "$ac_dir" && ac_dir=.
1055 if test -f $ac_dir/$ac_word; then
1056 ac_cv_path_MAKE="$ac_dir/$ac_word"
1061 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
1065 MAKE="$ac_cv_path_MAKE"
1066 if test -n "$MAKE"; then
1067 echo "$ac_t""$MAKE" 1>&6
1069 echo "$ac_t""no" 1>&6
1073 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
1074 if test -z "$makever"; then
1075 { echo "configure: error: GNU Make is not installed. Please download and install it
1076 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." 1>&2; exit 1; }
1079 echo $ac_n "checking for main in -lltdl""... $ac_c" 1>&6
1080 echo "configure:1081: checking for main in -lltdl" >&5
1081 ac_lib_var=`echo ltdl'_'main | sed 'y%./+-%__p_%'`
1082 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1085 ac_save_LIBS="$LIBS"
1087 cat > conftest.$ac_ext <<EOF
1088 #line 1089 "configure"
1089 #include "confdefs.h"
1095 if { (eval echo configure:1096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1097 eval "ac_cv_lib_$ac_lib_var=yes"
1099 echo "configure: failed program was:" >&5
1100 cat conftest.$ac_ext >&5
1102 eval "ac_cv_lib_$ac_lib_var=no"
1105 LIBS="$ac_save_LIBS"
1108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1109 echo "$ac_t""yes" 1>&6
1110 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
1112 echo "$ac_t""no" 1>&6
1113 if test x"$enable_ltdl_install" = xno; then
1114 echo "configure: warning: libltdl not installed, but installation disabled" 1>&2
1116 enable_ltdl_install=yes
1121 if test x"$enable_ltdl_install" = x"yes"; then
1122 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1123 LIBLTDL='${top_builddir}/libltdl'/libltdl.la
1124 INCLTDL='-I${top_builddir}/libltdl'
1126 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
1135 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1136 if test -f $ac_dir/install-sh; then
1138 ac_install_sh="$ac_aux_dir/install-sh -c"
1140 elif test -f $ac_dir/install.sh; then
1142 ac_install_sh="$ac_aux_dir/install.sh -c"
1146 if test -z "$ac_aux_dir"; then
1147 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1149 ac_config_guess=$ac_aux_dir/config.guess
1150 ac_config_sub=$ac_aux_dir/config.sub
1151 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1153 # Check whether --enable-shared or --disable-shared was given.
1154 if test "${enable_shared+set}" = set; then
1155 enableval="$enable_shared"
1156 p=${PACKAGE-default}
1157 case "$enableval" in
1158 yes) enable_shared=yes ;;
1159 no) enable_shared=no ;;
1162 # Look at the argument we got. We use all the common list separators.
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1164 for pkg in $enableval; do
1165 if test "X$pkg" = "X$p"; then
1176 # Check whether --enable-static or --disable-static was given.
1177 if test "${enable_static+set}" = set; then
1178 enableval="$enable_static"
1179 p=${PACKAGE-default}
1180 case "$enableval" in
1181 yes) enable_static=yes ;;
1182 no) enable_static=no ;;
1185 # Look at the argument we got. We use all the common list separators.
1186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1187 for pkg in $enableval; do
1188 if test "X$pkg" = "X$p"; then
1199 # Check whether --enable-fast-install or --disable-fast-install was given.
1200 if test "${enable_fast_install+set}" = set; then
1201 enableval="$enable_fast_install"
1202 p=${PACKAGE-default}
1203 case "$enableval" in
1204 yes) enable_fast_install=yes ;;
1205 no) enable_fast_install=no ;;
1207 enable_fast_install=no
1208 # Look at the argument we got. We use all the common list separators.
1209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1210 for pkg in $enableval; do
1211 if test "X$pkg" = "X$p"; then
1212 enable_fast_install=yes
1219 enable_fast_install=yes
1223 # Make sure we can run config.sub.
1224 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1225 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1228 echo $ac_n "checking host system type""... $ac_c" 1>&6
1229 echo "configure:1230: checking host system type" >&5
1232 case "$host_alias" in
1236 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1237 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1239 *) host_alias=$nonopt ;;
1243 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1244 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1245 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1246 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1247 echo "$ac_t""$host" 1>&6
1249 echo $ac_n "checking build system type""... $ac_c" 1>&6
1250 echo "configure:1251: checking build system type" >&5
1253 case "$build_alias" in
1256 NONE) build_alias=$host_alias ;;
1257 *) build_alias=$nonopt ;;
1261 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1262 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1263 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1264 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1265 echo "$ac_t""$build" 1>&6
1267 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1268 if test "${with_gnu_ld+set}" = set; then
1269 withval="$with_gnu_ld"
1270 test "$withval" = no || with_gnu_ld=yes
1276 if test "$ac_cv_prog_gcc" = yes; then
1277 # Check if gcc -print-prog-name=ld gives a path.
1278 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1279 echo "configure:1280: checking for ld used by GCC" >&5
1280 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1282 # Accept absolute paths.
1283 [\\/]* | [A-Za-z]:[\\/]*)
1284 re_direlt='/[^/][^/]*/\.\./'
1285 # Canonicalize the path of ld
1286 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1287 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1288 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1290 test -z "$LD" && LD="$ac_prog"
1293 # If it fails, then pretend we aren't using GCC.
1297 # If it is relative, then search for the first ld in PATH.
1301 elif test "$with_gnu_ld" = yes; then
1302 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1303 echo "configure:1304: checking for GNU ld" >&5
1305 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1306 echo "configure:1307: checking for non-GNU ld" >&5
1308 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1311 if test -z "$LD"; then
1312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1313 for ac_dir in $PATH; do
1314 test -z "$ac_dir" && ac_dir=.
1315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1316 ac_cv_path_LD="$ac_dir/$ac_prog"
1317 # Check to see if the program is GNU ld. I'd rather use --version,
1318 # but apparently some GNU ld's only accept -v.
1319 # Break only if it was the GNU/non-GNU ld that we prefer.
1320 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1321 test "$with_gnu_ld" != no && break
1323 test "$with_gnu_ld" != yes && break
1329 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1334 if test -n "$LD"; then
1335 echo "$ac_t""$LD" 1>&6
1337 echo "$ac_t""no" 1>&6
1339 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1340 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1341 echo "configure:1342: checking if the linker ($LD) is GNU ld" >&5
1342 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1346 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1347 ac_cv_prog_gnu_ld=yes
1349 ac_cv_prog_gnu_ld=no
1353 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1356 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1357 echo "configure:1358: checking for BSD-compatible nm" >&5
1358 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 if test -n "$NM"; then
1362 # Let the user override the test.
1365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1366 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1367 test -z "$ac_dir" && ac_dir=.
1368 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1369 # Check to see if the nm accepts a BSD-compat flag.
1370 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1371 # nm: unknown option "B" ignored
1372 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1373 ac_cv_path_NM="$ac_dir/nm -B"
1375 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1376 ac_cv_path_NM="$ac_dir/nm -p"
1379 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1380 continue # so that we can try to find one that supports BSD flags
1385 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1390 echo "$ac_t""$NM" 1>&6
1392 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1393 echo "configure:1394: checking whether ln -s works" >&5
1394 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1398 if ln -s X conftestdata 2>/dev/null
1401 ac_cv_prog_LN_S="ln -s"
1406 LN_S="$ac_cv_prog_LN_S"
1407 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1408 echo "$ac_t""yes" 1>&6
1410 echo "$ac_t""no" 1>&6
1415 NONE) lt_target="$host" ;;
1416 *) lt_target="$target" ;;
1419 # Check for any special flags to pass to ltconfig.
1420 libtool_flags="--cache-file=$cache_file"
1421 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1422 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1423 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1424 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1425 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1426 libtool_flags="$libtool_flags --enable-dlopen"
1428 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1429 if test "${enable_libtool_lock+set}" = set; then
1430 enableval="$enable_libtool_lock"
1434 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1435 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1437 # Some flags need to be propagated to the compiler or linker for good
1439 case "$lt_target" in
1441 # Find out which ABI we are using.
1442 echo '#line 1443 "configure"' > conftest.$ac_ext
1443 if { (eval echo configure:1444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1444 case "`/usr/bin/file conftest.o`" in
1460 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1461 SAVE_CFLAGS="$CFLAGS"
1462 CFLAGS="$CFLAGS -belf"
1463 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1464 echo "configure:1465: checking whether the C compiler needs -belf" >&5
1465 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1468 cat > conftest.$ac_ext <<EOF
1469 #line 1470 "configure"
1470 #include "confdefs.h"
1476 if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1478 lt_cv_cc_needs_belf=yes
1480 echo "configure: failed program was:" >&5
1481 cat conftest.$ac_ext >&5
1483 lt_cv_cc_needs_belf=no
1488 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1489 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1490 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1491 CFLAGS="$SAVE_CFLAGS"
1499 # Save cache, so that ltconfig can load it
1500 cat > confcache <<\EOF
1501 # This file is a shell script that caches the results of configure
1502 # tests run on this system so they can be shared between configure
1503 # scripts and configure runs. It is not useful on other systems.
1504 # If it contains results you don't want to keep, you may remove or edit it.
1506 # By default, configure uses ./config.cache as the cache file,
1507 # creating it if it does not exist already. You can give configure
1508 # the --cache-file=FILE option to use a different cache file; that is
1509 # what configure does when it calls configure scripts in
1510 # subdirectories, so they share the cache.
1511 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1512 # config.status only pays attention to the cache file if you give it the
1513 # --recheck option to rerun configure.
1516 # The following way of writing the cache mishandles newlines in values,
1517 # but we know of no workaround that is simple, portable, and efficient.
1518 # So, don't put newlines in cache variables' values.
1519 # Ultrix sh set writes to stderr and can't be redirected directly,
1520 # and sets the high bit in the cache file unless we assign to the vars.
1522 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1524 # `set' does not quote correctly, so add quotes (double-quote substitution
1525 # turns \\\\ into \\, and sed turns \\ into \).
1527 -e "s/'/'\\\\''/g" \
1528 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1531 # `set' quotes correctly as required by POSIX, so do not add quotes.
1532 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1535 if cmp -s $cache_file confcache; then
1538 if test -w $cache_file; then
1539 echo "updating cache $cache_file"
1540 cat confcache > $cache_file
1542 echo "not updating unwritable cache $cache_file"
1548 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1549 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1550 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1551 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1552 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1553 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1554 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1555 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1557 # Reload cache, that may have been modified by ltconfig
1558 if test -r "$cache_file"; then
1559 echo "loading cache $cache_file"
1562 echo "creating cache $cache_file"
1567 # This can be used to rebuild libtool when needed
1568 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1570 # Always use our own libtool.
1571 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1573 # Redirect the config.log output again, so that the ltconfig log is not
1574 # clobbered by the next message.
1575 exec 5>>./config.log
1579 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
1580 if test "${enable_strict_dependencies+set}" = set; then
1581 enableval="$enable_strict_dependencies"
1586 # Check whether --with-fooincludedir or --without-fooincludedir was given.
1587 if test "${with_fooincludedir+set}" = set; then
1588 withval="$with_fooincludedir"
1593 # Check whether --with-foolibdir or --without-foolibdir was given.
1594 if test "${with_foolibdir+set}" = set; then
1595 withval="$with_foolibdir"
1600 logdir='${localstatedir}/log/radius'
1601 echo $ac_n "checking logdir""... $ac_c" 1>&6
1602 echo "configure:1603: checking logdir" >&5
1603 # Check whether --with-logdir or --without-logdir was given.
1604 if test "${with_logdir+set}" = set; then
1605 withval="$with_logdir"
1608 { echo "configure: error: Need logdir" 1>&2; exit 1; }
1620 echo "$ac_t""$logdir" 1>&6
1622 radacctdir='${logdir}/radacct'
1623 echo $ac_n "checking radacctdir""... $ac_c" 1>&6
1624 echo "configure:1625: checking radacctdir" >&5
1625 # Check whether --with-radacctdir or --without-radacctdir was given.
1626 if test "${with_radacctdir+set}" = set; then
1627 withval="$with_radacctdir"
1630 { echo "configure: error: Need radacctdir" 1>&2; exit 1; }
1635 radacctdir="$withval"
1642 echo "$ac_t""$radacctdir" 1>&6
1644 raddbdir='${sysconfdir}/raddb'
1645 echo $ac_n "checking raddbdir""... $ac_c" 1>&6
1646 echo "configure:1647: checking raddbdir" >&5
1647 # Check whether --with-raddbdir or --without-raddbdir was given.
1648 if test "${with_raddbdir+set}" = set; then
1649 withval="$with_raddbdir"
1652 { echo "configure: error: Need raddbdir" 1>&2; exit 1; }
1664 echo "$ac_t""$raddbdir" 1>&6
1666 WITH_DICT_NOCASE=yes
1667 # Check whether --with-dict-nocase or --without-dict-nocase was given.
1668 if test "${with_dict_nocase+set}" = set; then
1669 withval="$with_dict_nocase"
1679 if test "X$WITH_DICT_NOCASE" = "Xyes"; then
1680 cat >> confdefs.h <<\EOF
1681 #define WITH_DICT_NOCASE 1
1687 # Check whether --with-ascend-binary or --without-ascend-binary was given.
1688 if test "${with_ascend_binary+set}" = set; then
1689 withval="$with_ascend_binary"
1699 if test "X$ASCEND_BINARY" = "Xyes"; then
1700 cat >> confdefs.h <<\EOF
1701 #define ASCEND_BINARY 1
1707 # Check whether --with-threads or --without-threads was given.
1708 if test "${with_threads+set}" = set; then
1709 withval="$with_threads"
1721 # Check whether --with-thread-pool or --without-thread-pool was given.
1722 if test "${with_thread_pool+set}" = set; then
1723 withval="$with_thread_pool"
1726 WITH_THREAD_POOL=yes
1736 # Check whether --with-snmp or --without-snmp was given.
1737 if test "${with_snmp+set}" = set; then
1738 withval="$with_snmp"
1749 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
1750 if test "${enable_ltdl_install+set}" = set; then
1751 enableval="$enable_ltdl_install"
1755 if test x"${enable_ltdl_install+set}" != xset; then
1756 enable_ltdl_install=yes
1757 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1763 # Check whether --with-static_modules or --without-static_modules was given.
1764 if test "${with_static_modules+set}" = set; then
1765 withval="$with_static_modules"
1767 for i in $withval; do
1768 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
1774 # Check whether --enable-developer or --disable-developer was given.
1775 if test "${enable_developer+set}" = set; then
1776 enableval="$enable_developer"
1788 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
1794 # Extract the first word of "perl", so it can be a program name with args.
1795 set dummy perl; ac_word=$2
1796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1797 echo "configure:1798: checking for $ac_word" >&5
1798 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1803 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1806 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1811 for ac_dir in $ac_dummy; do
1812 test -z "$ac_dir" && ac_dir=.
1813 if test -f $ac_dir/$ac_word; then
1814 ac_cv_path_PERL="$ac_dir/$ac_word"
1819 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
1823 PERL="$ac_cv_path_PERL"
1824 if test -n "$PERL"; then
1825 echo "$ac_t""$PERL" 1>&6
1827 echo "$ac_t""no" 1>&6
1830 if test ! -x $ac_cv_path_PERL; then
1831 { echo "configure: error: perl not found - fatal" 1>&2; exit 1; }
1833 # Extract the first word of "snmpget", so it can be a program name with args.
1834 set dummy snmpget; ac_word=$2
1835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_word" >&5
1837 if eval "test \"`echo '$''{'ac_cv_path_SNMPGET'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1842 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
1845 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a dos path.
1848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1850 for ac_dir in $ac_dummy; do
1851 test -z "$ac_dir" && ac_dir=.
1852 if test -f $ac_dir/$ac_word; then
1853 ac_cv_path_SNMPGET="$ac_dir/$ac_word"
1858 test -z "$ac_cv_path_SNMPGET" && ac_cv_path_SNMPGET="/usr/local/bin/snmpget"
1862 SNMPGET="$ac_cv_path_SNMPGET"
1863 if test -n "$SNMPGET"; then
1864 echo "$ac_t""$SNMPGET" 1>&6
1866 echo "$ac_t""no" 1>&6
1869 # Extract the first word of "snmpwalk", so it can be a program name with args.
1870 set dummy snmpwalk; ac_word=$2
1871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1872 echo "configure:1873: checking for $ac_word" >&5
1873 if eval "test \"`echo '$''{'ac_cv_path_SNMPWALK'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1878 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
1881 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a dos path.
1884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1886 for ac_dir in $ac_dummy; do
1887 test -z "$ac_dir" && ac_dir=.
1888 if test -f $ac_dir/$ac_word; then
1889 ac_cv_path_SNMPWALK="$ac_dir/$ac_word"
1894 test -z "$ac_cv_path_SNMPWALK" && ac_cv_path_SNMPWALK="/usr/local/bin/snmpwalk"
1898 SNMPWALK="$ac_cv_path_SNMPWALK"
1899 if test -n "$SNMPWALK"; then
1900 echo "$ac_t""$SNMPWALK" 1>&6
1902 echo "$ac_t""no" 1>&6
1905 # Extract the first word of "rusers", so it can be a program name with args.
1906 set dummy rusers; ac_word=$2
1907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1908 echo "configure:1909: checking for $ac_word" >&5
1909 if eval "test \"`echo '$''{'ac_cv_path_RUSERS'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1914 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
1917 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a dos path.
1920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1922 for ac_dir in $ac_dummy; do
1923 test -z "$ac_dir" && ac_dir=.
1924 if test -f $ac_dir/$ac_word; then
1925 ac_cv_path_RUSERS="$ac_dir/$ac_word"
1930 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
1934 RUSERS="$ac_cv_path_RUSERS"
1935 if test -n "$RUSERS"; then
1936 echo "$ac_t""$RUSERS" 1>&6
1938 echo "$ac_t""no" 1>&6
1942 missing_dir=`cd $ac_aux_dir && pwd`
1943 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1944 echo "configure:1945: checking for working aclocal" >&5
1945 # Run test in a subshell; some versions of sh will print an error if
1946 # an executable is not found, even if stderr is redirected.
1947 # Redirect stdin to placate older versions of autoconf. Sigh.
1948 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1950 echo "$ac_t""found" 1>&6
1952 ACLOCAL="$missing_dir/missing aclocal"
1953 echo "$ac_t""missing" 1>&6
1956 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1957 echo "configure:1958: checking for working autoconf" >&5
1958 # Run test in a subshell; some versions of sh will print an error if
1959 # an executable is not found, even if stderr is redirected.
1960 # Redirect stdin to placate older versions of autoconf. Sigh.
1961 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1963 echo "$ac_t""found" 1>&6
1965 AUTOCONF="$missing_dir/missing autoconf"
1966 echo "$ac_t""missing" 1>&6
1969 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1970 echo "configure:1971: checking for working autoheader" >&5
1971 # Run test in a subshell; some versions of sh will print an error if
1972 # an executable is not found, even if stderr is redirected.
1973 # Redirect stdin to placate older versions of autoconf. Sigh.
1974 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1975 AUTOHEADER=autoheader
1976 echo "$ac_t""found" 1>&6
1978 AUTOHEADER="$missing_dir/missing autoheader"
1979 echo "$ac_t""missing" 1>&6
1983 # Extract the first word of "locate", so it can be a program name with args.
1984 set dummy locate; ac_word=$2
1985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1986 echo "configure:1987: checking for $ac_word" >&5
1987 if eval "test \"`echo '$''{'ac_cv_path_LOCATE'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1992 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
1995 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a dos path.
1998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2000 for ac_dir in $ac_dummy; do
2001 test -z "$ac_dir" && ac_dir=.
2002 if test -f $ac_dir/$ac_word; then
2003 ac_cv_path_LOCATE="$ac_dir/$ac_word"
2011 LOCATE="$ac_cv_path_LOCATE"
2012 if test -n "$LOCATE"; then
2013 echo "$ac_t""$LOCATE" 1>&6
2015 echo "$ac_t""no" 1>&6
2018 # Extract the first word of "dirname", so it can be a program name with args.
2019 set dummy dirname; ac_word=$2
2020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2021 echo "configure:2022: checking for $ac_word" >&5
2022 if eval "test \"`echo '$''{'ac_cv_path_DIRNAME'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2027 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
2030 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a dos path.
2033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2035 for ac_dir in $ac_dummy; do
2036 test -z "$ac_dir" && ac_dir=.
2037 if test -f $ac_dir/$ac_word; then
2038 ac_cv_path_DIRNAME="$ac_dir/$ac_word"
2046 DIRNAME="$ac_cv_path_DIRNAME"
2047 if test -n "$DIRNAME"; then
2048 echo "$ac_t""$DIRNAME" 1>&6
2050 echo "$ac_t""no" 1>&6
2053 # Extract the first word of "grep", so it can be a program name with args.
2054 set dummy grep; ac_word=$2
2055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2056 echo "configure:2057: checking for $ac_word" >&5
2057 if eval "test \"`echo '$''{'ac_cv_path_GREP'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2062 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
2065 ac_cv_path_GREP="$GREP" # Let the user override the test with a dos path.
2068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2070 for ac_dir in $ac_dummy; do
2071 test -z "$ac_dir" && ac_dir=.
2072 if test -f $ac_dir/$ac_word; then
2073 ac_cv_path_GREP="$ac_dir/$ac_word"
2081 GREP="$ac_cv_path_GREP"
2082 if test -n "$GREP"; then
2083 echo "$ac_t""$GREP" 1>&6
2085 echo "$ac_t""no" 1>&6
2089 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2090 echo "configure:2091: checking for AIX" >&5
2091 cat > conftest.$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2100 egrep "yes" >/dev/null 2>&1; then
2102 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2103 #define _ALL_SOURCE 1
2108 echo "$ac_t""no" 1>&6
2116 if test "$WITH_THREADS" = "yes"; then
2117 if test $ac_cv_prog_suncc = "yes"; then
2118 CFLAGS="$CFLAGS -mt"
2121 for ac_hdr in pthread.h
2123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_hdr" >&5
2126 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2135 { (eval echo configure:2136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2137 if test -z "$ac_err"; then
2139 eval "ac_cv_header_$ac_safe=yes"
2142 echo "configure: failed program was:" >&5
2143 cat conftest.$ac_ext >&5
2145 eval "ac_cv_header_$ac_safe=no"
2149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2150 echo "$ac_t""yes" 1>&6
2151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2152 cat >> confdefs.h <<EOF
2153 #define $ac_tr_hdr 1
2157 echo "$ac_t""no" 1>&6
2162 if test "X$ac_cv_header_pthread_h" = "X"; then
2163 { echo "configure: error: "You are trying to use threads without a POSIX <pthread.h>"" 1>&2; exit 1; }
2166 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2167 echo "configure:2168: checking for pthread_create in -lpthread" >&5
2168 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 ac_save_LIBS="$LIBS"
2173 LIBS="-lpthread $LIBS"
2174 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 /* Override any gcc2 internal prototype to avoid an error. */
2178 /* We use char because int might match the return type of a gcc2
2179 builtin and then its argument prototype would still apply. */
2180 char pthread_create();
2186 if { (eval echo configure:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2188 eval "ac_cv_lib_$ac_lib_var=yes"
2190 echo "configure: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2193 eval "ac_cv_lib_$ac_lib_var=no"
2196 LIBS="$ac_save_LIBS"
2199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2200 echo "$ac_t""yes" 1>&6
2201 PTHREADLIB="-lpthread"
2204 echo "$ac_t""no" 1>&6
2208 if test "X$PTHREADLIB" = "X"; then
2209 SAVED_CFLAGS=$CFLAGS
2210 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
2211 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2212 echo "configure:2213: checking for pthread_create in -lc_r" >&5
2213 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2217 ac_save_LIBS="$LIBS"
2219 cat > conftest.$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2222 /* Override any gcc2 internal prototype to avoid an error. */
2223 /* We use char because int might match the return type of a gcc2
2224 builtin and then its argument prototype would still apply. */
2225 char pthread_create();
2231 if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2233 eval "ac_cv_lib_$ac_lib_var=yes"
2235 echo "configure: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2238 eval "ac_cv_lib_$ac_lib_var=no"
2241 LIBS="$ac_save_LIBS"
2244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2245 echo "$ac_t""yes" 1>&6
2249 echo "$ac_t""no" 1>&6
2254 if test "x$PTHREADLIB" = "x"; then
2255 CFLAGS=$SAVED_CFLAGS
2256 ac_cv_header_pthread_h="no"
2258 LIBS="$LIBS $PTHREADLIB"
2259 CFLAGS="$CFLAGS -D_REENTRANT"
2263 echo $ac_n "checking for getsockname in -lsocket""... $ac_c" 1>&6
2264 echo "configure:2265: checking for getsockname in -lsocket" >&5
2265 ac_lib_var=`echo socket'_'getsockname | sed 'y%./+-%__p_%'`
2266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2269 ac_save_LIBS="$LIBS"
2270 LIBS="-lsocket $LIBS"
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 /* Override any gcc2 internal prototype to avoid an error. */
2275 /* We use char because int might match the return type of a gcc2
2276 builtin and then its argument prototype would still apply. */
2283 if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2285 eval "ac_cv_lib_$ac_lib_var=yes"
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2290 eval "ac_cv_lib_$ac_lib_var=no"
2293 LIBS="$ac_save_LIBS"
2296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2297 echo "$ac_t""yes" 1>&6
2298 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2299 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2300 cat >> confdefs.h <<EOF
2301 #define $ac_tr_lib 1
2304 LIBS="-lsocket $LIBS"
2307 echo "$ac_t""no" 1>&6
2311 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
2312 echo "configure:2313: checking for inet_aton in -lresolv" >&5
2313 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
2314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2317 ac_save_LIBS="$LIBS"
2318 LIBS="-lresolv $LIBS"
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 /* Override any gcc2 internal prototype to avoid an error. */
2323 /* We use char because int might match the return type of a gcc2
2324 builtin and then its argument prototype would still apply. */
2331 if { (eval echo configure:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2333 eval "ac_cv_lib_$ac_lib_var=yes"
2335 echo "configure: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2338 eval "ac_cv_lib_$ac_lib_var=no"
2341 LIBS="$ac_save_LIBS"
2344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2345 echo "$ac_t""yes" 1>&6
2346 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2347 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2348 cat >> confdefs.h <<EOF
2349 #define $ac_tr_lib 1
2352 LIBS="-lresolv $LIBS"
2355 echo "$ac_t""no" 1>&6
2359 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
2360 echo "configure:2361: checking for inet_ntoa in -lnsl" >&5
2361 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
2362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 ac_save_LIBS="$LIBS"
2367 cat > conftest.$ac_ext <<EOF
2368 #line 2369 "configure"
2369 #include "confdefs.h"
2370 /* Override any gcc2 internal prototype to avoid an error. */
2371 /* We use char because int might match the return type of a gcc2
2372 builtin and then its argument prototype would still apply. */
2379 if { (eval echo configure:2380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2381 eval "ac_cv_lib_$ac_lib_var=yes"
2383 echo "configure: failed program was:" >&5
2384 cat conftest.$ac_ext >&5
2386 eval "ac_cv_lib_$ac_lib_var=no"
2389 LIBS="$ac_save_LIBS"
2392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2393 echo "$ac_t""yes" 1>&6
2394 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2395 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2396 cat >> confdefs.h <<EOF
2397 #define $ac_tr_lib 1
2403 echo "$ac_t""no" 1>&6
2409 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2411 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2412 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2413 echo "configure:2414: checking for $ac_hdr that defines DIR" >&5
2414 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2417 cat > conftest.$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2420 #include <sys/types.h>
2426 if { (eval echo configure:2427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2428 eval "ac_cv_header_dirent_$ac_safe=yes"
2430 echo "configure: failed program was:" >&5
2431 cat conftest.$ac_ext >&5
2433 eval "ac_cv_header_dirent_$ac_safe=no"
2437 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2438 echo "$ac_t""yes" 1>&6
2439 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2440 cat >> confdefs.h <<EOF
2441 #define $ac_tr_hdr 1
2443 ac_header_dirent=$ac_hdr; break
2445 echo "$ac_t""no" 1>&6
2448 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2449 if test $ac_header_dirent = dirent.h; then
2450 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2451 echo "configure:2452: checking for opendir in -ldir" >&5
2452 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2456 ac_save_LIBS="$LIBS"
2458 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2461 /* Override any gcc2 internal prototype to avoid an error. */
2462 /* We use char because int might match the return type of a gcc2
2463 builtin and then its argument prototype would still apply. */
2470 if { (eval echo configure:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2472 eval "ac_cv_lib_$ac_lib_var=yes"
2474 echo "configure: failed program was:" >&5
2475 cat conftest.$ac_ext >&5
2477 eval "ac_cv_lib_$ac_lib_var=no"
2480 LIBS="$ac_save_LIBS"
2483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2484 echo "$ac_t""yes" 1>&6
2487 echo "$ac_t""no" 1>&6
2491 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2492 echo "configure:2493: checking for opendir in -lx" >&5
2493 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2497 ac_save_LIBS="$LIBS"
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 /* Override any gcc2 internal prototype to avoid an error. */
2503 /* We use char because int might match the return type of a gcc2
2504 builtin and then its argument prototype would still apply. */
2511 if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2513 eval "ac_cv_lib_$ac_lib_var=yes"
2515 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2518 eval "ac_cv_lib_$ac_lib_var=no"
2521 LIBS="$ac_save_LIBS"
2524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2525 echo "$ac_t""yes" 1>&6
2528 echo "$ac_t""no" 1>&6
2533 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2534 echo "configure:2535: checking for ANSI C header files" >&5
2535 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2536 echo $ac_n "(cached) $ac_c" 1>&6
2538 cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2547 { (eval echo configure:2548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2549 if test -z "$ac_err"; then
2551 ac_cv_header_stdc=yes
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2557 ac_cv_header_stdc=no
2561 if test $ac_cv_header_stdc = yes; then
2562 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2563 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2569 egrep "memchr" >/dev/null 2>&1; then
2573 ac_cv_header_stdc=no
2579 if test $ac_cv_header_stdc = yes; then
2580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2581 cat > conftest.$ac_ext <<EOF
2582 #line 2583 "configure"
2583 #include "confdefs.h"
2586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2587 egrep "free" >/dev/null 2>&1; then
2591 ac_cv_header_stdc=no
2597 if test $ac_cv_header_stdc = yes; then
2598 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2599 if test "$cross_compiling" = yes; then
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2606 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2607 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2609 int main () { int i; for (i = 0; i < 256; i++)
2610 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2614 if { (eval echo configure:2615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2618 echo "configure: failed program was:" >&5
2619 cat conftest.$ac_ext >&5
2621 ac_cv_header_stdc=no
2629 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2630 if test $ac_cv_header_stdc = yes; then
2631 cat >> confdefs.h <<\EOF
2632 #define STDC_HEADERS 1
2637 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2638 echo "configure:2639: checking whether time.h and sys/time.h may both be included" >&5
2639 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2642 cat > conftest.$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2645 #include <sys/types.h>
2646 #include <sys/time.h>
2652 if { (eval echo configure:2653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2654 ac_cv_header_time=yes
2656 echo "configure: failed program was:" >&5
2657 cat conftest.$ac_ext >&5
2659 ac_cv_header_time=no
2664 echo "$ac_t""$ac_cv_header_time" 1>&6
2665 if test $ac_cv_header_time = yes; then
2666 cat >> confdefs.h <<\EOF
2667 #define TIME_WITH_SYS_TIME 1
2672 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2673 echo "configure:2674: checking for sys/wait.h that is POSIX.1 compatible" >&5
2674 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2681 #include <sys/wait.h>
2683 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2686 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2691 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2694 if { (eval echo configure:2695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2696 ac_cv_header_sys_wait_h=yes
2698 echo "configure: failed program was:" >&5
2699 cat conftest.$ac_ext >&5
2701 ac_cv_header_sys_wait_h=no
2706 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2707 if test $ac_cv_header_sys_wait_h = yes; then
2708 cat >> confdefs.h <<\EOF
2709 #define HAVE_SYS_WAIT_H 1
2739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2741 echo "configure:2742: checking for $ac_hdr" >&5
2742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751 { (eval echo configure:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2753 if test -z "$ac_err"; then
2755 eval "ac_cv_header_$ac_safe=yes"
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2761 eval "ac_cv_header_$ac_safe=no"
2765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2766 echo "$ac_t""yes" 1>&6
2767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2768 cat >> confdefs.h <<EOF
2769 #define $ac_tr_hdr 1
2773 echo "$ac_t""no" 1>&6
2779 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
2780 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
2781 echo "configure:2782: checking for regex.h" >&5
2782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2791 { (eval echo configure:2792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2793 if test -z "$ac_err"; then
2795 eval "ac_cv_header_$ac_safe=yes"
2798 echo "configure: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2801 eval "ac_cv_header_$ac_safe=no"
2805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2806 echo "$ac_t""yes" 1>&6
2807 cat >> confdefs.h <<\EOF
2808 #define HAVE_REGEX_H 1
2812 echo "$ac_t""no" 1>&6
2815 if test "x$ac_cv_header_regex_h" = "xyes"; then
2818 cat > conftest.$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2828 egrep "yes" >/dev/null 2>&1; then
2830 cat >> confdefs.h <<\EOF
2831 #define HAVE_REG_EXTENDED 1
2843 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2844 echo "configure:2845: checking for off_t" >&5
2845 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 #include <sys/types.h>
2857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2858 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2860 ac_cv_type_off_t=yes
2868 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2869 if test $ac_cv_type_off_t = no; then
2870 cat >> confdefs.h <<\EOF
2876 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2877 echo "configure:2878: checking for pid_t" >&5
2878 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2884 #include <sys/types.h>
2890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2891 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2893 ac_cv_type_pid_t=yes
2901 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2902 if test $ac_cv_type_pid_t = no; then
2903 cat >> confdefs.h <<\EOF
2909 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2910 echo "configure:2911: checking for size_t" >&5
2911 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 cat > conftest.$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2917 #include <sys/types.h>
2923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2924 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2926 ac_cv_type_size_t=yes
2929 ac_cv_type_size_t=no
2934 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2935 if test $ac_cv_type_size_t = no; then
2936 cat >> confdefs.h <<\EOF
2937 #define size_t unsigned
2942 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2943 echo "configure:2944: checking for uid_t in sys/types.h" >&5
2944 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 #include <sys/types.h>
2952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2953 egrep "uid_t" >/dev/null 2>&1; then
2955 ac_cv_type_uid_t=yes
2964 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2965 if test $ac_cv_type_uid_t = no; then
2966 cat >> confdefs.h <<\EOF
2970 cat >> confdefs.h <<\EOF
2978 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
2979 echo "configure:2980: checking for socklen_t" >&5
2980 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 ac_cv_type_socklen_t=no
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2987 #ifdef HAVE_SYS_TYPES_H
2988 #include <sys/types.h>
2990 #ifdef HAVE_SYS_SOCKET_H
2991 #include <sys/socket.h>
2998 if { (eval echo configure:2999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3000 ac_cv_type_socklen_t=yes
3002 echo "configure: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3010 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
3012 if test "$ac_cv_type_socklen_t" != "yes"; then
3013 cat >> confdefs.h <<\EOF
3014 #define socklen_t int
3021 echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
3022 echo "configure:3023: checking for uint8_t" >&5
3023 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 ac_cv_type_uint8_t=no
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3030 #ifdef HAVE_INTTYPES_H
3031 #include <inttypes.h>
3033 #ifdef HAVE_STDINT_H
3041 if { (eval echo configure:3042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3043 ac_cv_type_uint8_t=yes
3045 echo "configure: failed program was:" >&5
3046 cat conftest.$ac_ext >&5
3053 echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
3055 if test "$ac_cv_type_uint8_t" != "yes"; then
3056 cat >> confdefs.h <<\EOF
3057 #define uint8_t unsigned char
3064 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3065 echo "configure:3066: checking for uint32_t" >&5
3066 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3069 ac_cv_type_uint32_t=no
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3073 #ifdef HAVE_INTTYPES_H
3074 #include <inttypes.h>
3076 #ifdef HAVE_STDINT_H
3084 if { (eval echo configure:3085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3086 ac_cv_type_uint32_t=yes
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3096 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
3098 if test "$ac_cv_type_uint32_t" != "yes"; then
3099 cat >> confdefs.h <<\EOF
3100 #define uint32_t unsigned int
3126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3127 echo "configure:3128: checking for $ac_func" >&5
3128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 /* System header to define __stub macros and hopefully few prototypes,
3135 which can conflict with char $ac_func(); below. */
3137 /* Override any gcc2 internal prototype to avoid an error. */
3138 /* We use char because int might match the return type of a gcc2
3139 builtin and then its argument prototype would still apply. */
3144 /* The GNU C library defines this for functions which it implements
3145 to always fail with ENOSYS. Some functions are actually named
3146 something starting with __ and the normal name is an alias. */
3147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3155 if { (eval echo configure:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3157 eval "ac_cv_func_$ac_func=yes"
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3162 eval "ac_cv_func_$ac_func=no"
3167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3168 echo "$ac_t""yes" 1>&6
3169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3170 cat >> confdefs.h <<EOF
3171 #define $ac_tr_func 1
3175 echo "$ac_t""no" 1>&6
3190 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3191 echo "configure:3192: checking whether $ac_func must be declared" >&5
3192 if eval "test \"`echo '$''{'radius_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3201 #ifdef HAVE_UNISTD_H
3210 #ifdef HAVE_RESOURCE_H
3211 #include <resource.h>
3213 #ifdef HAVE_GETOPT_H
3216 #ifdef HAVE_MALLOC_H
3225 #ifdef HAVE_SYS_SELECT_H
3226 #include <sys/select.h>
3234 #ifdef HAVE_SYSLOG_H
3237 #ifdef HAVE_INTTYPES_H
3238 #include <inttypes.h>
3240 #ifdef HAVE_STDINT_H
3243 #ifdef HAVE_ARPA_INET_H
3244 #include <arpa/inet.h>
3248 char *(*pfn) = (char *(*)) $ac_func
3251 if { (eval echo configure:3252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3253 eval "radius_cv_decl_needed_$ac_func=no"
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3258 eval "radius_cv_decl_needed_$ac_func=yes"
3263 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
3264 echo "$ac_t""yes" 1>&6
3265 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3266 cat >> confdefs.h <<EOF
3267 #define $radius_tr_decl 1
3271 echo "$ac_t""no" 1>&6
3277 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3278 echo "configure:3279: checking return type of signal handlers" >&5
3279 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3282 cat > conftest.$ac_ext <<EOF
3283 #line 3284 "configure"
3284 #include "confdefs.h"
3285 #include <sys/types.h>
3291 extern "C" void (*signal (int, void (*)(int)))(int);
3293 void (*signal ()) ();
3300 if { (eval echo configure:3301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3302 ac_cv_type_signal=void
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3307 ac_cv_type_signal=int
3312 echo "$ac_t""$ac_cv_type_signal" 1>&6
3313 cat >> confdefs.h <<EOF
3314 #define RETSIGTYPE $ac_cv_type_signal
3320 echo $ac_n "checking for working const""... $ac_c" 1>&6
3321 echo "configure:3322: checking for working const" >&5
3322 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3331 /* Ultrix mips cc rejects this. */
3332 typedef int charset[2]; const charset x;
3333 /* SunOS 4.1.1 cc rejects this. */
3334 char const *const *ccp;
3336 /* NEC SVR4.0.2 mips cc rejects this. */
3337 struct point {int x, y;};
3338 static struct point const zero = {0,0};
3339 /* AIX XL C 1.02.0.0 rejects this.
3340 It does not let you subtract one const X* pointer from another in an arm
3341 of an if-expression whose if-part is not a constant expression */
3342 const char *g = "string";
3343 ccp = &g + (g ? g-g : 0);
3344 /* HPUX 7.0 cc rejects these. */
3347 ccp = (char const *const *) p;
3348 { /* SCO 3.2v4 cc rejects this. */
3350 char const *s = 0 ? (char *) 0 : (char const *) 0;
3354 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3356 const int *foo = &x[0];
3359 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3360 typedef const int *iptr;
3364 { /* AIX XL C 1.02.0.0 rejects this saying
3365 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3366 struct s { int j; const int *ap[3]; };
3367 struct s *b; b->j = 5;
3369 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3375 if { (eval echo configure:3376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3379 echo "configure: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3387 echo "$ac_t""$ac_cv_c_const" 1>&6
3388 if test $ac_cv_c_const = no; then
3389 cat >> confdefs.h <<\EOF
3396 echo $ac_n "checking type of OS""... $ac_c" 1>&6
3397 echo "configure:3398: checking type of OS" >&5
3399 echo "$ac_t""$OS" 1>&6
3400 if test "$OS" = "OS/2"; then
3407 if test "x$GCC" = "xyes"; then
3408 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
3411 echo $ac_n "checking for developer gcc flags""... $ac_c" 1>&6
3412 echo "configure:3413: checking for developer gcc flags" >&5
3413 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
3414 devflags="-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
3415 CFLAGS="$CFLAGS $devflags"
3416 echo "$ac_t""yes. Using $devflags" 1>&6
3419 CFLAGS="$CFLAGS -DNDEBUG"
3420 echo "$ac_t""no." 1>&6
3424 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3425 echo "configure:3426: checking for crypt in -lcrypt" >&5
3426 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 ac_save_LIBS="$LIBS"
3431 LIBS="-lcrypt $LIBS"
3432 cat > conftest.$ac_ext <<EOF
3433 #line 3434 "configure"
3434 #include "confdefs.h"
3435 /* Override any gcc2 internal prototype to avoid an error. */
3436 /* We use char because int might match the return type of a gcc2
3437 builtin and then its argument prototype would still apply. */
3444 if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3446 eval "ac_cv_lib_$ac_lib_var=yes"
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3451 eval "ac_cv_lib_$ac_lib_var=no"
3454 LIBS="$ac_save_LIBS"
3457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3458 echo "$ac_t""yes" 1>&6
3462 echo "$ac_t""no" 1>&6
3466 if test "$CRYPTLIB" != ""; then
3467 cat >> confdefs.h <<\EOF
3468 #define HAVE_CRYPT 1
3472 echo $ac_n "checking for crypt""... $ac_c" 1>&6
3473 echo "configure:3474: checking for crypt" >&5
3474 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
3475 echo $ac_n "(cached) $ac_c" 1>&6
3477 cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 /* System header to define __stub macros and hopefully few prototypes,
3481 which can conflict with char crypt(); below. */
3483 /* Override any gcc2 internal prototype to avoid an error. */
3484 /* We use char because int might match the return type of a gcc2
3485 builtin and then its argument prototype would still apply. */
3490 /* The GNU C library defines this for functions which it implements
3491 to always fail with ENOSYS. Some functions are actually named
3492 something starting with __ and the normal name is an alias. */
3493 #if defined (__stub_crypt) || defined (__stub___crypt)
3501 if { (eval echo configure:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3503 eval "ac_cv_func_crypt=yes"
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3508 eval "ac_cv_func_crypt=no"
3513 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3515 cat >> confdefs.h <<\EOF
3516 #define HAVE_CRYPT 1
3520 echo "$ac_t""no" 1>&6
3525 if test "x$WITH_SNMP" = "xyes"; then
3530 echo $ac_n "checking for asn1.h""... $ac_c" 1>&6
3531 echo "configure:3532: checking for asn1.h" >&5
3533 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3537 #ifdef HAVE_SYS_TYPES_H
3538 #include <sys/types.h>
3540 #ifdef HAVE_STDINT_H
3549 #ifdef HAVE_UNISTD_H
3557 if { (eval echo configure:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3561 echo "configure: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3568 if test "x$SNMP_INCLUDE" = "x"; then
3569 old_CFLAGS="$CFLAGS"
3570 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
3571 CFLAGS="$old_CFLAGS -I$try"
3572 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3576 #ifdef HAVE_SYS_TYPES_H
3577 #include <sys/types.h>
3579 #ifdef HAVE_STDINT_H
3588 #ifdef HAVE_UNISTD_H
3596 if { (eval echo configure:3597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3598 SNMP_INCLUDE="-I$try"
3600 echo "configure: failed program was:" >&5
3601 cat conftest.$ac_ext >&5
3606 if test "x$SNMP_INCLUDE" != "x"; then
3610 CFLAGS="$old_CFLAGS"
3613 if test "x$SNMP_INCLUDE" = "x"; then
3614 echo "$ac_t""no" 1>&6
3616 echo "$ac_t""yes" 1>&6
3617 cat >> confdefs.h <<\EOF
3618 #define HAVE_ASN1_H 1
3622 old_CFLAGS="$CFLAGS"
3623 CFLAGS="$CFLAGS $SNMP_INCLUDE"
3625 echo $ac_n "checking for snmp.h""... $ac_c" 1>&6
3626 echo "configure:3627: checking for snmp.h" >&5
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3631 #ifdef HAVE_SYS_TYPES_H
3632 #include <sys/types.h>
3634 #ifdef HAVE_STDINT_H
3643 #ifdef HAVE_UNISTD_H
3654 if { (eval echo configure:3655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3656 cat >> confdefs.h <<\EOF
3657 #define HAVE_SNMP_H 1
3659 ac_cv_header_snmp_h=yes
3661 echo "configure: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3665 if test "x$ac_cv_header_snmp_h" = "xyes"; then
3666 echo "$ac_t""yes" 1>&6
3668 echo "$ac_t""no" 1>&6
3671 echo $ac_n "checking for snmp_impl.h""... $ac_c" 1>&6
3672 echo "configure:3673: checking for snmp_impl.h" >&5
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3677 #ifdef HAVE_SYS_TYPES_H
3678 #include <sys/types.h>
3680 #ifdef HAVE_STDINT_H
3689 #ifdef HAVE_UNISTD_H
3698 #include <snmp_impl.h>
3703 if { (eval echo configure:3704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3705 cat >> confdefs.h <<\EOF
3706 #define HAVE_SNMP_IMPL_H 1
3708 ac_cv_header_snmp_impl_h=yes
3710 echo "configure: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3714 if test "x$ac_cv_header_snmp_h" = "xyes"; then
3715 echo "$ac_t""yes" 1>&6
3717 echo "$ac_t""no" 1>&6
3720 echo $ac_n "checking for snmp_build_var_op in -lsnmp""... $ac_c" 1>&6
3721 echo "configure:3722: checking for snmp_build_var_op in -lsnmp" >&5
3724 LIBS="$old_LIBS -lsnmp"
3725 cat > conftest.$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3728 extern char snmp_build_var_op();
3733 if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3737 echo "configure: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3745 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
3746 LIBS="$old_LIBS -L$try -lsnmp"
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3750 extern char snmp_build_var_op();
3755 if { (eval echo configure:3756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3757 SNMP_LIBS="-L$try -lsnmp"
3759 echo "configure: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3765 if test "x$SNMP_LIBS" != "x"; then
3769 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3773 extern char snmp_build_var_op();
3778 if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3780 SNMP_LIBS="-L$try -lsnmp -lcrypto"
3782 echo "configure: failed program was:" >&5
3783 cat conftest.$ac_ext >&5
3788 if test "x$SNMP_LIBS" != "x"; then
3794 CFLAGS="$old_CFLAGS"
3795 if test "x$SNMP_LIBS" = "x"; then
3796 echo "$ac_t""no" 1>&6
3799 echo "$ac_t""yes" 1>&6
3800 cat >> confdefs.h <<\EOF
3804 cat >> confdefs.h <<\EOF
3805 #define HAVE_LIBSNMP 1
3813 if test "X$ac_cv_func_sem_init" = "Xno"; then
3815 echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
3816 echo "configure:3817: checking for sem_init in -lposix4" >&5
3817 ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
3818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3821 ac_save_LIBS="$LIBS"
3822 LIBS="-lposix4 $LIBS"
3823 cat > conftest.$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 /* Override any gcc2 internal prototype to avoid an error. */
3827 /* We use char because int might match the return type of a gcc2
3828 builtin and then its argument prototype would still apply. */
3835 if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3837 eval "ac_cv_lib_$ac_lib_var=yes"
3839 echo "configure: failed program was:" >&5
3840 cat conftest.$ac_ext >&5
3842 eval "ac_cv_lib_$ac_lib_var=no"
3845 LIBS="$ac_save_LIBS"
3848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3850 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3851 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3852 cat >> confdefs.h <<EOF
3853 #define $ac_tr_lib 1
3856 LIBS="-lposix4 $LIBS"
3859 echo "$ac_t""no" 1>&6
3863 if test "X$ac_cv_lib_posix4_sem_init" = "X"; then
3864 if test "$WITH_THREAD_POOL" = "yes"; then
3865 echo "configure: warning: You do not have posix semaphores. Disabling thread pools" 1>&2
3876 echo "checking for PostgreSQL includes" 1>&6
3877 echo "configure:3878: checking for PostgreSQL includes" >&5
3879 if test $PGROOT ; then
3882 if test -d /usr/local/pgsql ; then
3883 PGROOT="/usr/local/pgsql"
3885 elif test -d /usr/local/postgresql ; then
3886 PGROOT="/usr/local/postgresql"
3888 elif test -d /opt/pgsql ; then
3891 elif test -d /opt/postgresql ; then
3892 PGROOT="/opt/postgresql"
3896 if test $PGROOT && test IS_LOCAL ; then
3897 if test -e $PGROOT/lib/libpq.so ; then
3898 if test -e $PGROOT/lib/libpq.a ; then
3899 PQ_LIBS="-L$PGROOT/lib -lpq"
3902 for ac_hdr in $PGROOT/include/libpq-fe.h $PGROOT/include/postgres.h
3904 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3905 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3906 echo "configure:3907: checking for $ac_hdr" >&5
3907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3910 cat > conftest.$ac_ext <<EOF
3911 #line 3912 "configure"
3912 #include "confdefs.h"
3915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3916 { (eval echo configure:3917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3918 if test -z "$ac_err"; then
3920 eval "ac_cv_header_$ac_safe=yes"
3923 echo "configure: failed program was:" >&5
3924 cat conftest.$ac_ext >&5
3926 eval "ac_cv_header_$ac_safe=no"
3930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3931 echo "$ac_t""yes" 1>&6
3932 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3933 cat >> confdefs.h <<EOF
3934 #define $ac_tr_hdr 1
3938 echo "$ac_t""no" 1>&6
3942 if test $FOUND_PG_HEADERS ; then
3943 PG_INCLUDE_DIR="$PGROOT/include"
3947 if test "x$PGROOT" = "x" ; then
3948 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
3949 echo "configure:3950: checking for PQconnectdb in -lpq" >&5
3950 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
3951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3954 ac_save_LIBS="$LIBS"
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 /* Override any gcc2 internal prototype to avoid an error. */
3960 /* We use char because int might match the return type of a gcc2
3961 builtin and then its argument prototype would still apply. */
3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3970 eval "ac_cv_lib_$ac_lib_var=yes"
3972 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3975 eval "ac_cv_lib_$ac_lib_var=no"
3978 LIBS="$ac_save_LIBS"
3981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3982 echo "$ac_t""yes" 1>&6
3985 echo "$ac_t""no" 1>&6
3988 if test $FOUND_PQLIB ; then
3991 if test -d /usr/include/pgsql ; then
3992 PG_INCLUDE_DIR="/usr/include/pgsql"
3993 PG_INCLUDED_DIR="$PG_INCLUDE_DIR/"
3994 elif test -d /usr/include/postgresql ; then
3995 PG_INCLUDE_DIR="/usr/include/postgresql"
3996 PG_INCLUDED_DIR="$PG_INCLUDE_DIR/"
3998 ac_safe=`echo ""${PG_INCLUDED_DIR}libpq-fe.h"" | sed 'y%./+-%__p_%'`
3999 echo $ac_n "checking for "${PG_INCLUDED_DIR}libpq-fe.h"""... $ac_c" 1>&6
4000 echo "configure:4001: checking for "${PG_INCLUDED_DIR}libpq-fe.h"" >&5
4001 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4004 cat > conftest.$ac_ext <<EOF
4005 #line 4006 "configure"
4006 #include "confdefs.h"
4007 #include <"${PG_INCLUDED_DIR}libpq-fe.h">
4009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4010 { (eval echo configure:4011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4012 if test -z "$ac_err"; then
4014 eval "ac_cv_header_$ac_safe=yes"
4017 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4020 eval "ac_cv_header_$ac_safe=no"
4024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4025 echo "$ac_t""yes" 1>&6
4026 cat >> confdefs.h <<\EOF
4027 #define HAVE_LIBPQ_FE_H 1
4031 echo "$ac_t""no" 1>&6
4034 ac_safe=`echo ""${PG_INCLUDED_DIR}postgres.h"" | sed 'y%./+-%__p_%'`
4035 echo $ac_n "checking for "${PG_INCLUDED_DIR}postgres.h"""... $ac_c" 1>&6
4036 echo "configure:4037: checking for "${PG_INCLUDED_DIR}postgres.h"" >&5
4037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 cat > conftest.$ac_ext <<EOF
4041 #line 4042 "configure"
4042 #include "confdefs.h"
4043 #include <"${PG_INCLUDED_DIR}postgres.h">
4045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4046 { (eval echo configure:4047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4048 if test -z "$ac_err"; then
4050 eval "ac_cv_header_$ac_safe=yes"
4053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4056 eval "ac_cv_header_$ac_safe=no"
4060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4061 echo "$ac_t""yes" 1>&6
4062 cat >> confdefs.h <<\EOF
4063 #define HAVE_POSTGRES_H 1
4067 echo "$ac_t""no" 1>&6
4070 if test $HAVE_HEADER-LIBPQ-FE.H ; then
4071 PG_INCLUDE_DIR="$PG_INCLUDE_DIR"
4073 if test -d /usr/lib/pgsql ; then
4074 PGROOT="/usr/lib/pgsql"
4075 elif test -d /usr/lib/postgresql ; then
4076 PGROOT="/usr/lib/postgresql"
4080 if test "$PGROOT" && test "$PQ_LIBS" && test "$PG_INCLUDE_DIR" ; then
4081 echo Postgresql found in $PGROOT.
4089 echo $ac_n "checking for oci.h""... $ac_c" 1>&6
4090 echo "configure:4091: checking for oci.h" >&5
4092 cat > conftest.$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4100 if { (eval echo configure:4101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4104 echo "configure: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4111 if test "x$ORACLE_INCLUDE" = "x"; then
4112 old_CFLAGS="$CFLAGS"
4116 if test "x$LOCATE" != "x"; then
4120 for x in `${LOCATE} $file 2>/dev/null`; do
4121 base=`echo $x | sed "s%/${file}%%"`
4122 if test "x$x" = "x$base"; then
4126 dir=`${DIRNAME} $x 2>/dev/null`
4127 exclude=`echo ${dir} | ${GREP} /home`
4128 if test "x$exclude" != "x"; then
4132 already=`echo \$oracle_include_dir ${DIRS} | ${GREP} ${dir}`
4133 if test "x$already" = "x"; then
4139 eval "oracle_include_dir=\"\$oracle_include_dir $DIRS\""
4142 for try in /usr/local/include/oracle /usr/local/oracle/include $oracle_include_dir; do
4143 CFLAGS="$old_CFLAGS -I$try"
4144 cat > conftest.$ac_ext <<EOF
4145 #line 4146 "configure"
4146 #include "confdefs.h"
4152 if { (eval echo configure:4153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4154 ORACLE_INCLUDE="-I$try"
4156 echo "configure: failed program was:" >&5
4157 cat conftest.$ac_ext >&5
4162 if test "x$ORACLE_INCLUDE" != "x"; then
4166 CFLAGS="$old_CFLAGS"
4169 if test "x$ORACLE_INCLUDE" = "x"; then
4170 echo "$ac_t""no" 1>&6
4172 echo "$ac_t""yes" 1>&6
4174 echo $ac_n "checking for oracle_init in -loracleclient""... $ac_c" 1>&6
4175 echo "configure:4176: checking for oracle_init in -loracleclient" >&5
4181 if test "x$LOCATE" != "x"; then
4183 file=liboracleclient.so
4185 for x in `${LOCATE} $file 2>/dev/null`; do
4186 base=`echo $x | sed "s%/${file}%%"`
4187 if test "x$x" = "x$base"; then
4191 dir=`${DIRNAME} $x 2>/dev/null`
4192 exclude=`echo ${dir} | ${GREP} /home`
4193 if test "x$exclude" != "x"; then
4197 already=`echo \$oracle_lib_dir ${DIRS} | ${GREP} ${dir}`
4198 if test "x$already" = "x"; then
4204 eval "oracle_lib_dir=\"\$oracle_lib_dir $DIRS\""
4208 if test "x$LOCATE" != "x"; then
4210 file=liboracleclient.a
4212 for x in `${LOCATE} $file 2>/dev/null`; do
4213 base=`echo $x | sed "s%/${file}%%"`
4214 if test "x$x" = "x$base"; then
4218 dir=`${DIRNAME} $x 2>/dev/null`
4219 exclude=`echo ${dir} | ${GREP} /home`
4220 if test "x$exclude" != "x"; then
4224 already=`echo \$oracle_lib_dir ${DIRS} | ${GREP} ${dir}`
4225 if test "x$already" = "x"; then
4231 eval "oracle_lib_dir=\"\$oracle_lib_dir $DIRS\""
4234 for try in /usr/lib/oracle /usr/local/lib/oracle /usr/local/oracle/lib $oracle_lib_dir; do
4235 LIBS="$old_LIBS -L$try -loracleclient"
4236 cat > conftest.$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4239 extern char oracle_init();
4244 if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4246 ORACLE_LIBS="-L$try -loracleclient"
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4254 if test "x$ORACLE_LIBS" != "x"; then
4260 if test "x$ORACLE_LIBS" = "x"; then
4261 echo "$ac_t""no" 1>&6
4264 echo "$ac_t""yes" 1>&6
4265 cat >> confdefs.h <<\EOF
4266 #define HAVE_OCI_H 1
4276 echo $ac_n "checking for isql.h""... $ac_c" 1>&6
4277 echo "configure:4278: checking for isql.h" >&5
4279 cat > conftest.$ac_ext <<EOF
4280 #line 4281 "configure"
4281 #include "confdefs.h"
4287 if { (eval echo configure:4288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4291 echo "configure: failed program was:" >&5
4292 cat conftest.$ac_ext >&5
4298 if test "x$ODBC_INCLUDE" = "x"; then
4299 old_CFLAGS="$CFLAGS"
4303 if test "x$LOCATE" != "x"; then
4307 for x in `${LOCATE} $file 2>/dev/null`; do
4308 base=`echo $x | sed "s%/${file}%%"`
4309 if test "x$x" = "x$base"; then
4313 dir=`${DIRNAME} $x 2>/dev/null`
4314 exclude=`echo ${dir} | ${GREP} /home`
4315 if test "x$exclude" != "x"; then
4319 already=`echo \$odbc_include_dir ${DIRS} | ${GREP} ${dir}`
4320 if test "x$already" = "x"; then
4326 eval "odbc_include_dir=\"\$odbc_include_dir $DIRS\""
4329 for try in /usr/include /usr/local/include/odbc /usr/local/odbc/include $odbc_include_dir; do
4330 CFLAGS="$old_CFLAGS -I$try"
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4339 if { (eval echo configure:4340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4341 ODBC_INCLUDE="-I$try"
4343 echo "configure: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4349 if test "x$ODBC_INCLUDE" != "x"; then
4353 CFLAGS="$old_CFLAGS"
4356 if test "x$ODBC_INCLUDE" = "x"; then
4357 echo "$ac_t""no" 1>&6
4359 echo "$ac_t""yes" 1>&6
4361 echo $ac_n "checking for odbc_init in -lodbcclient""... $ac_c" 1>&6
4362 echo "configure:4363: checking for odbc_init in -lodbcclient" >&5
4368 if test "x$LOCATE" != "x"; then
4370 file=libodbcclient.so
4372 for x in `${LOCATE} $file 2>/dev/null`; do
4373 base=`echo $x | sed "s%/${file}%%"`
4374 if test "x$x" = "x$base"; then
4378 dir=`${DIRNAME} $x 2>/dev/null`
4379 exclude=`echo ${dir} | ${GREP} /home`
4380 if test "x$exclude" != "x"; then
4384 already=`echo \$odbc_lib_dir ${DIRS} | ${GREP} ${dir}`
4385 if test "x$already" = "x"; then
4391 eval "odbc_lib_dir=\"\$odbc_lib_dir $DIRS\""
4395 if test "x$LOCATE" != "x"; then
4397 file=libodbcclient.a
4399 for x in `${LOCATE} $file 2>/dev/null`; do
4400 base=`echo $x | sed "s%/${file}%%"`
4401 if test "x$x" = "x$base"; then
4405 dir=`${DIRNAME} $x 2>/dev/null`
4406 exclude=`echo ${dir} | ${GREP} /home`
4407 if test "x$exclude" != "x"; then
4411 already=`echo \$odbc_lib_dir ${DIRS} | ${GREP} ${dir}`
4412 if test "x$already" = "x"; then
4418 eval "odbc_lib_dir=\"\$odbc_lib_dir $DIRS\""
4421 for try in /usr/lib /usr/lib/odbc /usr/local/lib/odbc /usr/local/odbc/lib $odbc_lib_dir; do
4422 LIBS="$old_LIBS -L$try -lodbcclient"
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4426 extern char odbc_init();
4431 if { (eval echo configure:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4433 ODBC_LIBS="-L$try -lodbcclient"
4435 echo "configure: failed program was:" >&5
4436 cat conftest.$ac_ext >&5
4441 if test "x$ODBC_LIBS" != "x"; then
4447 if test "x$ODBC_LIBS" = "x"; then
4448 echo "$ac_t""no" 1>&6
4451 echo "$ac_t""yes" 1>&6
4452 cat >> confdefs.h <<\EOF
4453 #define HAVE_ISQL_H 1
4461 LIBTOOL="`pwd`/libtool"
4468 if test "$WITH_THREAD_POOL" = "yes"; then
4469 if test "$WITH_THREADS" != "yes"; then
4470 { echo "configure: error: You must have threads enabled for thread pools to work." 1>&2; exit 1; }
4473 if test "X$PTHREADLIB" = "X"; then
4474 { echo "configure: error: You must have threading libraries for thread pools to work." 1>&2; exit 1; }
4477 if test "$WITH_THREAD_POOL" = "yes"; then
4478 cat >> confdefs.h <<\EOF
4479 #define WITH_THREAD_POOL 1
4487 for foo in `find src/modules -name configure -print`; do
4488 bar=`echo $foo | sed 's%/configure$%%g'`
4489 mysubdirs="$mysubdirs $bar"
4492 subdirs="libltdl $mysubdirs"
4498 USE_SHARED_LIBS=$enable_shared
4500 USE_STATIC_LIBS=$enable_static
4507 cat > confcache <<\EOF
4508 # This file is a shell script that caches the results of configure
4509 # tests run on this system so they can be shared between configure
4510 # scripts and configure runs. It is not useful on other systems.
4511 # If it contains results you don't want to keep, you may remove or edit it.
4513 # By default, configure uses ./config.cache as the cache file,
4514 # creating it if it does not exist already. You can give configure
4515 # the --cache-file=FILE option to use a different cache file; that is
4516 # what configure does when it calls configure scripts in
4517 # subdirectories, so they share the cache.
4518 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4519 # config.status only pays attention to the cache file if you give it the
4520 # --recheck option to rerun configure.
4523 # The following way of writing the cache mishandles newlines in values,
4524 # but we know of no workaround that is simple, portable, and efficient.
4525 # So, don't put newlines in cache variables' values.
4526 # Ultrix sh set writes to stderr and can't be redirected directly,
4527 # and sets the high bit in the cache file unless we assign to the vars.
4529 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4531 # `set' does not quote correctly, so add quotes (double-quote substitution
4532 # turns \\\\ into \\, and sed turns \\ into \).
4534 -e "s/'/'\\\\''/g" \
4535 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4538 # `set' quotes correctly as required by POSIX, so do not add quotes.
4539 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4542 if cmp -s $cache_file confcache; then
4545 if test -w $cache_file; then
4546 echo "updating cache $cache_file"
4547 cat confcache > $cache_file
4549 echo "not updating unwritable cache $cache_file"
4554 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4557 # Let make expand exec_prefix.
4558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4560 # Any assignment to VPATH causes Sun make to only execute
4561 # the first set of double-colon rules, so remove it if not needed.
4562 # If there is a colon in the path, we need to keep it.
4563 if test "x$srcdir" = x.; then
4564 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4567 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4569 DEFS=-DHAVE_CONFIG_H
4571 # Without the "./", some shells look in PATH for config.status.
4572 : ${CONFIG_STATUS=./config.status}
4574 echo creating $CONFIG_STATUS
4575 rm -f $CONFIG_STATUS
4576 cat > $CONFIG_STATUS <<EOF
4578 # Generated automatically by configure.
4579 # Run this file to recreate the current configuration.
4580 # This directory was configured as follows,
4581 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4583 # $0 $ac_configure_args
4585 # Compiler output produced by configure, useful for debugging
4586 # configure, is in ./config.log if it exists.
4588 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4591 case "\$ac_option" in
4592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4593 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4594 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4595 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4596 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4598 -help | --help | --hel | --he | --h)
4599 echo "\$ac_cs_usage"; exit 0 ;;
4600 *) echo "\$ac_cs_usage"; exit 1 ;;
4604 ac_given_srcdir=$srcdir
4606 trap 'rm -fr `echo "\
4608 ./src/include/build-radpaths-h \
4609 ./src/main/checkrad.pl \
4610 ./src/main/radlast \
4611 ./src/main/radtest \
4612 ./scripts/rc.radiusd \
4613 ./scripts/radwatch \
4614 ./scripts/check-radiusd-config \
4615 ./scripts/radiusd.cron.daily \
4616 ./scripts/radiusd.cron.monthly \
4617 ./raddb/radiusd.conf
4618 src/include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4620 cat >> $CONFIG_STATUS <<EOF
4622 # Protect against being on the right side of a sed subst in config.status.
4623 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4624 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4628 s%@CFLAGS@%$CFLAGS%g
4629 s%@CPPFLAGS@%$CPPFLAGS%g
4630 s%@CXXFLAGS@%$CXXFLAGS%g
4631 s%@FFLAGS@%$FFLAGS%g
4633 s%@LDFLAGS@%$LDFLAGS%g
4635 s%@exec_prefix@%$exec_prefix%g
4636 s%@prefix@%$prefix%g
4637 s%@program_transform_name@%$program_transform_name%g
4638 s%@bindir@%$bindir%g
4639 s%@sbindir@%$sbindir%g
4640 s%@libexecdir@%$libexecdir%g
4641 s%@datadir@%$datadir%g
4642 s%@sysconfdir@%$sysconfdir%g
4643 s%@sharedstatedir@%$sharedstatedir%g
4644 s%@localstatedir@%$localstatedir%g
4645 s%@libdir@%$libdir%g
4646 s%@includedir@%$includedir%g
4647 s%@oldincludedir@%$oldincludedir%g
4648 s%@infodir@%$infodir%g
4649 s%@mandir@%$mandir%g
4652 s%@RANLIB@%$RANLIB%g
4656 s%@host_alias@%$host_alias%g
4657 s%@host_cpu@%$host_cpu%g
4658 s%@host_vendor@%$host_vendor%g
4659 s%@host_os@%$host_os%g
4661 s%@build_alias@%$build_alias%g
4662 s%@build_cpu@%$build_cpu%g
4663 s%@build_vendor@%$build_vendor%g
4664 s%@build_os@%$build_os%g
4666 s%@LIBTOOL@%$LIBTOOL%g
4667 s%@logdir@%$logdir%g
4668 s%@radacctdir@%$radacctdir%g
4669 s%@raddbdir@%$raddbdir%g
4670 s%@subdirs@%$subdirs%g
4672 s%@SNMPGET@%$SNMPGET%g
4673 s%@SNMPWALK@%$SNMPWALK%g
4674 s%@RUSERS@%$RUSERS%g
4675 s%@ACLOCAL@%$ACLOCAL%g
4676 s%@AUTOCONF@%$AUTOCONF%g
4677 s%@AUTOHEADER@%$AUTOHEADER%g
4678 s%@LOCATE@%$LOCATE%g
4679 s%@DIRNAME@%$DIRNAME%g
4682 s%@REGEX_EXTENDED@%$REGEX_EXTENDED%g
4683 s%@LIBPREFIX@%$LIBPREFIX%g
4684 s%@CRYPTLIB@%$CRYPTLIB%g
4685 s%@SNMP_LIBS@%$SNMP_LIBS%g
4686 s%@SNMP_INCLUDE@%$SNMP_INCLUDE%g
4687 s%@PGROOT@%$PGROOT%g
4688 s%@PQ_LIBS@%$PQ_LIBS%g
4689 s%@PG_INCLUDE_DIR@%$PG_INCLUDE_DIR%g
4690 s%@ORACLE_LIBS@%$ORACLE_LIBS%g
4691 s%@ORACLE_INCLUDE@%$ORACLE_INCLUDE%g
4692 s%@ODBC_LIBS@%$ODBC_LIBS%g
4693 s%@ODBC_INCLUDE@%$ODBC_INCLUDE%g
4694 s%@LIBLTDL@%$LIBLTDL%g
4695 s%@INCLTDL@%$INCLTDL%g
4696 s%@top_builddir@%$top_builddir%g
4697 s%@USE_SHARED_LIBS@%$USE_SHARED_LIBS%g
4698 s%@USE_STATIC_LIBS@%$USE_STATIC_LIBS%g
4699 s%@STATIC_MODULES@%$STATIC_MODULES%g
4700 s%@RADIUSD_VERSION@%$RADIUSD_VERSION%g
4705 cat >> $CONFIG_STATUS <<\EOF
4707 # Split the substitutions into bite-sized pieces for seds with
4708 # small command number limits, like on Digital OSF/1 and HP-UX.
4709 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4710 ac_file=1 # Number of current file.
4711 ac_beg=1 # First line for current file.
4712 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4715 while $ac_more_lines; do
4716 if test $ac_beg -gt 1; then
4717 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4719 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4721 if test ! -s conftest.s$ac_file; then
4723 rm -f conftest.s$ac_file
4725 if test -z "$ac_sed_cmds"; then
4726 ac_sed_cmds="sed -f conftest.s$ac_file"
4728 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4730 ac_file=`expr $ac_file + 1`
4732 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4735 if test -z "$ac_sed_cmds"; then
4740 cat >> $CONFIG_STATUS <<EOF
4742 CONFIG_FILES=\${CONFIG_FILES-"\
4744 ./src/include/build-radpaths-h \
4745 ./src/main/checkrad.pl \
4746 ./src/main/radlast \
4747 ./src/main/radtest \
4748 ./scripts/rc.radiusd \
4749 ./scripts/radwatch \
4750 ./scripts/check-radiusd-config \
4751 ./scripts/radiusd.cron.daily \
4752 ./scripts/radiusd.cron.monthly \
4753 ./raddb/radiusd.conf
4756 cat >> $CONFIG_STATUS <<\EOF
4757 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4758 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4760 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4761 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4762 *) ac_file_in="${ac_file}.in" ;;
4765 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4767 # Remove last slash and all that follows it. Not all systems have dirname.
4768 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4769 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4770 # The file is in a subdirectory.
4771 test ! -d "$ac_dir" && mkdir "$ac_dir"
4772 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4773 # A "../" for each directory in $ac_dir_suffix.
4774 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4776 ac_dir_suffix= ac_dots=
4779 case "$ac_given_srcdir" in
4781 if test -z "$ac_dots"; then top_srcdir=.
4782 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4783 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4785 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4786 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4790 echo creating "$ac_file"
4792 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4794 *Makefile*) ac_comsub="1i\\
4795 # $configure_input" ;;
4799 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4801 s%@configure_input@%$configure_input%g
4802 s%@srcdir@%$srcdir%g
4803 s%@top_srcdir@%$top_srcdir%g
4804 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4808 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4809 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4811 # ac_d sets the value in "#define NAME VALUE" lines.
4812 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4813 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4816 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4817 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4818 ac_uB='\([ ]\)%\1#\2define\3'
4821 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4822 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4823 ac_eB='$%\1#\2define\3'
4827 if test "${CONFIG_HEADERS+set}" != set; then
4829 cat >> $CONFIG_STATUS <<EOF
4830 CONFIG_HEADERS="src/include/autoconf.h"
4832 cat >> $CONFIG_STATUS <<\EOF
4834 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4835 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4837 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4838 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4839 *) ac_file_in="${ac_file}.in" ;;
4842 echo creating $ac_file
4844 rm -f conftest.frag conftest.in conftest.out
4845 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4846 cat $ac_file_inputs > conftest.in
4850 # Transform confdefs.h into a sed script conftest.vals that substitutes
4851 # the proper values into config.h.in to produce config.h. And first:
4852 # Protect against being on the right side of a sed subst in config.status.
4853 # Protect against being in an unquoted here document in config.status.
4855 cat > conftest.hdr <<\EOF
4858 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4862 sed -n -f conftest.hdr confdefs.h > conftest.vals
4865 # This sed command replaces #undef with comments. This is necessary, for
4866 # example, in the case of _POSIX_SOURCE, which is predefined and required
4867 # on some systems where configure will not decide to define it.
4868 cat >> conftest.vals <<\EOF
4869 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4872 # Break up conftest.vals because some shells have a limit on
4873 # the size of here documents, and old seds have small limits too.
4878 ac_lines=`grep -c . conftest.vals`
4879 # grep -c gives empty output for an empty file on some AIX systems.
4880 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4881 # Write a limited-size here document to conftest.frag.
4882 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4883 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4885 sed -f conftest.frag conftest.in > conftest.out
4887 mv conftest.out conftest.in
4889 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4891 mv conftest.tail conftest.vals
4895 cat >> $CONFIG_STATUS <<\EOF
4896 rm -f conftest.frag conftest.h
4897 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4898 cat conftest.in >> conftest.h
4900 if cmp -s $ac_file conftest.h 2>/dev/null; then
4901 echo "$ac_file is unchanged"
4904 # Remove last slash and all that follows it. Not all systems have dirname.
4905 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4906 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4907 # The file is in a subdirectory.
4908 test ! -d "$ac_dir" && mkdir "$ac_dir"
4911 mv conftest.h $ac_file
4916 cat >> $CONFIG_STATUS <<EOF
4919 cat >> $CONFIG_STATUS <<\EOF
4923 chmod +x $CONFIG_STATUS
4924 rm -fr confdefs* $ac_clean_files
4925 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4927 if test "$no_recursion" != yes; then
4929 # Remove --cache-file and --srcdir arguments so they do not pile up.
4930 ac_sub_configure_args=
4932 for ac_arg in $ac_configure_args; do
4933 if test -n "$ac_prev"; then
4938 -cache-file | --cache-file | --cache-fil | --cache-fi \
4939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4940 ac_prev=cache_file ;;
4941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4944 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4946 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4948 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4952 for ac_config_dir in libltdl $mysubdirs; do
4954 # Do not complain, so a configure script can configure whichever
4955 # parts of a large source tree are present.
4956 if test ! -d $srcdir/$ac_config_dir; then
4960 echo configuring in $ac_config_dir
4965 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4967 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4975 # A "../" for each directory in /$ac_config_dir.
4976 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4979 .) # No --srcdir option. We are building in place.
4980 ac_sub_srcdir=$srcdir ;;
4981 /*) # Absolute path.
4982 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4984 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4987 # Check for guested configure; otherwise get Cygnus style configure.
4988 if test -f $ac_sub_srcdir/configure; then
4989 ac_sub_configure=$ac_sub_srcdir/configure
4990 elif test -f $ac_sub_srcdir/configure.in; then
4991 ac_sub_configure=$ac_configure
4993 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4997 # The recursion is here.
4998 if test -n "$ac_sub_configure"; then
5000 # Make the cache file name correct relative to the subdirectory.
5001 case "$cache_file" in
5002 /*) ac_sub_cache_file=$cache_file ;;
5004 ac_sub_cache_file="$ac_dots$cache_file" ;;
5007 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5008 # The eval makes quoting arguments work.
5009 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5012 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
5026 echo timestamp > src/include/stamp-h
5027 (cd ./src/include && /bin/sh ./build-radpaths-h)
5028 (cd ./src/main && chmod +x checkrad.pl radlast radtest)
5029 (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly)
5031 cat >> src/include/autoconf.h <<EOF
5033 #define HOSTINFO "$host"
5034 #define RADIUSD_VERSION "$RADIUSD_VERSION"