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 flags of interest to developers."
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
57 cache_file=./config.cache
66 program_transform_name=s,x,x,
74 bindir='${exec_prefix}/bin'
75 sbindir='${exec_prefix}/sbin'
76 libexecdir='${exec_prefix}/libexec'
77 datadir='${prefix}/share'
78 sysconfdir='${prefix}/etc'
79 sharedstatedir='${prefix}/com'
80 localstatedir='${prefix}/var'
81 libdir='${exec_prefix}/lib'
82 includedir='${prefix}/include'
83 oldincludedir='/usr/include'
84 infodir='${prefix}/info'
85 mandir='${prefix}/man'
87 # Initialize some other variables.
90 SHELL=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
106 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110 # Accept the important Cygnus configure options, so we can diagnose typos.
114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117 bindir="$ac_optarg" ;;
119 -build | --build | --buil | --bui | --bu)
121 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
122 build="$ac_optarg" ;;
124 -cache-file | --cache-file | --cache-fil | --cache-fi \
125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126 ac_prev=cache_file ;;
127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129 cache_file="$ac_optarg" ;;
131 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
133 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
135 datadir="$ac_optarg" ;;
137 -disable-* | --disable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}=no" ;;
146 -enable-* | --enable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161 | --exec | --exe | --ex)
162 ac_prev=exec_prefix ;;
163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165 | --exec=* | --exe=* | --ex=*)
166 exec_prefix="$ac_optarg" ;;
168 -gas | --gas | --ga | --g)
169 # Obsolete; use --with-gas.
172 -help | --help | --hel | --he)
173 # Omit some internal or obsolete options to make the list less imposing.
174 # This message is too long to be a string in the A/UX 3.1 sh.
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
179 --cache-file=FILE cache test results in FILE
180 --help print this message
181 --no-create do not create output files
182 --quiet, --silent do not print \`checking...' messages
183 --version print the version of autoconf that created configure
184 Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214 Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
227 -host | --host | --hos | --ho)
229 -host=* | --host=* | --hos=* | --ho=*)
232 -includedir | --includedir | --includedi | --included | --include \
233 | --includ | --inclu | --incl | --inc)
234 ac_prev=includedir ;;
235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236 | --includ=* | --inclu=* | --incl=* | --inc=*)
237 includedir="$ac_optarg" ;;
239 -infodir | --infodir | --infodi | --infod | --info | --inf)
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242 infodir="$ac_optarg" ;;
244 -libdir | --libdir | --libdi | --libd)
246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
247 libdir="$ac_optarg" ;;
249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250 | --libexe | --libex | --libe)
251 ac_prev=libexecdir ;;
252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253 | --libexe=* | --libex=* | --libe=*)
254 libexecdir="$ac_optarg" ;;
256 -localstatedir | --localstatedir | --localstatedi | --localstated \
257 | --localstate | --localstat | --localsta | --localst \
258 | --locals | --local | --loca | --loc | --lo)
259 ac_prev=localstatedir ;;
260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263 localstatedir="$ac_optarg" ;;
265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268 mandir="$ac_optarg" ;;
271 # Obsolete; use --without-fp.
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284 | --oldin | --oldi | --old | --ol | --o)
285 ac_prev=oldincludedir ;;
286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289 oldincludedir="$ac_optarg" ;;
291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294 prefix="$ac_optarg" ;;
296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
297 | --program-pre | --program-pr | --program-p)
298 ac_prev=program_prefix ;;
299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301 program_prefix="$ac_optarg" ;;
303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
304 | --program-suf | --program-su | --program-s)
305 ac_prev=program_suffix ;;
306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308 program_suffix="$ac_optarg" ;;
310 -program-transform-name | --program-transform-name \
311 | --program-transform-nam | --program-transform-na \
312 | --program-transform-n | --program-transform- \
313 | --program-transform | --program-transfor \
314 | --program-transfo | --program-transf \
315 | --program-trans | --program-tran \
316 | --progr-tra | --program-tr | --program-t)
317 ac_prev=program_transform_name ;;
318 -program-transform-name=* | --program-transform-name=* \
319 | --program-transform-nam=* | --program-transform-na=* \
320 | --program-transform-n=* | --program-transform-=* \
321 | --program-transform=* | --program-transfor=* \
322 | --program-transfo=* | --program-transf=* \
323 | --program-trans=* | --program-tran=* \
324 | --progr-tra=* | --program-tr=* | --program-t=*)
325 program_transform_name="$ac_optarg" ;;
327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328 | -silent | --silent | --silen | --sile | --sil)
331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
335 sbindir="$ac_optarg" ;;
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339 | --sharedst | --shareds | --shared | --share | --shar \
341 ac_prev=sharedstatedir ;;
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
346 sharedstatedir="$ac_optarg" ;;
348 -site | --site | --sit)
350 -site=* | --site=* | --sit=*)
353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356 srcdir="$ac_optarg" ;;
358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359 | --syscon | --sysco | --sysc | --sys | --sy)
360 ac_prev=sysconfdir ;;
361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363 sysconfdir="$ac_optarg" ;;
365 -target | --target | --targe | --targ | --tar | --ta | --t)
367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368 target="$ac_optarg" ;;
370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
373 -version | --version | --versio | --versi | --vers)
374 echo "configure generated by autoconf version 2.13"
378 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}='$ac_optarg'" ;;
390 -without-* | --without-*)
391 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
400 # Obsolete; use --with-x.
403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404 | --x-incl | --x-inc | --x-in | --x-i)
405 ac_prev=x_includes ;;
406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408 x_includes="$ac_optarg" ;;
410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412 ac_prev=x_libraries ;;
413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415 x_libraries="$ac_optarg" ;;
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
424 if test "x$nonopt" != xNONE; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433 if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439 # File descriptor usage:
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466 | --no-cr | --no-c) ;;
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
476 # Only set these to C if already set. These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
481 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file=src/main/radiusd.c
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496 ac_srcdir_defaulted=yes
497 # Try the directory containing this script, then its parent.
499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
502 if test ! -r $srcdir/$ac_unique_file; then
506 ac_srcdir_defaulted=no
508 if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE; then
520 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
522 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
536 echo "creating cache $cache_file"
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='\c' ac_t=
563 # From configure.in Revision: 1.118
567 # Extract the first word of "gcc", so it can be a program name with args.
568 set dummy gcc; ac_word=$2
569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
570 echo "configure:571: checking for $ac_word" >&5
571 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
572 echo $ac_n "(cached) $ac_c" 1>&6
574 if test -n "$CC"; then
575 ac_cv_prog_CC="$CC" # Let the user override the test.
577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
579 for ac_dir in $ac_dummy; do
580 test -z "$ac_dir" && ac_dir=.
581 if test -f $ac_dir/$ac_word; then
590 if test -n "$CC"; then
591 echo "$ac_t""$CC" 1>&6
593 echo "$ac_t""no" 1>&6
596 if test -z "$CC"; then
597 # Extract the first word of "cc", so it can be a program name with args.
598 set dummy cc; ac_word=$2
599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
600 echo "configure:601: checking for $ac_word" >&5
601 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
602 echo $ac_n "(cached) $ac_c" 1>&6
604 if test -n "$CC"; then
605 ac_cv_prog_CC="$CC" # Let the user override the test.
607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
610 for ac_dir in $ac_dummy; do
611 test -z "$ac_dir" && ac_dir=.
612 if test -f $ac_dir/$ac_word; then
613 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
622 if test $ac_prog_rejected = yes; then
623 # We found a bogon in the path, so make sure we never use it.
624 set dummy $ac_cv_prog_CC
626 if test $# -gt 0; then
627 # We chose a different compiler from the bogus one.
628 # However, it has the same basename, so the bogon will be chosen
629 # first if we set CC to just the basename; use the full file name.
631 set dummy "$ac_dir/$ac_word" "$@"
639 if test -n "$CC"; then
640 echo "$ac_t""$CC" 1>&6
642 echo "$ac_t""no" 1>&6
645 if test -z "$CC"; then
648 # Extract the first word of "cl", so it can be a program name with args.
649 set dummy cl; ac_word=$2
650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
651 echo "configure:652: checking for $ac_word" >&5
652 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
655 if test -n "$CC"; then
656 ac_cv_prog_CC="$CC" # Let the user override the test.
658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
660 for ac_dir in $ac_dummy; do
661 test -z "$ac_dir" && ac_dir=.
662 if test -f $ac_dir/$ac_word; then
671 if test -n "$CC"; then
672 echo "$ac_t""$CC" 1>&6
674 echo "$ac_t""no" 1>&6
679 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
682 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
683 echo "configure:684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
687 ac_cpp='$CPP $CPPFLAGS'
688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
690 cross_compiling=$ac_cv_prog_cc_cross
692 cat > conftest.$ac_ext << EOF
694 #line 695 "configure"
695 #include "confdefs.h"
699 if { (eval echo configure:700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
700 ac_cv_prog_cc_works=yes
701 # If we can't run a trivial program, we are probably using a cross compiler.
702 if (./conftest; exit) 2>/dev/null; then
703 ac_cv_prog_cc_cross=no
705 ac_cv_prog_cc_cross=yes
708 echo "configure: failed program was:" >&5
709 cat conftest.$ac_ext >&5
710 ac_cv_prog_cc_works=no
714 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
715 ac_cpp='$CPP $CPPFLAGS'
716 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
717 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
718 cross_compiling=$ac_cv_prog_cc_cross
720 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
721 if test $ac_cv_prog_cc_works = no; then
722 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
724 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
725 echo "configure:726: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
726 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
727 cross_compiling=$ac_cv_prog_cc_cross
729 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
730 echo "configure:731: checking whether we are using GNU C" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 cat > conftest.c <<EOF
739 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
746 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
748 if test $ac_cv_prog_gcc = yes; then
754 ac_test_CFLAGS="${CFLAGS+set}"
755 ac_save_CFLAGS="$CFLAGS"
757 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
758 echo "configure:759: checking whether ${CC-cc} accepts -g" >&5
759 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
762 echo 'void f(){}' > conftest.c
763 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
772 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
773 if test "$ac_test_CFLAGS" = set; then
774 CFLAGS="$ac_save_CFLAGS"
775 elif test $ac_cv_prog_cc_g = yes; then
776 if test "$GCC" = yes; then
782 if test "$GCC" = yes; then
789 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
790 echo "configure:791: checking how to run the C preprocessor" >&5
791 # On Suns, sometimes $CPP names a directory.
792 if test -n "$CPP" && test -d "$CPP"; then
795 if test -z "$CPP"; then
796 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 # This must be in double quotes, not single quotes, because CPP may get
800 # substituted into the Makefile and "${CC-cc}" will confuse make.
802 # On the NeXT, cc -E runs the code through the compiler's parser,
803 # not just through cpp.
804 cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
811 { (eval echo configure:812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
813 if test -z "$ac_err"; then
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
820 CPP="${CC-cc} -E -traditional-cpp"
821 cat > conftest.$ac_ext <<EOF
822 #line 823 "configure"
823 #include "confdefs.h"
827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
828 { (eval echo configure:829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
830 if test -z "$ac_err"; then
834 echo "configure: failed program was:" >&5
835 cat conftest.$ac_ext >&5
837 CPP="${CC-cc} -nologo -E"
838 cat > conftest.$ac_ext <<EOF
839 #line 840 "configure"
840 #include "confdefs.h"
844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
845 { (eval echo configure:846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
847 if test -z "$ac_err"; then
851 echo "configure: failed program was:" >&5
852 cat conftest.$ac_ext >&5
861 ac_cv_prog_CPP="$CPP"
863 CPP="$ac_cv_prog_CPP"
865 ac_cv_prog_CPP="$CPP"
867 echo "$ac_t""$CPP" 1>&6
869 if test $ac_cv_prog_gcc = yes; then
870 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
871 echo "configure:872: checking whether ${CC-cc} needs -traditional" >&5
872 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
873 echo $ac_n "(cached) $ac_c" 1>&6
875 ac_pattern="Autoconf.*'x'"
876 cat > conftest.$ac_ext <<EOF
877 #line 878 "configure"
878 #include "confdefs.h"
882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
883 egrep "$ac_pattern" >/dev/null 2>&1; then
885 ac_cv_prog_gcc_traditional=yes
888 ac_cv_prog_gcc_traditional=no
893 if test $ac_cv_prog_gcc_traditional = no; then
894 cat > conftest.$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
901 egrep "$ac_pattern" >/dev/null 2>&1; then
903 ac_cv_prog_gcc_traditional=yes
910 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
911 if test $ac_cv_prog_gcc_traditional = yes; then
912 CC="$CC -traditional"
916 echo $ac_n "checking whether we are using SUNPro C""... $ac_c" 1>&6
917 echo "configure:918: checking whether we are using SUNPro C" >&5
918 if eval "test \"`echo '$''{'ac_cv_prog_suncc'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 cat > conftest.c <<EOF
926 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
933 echo "$ac_t""$ac_cv_prog_suncc" 1>&6
934 # Extract the first word of "ranlib", so it can be a program name with args.
935 set dummy ranlib; ac_word=$2
936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
937 echo "configure:938: checking for $ac_word" >&5
938 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
941 if test -n "$RANLIB"; then
942 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
946 for ac_dir in $ac_dummy; do
947 test -z "$ac_dir" && ac_dir=.
948 if test -f $ac_dir/$ac_word; then
949 ac_cv_prog_RANLIB="ranlib"
954 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
957 RANLIB="$ac_cv_prog_RANLIB"
958 if test -n "$RANLIB"; then
959 echo "$ac_t""$RANLIB" 1>&6
961 echo "$ac_t""no" 1>&6
967 # Extract the first word of "gmake", so it can be a program name with args.
968 set dummy gmake; ac_word=$2
969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
970 echo "configure:971: checking for $ac_word" >&5
971 if eval "test \"`echo '$''{'ac_cv_prog_GMAKE'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
974 if test -n "$GMAKE"; then
975 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
979 for ac_dir in $ac_dummy; do
980 test -z "$ac_dir" && ac_dir=.
981 if test -f $ac_dir/$ac_word; then
982 ac_cv_prog_GMAKE="yes"
987 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
990 GMAKE="$ac_cv_prog_GMAKE"
991 if test -n "$GMAKE"; then
992 echo "$ac_t""$GMAKE" 1>&6
994 echo "$ac_t""no" 1>&6
997 if test $GMAKE = no; then
998 # Extract the first word of "make", so it can be a program name with args.
999 set dummy make; ac_word=$2
1000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1001 echo "configure:1002: checking for $ac_word" >&5
1002 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1007 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1010 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1015 for ac_dir in $ac_dummy; do
1016 test -z "$ac_dir" && ac_dir=.
1017 if test -f $ac_dir/$ac_word; then
1018 ac_cv_path_MAKE="$ac_dir/$ac_word"
1023 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
1027 MAKE="$ac_cv_path_MAKE"
1028 if test -n "$MAKE"; then
1029 echo "$ac_t""$MAKE" 1>&6
1031 echo "$ac_t""no" 1>&6
1035 # Extract the first word of "gmake", so it can be a program name with args.
1036 set dummy gmake; ac_word=$2
1037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1038 echo "configure:1039: checking for $ac_word" >&5
1039 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1044 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1047 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1052 for ac_dir in $ac_dummy; do
1053 test -z "$ac_dir" && ac_dir=.
1054 if test -f $ac_dir/$ac_word; then
1055 ac_cv_path_MAKE="$ac_dir/$ac_word"
1060 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
1064 MAKE="$ac_cv_path_MAKE"
1065 if test -n "$MAKE"; then
1066 echo "$ac_t""$MAKE" 1>&6
1068 echo "$ac_t""no" 1>&6
1072 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
1073 if test -z "$makever"; then
1074 { echo "configure: error: GNU Make is not installed. Please download and install it
1075 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." 1>&2; exit 1; }
1078 echo $ac_n "checking for main in -lltdl""... $ac_c" 1>&6
1079 echo "configure:1080: checking for main in -lltdl" >&5
1080 ac_lib_var=`echo ltdl'_'main | sed 'y%./+-%__p_%'`
1081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1084 ac_save_LIBS="$LIBS"
1086 cat > conftest.$ac_ext <<EOF
1087 #line 1088 "configure"
1088 #include "confdefs.h"
1094 if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1096 eval "ac_cv_lib_$ac_lib_var=yes"
1098 echo "configure: failed program was:" >&5
1099 cat conftest.$ac_ext >&5
1101 eval "ac_cv_lib_$ac_lib_var=no"
1104 LIBS="$ac_save_LIBS"
1107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1108 echo "$ac_t""yes" 1>&6
1109 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
1111 echo "$ac_t""no" 1>&6
1112 if test x"$enable_ltdl_install" = xno; then
1113 echo "configure: warning: libltdl not installed, but installation disabled" 1>&2
1115 enable_ltdl_install=yes
1120 if test x"$enable_ltdl_install" = x"yes"; then
1121 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1122 LIBLTDL='${top_builddir}/libltdl'/libltdl.la
1123 INCLTDL='-I${top_builddir}/libltdl'
1125 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
1134 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1135 if test -f $ac_dir/install-sh; then
1137 ac_install_sh="$ac_aux_dir/install-sh -c"
1139 elif test -f $ac_dir/install.sh; then
1141 ac_install_sh="$ac_aux_dir/install.sh -c"
1145 if test -z "$ac_aux_dir"; then
1146 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1148 ac_config_guess=$ac_aux_dir/config.guess
1149 ac_config_sub=$ac_aux_dir/config.sub
1150 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1152 # Check whether --enable-shared or --disable-shared was given.
1153 if test "${enable_shared+set}" = set; then
1154 enableval="$enable_shared"
1155 p=${PACKAGE-default}
1156 case "$enableval" in
1157 yes) enable_shared=yes ;;
1158 no) enable_shared=no ;;
1161 # Look at the argument we got. We use all the common list separators.
1162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1163 for pkg in $enableval; do
1164 if test "X$pkg" = "X$p"; then
1175 # Check whether --enable-static or --disable-static was given.
1176 if test "${enable_static+set}" = set; then
1177 enableval="$enable_static"
1178 p=${PACKAGE-default}
1179 case "$enableval" in
1180 yes) enable_static=yes ;;
1181 no) enable_static=no ;;
1184 # Look at the argument we got. We use all the common list separators.
1185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1186 for pkg in $enableval; do
1187 if test "X$pkg" = "X$p"; then
1198 # Check whether --enable-fast-install or --disable-fast-install was given.
1199 if test "${enable_fast_install+set}" = set; then
1200 enableval="$enable_fast_install"
1201 p=${PACKAGE-default}
1202 case "$enableval" in
1203 yes) enable_fast_install=yes ;;
1204 no) enable_fast_install=no ;;
1206 enable_fast_install=no
1207 # Look at the argument we got. We use all the common list separators.
1208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1209 for pkg in $enableval; do
1210 if test "X$pkg" = "X$p"; then
1211 enable_fast_install=yes
1218 enable_fast_install=yes
1222 # Make sure we can run config.sub.
1223 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1224 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1227 echo $ac_n "checking host system type""... $ac_c" 1>&6
1228 echo "configure:1229: checking host system type" >&5
1231 case "$host_alias" in
1235 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1236 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1238 *) host_alias=$nonopt ;;
1242 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1243 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1244 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1245 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1246 echo "$ac_t""$host" 1>&6
1248 echo $ac_n "checking build system type""... $ac_c" 1>&6
1249 echo "configure:1250: checking build system type" >&5
1252 case "$build_alias" in
1255 NONE) build_alias=$host_alias ;;
1256 *) build_alias=$nonopt ;;
1260 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1261 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1262 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1263 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1264 echo "$ac_t""$build" 1>&6
1266 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1267 if test "${with_gnu_ld+set}" = set; then
1268 withval="$with_gnu_ld"
1269 test "$withval" = no || with_gnu_ld=yes
1275 if test "$ac_cv_prog_gcc" = yes; then
1276 # Check if gcc -print-prog-name=ld gives a path.
1277 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1278 echo "configure:1279: checking for ld used by GCC" >&5
1279 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1281 # Accept absolute paths.
1282 [\\/]* | [A-Za-z]:[\\/]*)
1283 re_direlt='/[^/][^/]*/\.\./'
1284 # Canonicalize the path of ld
1285 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1286 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1287 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1289 test -z "$LD" && LD="$ac_prog"
1292 # If it fails, then pretend we aren't using GCC.
1296 # If it is relative, then search for the first ld in PATH.
1300 elif test "$with_gnu_ld" = yes; then
1301 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1302 echo "configure:1303: checking for GNU ld" >&5
1304 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1305 echo "configure:1306: checking for non-GNU ld" >&5
1307 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 if test -z "$LD"; then
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1312 for ac_dir in $PATH; do
1313 test -z "$ac_dir" && ac_dir=.
1314 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1315 ac_cv_path_LD="$ac_dir/$ac_prog"
1316 # Check to see if the program is GNU ld. I'd rather use --version,
1317 # but apparently some GNU ld's only accept -v.
1318 # Break only if it was the GNU/non-GNU ld that we prefer.
1319 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1320 test "$with_gnu_ld" != no && break
1322 test "$with_gnu_ld" != yes && break
1328 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1333 if test -n "$LD"; then
1334 echo "$ac_t""$LD" 1>&6
1336 echo "$ac_t""no" 1>&6
1338 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1339 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1340 echo "configure:1341: checking if the linker ($LD) is GNU ld" >&5
1341 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1342 echo $ac_n "(cached) $ac_c" 1>&6
1344 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1345 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1346 ac_cv_prog_gnu_ld=yes
1348 ac_cv_prog_gnu_ld=no
1352 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1355 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1356 echo "configure:1357: checking for BSD-compatible nm" >&5
1357 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 if test -n "$NM"; then
1361 # Let the user override the test.
1364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1365 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1366 test -z "$ac_dir" && ac_dir=.
1367 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1368 # Check to see if the nm accepts a BSD-compat flag.
1369 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1370 # nm: unknown option "B" ignored
1371 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1372 ac_cv_path_NM="$ac_dir/nm -B"
1374 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1375 ac_cv_path_NM="$ac_dir/nm -p"
1378 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1379 continue # so that we can try to find one that supports BSD flags
1384 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1389 echo "$ac_t""$NM" 1>&6
1391 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1392 echo "configure:1393: checking whether ln -s works" >&5
1393 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1397 if ln -s X conftestdata 2>/dev/null
1400 ac_cv_prog_LN_S="ln -s"
1405 LN_S="$ac_cv_prog_LN_S"
1406 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1407 echo "$ac_t""yes" 1>&6
1409 echo "$ac_t""no" 1>&6
1414 NONE) lt_target="$host" ;;
1415 *) lt_target="$target" ;;
1418 # Check for any special flags to pass to ltconfig.
1419 libtool_flags="--cache-file=$cache_file"
1420 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1421 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1422 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1423 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1424 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1425 libtool_flags="$libtool_flags --enable-dlopen"
1427 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1428 if test "${enable_libtool_lock+set}" = set; then
1429 enableval="$enable_libtool_lock"
1433 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1434 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1436 # Some flags need to be propagated to the compiler or linker for good
1438 case "$lt_target" in
1440 # Find out which ABI we are using.
1441 echo '#line 1442 "configure"' > conftest.$ac_ext
1442 if { (eval echo configure:1443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1443 case "`/usr/bin/file conftest.o`" in
1459 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1460 SAVE_CFLAGS="$CFLAGS"
1461 CFLAGS="$CFLAGS -belf"
1462 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1463 echo "configure:1464: checking whether the C compiler needs -belf" >&5
1464 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1467 cat > conftest.$ac_ext <<EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1475 if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1477 lt_cv_cc_needs_belf=yes
1479 echo "configure: failed program was:" >&5
1480 cat conftest.$ac_ext >&5
1482 lt_cv_cc_needs_belf=no
1487 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1488 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1489 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1490 CFLAGS="$SAVE_CFLAGS"
1498 # Save cache, so that ltconfig can load it
1499 cat > confcache <<\EOF
1500 # This file is a shell script that caches the results of configure
1501 # tests run on this system so they can be shared between configure
1502 # scripts and configure runs. It is not useful on other systems.
1503 # If it contains results you don't want to keep, you may remove or edit it.
1505 # By default, configure uses ./config.cache as the cache file,
1506 # creating it if it does not exist already. You can give configure
1507 # the --cache-file=FILE option to use a different cache file; that is
1508 # what configure does when it calls configure scripts in
1509 # subdirectories, so they share the cache.
1510 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1511 # config.status only pays attention to the cache file if you give it the
1512 # --recheck option to rerun configure.
1515 # The following way of writing the cache mishandles newlines in values,
1516 # but we know of no workaround that is simple, portable, and efficient.
1517 # So, don't put newlines in cache variables' values.
1518 # Ultrix sh set writes to stderr and can't be redirected directly,
1519 # and sets the high bit in the cache file unless we assign to the vars.
1521 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1523 # `set' does not quote correctly, so add quotes (double-quote substitution
1524 # turns \\\\ into \\, and sed turns \\ into \).
1526 -e "s/'/'\\\\''/g" \
1527 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1530 # `set' quotes correctly as required by POSIX, so do not add quotes.
1531 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1534 if cmp -s $cache_file confcache; then
1537 if test -w $cache_file; then
1538 echo "updating cache $cache_file"
1539 cat confcache > $cache_file
1541 echo "not updating unwritable cache $cache_file"
1547 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1548 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1549 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1550 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1551 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1552 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1553 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1554 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1556 # Reload cache, that may have been modified by ltconfig
1557 if test -r "$cache_file"; then
1558 echo "loading cache $cache_file"
1561 echo "creating cache $cache_file"
1566 # This can be used to rebuild libtool when needed
1567 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1569 # Always use our own libtool.
1570 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1572 # Redirect the config.log output again, so that the ltconfig log is not
1573 # clobbered by the next message.
1574 exec 5>>./config.log
1578 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
1579 if test "${enable_strict_dependencies+set}" = set; then
1580 enableval="$enable_strict_dependencies"
1585 # Check whether --with-fooincludedir or --without-fooincludedir was given.
1586 if test "${with_fooincludedir+set}" = set; then
1587 withval="$with_fooincludedir"
1592 # Check whether --with-foolibdir or --without-foolibdir was given.
1593 if test "${with_foolibdir+set}" = set; then
1594 withval="$with_foolibdir"
1599 logdir='${localstatedir}/log/radius'
1600 echo $ac_n "checking logdir""... $ac_c" 1>&6
1601 echo "configure:1602: checking logdir" >&5
1602 # Check whether --with-logdir or --without-logdir was given.
1603 if test "${with_logdir+set}" = set; then
1604 withval="$with_logdir"
1607 { echo "configure: error: Need logdir" 1>&2; exit 1; }
1619 echo "$ac_t""$logdir" 1>&6
1621 radacctdir='${logdir}/radacct'
1622 echo $ac_n "checking radacctdir""... $ac_c" 1>&6
1623 echo "configure:1624: checking radacctdir" >&5
1624 # Check whether --with-radacctdir or --without-radacctdir was given.
1625 if test "${with_radacctdir+set}" = set; then
1626 withval="$with_radacctdir"
1629 { echo "configure: error: Need radacctdir" 1>&2; exit 1; }
1634 radacctdir="$withval"
1641 echo "$ac_t""$radacctdir" 1>&6
1643 raddbdir='${sysconfdir}/raddb'
1644 echo $ac_n "checking raddbdir""... $ac_c" 1>&6
1645 echo "configure:1646: checking raddbdir" >&5
1646 # Check whether --with-raddbdir or --without-raddbdir was given.
1647 if test "${with_raddbdir+set}" = set; then
1648 withval="$with_raddbdir"
1651 { echo "configure: error: Need raddbdir" 1>&2; exit 1; }
1663 echo "$ac_t""$raddbdir" 1>&6
1665 WITH_DICT_NOCASE=yes
1666 # Check whether --with-dict-nocase or --without-dict-nocase was given.
1667 if test "${with_dict_nocase+set}" = set; then
1668 withval="$with_dict_nocase"
1678 if test "X$WITH_DICT_NOCASE" = "Xyes"; then
1679 cat >> confdefs.h <<\EOF
1680 #define WITH_DICT_NOCASE 1
1686 # Check whether --with-ascend-binary or --without-ascend-binary was given.
1687 if test "${with_ascend_binary+set}" = set; then
1688 withval="$with_ascend_binary"
1698 if test "X$ASCEND_BINARY" = "Xyes"; then
1699 cat >> confdefs.h <<\EOF
1700 #define ASCEND_BINARY 1
1706 # Check whether --with-threads or --without-threads was given.
1707 if test "${with_threads+set}" = set; then
1708 withval="$with_threads"
1720 # Check whether --with-thread-pool or --without-thread-pool was given.
1721 if test "${with_thread_pool+set}" = set; then
1722 withval="$with_thread_pool"
1725 WITH_THREAD_POOL=yes
1735 # Check whether --with-snmp or --without-snmp was given.
1736 if test "${with_snmp+set}" = set; then
1737 withval="$with_snmp"
1748 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
1749 if test "${enable_ltdl_install+set}" = set; then
1750 enableval="$enable_ltdl_install"
1754 if test x"${enable_ltdl_install+set}" != xset; then
1755 enable_ltdl_install=yes
1756 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1762 # Check whether --with-static_modules or --without-static_modules was given.
1763 if test "${with_static_modules+set}" = set; then
1764 withval="$with_static_modules"
1766 for i in $withval; do
1767 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
1773 # Check whether --enable-developer or --disable-developer was given.
1774 if test "${enable_developer+set}" = set; then
1775 enableval="$enable_developer"
1787 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
1793 # Extract the first word of "perl", so it can be a program name with args.
1794 set dummy perl; ac_word=$2
1795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1796 echo "configure:1797: checking for $ac_word" >&5
1797 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1802 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1805 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1810 for ac_dir in $ac_dummy; do
1811 test -z "$ac_dir" && ac_dir=.
1812 if test -f $ac_dir/$ac_word; then
1813 ac_cv_path_PERL="$ac_dir/$ac_word"
1818 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
1822 PERL="$ac_cv_path_PERL"
1823 if test -n "$PERL"; then
1824 echo "$ac_t""$PERL" 1>&6
1826 echo "$ac_t""no" 1>&6
1829 if test ! -x $ac_cv_path_PERL; then
1830 { echo "configure: error: perl not found - fatal" 1>&2; exit 1; }
1832 # Extract the first word of "snmpget", so it can be a program name with args.
1833 set dummy snmpget; ac_word=$2
1834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1835 echo "configure:1836: checking for $ac_word" >&5
1836 if eval "test \"`echo '$''{'ac_cv_path_SNMPGET'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1841 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
1844 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a dos path.
1847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1849 for ac_dir in $ac_dummy; do
1850 test -z "$ac_dir" && ac_dir=.
1851 if test -f $ac_dir/$ac_word; then
1852 ac_cv_path_SNMPGET="$ac_dir/$ac_word"
1857 test -z "$ac_cv_path_SNMPGET" && ac_cv_path_SNMPGET="/usr/local/bin/snmpget"
1861 SNMPGET="$ac_cv_path_SNMPGET"
1862 if test -n "$SNMPGET"; then
1863 echo "$ac_t""$SNMPGET" 1>&6
1865 echo "$ac_t""no" 1>&6
1868 # Extract the first word of "snmpwalk", so it can be a program name with args.
1869 set dummy snmpwalk; ac_word=$2
1870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1871 echo "configure:1872: checking for $ac_word" >&5
1872 if eval "test \"`echo '$''{'ac_cv_path_SNMPWALK'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1877 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
1880 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a dos path.
1883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1885 for ac_dir in $ac_dummy; do
1886 test -z "$ac_dir" && ac_dir=.
1887 if test -f $ac_dir/$ac_word; then
1888 ac_cv_path_SNMPWALK="$ac_dir/$ac_word"
1893 test -z "$ac_cv_path_SNMPWALK" && ac_cv_path_SNMPWALK="/usr/local/bin/snmpwalk"
1897 SNMPWALK="$ac_cv_path_SNMPWALK"
1898 if test -n "$SNMPWALK"; then
1899 echo "$ac_t""$SNMPWALK" 1>&6
1901 echo "$ac_t""no" 1>&6
1904 # Extract the first word of "rusers", so it can be a program name with args.
1905 set dummy rusers; ac_word=$2
1906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1907 echo "configure:1908: checking for $ac_word" >&5
1908 if eval "test \"`echo '$''{'ac_cv_path_RUSERS'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1913 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
1916 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a dos path.
1919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1921 for ac_dir in $ac_dummy; do
1922 test -z "$ac_dir" && ac_dir=.
1923 if test -f $ac_dir/$ac_word; then
1924 ac_cv_path_RUSERS="$ac_dir/$ac_word"
1929 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
1933 RUSERS="$ac_cv_path_RUSERS"
1934 if test -n "$RUSERS"; then
1935 echo "$ac_t""$RUSERS" 1>&6
1937 echo "$ac_t""no" 1>&6
1941 missing_dir=`cd $ac_aux_dir && pwd`
1942 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1943 echo "configure:1944: checking for working aclocal" >&5
1944 # Run test in a subshell; some versions of sh will print an error if
1945 # an executable is not found, even if stderr is redirected.
1946 # Redirect stdin to placate older versions of autoconf. Sigh.
1947 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1949 echo "$ac_t""found" 1>&6
1951 ACLOCAL="$missing_dir/missing aclocal"
1952 echo "$ac_t""missing" 1>&6
1955 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1956 echo "configure:1957: checking for working autoconf" >&5
1957 # Run test in a subshell; some versions of sh will print an error if
1958 # an executable is not found, even if stderr is redirected.
1959 # Redirect stdin to placate older versions of autoconf. Sigh.
1960 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1962 echo "$ac_t""found" 1>&6
1964 AUTOCONF="$missing_dir/missing autoconf"
1965 echo "$ac_t""missing" 1>&6
1968 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1969 echo "configure:1970: checking for working autoheader" >&5
1970 # Run test in a subshell; some versions of sh will print an error if
1971 # an executable is not found, even if stderr is redirected.
1972 # Redirect stdin to placate older versions of autoconf. Sigh.
1973 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1974 AUTOHEADER=autoheader
1975 echo "$ac_t""found" 1>&6
1977 AUTOHEADER="$missing_dir/missing autoheader"
1978 echo "$ac_t""missing" 1>&6
1982 # Extract the first word of "locate", so it can be a program name with args.
1983 set dummy locate; ac_word=$2
1984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1985 echo "configure:1986: checking for $ac_word" >&5
1986 if eval "test \"`echo '$''{'ac_cv_path_LOCATE'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1991 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
1994 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a dos path.
1997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1999 for ac_dir in $ac_dummy; do
2000 test -z "$ac_dir" && ac_dir=.
2001 if test -f $ac_dir/$ac_word; then
2002 ac_cv_path_LOCATE="$ac_dir/$ac_word"
2010 LOCATE="$ac_cv_path_LOCATE"
2011 if test -n "$LOCATE"; then
2012 echo "$ac_t""$LOCATE" 1>&6
2014 echo "$ac_t""no" 1>&6
2017 # Extract the first word of "dirname", so it can be a program name with args.
2018 set dummy dirname; ac_word=$2
2019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2020 echo "configure:2021: checking for $ac_word" >&5
2021 if eval "test \"`echo '$''{'ac_cv_path_DIRNAME'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2026 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
2029 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a dos path.
2032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2034 for ac_dir in $ac_dummy; do
2035 test -z "$ac_dir" && ac_dir=.
2036 if test -f $ac_dir/$ac_word; then
2037 ac_cv_path_DIRNAME="$ac_dir/$ac_word"
2045 DIRNAME="$ac_cv_path_DIRNAME"
2046 if test -n "$DIRNAME"; then
2047 echo "$ac_t""$DIRNAME" 1>&6
2049 echo "$ac_t""no" 1>&6
2052 # Extract the first word of "grep", so it can be a program name with args.
2053 set dummy grep; ac_word=$2
2054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2055 echo "configure:2056: checking for $ac_word" >&5
2056 if eval "test \"`echo '$''{'ac_cv_path_GREP'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2061 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
2064 ac_cv_path_GREP="$GREP" # Let the user override the test with a dos path.
2067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2069 for ac_dir in $ac_dummy; do
2070 test -z "$ac_dir" && ac_dir=.
2071 if test -f $ac_dir/$ac_word; then
2072 ac_cv_path_GREP="$ac_dir/$ac_word"
2080 GREP="$ac_cv_path_GREP"
2081 if test -n "$GREP"; then
2082 echo "$ac_t""$GREP" 1>&6
2084 echo "$ac_t""no" 1>&6
2088 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2089 echo "configure:2090: checking for AIX" >&5
2090 cat > conftest.$ac_ext <<EOF
2091 #line 2092 "configure"
2092 #include "confdefs.h"
2098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2099 egrep "yes" >/dev/null 2>&1; then
2101 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2102 #define _ALL_SOURCE 1
2107 echo "$ac_t""no" 1>&6
2115 if test "$WITH_THREADS" = "yes"; then
2116 if test $ac_cv_prog_suncc = "yes"; then
2117 CFLAGS="$CFLAGS -mt"
2120 for ac_hdr in pthread.h
2122 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2123 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2124 echo "configure:2125: checking for $ac_hdr" >&5
2125 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2128 cat > conftest.$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2134 { (eval echo configure:2135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2136 if test -z "$ac_err"; then
2138 eval "ac_cv_header_$ac_safe=yes"
2141 echo "configure: failed program was:" >&5
2142 cat conftest.$ac_ext >&5
2144 eval "ac_cv_header_$ac_safe=no"
2148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2149 echo "$ac_t""yes" 1>&6
2150 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2151 cat >> confdefs.h <<EOF
2152 #define $ac_tr_hdr 1
2156 echo "$ac_t""no" 1>&6
2161 if test "X$ac_cv_header_pthread_h" = "X"; then
2162 { echo "configure: error: "You are trying to use threads without a POSIX <pthread.h>"" 1>&2; exit 1; }
2165 echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
2166 echo "configure:2167: checking for pthread_join in -lpthread" >&5
2167 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
2168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 ac_save_LIBS="$LIBS"
2172 LIBS="-lpthread $LIBS"
2173 cat > conftest.$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2176 /* Override any gcc2 internal prototype to avoid an error. */
2177 /* We use char because int might match the return type of a gcc2
2178 builtin and then its argument prototype would still apply. */
2179 char pthread_join();
2185 if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2187 eval "ac_cv_lib_$ac_lib_var=yes"
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2192 eval "ac_cv_lib_$ac_lib_var=no"
2195 LIBS="$ac_save_LIBS"
2198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2199 echo "$ac_t""yes" 1>&6
2200 PTHREADLIB="-lpthread"
2203 echo "$ac_t""no" 1>&6
2209 echo $ac_n "checking for library containing sem_init""... $ac_c" 1>&6
2210 echo "configure:2211: checking for library containing sem_init" >&5
2211 if eval "test \"`echo '$''{'ac_cv_search_sem_init'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 ac_func_search_save_LIBS="$LIBS"
2215 ac_cv_search_sem_init="no"
2216 cat > conftest.$ac_ext <<EOF
2217 #line 2218 "configure"
2218 #include "confdefs.h"
2219 /* Override any gcc2 internal prototype to avoid an error. */
2220 /* We use char because int might match the return type of a gcc2
2221 builtin and then its argument prototype would still apply. */
2228 if { (eval echo configure:2229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2230 ac_cv_search_sem_init="none required"
2232 echo "configure: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2236 test "$ac_cv_search_sem_init" = "no" && for i in pthread rt; do
2237 LIBS="-l$i "-lpthread"
2238 $ac_func_search_save_LIBS"
2239 cat > conftest.$ac_ext <<EOF
2240 #line 2241 "configure"
2241 #include "confdefs.h"
2242 /* Override any gcc2 internal prototype to avoid an error. */
2243 /* We use char because int might match the return type of a gcc2
2244 builtin and then its argument prototype would still apply. */
2251 if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2253 ac_cv_search_sem_init="-l$i"
2256 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2261 LIBS="$ac_func_search_save_LIBS"
2264 echo "$ac_t""$ac_cv_search_sem_init" 1>&6
2265 if test "$ac_cv_search_sem_init" != "no"; then
2266 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
2268 PTHREADLIB="$PTHREADLIB $ac_cv_search_sem_init"
2274 if test "X$PTHREADLIB" = "X"; then
2275 SAVED_CFLAGS=$CFLAGS
2276 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
2277 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2278 echo "configure:2279: checking for pthread_create in -lc_r" >&5
2279 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2283 ac_save_LIBS="$LIBS"
2285 cat > conftest.$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2288 /* Override any gcc2 internal prototype to avoid an error. */
2289 /* We use char because int might match the return type of a gcc2
2290 builtin and then its argument prototype would still apply. */
2291 char pthread_create();
2297 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2299 eval "ac_cv_lib_$ac_lib_var=yes"
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2304 eval "ac_cv_lib_$ac_lib_var=no"
2307 LIBS="$ac_save_LIBS"
2310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2311 echo "$ac_t""yes" 1>&6
2315 echo "$ac_t""no" 1>&6
2320 if test "x$PTHREADLIB" = "x"; then
2321 CFLAGS=$SAVED_CFLAGS
2322 ac_cv_header_pthread_h="no"
2324 LIBS="$LIBS $PTHREADLIB"
2325 CFLAGS="$CFLAGS -D_REENTRANT"
2329 echo $ac_n "checking for getsockname in -lsocket""... $ac_c" 1>&6
2330 echo "configure:2331: checking for getsockname in -lsocket" >&5
2331 ac_lib_var=`echo socket'_'getsockname | sed 'y%./+-%__p_%'`
2332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 ac_save_LIBS="$LIBS"
2336 LIBS="-lsocket $LIBS"
2337 cat > conftest.$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2340 /* Override any gcc2 internal prototype to avoid an error. */
2341 /* We use char because int might match the return type of a gcc2
2342 builtin and then its argument prototype would still apply. */
2349 if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2351 eval "ac_cv_lib_$ac_lib_var=yes"
2353 echo "configure: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2356 eval "ac_cv_lib_$ac_lib_var=no"
2359 LIBS="$ac_save_LIBS"
2362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2363 echo "$ac_t""yes" 1>&6
2364 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2365 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2366 cat >> confdefs.h <<EOF
2367 #define $ac_tr_lib 1
2370 LIBS="-lsocket $LIBS"
2373 echo "$ac_t""no" 1>&6
2377 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
2378 echo "configure:2379: checking for inet_aton in -lresolv" >&5
2379 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
2380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 ac_save_LIBS="$LIBS"
2384 LIBS="-lresolv $LIBS"
2385 cat > conftest.$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2388 /* Override any gcc2 internal prototype to avoid an error. */
2389 /* We use char because int might match the return type of a gcc2
2390 builtin and then its argument prototype would still apply. */
2397 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2399 eval "ac_cv_lib_$ac_lib_var=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2404 eval "ac_cv_lib_$ac_lib_var=no"
2407 LIBS="$ac_save_LIBS"
2410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2412 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2413 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2414 cat >> confdefs.h <<EOF
2415 #define $ac_tr_lib 1
2418 LIBS="-lresolv $LIBS"
2421 echo "$ac_t""no" 1>&6
2425 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
2426 echo "configure:2427: checking for inet_ntoa in -lnsl" >&5
2427 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
2428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 ac_save_LIBS="$LIBS"
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2436 /* Override any gcc2 internal prototype to avoid an error. */
2437 /* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2445 if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2447 eval "ac_cv_lib_$ac_lib_var=yes"
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2452 eval "ac_cv_lib_$ac_lib_var=no"
2455 LIBS="$ac_save_LIBS"
2458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2459 echo "$ac_t""yes" 1>&6
2460 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2461 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2462 cat >> confdefs.h <<EOF
2463 #define $ac_tr_lib 1
2469 echo "$ac_t""no" 1>&6
2475 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2478 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2479 echo "configure:2480: checking for $ac_hdr that defines DIR" >&5
2480 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486 #include <sys/types.h>
2492 if { (eval echo configure:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2494 eval "ac_cv_header_dirent_$ac_safe=yes"
2496 echo "configure: failed program was:" >&5
2497 cat conftest.$ac_ext >&5
2499 eval "ac_cv_header_dirent_$ac_safe=no"
2503 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2504 echo "$ac_t""yes" 1>&6
2505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2506 cat >> confdefs.h <<EOF
2507 #define $ac_tr_hdr 1
2509 ac_header_dirent=$ac_hdr; break
2511 echo "$ac_t""no" 1>&6
2514 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2515 if test $ac_header_dirent = dirent.h; then
2516 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2517 echo "configure:2518: checking for opendir in -ldir" >&5
2518 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 ac_save_LIBS="$LIBS"
2524 cat > conftest.$ac_ext <<EOF
2525 #line 2526 "configure"
2526 #include "confdefs.h"
2527 /* Override any gcc2 internal prototype to avoid an error. */
2528 /* We use char because int might match the return type of a gcc2
2529 builtin and then its argument prototype would still apply. */
2536 if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2538 eval "ac_cv_lib_$ac_lib_var=yes"
2540 echo "configure: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2543 eval "ac_cv_lib_$ac_lib_var=no"
2546 LIBS="$ac_save_LIBS"
2549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2550 echo "$ac_t""yes" 1>&6
2553 echo "$ac_t""no" 1>&6
2557 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2558 echo "configure:2559: checking for opendir in -lx" >&5
2559 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2563 ac_save_LIBS="$LIBS"
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 /* Override any gcc2 internal prototype to avoid an error. */
2569 /* We use char because int might match the return type of a gcc2
2570 builtin and then its argument prototype would still apply. */
2577 if { (eval echo configure:2578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2579 eval "ac_cv_lib_$ac_lib_var=yes"
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2584 eval "ac_cv_lib_$ac_lib_var=no"
2587 LIBS="$ac_save_LIBS"
2590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2591 echo "$ac_t""yes" 1>&6
2594 echo "$ac_t""no" 1>&6
2599 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2600 echo "configure:2601: checking for ANSI C header files" >&5
2601 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 cat > conftest.$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2613 { (eval echo configure:2614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2615 if test -z "$ac_err"; then
2617 ac_cv_header_stdc=yes
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2623 ac_cv_header_stdc=no
2627 if test $ac_cv_header_stdc = yes; then
2628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2635 egrep "memchr" >/dev/null 2>&1; then
2639 ac_cv_header_stdc=no
2645 if test $ac_cv_header_stdc = yes; then
2646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2647 cat > conftest.$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2653 egrep "free" >/dev/null 2>&1; then
2657 ac_cv_header_stdc=no
2663 if test $ac_cv_header_stdc = yes; then
2664 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2665 if test "$cross_compiling" = yes; then
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2672 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2673 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2675 int main () { int i; for (i = 0; i < 256; i++)
2676 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2680 if { (eval echo configure:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2684 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2687 ac_cv_header_stdc=no
2695 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2696 if test $ac_cv_header_stdc = yes; then
2697 cat >> confdefs.h <<\EOF
2698 #define STDC_HEADERS 1
2703 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2704 echo "configure:2705: checking whether time.h and sys/time.h may both be included" >&5
2705 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 cat > conftest.$ac_ext <<EOF
2709 #line 2710 "configure"
2710 #include "confdefs.h"
2711 #include <sys/types.h>
2712 #include <sys/time.h>
2718 if { (eval echo configure:2719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2720 ac_cv_header_time=yes
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2725 ac_cv_header_time=no
2730 echo "$ac_t""$ac_cv_header_time" 1>&6
2731 if test $ac_cv_header_time = yes; then
2732 cat >> confdefs.h <<\EOF
2733 #define TIME_WITH_SYS_TIME 1
2738 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2739 echo "configure:2740: checking for sys/wait.h that is POSIX.1 compatible" >&5
2740 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 #include <sys/types.h>
2747 #include <sys/wait.h>
2749 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2752 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2757 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2760 if { (eval echo configure:2761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2762 ac_cv_header_sys_wait_h=yes
2764 echo "configure: failed program was:" >&5
2765 cat conftest.$ac_ext >&5
2767 ac_cv_header_sys_wait_h=no
2772 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2773 if test $ac_cv_header_sys_wait_h = yes; then
2774 cat >> confdefs.h <<\EOF
2775 #define HAVE_SYS_WAIT_H 1
2805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2807 echo "configure:2808: checking for $ac_hdr" >&5
2808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2811 cat > conftest.$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2817 { (eval echo configure:2818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2819 if test -z "$ac_err"; then
2821 eval "ac_cv_header_$ac_safe=yes"
2824 echo "configure: failed program was:" >&5
2825 cat conftest.$ac_ext >&5
2827 eval "ac_cv_header_$ac_safe=no"
2831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2832 echo "$ac_t""yes" 1>&6
2833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2834 cat >> confdefs.h <<EOF
2835 #define $ac_tr_hdr 1
2839 echo "$ac_t""no" 1>&6
2845 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
2846 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
2847 echo "configure:2848: checking for regex.h" >&5
2848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 cat > conftest.$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2857 { (eval echo configure:2858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2859 if test -z "$ac_err"; then
2861 eval "ac_cv_header_$ac_safe=yes"
2864 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2867 eval "ac_cv_header_$ac_safe=no"
2871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2872 echo "$ac_t""yes" 1>&6
2873 cat >> confdefs.h <<\EOF
2874 #define HAVE_REGEX_H 1
2878 echo "$ac_t""no" 1>&6
2881 if test "x$ac_cv_header_regex_h" = "xyes"; then
2884 cat > conftest.$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2894 egrep "yes" >/dev/null 2>&1; then
2896 cat >> confdefs.h <<\EOF
2897 #define HAVE_REG_EXTENDED 1
2909 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2910 echo "configure:2911: checking for off_t" >&5
2911 if eval "test \"`echo '$''{'ac_cv_type_off_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])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2926 ac_cv_type_off_t=yes
2934 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2935 if test $ac_cv_type_off_t = no; then
2936 cat >> confdefs.h <<\EOF
2942 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2943 echo "configure:2944: checking for pid_t" >&5
2944 if eval "test \"`echo '$''{'ac_cv_type_pid_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>
2956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2957 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2959 ac_cv_type_pid_t=yes
2967 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2968 if test $ac_cv_type_pid_t = no; then
2969 cat >> confdefs.h <<\EOF
2975 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2976 echo "configure:2977: checking for size_t" >&5
2977 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 #include <sys/types.h>
2989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2990 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2992 ac_cv_type_size_t=yes
2995 ac_cv_type_size_t=no
3000 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3001 if test $ac_cv_type_size_t = no; then
3002 cat >> confdefs.h <<\EOF
3003 #define size_t unsigned
3008 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3009 echo "configure:3010: checking for uid_t in sys/types.h" >&5
3010 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016 #include <sys/types.h>
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019 egrep "uid_t" >/dev/null 2>&1; then
3021 ac_cv_type_uid_t=yes
3030 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3031 if test $ac_cv_type_uid_t = no; then
3032 cat >> confdefs.h <<\EOF
3036 cat >> confdefs.h <<\EOF
3044 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3045 echo "configure:3046: checking for socklen_t" >&5
3046 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3049 ac_cv_type_socklen_t=no
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 #ifdef HAVE_SYS_TYPES_H
3054 #include <sys/types.h>
3056 #ifdef HAVE_SYS_SOCKET_H
3057 #include <sys/socket.h>
3064 if { (eval echo configure:3065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3066 ac_cv_type_socklen_t=yes
3068 echo "configure: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3076 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
3078 if test "$ac_cv_type_socklen_t" != "yes"; then
3079 cat >> confdefs.h <<\EOF
3080 #define socklen_t int
3087 echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
3088 echo "configure:3089: checking for uint8_t" >&5
3089 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3092 ac_cv_type_uint8_t=no
3093 cat > conftest.$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3096 #ifdef HAVE_INTTYPES_H
3097 #include <inttypes.h>
3099 #ifdef HAVE_STDINT_H
3107 if { (eval echo configure:3108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3109 ac_cv_type_uint8_t=yes
3111 echo "configure: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3119 echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
3121 if test "$ac_cv_type_uint8_t" != "yes"; then
3122 cat >> confdefs.h <<\EOF
3123 #define uint8_t unsigned char
3130 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3131 echo "configure:3132: checking for uint32_t" >&5
3132 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3135 ac_cv_type_uint32_t=no
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 #ifdef HAVE_INTTYPES_H
3140 #include <inttypes.h>
3142 #ifdef HAVE_STDINT_H
3150 if { (eval echo configure:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3152 ac_cv_type_uint32_t=yes
3154 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3162 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
3164 if test "$ac_cv_type_uint32_t" != "yes"; then
3165 cat >> confdefs.h <<\EOF
3166 #define uint32_t unsigned int
3192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3193 echo "configure:3194: checking for $ac_func" >&5
3194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3200 /* System header to define __stub macros and hopefully few prototypes,
3201 which can conflict with char $ac_func(); below. */
3203 /* Override any gcc2 internal prototype to avoid an error. */
3204 /* We use char because int might match the return type of a gcc2
3205 builtin and then its argument prototype would still apply. */
3210 /* The GNU C library defines this for functions which it implements
3211 to always fail with ENOSYS. Some functions are actually named
3212 something starting with __ and the normal name is an alias. */
3213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3221 if { (eval echo configure:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3223 eval "ac_cv_func_$ac_func=yes"
3225 echo "configure: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3228 eval "ac_cv_func_$ac_func=no"
3233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3234 echo "$ac_t""yes" 1>&6
3235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3236 cat >> confdefs.h <<EOF
3237 #define $ac_tr_func 1
3241 echo "$ac_t""no" 1>&6
3256 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3257 echo "configure:3258: checking whether $ac_func must be declared" >&5
3258 if eval "test \"`echo '$''{'radius_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3267 #ifdef HAVE_UNISTD_H
3276 #ifdef HAVE_RESOURCE_H
3277 #include <resource.h>
3279 #ifdef HAVE_GETOPT_H
3282 #ifdef HAVE_MALLOC_H
3291 #ifdef HAVE_SYS_SELECT_H
3292 #include <sys/select.h>
3300 #ifdef HAVE_SYSLOG_H
3303 #ifdef HAVE_INTTYPES_H
3304 #include <inttypes.h>
3306 #ifdef HAVE_STDINT_H
3309 #ifdef HAVE_ARPA_INET_H
3310 #include <arpa/inet.h>
3314 char *(*pfn) = (char *(*)) $ac_func
3317 if { (eval echo configure:3318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3319 eval "radius_cv_decl_needed_$ac_func=no"
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3324 eval "radius_cv_decl_needed_$ac_func=yes"
3329 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
3330 echo "$ac_t""yes" 1>&6
3331 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3332 cat >> confdefs.h <<EOF
3333 #define $radius_tr_decl 1
3337 echo "$ac_t""no" 1>&6
3343 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3344 echo "configure:3345: checking return type of signal handlers" >&5
3345 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 #include <sys/types.h>
3357 extern "C" void (*signal (int, void (*)(int)))(int);
3359 void (*signal ()) ();
3366 if { (eval echo configure:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3368 ac_cv_type_signal=void
3370 echo "configure: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3373 ac_cv_type_signal=int
3378 echo "$ac_t""$ac_cv_type_signal" 1>&6
3379 cat >> confdefs.h <<EOF
3380 #define RETSIGTYPE $ac_cv_type_signal
3386 echo $ac_n "checking for working const""... $ac_c" 1>&6
3387 echo "configure:3388: checking for working const" >&5
3388 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3391 cat > conftest.$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3397 /* Ultrix mips cc rejects this. */
3398 typedef int charset[2]; const charset x;
3399 /* SunOS 4.1.1 cc rejects this. */
3400 char const *const *ccp;
3402 /* NEC SVR4.0.2 mips cc rejects this. */
3403 struct point {int x, y;};
3404 static struct point const zero = {0,0};
3405 /* AIX XL C 1.02.0.0 rejects this.
3406 It does not let you subtract one const X* pointer from another in an arm
3407 of an if-expression whose if-part is not a constant expression */
3408 const char *g = "string";
3409 ccp = &g + (g ? g-g : 0);
3410 /* HPUX 7.0 cc rejects these. */
3413 ccp = (char const *const *) p;
3414 { /* SCO 3.2v4 cc rejects this. */
3416 char const *s = 0 ? (char *) 0 : (char const *) 0;
3420 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3422 const int *foo = &x[0];
3425 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3426 typedef const int *iptr;
3430 { /* AIX XL C 1.02.0.0 rejects this saying
3431 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3432 struct s { int j; const int *ap[3]; };
3433 struct s *b; b->j = 5;
3435 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3441 if { (eval echo configure:3442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3445 echo "configure: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3453 echo "$ac_t""$ac_cv_c_const" 1>&6
3454 if test $ac_cv_c_const = no; then
3455 cat >> confdefs.h <<\EOF
3462 echo $ac_n "checking type of OS""... $ac_c" 1>&6
3463 echo "configure:3464: checking type of OS" >&5
3465 echo "$ac_t""$OS" 1>&6
3466 if test "$OS" = "OS/2"; then
3473 if test "x$GCC" = "xyes"; then
3474 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
3477 echo $ac_n "checking for developer gcc flags""... $ac_c" 1>&6
3478 echo "configure:3479: checking for developer gcc flags" >&5
3479 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
3480 devflags="-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
3481 CFLAGS="$CFLAGS $devflags"
3483 echo "$ac_t""yes. Using $devflags" 1>&6
3486 CFLAGS="$CFLAGS -DNDEBUG"
3488 echo "$ac_t""no." 1>&6
3492 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3493 echo "configure:3494: checking for crypt in -lcrypt" >&5
3494 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3498 ac_save_LIBS="$LIBS"
3499 LIBS="-lcrypt $LIBS"
3500 cat > conftest.$ac_ext <<EOF
3501 #line 3502 "configure"
3502 #include "confdefs.h"
3503 /* Override any gcc2 internal prototype to avoid an error. */
3504 /* We use char because int might match the return type of a gcc2
3505 builtin and then its argument prototype would still apply. */
3512 if { (eval echo configure:3513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3514 eval "ac_cv_lib_$ac_lib_var=yes"
3516 echo "configure: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3519 eval "ac_cv_lib_$ac_lib_var=no"
3522 LIBS="$ac_save_LIBS"
3525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3526 echo "$ac_t""yes" 1>&6
3530 echo "$ac_t""no" 1>&6
3534 if test "$CRYPTLIB" != ""; then
3535 cat >> confdefs.h <<\EOF
3536 #define HAVE_CRYPT 1
3540 echo $ac_n "checking for crypt""... $ac_c" 1>&6
3541 echo "configure:3542: checking for crypt" >&5
3542 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3548 /* System header to define __stub macros and hopefully few prototypes,
3549 which can conflict with char crypt(); below. */
3551 /* Override any gcc2 internal prototype to avoid an error. */
3552 /* We use char because int might match the return type of a gcc2
3553 builtin and then its argument prototype would still apply. */
3558 /* The GNU C library defines this for functions which it implements
3559 to always fail with ENOSYS. Some functions are actually named
3560 something starting with __ and the normal name is an alias. */
3561 #if defined (__stub_crypt) || defined (__stub___crypt)
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3571 eval "ac_cv_func_crypt=yes"
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3576 eval "ac_cv_func_crypt=no"
3581 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
3582 echo "$ac_t""yes" 1>&6
3583 cat >> confdefs.h <<\EOF
3584 #define HAVE_CRYPT 1
3588 echo "$ac_t""no" 1>&6
3593 if test "x$WITH_SNMP" = "xyes"; then
3598 echo $ac_n "checking for asn1.h""... $ac_c" 1>&6
3599 echo "configure:3600: checking for asn1.h" >&5
3601 cat > conftest.$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3605 #ifdef HAVE_SYS_TYPES_H
3606 #include <sys/types.h>
3608 #ifdef HAVE_STDINT_H
3617 #ifdef HAVE_UNISTD_H
3625 if { (eval echo configure:3626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3629 echo "configure: failed program was:" >&5
3630 cat conftest.$ac_ext >&5
3636 if test "x$SNMP_INCLUDE" = "x"; then
3637 old_CFLAGS="$CFLAGS"
3638 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
3639 CFLAGS="$old_CFLAGS -I$try"
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3644 #ifdef HAVE_SYS_TYPES_H
3645 #include <sys/types.h>
3647 #ifdef HAVE_STDINT_H
3656 #ifdef HAVE_UNISTD_H
3664 if { (eval echo configure:3665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3666 SNMP_INCLUDE="-I$try"
3668 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3674 if test "x$SNMP_INCLUDE" != "x"; then
3678 CFLAGS="$old_CFLAGS"
3681 if test "x$SNMP_INCLUDE" = "x"; then
3682 echo "$ac_t""no" 1>&6
3684 echo "$ac_t""yes" 1>&6
3685 cat >> confdefs.h <<\EOF
3686 #define HAVE_ASN1_H 1
3690 old_CFLAGS="$CFLAGS"
3691 CFLAGS="$CFLAGS $SNMP_INCLUDE"
3693 echo $ac_n "checking for snmp.h""... $ac_c" 1>&6
3694 echo "configure:3695: checking for snmp.h" >&5
3695 cat > conftest.$ac_ext <<EOF
3696 #line 3697 "configure"
3697 #include "confdefs.h"
3699 #ifdef HAVE_SYS_TYPES_H
3700 #include <sys/types.h>
3702 #ifdef HAVE_STDINT_H
3711 #ifdef HAVE_UNISTD_H
3722 if { (eval echo configure:3723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3724 cat >> confdefs.h <<\EOF
3725 #define HAVE_SNMP_H 1
3727 ac_cv_header_snmp_h=yes
3729 echo "configure: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3733 if test "x$ac_cv_header_snmp_h" = "xyes"; then
3734 echo "$ac_t""yes" 1>&6
3736 echo "$ac_t""no" 1>&6
3739 echo $ac_n "checking for snmp_impl.h""... $ac_c" 1>&6
3740 echo "configure:3741: checking for snmp_impl.h" >&5
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3745 #ifdef HAVE_SYS_TYPES_H
3746 #include <sys/types.h>
3748 #ifdef HAVE_STDINT_H
3757 #ifdef HAVE_UNISTD_H
3766 #include <snmp_impl.h>
3771 if { (eval echo configure:3772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3773 cat >> confdefs.h <<\EOF
3774 #define HAVE_SNMP_IMPL_H 1
3776 ac_cv_header_snmp_impl_h=yes
3778 echo "configure: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3782 if test "x$ac_cv_header_snmp_h" = "xyes"; then
3783 echo "$ac_t""yes" 1>&6
3785 echo "$ac_t""no" 1>&6
3788 echo $ac_n "checking for snmp_build_var_op in -lsnmp""... $ac_c" 1>&6
3789 echo "configure:3790: checking for snmp_build_var_op in -lsnmp" >&5
3792 LIBS="$old_LIBS -lsnmp"
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 extern char snmp_build_var_op();
3801 if { (eval echo configure:3802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3805 echo "configure: failed program was:" >&5
3806 cat conftest.$ac_ext >&5
3813 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
3814 LIBS="$old_LIBS -L$try -lsnmp"
3815 cat > conftest.$ac_ext <<EOF
3816 #line 3817 "configure"
3817 #include "confdefs.h"
3818 extern char snmp_build_var_op();
3823 if { (eval echo configure:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3825 SNMP_LIBS="-L$try -lsnmp"
3827 echo "configure: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3833 if test "x$SNMP_LIBS" != "x"; then
3837 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
3838 cat > conftest.$ac_ext <<EOF
3839 #line 3840 "configure"
3840 #include "confdefs.h"
3841 extern char snmp_build_var_op();
3846 if { (eval echo configure:3847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3848 SNMP_LIBS="-L$try -lsnmp -lcrypto"
3850 echo "configure: failed program was:" >&5
3851 cat conftest.$ac_ext >&5
3856 if test "x$SNMP_LIBS" != "x"; then
3862 CFLAGS="$old_CFLAGS"
3863 if test "x$SNMP_LIBS" = "x"; then
3864 echo "$ac_t""no" 1>&6
3867 echo "$ac_t""yes" 1>&6
3868 cat >> confdefs.h <<\EOF
3872 cat >> confdefs.h <<\EOF
3873 #define HAVE_LIBSNMP 1
3881 if test "X$ac_cv_func_sem_init" = "Xno"; then
3883 echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
3884 echo "configure:3885: checking for sem_init in -lposix4" >&5
3885 ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
3886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 ac_save_LIBS="$LIBS"
3890 LIBS="-lposix4 $LIBS"
3891 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3894 /* Override any gcc2 internal prototype to avoid an error. */
3895 /* We use char because int might match the return type of a gcc2
3896 builtin and then its argument prototype would still apply. */
3903 if { (eval echo configure:3904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3905 eval "ac_cv_lib_$ac_lib_var=yes"
3907 echo "configure: failed program was:" >&5
3908 cat conftest.$ac_ext >&5
3910 eval "ac_cv_lib_$ac_lib_var=no"
3913 LIBS="$ac_save_LIBS"
3916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3917 echo "$ac_t""yes" 1>&6
3918 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3919 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3920 cat >> confdefs.h <<EOF
3921 #define $ac_tr_lib 1
3924 LIBS="-lposix4 $LIBS"
3927 echo "$ac_t""no" 1>&6
3931 if test "X$ac_cv_lib_posix4_sem_init" = "X"; then
3932 if test "$WITH_THREAD_POOL" = "yes"; then
3933 echo "configure: warning: You do not have posix semaphores. Disabling thread pools" 1>&2
3944 echo "checking for PostgreSQL includes" 1>&6
3945 echo "configure:3946: checking for PostgreSQL includes" >&5
3947 if test $PGROOT ; then
3950 if test -d /usr/local/pgsql ; then
3951 PGROOT="/usr/local/pgsql"
3953 elif test -d /usr/local/postgresql ; then
3954 PGROOT="/usr/local/postgresql"
3956 elif test -d /opt/pgsql ; then
3959 elif test -d /opt/postgresql ; then
3960 PGROOT="/opt/postgresql"
3964 if test $PGROOT && test IS_LOCAL ; then
3965 if test -e $PGROOT/lib/libpq.so ; then
3966 if test -e $PGROOT/lib/libpq.a ; then
3967 PQ_LIBS="-L$PGROOT/lib -lpq"
3970 for ac_hdr in $PGROOT/include/libpq-fe.h $PGROOT/include/postgres.h
3972 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3974 echo "configure:3975: checking for $ac_hdr" >&5
3975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3984 { (eval echo configure:3985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3986 if test -z "$ac_err"; then
3988 eval "ac_cv_header_$ac_safe=yes"
3991 echo "configure: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3994 eval "ac_cv_header_$ac_safe=no"
3998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3999 echo "$ac_t""yes" 1>&6
4000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4001 cat >> confdefs.h <<EOF
4002 #define $ac_tr_hdr 1
4006 echo "$ac_t""no" 1>&6
4010 if test $FOUND_PG_HEADERS ; then
4011 PG_INCLUDE_DIR="$PGROOT/include"
4015 if test "x$PGROOT" = "x" ; then
4016 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
4017 echo "configure:4018: checking for PQconnectdb in -lpq" >&5
4018 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
4019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4022 ac_save_LIBS="$LIBS"
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4027 /* Override any gcc2 internal prototype to avoid an error. */
4028 /* We use char because int might match the return type of a gcc2
4029 builtin and then its argument prototype would still apply. */
4036 if { (eval echo configure:4037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4038 eval "ac_cv_lib_$ac_lib_var=yes"
4040 echo "configure: failed program was:" >&5
4041 cat conftest.$ac_ext >&5
4043 eval "ac_cv_lib_$ac_lib_var=no"
4046 LIBS="$ac_save_LIBS"
4049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4050 echo "$ac_t""yes" 1>&6
4053 echo "$ac_t""no" 1>&6
4056 if test $FOUND_PQLIB ; then
4059 if test -d /usr/include/pgsql ; then
4060 PG_INCLUDE_DIR="/usr/include/pgsql"
4061 PG_INCLUDED_DIR="$PG_INCLUDE_DIR/"
4062 elif test -d /usr/include/postgresql ; then
4063 PG_INCLUDE_DIR="/usr/include/postgresql"
4064 PG_INCLUDED_DIR="$PG_INCLUDE_DIR/"
4066 ac_safe=`echo ""${PG_INCLUDED_DIR}libpq-fe.h"" | sed 'y%./+-%__p_%'`
4067 echo $ac_n "checking for "${PG_INCLUDED_DIR}libpq-fe.h"""... $ac_c" 1>&6
4068 echo "configure:4069: checking for "${PG_INCLUDED_DIR}libpq-fe.h"" >&5
4069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075 #include <"${PG_INCLUDED_DIR}libpq-fe.h">
4077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4078 { (eval echo configure:4079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4080 if test -z "$ac_err"; then
4082 eval "ac_cv_header_$ac_safe=yes"
4085 echo "configure: failed program was:" >&5
4086 cat conftest.$ac_ext >&5
4088 eval "ac_cv_header_$ac_safe=no"
4092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4093 echo "$ac_t""yes" 1>&6
4094 cat >> confdefs.h <<\EOF
4095 #define HAVE_LIBPQ_FE_H 1
4099 echo "$ac_t""no" 1>&6
4102 ac_safe=`echo ""${PG_INCLUDED_DIR}postgres.h"" | sed 'y%./+-%__p_%'`
4103 echo $ac_n "checking for "${PG_INCLUDED_DIR}postgres.h"""... $ac_c" 1>&6
4104 echo "configure:4105: checking for "${PG_INCLUDED_DIR}postgres.h"" >&5
4105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4108 cat > conftest.$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4111 #include <"${PG_INCLUDED_DIR}postgres.h">
4113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4114 { (eval echo configure:4115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4116 if test -z "$ac_err"; then
4118 eval "ac_cv_header_$ac_safe=yes"
4121 echo "configure: failed program was:" >&5
4122 cat conftest.$ac_ext >&5
4124 eval "ac_cv_header_$ac_safe=no"
4128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4129 echo "$ac_t""yes" 1>&6
4130 cat >> confdefs.h <<\EOF
4131 #define HAVE_POSTGRES_H 1
4135 echo "$ac_t""no" 1>&6
4138 if test $HAVE_HEADER-LIBPQ-FE.H ; then
4139 PG_INCLUDE_DIR="$PG_INCLUDE_DIR"
4141 if test -d /usr/lib/pgsql ; then
4142 PGROOT="/usr/lib/pgsql"
4143 elif test -d /usr/lib/postgresql ; then
4144 PGROOT="/usr/lib/postgresql"
4148 if test "$PGROOT" && test "$PQ_LIBS" && test "$PG_INCLUDE_DIR" ; then
4149 echo Postgresql found in $PGROOT.
4157 echo $ac_n "checking for isql.h""... $ac_c" 1>&6
4158 echo "configure:4159: checking for isql.h" >&5
4160 cat > conftest.$ac_ext <<EOF
4161 #line 4162 "configure"
4162 #include "confdefs.h"
4168 if { (eval echo configure:4169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4172 echo "configure: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4179 if test "x$ODBC_INCLUDE" = "x"; then
4180 old_CFLAGS="$CFLAGS"
4184 if test "x$LOCATE" != "x"; then
4188 for x in `${LOCATE} $file 2>/dev/null`; do
4189 base=`echo $x | sed "s%/${file}%%"`
4190 if test "x$x" = "x$base"; then
4194 dir=`${DIRNAME} $x 2>/dev/null`
4195 exclude=`echo ${dir} | ${GREP} /home`
4196 if test "x$exclude" != "x"; then
4200 already=`echo \$odbc_include_dir ${DIRS} | ${GREP} ${dir}`
4201 if test "x$already" = "x"; then
4207 eval "odbc_include_dir=\"\$odbc_include_dir $DIRS\""
4210 for try in /usr/include /usr/local/include/odbc /usr/local/odbc/include $odbc_include_dir; do
4211 CFLAGS="$old_CFLAGS -I$try"
4212 cat > conftest.$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4220 if { (eval echo configure:4221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4222 ODBC_INCLUDE="-I$try"
4224 echo "configure: failed program was:" >&5
4225 cat conftest.$ac_ext >&5
4230 if test "x$ODBC_INCLUDE" != "x"; then
4234 CFLAGS="$old_CFLAGS"
4237 if test "x$ODBC_INCLUDE" = "x"; then
4238 echo "$ac_t""no" 1>&6
4240 echo "$ac_t""yes" 1>&6
4242 echo $ac_n "checking for odbc_init in -lodbcclient""... $ac_c" 1>&6
4243 echo "configure:4244: checking for odbc_init in -lodbcclient" >&5
4249 if test "x$LOCATE" != "x"; then
4251 file=libodbcclient.so
4253 for x in `${LOCATE} $file 2>/dev/null`; do
4254 base=`echo $x | sed "s%/${file}%%"`
4255 if test "x$x" = "x$base"; then
4259 dir=`${DIRNAME} $x 2>/dev/null`
4260 exclude=`echo ${dir} | ${GREP} /home`
4261 if test "x$exclude" != "x"; then
4265 already=`echo \$odbc_lib_dir ${DIRS} | ${GREP} ${dir}`
4266 if test "x$already" = "x"; then
4272 eval "odbc_lib_dir=\"\$odbc_lib_dir $DIRS\""
4276 if test "x$LOCATE" != "x"; then
4278 file=libodbcclient.a
4280 for x in `${LOCATE} $file 2>/dev/null`; do
4281 base=`echo $x | sed "s%/${file}%%"`
4282 if test "x$x" = "x$base"; then
4286 dir=`${DIRNAME} $x 2>/dev/null`
4287 exclude=`echo ${dir} | ${GREP} /home`
4288 if test "x$exclude" != "x"; then
4292 already=`echo \$odbc_lib_dir ${DIRS} | ${GREP} ${dir}`
4293 if test "x$already" = "x"; then
4299 eval "odbc_lib_dir=\"\$odbc_lib_dir $DIRS\""
4302 for try in /usr/lib /usr/lib/odbc /usr/local/lib/odbc /usr/local/odbc/lib $odbc_lib_dir; do
4303 LIBS="$old_LIBS -L$try -lodbcclient"
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 extern char odbc_init();
4312 if { (eval echo configure:4313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4314 ODBC_LIBS="-L$try -lodbcclient"
4316 echo "configure: failed program was:" >&5
4317 cat conftest.$ac_ext >&5
4322 if test "x$ODBC_LIBS" != "x"; then
4328 if test "x$ODBC_LIBS" = "x"; then
4329 echo "$ac_t""no" 1>&6
4332 echo "$ac_t""yes" 1>&6
4333 cat >> confdefs.h <<\EOF
4334 #define HAVE_ISQL_H 1
4342 LIBTOOL="`pwd`/libtool"
4349 if test "$WITH_THREAD_POOL" = "yes"; then
4350 if test "$WITH_THREADS" != "yes"; then
4351 { echo "configure: error: You must have threads enabled for thread pools to work." 1>&2; exit 1; }
4354 if test "X$PTHREADLIB" = "X"; then
4355 { echo "configure: error: You must have threading libraries for thread pools to work." 1>&2; exit 1; }
4358 if test "$WITH_THREAD_POOL" = "yes"; then
4359 cat >> confdefs.h <<\EOF
4360 #define WITH_THREAD_POOL 1
4368 for foo in `find src/modules -name configure -print`; do
4369 bar=`echo $foo | sed 's%/configure$%%g'`
4370 mysubdirs="$mysubdirs $bar"
4373 subdirs="libltdl $mysubdirs"
4380 USE_SHARED_LIBS=$enable_shared
4382 USE_STATIC_LIBS=$enable_static
4389 cat > confcache <<\EOF
4390 # This file is a shell script that caches the results of configure
4391 # tests run on this system so they can be shared between configure
4392 # scripts and configure runs. It is not useful on other systems.
4393 # If it contains results you don't want to keep, you may remove or edit it.
4395 # By default, configure uses ./config.cache as the cache file,
4396 # creating it if it does not exist already. You can give configure
4397 # the --cache-file=FILE option to use a different cache file; that is
4398 # what configure does when it calls configure scripts in
4399 # subdirectories, so they share the cache.
4400 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4401 # config.status only pays attention to the cache file if you give it the
4402 # --recheck option to rerun configure.
4405 # The following way of writing the cache mishandles newlines in values,
4406 # but we know of no workaround that is simple, portable, and efficient.
4407 # So, don't put newlines in cache variables' values.
4408 # Ultrix sh set writes to stderr and can't be redirected directly,
4409 # and sets the high bit in the cache file unless we assign to the vars.
4411 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4413 # `set' does not quote correctly, so add quotes (double-quote substitution
4414 # turns \\\\ into \\, and sed turns \\ into \).
4416 -e "s/'/'\\\\''/g" \
4417 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4420 # `set' quotes correctly as required by POSIX, so do not add quotes.
4421 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4424 if cmp -s $cache_file confcache; then
4427 if test -w $cache_file; then
4428 echo "updating cache $cache_file"
4429 cat confcache > $cache_file
4431 echo "not updating unwritable cache $cache_file"
4436 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4438 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4439 # Let make expand exec_prefix.
4440 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4442 # Any assignment to VPATH causes Sun make to only execute
4443 # the first set of double-colon rules, so remove it if not needed.
4444 # If there is a colon in the path, we need to keep it.
4445 if test "x$srcdir" = x.; then
4446 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4449 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4451 DEFS=-DHAVE_CONFIG_H
4453 # Without the "./", some shells look in PATH for config.status.
4454 : ${CONFIG_STATUS=./config.status}
4456 echo creating $CONFIG_STATUS
4457 rm -f $CONFIG_STATUS
4458 cat > $CONFIG_STATUS <<EOF
4460 # Generated automatically by configure.
4461 # Run this file to recreate the current configuration.
4462 # This directory was configured as follows,
4463 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4465 # $0 $ac_configure_args
4467 # Compiler output produced by configure, useful for debugging
4468 # configure, is in ./config.log if it exists.
4470 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4473 case "\$ac_option" in
4474 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4475 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4476 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4477 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4478 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4480 -help | --help | --hel | --he | --h)
4481 echo "\$ac_cs_usage"; exit 0 ;;
4482 *) echo "\$ac_cs_usage"; exit 1 ;;
4486 ac_given_srcdir=$srcdir
4488 trap 'rm -fr `echo "\
4490 ./src/include/build-radpaths-h \
4491 ./src/main/checkrad.pl \
4492 ./src/main/radlast \
4493 ./src/main/radtest \
4494 ./scripts/rc.radiusd \
4495 ./scripts/radwatch \
4496 ./scripts/check-radiusd-config \
4497 ./scripts/radiusd.cron.daily \
4498 ./scripts/radiusd.cron.monthly \
4499 ./raddb/radiusd.conf
4500 src/include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4502 cat >> $CONFIG_STATUS <<EOF
4504 # Protect against being on the right side of a sed subst in config.status.
4505 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4506 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4510 s%@CFLAGS@%$CFLAGS%g
4511 s%@CPPFLAGS@%$CPPFLAGS%g
4512 s%@CXXFLAGS@%$CXXFLAGS%g
4513 s%@FFLAGS@%$FFLAGS%g
4515 s%@LDFLAGS@%$LDFLAGS%g
4517 s%@exec_prefix@%$exec_prefix%g
4518 s%@prefix@%$prefix%g
4519 s%@program_transform_name@%$program_transform_name%g
4520 s%@bindir@%$bindir%g
4521 s%@sbindir@%$sbindir%g
4522 s%@libexecdir@%$libexecdir%g
4523 s%@datadir@%$datadir%g
4524 s%@sysconfdir@%$sysconfdir%g
4525 s%@sharedstatedir@%$sharedstatedir%g
4526 s%@localstatedir@%$localstatedir%g
4527 s%@libdir@%$libdir%g
4528 s%@includedir@%$includedir%g
4529 s%@oldincludedir@%$oldincludedir%g
4530 s%@infodir@%$infodir%g
4531 s%@mandir@%$mandir%g
4534 s%@RANLIB@%$RANLIB%g
4538 s%@host_alias@%$host_alias%g
4539 s%@host_cpu@%$host_cpu%g
4540 s%@host_vendor@%$host_vendor%g
4541 s%@host_os@%$host_os%g
4543 s%@build_alias@%$build_alias%g
4544 s%@build_cpu@%$build_cpu%g
4545 s%@build_vendor@%$build_vendor%g
4546 s%@build_os@%$build_os%g
4548 s%@LIBTOOL@%$LIBTOOL%g
4549 s%@logdir@%$logdir%g
4550 s%@radacctdir@%$radacctdir%g
4551 s%@raddbdir@%$raddbdir%g
4552 s%@subdirs@%$subdirs%g
4554 s%@SNMPGET@%$SNMPGET%g
4555 s%@SNMPWALK@%$SNMPWALK%g
4556 s%@RUSERS@%$RUSERS%g
4557 s%@ACLOCAL@%$ACLOCAL%g
4558 s%@AUTOCONF@%$AUTOCONF%g
4559 s%@AUTOHEADER@%$AUTOHEADER%g
4560 s%@LOCATE@%$LOCATE%g
4561 s%@DIRNAME@%$DIRNAME%g
4564 s%@REGEX_EXTENDED@%$REGEX_EXTENDED%g
4565 s%@LIBPREFIX@%$LIBPREFIX%g
4566 s%@CRYPTLIB@%$CRYPTLIB%g
4567 s%@SNMP_LIBS@%$SNMP_LIBS%g
4568 s%@SNMP_INCLUDE@%$SNMP_INCLUDE%g
4569 s%@PGROOT@%$PGROOT%g
4570 s%@PQ_LIBS@%$PQ_LIBS%g
4571 s%@PG_INCLUDE_DIR@%$PG_INCLUDE_DIR%g
4572 s%@ODBC_LIBS@%$ODBC_LIBS%g
4573 s%@ODBC_INCLUDE@%$ODBC_INCLUDE%g
4574 s%@LIBLTDL@%$LIBLTDL%g
4575 s%@INCLTDL@%$INCLTDL%g
4576 s%@top_builddir@%$top_builddir%g
4577 s%@INSTALLSTRIP@%$INSTALLSTRIP%g
4578 s%@USE_SHARED_LIBS@%$USE_SHARED_LIBS%g
4579 s%@USE_STATIC_LIBS@%$USE_STATIC_LIBS%g
4580 s%@STATIC_MODULES@%$STATIC_MODULES%g
4581 s%@RADIUSD_VERSION@%$RADIUSD_VERSION%g
4586 cat >> $CONFIG_STATUS <<\EOF
4588 # Split the substitutions into bite-sized pieces for seds with
4589 # small command number limits, like on Digital OSF/1 and HP-UX.
4590 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4591 ac_file=1 # Number of current file.
4592 ac_beg=1 # First line for current file.
4593 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4596 while $ac_more_lines; do
4597 if test $ac_beg -gt 1; then
4598 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4600 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4602 if test ! -s conftest.s$ac_file; then
4604 rm -f conftest.s$ac_file
4606 if test -z "$ac_sed_cmds"; then
4607 ac_sed_cmds="sed -f conftest.s$ac_file"
4609 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4611 ac_file=`expr $ac_file + 1`
4613 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4616 if test -z "$ac_sed_cmds"; then
4621 cat >> $CONFIG_STATUS <<EOF
4623 CONFIG_FILES=\${CONFIG_FILES-"\
4625 ./src/include/build-radpaths-h \
4626 ./src/main/checkrad.pl \
4627 ./src/main/radlast \
4628 ./src/main/radtest \
4629 ./scripts/rc.radiusd \
4630 ./scripts/radwatch \
4631 ./scripts/check-radiusd-config \
4632 ./scripts/radiusd.cron.daily \
4633 ./scripts/radiusd.cron.monthly \
4634 ./raddb/radiusd.conf
4637 cat >> $CONFIG_STATUS <<\EOF
4638 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4639 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4641 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4642 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4643 *) ac_file_in="${ac_file}.in" ;;
4646 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4648 # Remove last slash and all that follows it. Not all systems have dirname.
4649 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4650 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4651 # The file is in a subdirectory.
4652 test ! -d "$ac_dir" && mkdir "$ac_dir"
4653 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4654 # A "../" for each directory in $ac_dir_suffix.
4655 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4657 ac_dir_suffix= ac_dots=
4660 case "$ac_given_srcdir" in
4662 if test -z "$ac_dots"; then top_srcdir=.
4663 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4664 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4666 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4667 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4671 echo creating "$ac_file"
4673 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4675 *Makefile*) ac_comsub="1i\\
4676 # $configure_input" ;;
4680 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4682 s%@configure_input@%$configure_input%g
4683 s%@srcdir@%$srcdir%g
4684 s%@top_srcdir@%$top_srcdir%g
4685 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4689 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4690 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4692 # ac_d sets the value in "#define NAME VALUE" lines.
4693 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4694 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4697 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4698 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4699 ac_uB='\([ ]\)%\1#\2define\3'
4702 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4703 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4704 ac_eB='$%\1#\2define\3'
4708 if test "${CONFIG_HEADERS+set}" != set; then
4710 cat >> $CONFIG_STATUS <<EOF
4711 CONFIG_HEADERS="src/include/autoconf.h"
4713 cat >> $CONFIG_STATUS <<\EOF
4715 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4716 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4718 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4719 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4720 *) ac_file_in="${ac_file}.in" ;;
4723 echo creating $ac_file
4725 rm -f conftest.frag conftest.in conftest.out
4726 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4727 cat $ac_file_inputs > conftest.in
4731 # Transform confdefs.h into a sed script conftest.vals that substitutes
4732 # the proper values into config.h.in to produce config.h. And first:
4733 # Protect against being on the right side of a sed subst in config.status.
4734 # Protect against being in an unquoted here document in config.status.
4736 cat > conftest.hdr <<\EOF
4739 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4743 sed -n -f conftest.hdr confdefs.h > conftest.vals
4746 # This sed command replaces #undef with comments. This is necessary, for
4747 # example, in the case of _POSIX_SOURCE, which is predefined and required
4748 # on some systems where configure will not decide to define it.
4749 cat >> conftest.vals <<\EOF
4750 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4753 # Break up conftest.vals because some shells have a limit on
4754 # the size of here documents, and old seds have small limits too.
4759 ac_lines=`grep -c . conftest.vals`
4760 # grep -c gives empty output for an empty file on some AIX systems.
4761 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4762 # Write a limited-size here document to conftest.frag.
4763 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4764 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4766 sed -f conftest.frag conftest.in > conftest.out
4768 mv conftest.out conftest.in
4770 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4772 mv conftest.tail conftest.vals
4776 cat >> $CONFIG_STATUS <<\EOF
4777 rm -f conftest.frag conftest.h
4778 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4779 cat conftest.in >> conftest.h
4781 if cmp -s $ac_file conftest.h 2>/dev/null; then
4782 echo "$ac_file is unchanged"
4785 # Remove last slash and all that follows it. Not all systems have dirname.
4786 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4787 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4788 # The file is in a subdirectory.
4789 test ! -d "$ac_dir" && mkdir "$ac_dir"
4792 mv conftest.h $ac_file
4797 cat >> $CONFIG_STATUS <<EOF
4800 cat >> $CONFIG_STATUS <<\EOF
4804 chmod +x $CONFIG_STATUS
4805 rm -fr confdefs* $ac_clean_files
4806 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4808 if test "$no_recursion" != yes; then
4810 # Remove --cache-file and --srcdir arguments so they do not pile up.
4811 ac_sub_configure_args=
4813 for ac_arg in $ac_configure_args; do
4814 if test -n "$ac_prev"; then
4819 -cache-file | --cache-file | --cache-fil | --cache-fi \
4820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4821 ac_prev=cache_file ;;
4822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4825 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4827 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4829 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4833 for ac_config_dir in libltdl $mysubdirs; do
4835 # Do not complain, so a configure script can configure whichever
4836 # parts of a large source tree are present.
4837 if test ! -d $srcdir/$ac_config_dir; then
4841 echo configuring in $ac_config_dir
4846 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4848 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4856 # A "../" for each directory in /$ac_config_dir.
4857 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4860 .) # No --srcdir option. We are building in place.
4861 ac_sub_srcdir=$srcdir ;;
4862 /*) # Absolute path.
4863 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4865 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4868 # Check for guested configure; otherwise get Cygnus style configure.
4869 if test -f $ac_sub_srcdir/configure; then
4870 ac_sub_configure=$ac_sub_srcdir/configure
4871 elif test -f $ac_sub_srcdir/configure.in; then
4872 ac_sub_configure=$ac_configure
4874 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4878 # The recursion is here.
4879 if test -n "$ac_sub_configure"; then
4881 # Make the cache file name correct relative to the subdirectory.
4882 case "$cache_file" in
4883 /*) ac_sub_cache_file=$cache_file ;;
4885 ac_sub_cache_file="$ac_dots$cache_file" ;;
4888 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4889 # The eval makes quoting arguments work.
4890 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4893 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4907 echo timestamp > src/include/stamp-h
4908 (cd ./src/include && /bin/sh ./build-radpaths-h)
4909 (cd ./src/main && chmod +x checkrad.pl radlast radtest)
4910 (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly)
4912 cat >> src/include/autoconf.h <<EOF
4914 #define HOSTINFO "$host"
4915 #define RADIUSD_VERSION "$RADIUSD_VERSION"