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-logdir=DIR Directory for logfiles [LOCALSTATEDIR/log/radius] "
29 --with-radacctdir=PATH Directory for detail files [LOGDIR/radacct] "
31 --with-raddbdir=DIR Directory for config files [SYSCONFDIR/raddb] "
33 --with-dict-nocase Make dictionary case-independant (default=yes)"
35 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)"
37 --with-threads Use threads, if available. (default=yes) "
39 --with-snmp Compile in SNMP support. (default=yes)"
41 --disable-ltdl-install do not install libltdl"
43 --with-static-modules=QUOTED-MODULE-LIST"
45 --enable-developer Enables features of interest to developers."
47 --with-experimental-modules Use experimental and unstable modules. (default=no) "
49 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO"
51 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO"
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.143
564 RADIUSD_MAJOR_VERSION=0
565 RADIUSD_MINOR_VERSION=6
566 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
569 # Extract the first word of "gcc", so it can be a program name with args.
570 set dummy gcc; ac_word=$2
571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
572 echo "configure:573: checking for $ac_word" >&5
573 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6
576 if test -n "$CC"; then
577 ac_cv_prog_CC="$CC" # Let the user override the test.
579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
581 for ac_dir in $ac_dummy; do
582 test -z "$ac_dir" && ac_dir=.
583 if test -f $ac_dir/$ac_word; then
592 if test -n "$CC"; then
593 echo "$ac_t""$CC" 1>&6
595 echo "$ac_t""no" 1>&6
598 if test -z "$CC"; then
599 # Extract the first word of "cc", so it can be a program name with args.
600 set dummy cc; ac_word=$2
601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
602 echo "configure:603: checking for $ac_word" >&5
603 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
604 echo $ac_n "(cached) $ac_c" 1>&6
606 if test -n "$CC"; then
607 ac_cv_prog_CC="$CC" # Let the user override the test.
609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
612 for ac_dir in $ac_dummy; do
613 test -z "$ac_dir" && ac_dir=.
614 if test -f $ac_dir/$ac_word; then
615 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
624 if test $ac_prog_rejected = yes; then
625 # We found a bogon in the path, so make sure we never use it.
626 set dummy $ac_cv_prog_CC
628 if test $# -gt 0; then
629 # We chose a different compiler from the bogus one.
630 # However, it has the same basename, so the bogon will be chosen
631 # first if we set CC to just the basename; use the full file name.
633 set dummy "$ac_dir/$ac_word" "$@"
641 if test -n "$CC"; then
642 echo "$ac_t""$CC" 1>&6
644 echo "$ac_t""no" 1>&6
647 if test -z "$CC"; then
650 # Extract the first word of "cl", so it can be a program name with args.
651 set dummy cl; ac_word=$2
652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
653 echo "configure:654: checking for $ac_word" >&5
654 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
657 if test -n "$CC"; then
658 ac_cv_prog_CC="$CC" # Let the user override the test.
660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
662 for ac_dir in $ac_dummy; do
663 test -z "$ac_dir" && ac_dir=.
664 if test -f $ac_dir/$ac_word; then
673 if test -n "$CC"; then
674 echo "$ac_t""$CC" 1>&6
676 echo "$ac_t""no" 1>&6
681 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
684 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
685 echo "configure:686: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
689 ac_cpp='$CPP $CPPFLAGS'
690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
692 cross_compiling=$ac_cv_prog_cc_cross
694 cat > conftest.$ac_ext << EOF
696 #line 697 "configure"
697 #include "confdefs.h"
701 if { (eval echo configure:702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
702 ac_cv_prog_cc_works=yes
703 # If we can't run a trivial program, we are probably using a cross compiler.
704 if (./conftest; exit) 2>/dev/null; then
705 ac_cv_prog_cc_cross=no
707 ac_cv_prog_cc_cross=yes
710 echo "configure: failed program was:" >&5
711 cat conftest.$ac_ext >&5
712 ac_cv_prog_cc_works=no
716 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
717 ac_cpp='$CPP $CPPFLAGS'
718 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
719 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
720 cross_compiling=$ac_cv_prog_cc_cross
722 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
723 if test $ac_cv_prog_cc_works = no; then
724 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
727 echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
728 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
729 cross_compiling=$ac_cv_prog_cc_cross
731 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
732 echo "configure:733: checking whether we are using GNU C" >&5
733 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
736 cat > conftest.c <<EOF
741 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
748 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
750 if test $ac_cv_prog_gcc = yes; then
756 ac_test_CFLAGS="${CFLAGS+set}"
757 ac_save_CFLAGS="$CFLAGS"
759 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
760 echo "configure:761: checking whether ${CC-cc} accepts -g" >&5
761 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
764 echo 'void f(){}' > conftest.c
765 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
774 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
775 if test "$ac_test_CFLAGS" = set; then
776 CFLAGS="$ac_save_CFLAGS"
777 elif test $ac_cv_prog_cc_g = yes; then
778 if test "$GCC" = yes; then
784 if test "$GCC" = yes; then
791 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
792 echo "configure:793: checking how to run the C preprocessor" >&5
793 # On Suns, sometimes $CPP names a directory.
794 if test -n "$CPP" && test -d "$CPP"; then
797 if test -z "$CPP"; then
798 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 # This must be in double quotes, not single quotes, because CPP may get
802 # substituted into the Makefile and "${CC-cc}" will confuse make.
804 # On the NeXT, cc -E runs the code through the compiler's parser,
805 # not just through cpp.
806 cat > conftest.$ac_ext <<EOF
807 #line 808 "configure"
808 #include "confdefs.h"
812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
813 { (eval echo configure:814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
815 if test -z "$ac_err"; then
819 echo "configure: failed program was:" >&5
820 cat conftest.$ac_ext >&5
822 CPP="${CC-cc} -E -traditional-cpp"
823 cat > conftest.$ac_ext <<EOF
824 #line 825 "configure"
825 #include "confdefs.h"
829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
830 { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
832 if test -z "$ac_err"; then
836 echo "configure: failed program was:" >&5
837 cat conftest.$ac_ext >&5
839 CPP="${CC-cc} -nologo -E"
840 cat > conftest.$ac_ext <<EOF
841 #line 842 "configure"
842 #include "confdefs.h"
846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
847 { (eval echo configure:848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
849 if test -z "$ac_err"; then
853 echo "configure: failed program was:" >&5
854 cat conftest.$ac_ext >&5
863 ac_cv_prog_CPP="$CPP"
865 CPP="$ac_cv_prog_CPP"
867 ac_cv_prog_CPP="$CPP"
869 echo "$ac_t""$CPP" 1>&6
871 if test $ac_cv_prog_gcc = yes; then
872 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
873 echo "configure:874: checking whether ${CC-cc} needs -traditional" >&5
874 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
875 echo $ac_n "(cached) $ac_c" 1>&6
877 ac_pattern="Autoconf.*'x'"
878 cat > conftest.$ac_ext <<EOF
879 #line 880 "configure"
880 #include "confdefs.h"
884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
885 egrep "$ac_pattern" >/dev/null 2>&1; then
887 ac_cv_prog_gcc_traditional=yes
890 ac_cv_prog_gcc_traditional=no
895 if test $ac_cv_prog_gcc_traditional = no; then
896 cat > conftest.$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
903 egrep "$ac_pattern" >/dev/null 2>&1; then
905 ac_cv_prog_gcc_traditional=yes
912 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
913 if test $ac_cv_prog_gcc_traditional = yes; then
914 CC="$CC -traditional"
918 echo $ac_n "checking whether we are using SUNPro C""... $ac_c" 1>&6
919 echo "configure:920: checking whether we are using SUNPro C" >&5
920 if eval "test \"`echo '$''{'ac_cv_prog_suncc'+set}'`\" = set"; then
921 echo $ac_n "(cached) $ac_c" 1>&6
923 cat > conftest.c <<EOF
928 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
935 echo "$ac_t""$ac_cv_prog_suncc" 1>&6
936 # Extract the first word of "ranlib", so it can be a program name with args.
937 set dummy ranlib; ac_word=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
943 if test -n "$RANLIB"; then
944 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
948 for ac_dir in $ac_dummy; do
949 test -z "$ac_dir" && ac_dir=.
950 if test -f $ac_dir/$ac_word; then
951 ac_cv_prog_RANLIB="ranlib"
956 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
959 RANLIB="$ac_cv_prog_RANLIB"
960 if test -n "$RANLIB"; then
961 echo "$ac_t""$RANLIB" 1>&6
963 echo "$ac_t""no" 1>&6
969 # Extract the first word of "gmake", so it can be a program name with args.
970 set dummy gmake; ac_word=$2
971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
972 echo "configure:973: checking for $ac_word" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_GMAKE'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 if test -n "$GMAKE"; then
977 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
981 for ac_dir in $ac_dummy; do
982 test -z "$ac_dir" && ac_dir=.
983 if test -f $ac_dir/$ac_word; then
984 ac_cv_prog_GMAKE="yes"
989 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
992 GMAKE="$ac_cv_prog_GMAKE"
993 if test -n "$GMAKE"; then
994 echo "$ac_t""$GMAKE" 1>&6
996 echo "$ac_t""no" 1>&6
999 if test $GMAKE = no; then
1000 # Extract the first word of "make", so it can be a program name with args.
1001 set dummy make; ac_word=$2
1002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1003 echo "configure:1004: checking for $ac_word" >&5
1004 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1005 echo $ac_n "(cached) $ac_c" 1>&6
1009 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1012 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1017 for ac_dir in $ac_dummy; do
1018 test -z "$ac_dir" && ac_dir=.
1019 if test -f $ac_dir/$ac_word; then
1020 ac_cv_path_MAKE="$ac_dir/$ac_word"
1025 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
1029 MAKE="$ac_cv_path_MAKE"
1030 if test -n "$MAKE"; then
1031 echo "$ac_t""$MAKE" 1>&6
1033 echo "$ac_t""no" 1>&6
1037 # Extract the first word of "gmake", so it can be a program name with args.
1038 set dummy gmake; ac_word=$2
1039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1040 echo "configure:1041: checking for $ac_word" >&5
1041 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1046 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1049 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1054 for ac_dir in $ac_dummy; do
1055 test -z "$ac_dir" && ac_dir=.
1056 if test -f $ac_dir/$ac_word; then
1057 ac_cv_path_MAKE="$ac_dir/$ac_word"
1062 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
1066 MAKE="$ac_cv_path_MAKE"
1067 if test -n "$MAKE"; then
1068 echo "$ac_t""$MAKE" 1>&6
1070 echo "$ac_t""no" 1>&6
1074 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
1075 if test -z "$makever"; then
1076 { echo "configure: error: GNU Make is not installed. Please download and install it
1077 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." 1>&2; exit 1; }
1080 echo $ac_n "checking for main in -lltdl""... $ac_c" 1>&6
1081 echo "configure:1082: checking for main in -lltdl" >&5
1082 ac_lib_var=`echo ltdl'_'main | sed 'y%./+-%__p_%'`
1083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 ac_save_LIBS="$LIBS"
1088 cat > conftest.$ac_ext <<EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1096 if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1098 eval "ac_cv_lib_$ac_lib_var=yes"
1100 echo "configure: failed program was:" >&5
1101 cat conftest.$ac_ext >&5
1103 eval "ac_cv_lib_$ac_lib_var=no"
1106 LIBS="$ac_save_LIBS"
1109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1110 echo "$ac_t""yes" 1>&6
1111 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
1113 echo "$ac_t""no" 1>&6
1114 if test x"$enable_ltdl_install" = xno; then
1115 echo "configure: warning: libltdl not installed, but installation disabled" 1>&2
1117 enable_ltdl_install=yes
1122 if test x"$enable_ltdl_install" = x"yes"; then
1123 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1124 LIBLTDL='${top_builddir}/libltdl'/libltdl.la
1125 INCLTDL='-I${top_builddir}/libltdl'
1127 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
1136 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1137 if test -f $ac_dir/install-sh; then
1139 ac_install_sh="$ac_aux_dir/install-sh -c"
1141 elif test -f $ac_dir/install.sh; then
1143 ac_install_sh="$ac_aux_dir/install.sh -c"
1147 if test -z "$ac_aux_dir"; then
1148 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1150 ac_config_guess=$ac_aux_dir/config.guess
1151 ac_config_sub=$ac_aux_dir/config.sub
1152 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1154 # Check whether --enable-shared or --disable-shared was given.
1155 if test "${enable_shared+set}" = set; then
1156 enableval="$enable_shared"
1157 p=${PACKAGE-default}
1158 case "$enableval" in
1159 yes) enable_shared=yes ;;
1160 no) enable_shared=no ;;
1163 # Look at the argument we got. We use all the common list separators.
1164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1165 for pkg in $enableval; do
1166 if test "X$pkg" = "X$p"; then
1177 # Check whether --enable-static or --disable-static was given.
1178 if test "${enable_static+set}" = set; then
1179 enableval="$enable_static"
1180 p=${PACKAGE-default}
1181 case "$enableval" in
1182 yes) enable_static=yes ;;
1183 no) enable_static=no ;;
1186 # Look at the argument we got. We use all the common list separators.
1187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1188 for pkg in $enableval; do
1189 if test "X$pkg" = "X$p"; then
1200 # Check whether --enable-fast-install or --disable-fast-install was given.
1201 if test "${enable_fast_install+set}" = set; then
1202 enableval="$enable_fast_install"
1203 p=${PACKAGE-default}
1204 case "$enableval" in
1205 yes) enable_fast_install=yes ;;
1206 no) enable_fast_install=no ;;
1208 enable_fast_install=no
1209 # Look at the argument we got. We use all the common list separators.
1210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1211 for pkg in $enableval; do
1212 if test "X$pkg" = "X$p"; then
1213 enable_fast_install=yes
1220 enable_fast_install=yes
1224 # Make sure we can run config.sub.
1225 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1226 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1229 echo $ac_n "checking host system type""... $ac_c" 1>&6
1230 echo "configure:1231: checking host system type" >&5
1233 case "$host_alias" in
1237 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1238 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1240 *) host_alias=$nonopt ;;
1244 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1245 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1246 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1247 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1248 echo "$ac_t""$host" 1>&6
1250 echo $ac_n "checking build system type""... $ac_c" 1>&6
1251 echo "configure:1252: checking build system type" >&5
1254 case "$build_alias" in
1257 NONE) build_alias=$host_alias ;;
1258 *) build_alias=$nonopt ;;
1262 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1263 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1264 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1265 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1266 echo "$ac_t""$build" 1>&6
1268 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1269 if test "${with_gnu_ld+set}" = set; then
1270 withval="$with_gnu_ld"
1271 test "$withval" = no || with_gnu_ld=yes
1277 if test "$ac_cv_prog_gcc" = yes; then
1278 # Check if gcc -print-prog-name=ld gives a path.
1279 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1280 echo "configure:1281: checking for ld used by GCC" >&5
1281 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1283 # Accept absolute paths.
1284 [\\/]* | [A-Za-z]:[\\/]*)
1285 re_direlt='/[^/][^/]*/\.\./'
1286 # Canonicalize the path of ld
1287 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1288 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1289 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1291 test -z "$LD" && LD="$ac_prog"
1294 # If it fails, then pretend we aren't using GCC.
1298 # If it is relative, then search for the first ld in PATH.
1302 elif test "$with_gnu_ld" = yes; then
1303 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1304 echo "configure:1305: checking for GNU ld" >&5
1306 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1307 echo "configure:1308: checking for non-GNU ld" >&5
1309 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 if test -z "$LD"; then
1313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1314 for ac_dir in $PATH; do
1315 test -z "$ac_dir" && ac_dir=.
1316 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1317 ac_cv_path_LD="$ac_dir/$ac_prog"
1318 # Check to see if the program is GNU ld. I'd rather use --version,
1319 # but apparently some GNU ld's only accept -v.
1320 # Break only if it was the GNU/non-GNU ld that we prefer.
1321 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1322 test "$with_gnu_ld" != no && break
1324 test "$with_gnu_ld" != yes && break
1330 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1335 if test -n "$LD"; then
1336 echo "$ac_t""$LD" 1>&6
1338 echo "$ac_t""no" 1>&6
1340 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1341 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1342 echo "configure:1343: checking if the linker ($LD) is GNU ld" >&5
1343 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1346 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1347 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1348 ac_cv_prog_gnu_ld=yes
1350 ac_cv_prog_gnu_ld=no
1354 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1357 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1358 echo "configure:1359: checking for BSD-compatible nm" >&5
1359 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 if test -n "$NM"; then
1363 # Let the user override the test.
1366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1367 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1368 test -z "$ac_dir" && ac_dir=.
1369 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1370 # Check to see if the nm accepts a BSD-compat flag.
1371 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1372 # nm: unknown option "B" ignored
1373 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1374 ac_cv_path_NM="$ac_dir/nm -B"
1376 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1377 ac_cv_path_NM="$ac_dir/nm -p"
1380 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1381 continue # so that we can try to find one that supports BSD flags
1386 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1391 echo "$ac_t""$NM" 1>&6
1393 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1394 echo "configure:1395: checking whether ln -s works" >&5
1395 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1399 if ln -s X conftestdata 2>/dev/null
1402 ac_cv_prog_LN_S="ln -s"
1407 LN_S="$ac_cv_prog_LN_S"
1408 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1409 echo "$ac_t""yes" 1>&6
1411 echo "$ac_t""no" 1>&6
1416 NONE) lt_target="$host" ;;
1417 *) lt_target="$target" ;;
1420 # Check for any special flags to pass to ltconfig.
1421 libtool_flags="--cache-file=$cache_file"
1422 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1423 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1424 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1425 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1426 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1427 libtool_flags="$libtool_flags --enable-dlopen"
1429 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1430 if test "${enable_libtool_lock+set}" = set; then
1431 enableval="$enable_libtool_lock"
1435 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1436 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1438 # Some flags need to be propagated to the compiler or linker for good
1440 case "$lt_target" in
1442 # Find out which ABI we are using.
1443 echo '#line 1444 "configure"' > conftest.$ac_ext
1444 if { (eval echo configure:1445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1445 case "`/usr/bin/file conftest.o`" in
1461 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1462 SAVE_CFLAGS="$CFLAGS"
1463 CFLAGS="$CFLAGS -belf"
1464 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1465 echo "configure:1466: checking whether the C compiler needs -belf" >&5
1466 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 cat > conftest.$ac_ext <<EOF
1470 #line 1471 "configure"
1471 #include "confdefs.h"
1477 if { (eval echo configure:1478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1479 lt_cv_cc_needs_belf=yes
1481 echo "configure: failed program was:" >&5
1482 cat conftest.$ac_ext >&5
1484 lt_cv_cc_needs_belf=no
1489 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1490 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1491 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1492 CFLAGS="$SAVE_CFLAGS"
1500 # Save cache, so that ltconfig can load it
1501 cat > confcache <<\EOF
1502 # This file is a shell script that caches the results of configure
1503 # tests run on this system so they can be shared between configure
1504 # scripts and configure runs. It is not useful on other systems.
1505 # If it contains results you don't want to keep, you may remove or edit it.
1507 # By default, configure uses ./config.cache as the cache file,
1508 # creating it if it does not exist already. You can give configure
1509 # the --cache-file=FILE option to use a different cache file; that is
1510 # what configure does when it calls configure scripts in
1511 # subdirectories, so they share the cache.
1512 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1513 # config.status only pays attention to the cache file if you give it the
1514 # --recheck option to rerun configure.
1517 # The following way of writing the cache mishandles newlines in values,
1518 # but we know of no workaround that is simple, portable, and efficient.
1519 # So, don't put newlines in cache variables' values.
1520 # Ultrix sh set writes to stderr and can't be redirected directly,
1521 # and sets the high bit in the cache file unless we assign to the vars.
1523 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1525 # `set' does not quote correctly, so add quotes (double-quote substitution
1526 # turns \\\\ into \\, and sed turns \\ into \).
1528 -e "s/'/'\\\\''/g" \
1529 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1532 # `set' quotes correctly as required by POSIX, so do not add quotes.
1533 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1536 if cmp -s $cache_file confcache; then
1539 if test -w $cache_file; then
1540 echo "updating cache $cache_file"
1541 cat confcache > $cache_file
1543 echo "not updating unwritable cache $cache_file"
1549 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1550 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1551 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1552 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1553 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1554 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1555 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1556 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1558 # Reload cache, that may have been modified by ltconfig
1559 if test -r "$cache_file"; then
1560 echo "loading cache $cache_file"
1563 echo "creating cache $cache_file"
1568 # This can be used to rebuild libtool when needed
1569 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1571 # Always use our own libtool.
1572 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1574 # Redirect the config.log output again, so that the ltconfig log is not
1575 # clobbered by the next message.
1576 exec 5>>./config.log
1580 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
1581 if test "${enable_strict_dependencies+set}" = set; then
1582 enableval="$enable_strict_dependencies"
1587 logdir='${localstatedir}/log/radius'
1588 echo $ac_n "checking logdir""... $ac_c" 1>&6
1589 echo "configure:1590: checking logdir" >&5
1590 # Check whether --with-logdir or --without-logdir was given.
1591 if test "${with_logdir+set}" = set; then
1592 withval="$with_logdir"
1595 { echo "configure: error: Need logdir" 1>&2; exit 1; }
1607 echo "$ac_t""$logdir" 1>&6
1609 radacctdir='${logdir}/radacct'
1610 echo $ac_n "checking radacctdir""... $ac_c" 1>&6
1611 echo "configure:1612: checking radacctdir" >&5
1612 # Check whether --with-radacctdir or --without-radacctdir was given.
1613 if test "${with_radacctdir+set}" = set; then
1614 withval="$with_radacctdir"
1617 { echo "configure: error: Need radacctdir" 1>&2; exit 1; }
1622 radacctdir="$withval"
1629 echo "$ac_t""$radacctdir" 1>&6
1631 raddbdir='${sysconfdir}/raddb'
1632 echo $ac_n "checking raddbdir""... $ac_c" 1>&6
1633 echo "configure:1634: checking raddbdir" >&5
1634 # Check whether --with-raddbdir or --without-raddbdir was given.
1635 if test "${with_raddbdir+set}" = set; then
1636 withval="$with_raddbdir"
1639 { echo "configure: error: Need raddbdir" 1>&2; exit 1; }
1651 echo "$ac_t""$raddbdir" 1>&6
1653 WITH_DICT_NOCASE=yes
1654 # Check whether --with-dict-nocase or --without-dict-nocase was given.
1655 if test "${with_dict_nocase+set}" = set; then
1656 withval="$with_dict_nocase"
1666 if test "X$WITH_DICT_NOCASE" = "Xyes"; then
1667 cat >> confdefs.h <<\EOF
1668 #define WITH_DICT_NOCASE 1
1674 # Check whether --with-ascend-binary or --without-ascend-binary was given.
1675 if test "${with_ascend_binary+set}" = set; then
1676 withval="$with_ascend_binary"
1686 if test "X$ASCEND_BINARY" = "Xyes"; then
1687 cat >> confdefs.h <<\EOF
1688 #define ASCEND_BINARY 1
1694 WITH_THREAD_POOL=yes
1695 # Check whether --with-threads or --without-threads was given.
1696 if test "${with_threads+set}" = set; then
1697 withval="$with_threads"
1710 # Check whether --with-snmp or --without-snmp was given.
1711 if test "${with_snmp+set}" = set; then
1712 withval="$with_snmp"
1723 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
1724 if test "${enable_ltdl_install+set}" = set; then
1725 enableval="$enable_ltdl_install"
1729 if test x"${enable_ltdl_install+set}" != xset; then
1730 enable_ltdl_install=yes
1731 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1737 # Check whether --with-static_modules or --without-static_modules was given.
1738 if test "${with_static_modules+set}" = set; then
1739 withval="$with_static_modules"
1741 for i in $withval; do
1742 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
1748 # Check whether --enable-developer or --disable-developer was given.
1749 if test "${enable_developer+set}" = set; then
1750 enableval="$enable_developer"
1762 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
1767 # Check whether --with-experimental-modules or --without-experimental-modules was given.
1768 if test "${with_experimental_modules+set}" = set; then
1769 withval="$with_experimental_modules"
1781 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
1782 if test "${with_rlm_FOO_lib_dir+set}" = set; then
1783 withval="$with_rlm_FOO_lib_dir"
1792 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
1793 if test "${with_rlm_FOO_include_dir+set}" = set; then
1794 withval="$with_rlm_FOO_include_dir"
1805 # Extract the first word of "perl", so it can be a program name with args.
1806 set dummy perl; ac_word=$2
1807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1808 echo "configure:1809: checking for $ac_word" >&5
1809 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1814 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1817 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1822 for ac_dir in $ac_dummy; do
1823 test -z "$ac_dir" && ac_dir=.
1824 if test -f $ac_dir/$ac_word; then
1825 ac_cv_path_PERL="$ac_dir/$ac_word"
1830 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
1834 PERL="$ac_cv_path_PERL"
1835 if test -n "$PERL"; then
1836 echo "$ac_t""$PERL" 1>&6
1838 echo "$ac_t""no" 1>&6
1841 if test ! -x $ac_cv_path_PERL; then
1842 { echo "configure: error: perl not found - fatal" 1>&2; exit 1; }
1844 # Extract the first word of "snmpget", so it can be a program name with args.
1845 set dummy snmpget; ac_word=$2
1846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1847 echo "configure:1848: checking for $ac_word" >&5
1848 if eval "test \"`echo '$''{'ac_cv_path_SNMPGET'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1853 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
1856 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a dos path.
1859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1861 for ac_dir in $ac_dummy; do
1862 test -z "$ac_dir" && ac_dir=.
1863 if test -f $ac_dir/$ac_word; then
1864 ac_cv_path_SNMPGET="$ac_dir/$ac_word"
1869 test -z "$ac_cv_path_SNMPGET" && ac_cv_path_SNMPGET="/usr/local/bin/snmpget"
1873 SNMPGET="$ac_cv_path_SNMPGET"
1874 if test -n "$SNMPGET"; then
1875 echo "$ac_t""$SNMPGET" 1>&6
1877 echo "$ac_t""no" 1>&6
1880 # Extract the first word of "snmpwalk", so it can be a program name with args.
1881 set dummy snmpwalk; ac_word=$2
1882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $ac_word" >&5
1884 if eval "test \"`echo '$''{'ac_cv_path_SNMPWALK'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1889 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
1892 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a dos path.
1895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1897 for ac_dir in $ac_dummy; do
1898 test -z "$ac_dir" && ac_dir=.
1899 if test -f $ac_dir/$ac_word; then
1900 ac_cv_path_SNMPWALK="$ac_dir/$ac_word"
1905 test -z "$ac_cv_path_SNMPWALK" && ac_cv_path_SNMPWALK="/usr/local/bin/snmpwalk"
1909 SNMPWALK="$ac_cv_path_SNMPWALK"
1910 if test -n "$SNMPWALK"; then
1911 echo "$ac_t""$SNMPWALK" 1>&6
1913 echo "$ac_t""no" 1>&6
1916 # Extract the first word of "rusers", so it can be a program name with args.
1917 set dummy rusers; ac_word=$2
1918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1919 echo "configure:1920: checking for $ac_word" >&5
1920 if eval "test \"`echo '$''{'ac_cv_path_RUSERS'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1925 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
1928 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a dos path.
1931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1933 for ac_dir in $ac_dummy; do
1934 test -z "$ac_dir" && ac_dir=.
1935 if test -f $ac_dir/$ac_word; then
1936 ac_cv_path_RUSERS="$ac_dir/$ac_word"
1941 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
1945 RUSERS="$ac_cv_path_RUSERS"
1946 if test -n "$RUSERS"; then
1947 echo "$ac_t""$RUSERS" 1>&6
1949 echo "$ac_t""no" 1>&6
1953 missing_dir=`cd $ac_aux_dir && pwd`
1954 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1955 echo "configure:1956: checking for working aclocal" >&5
1956 # Run test in a subshell; some versions of sh will print an error if
1957 # an executable is not found, even if stderr is redirected.
1958 # Redirect stdin to placate older versions of autoconf. Sigh.
1959 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1961 echo "$ac_t""found" 1>&6
1963 ACLOCAL="$missing_dir/missing aclocal"
1964 echo "$ac_t""missing" 1>&6
1967 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1968 echo "configure:1969: checking for working autoconf" >&5
1969 # Run test in a subshell; some versions of sh will print an error if
1970 # an executable is not found, even if stderr is redirected.
1971 # Redirect stdin to placate older versions of autoconf. Sigh.
1972 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1974 echo "$ac_t""found" 1>&6
1976 AUTOCONF="$missing_dir/missing autoconf"
1977 echo "$ac_t""missing" 1>&6
1980 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1981 echo "configure:1982: checking for working autoheader" >&5
1982 # Run test in a subshell; some versions of sh will print an error if
1983 # an executable is not found, even if stderr is redirected.
1984 # Redirect stdin to placate older versions of autoconf. Sigh.
1985 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1986 AUTOHEADER=autoheader
1987 echo "$ac_t""found" 1>&6
1989 AUTOHEADER="$missing_dir/missing autoheader"
1990 echo "$ac_t""missing" 1>&6
1994 # Extract the first word of "locate", so it can be a program name with args.
1995 set dummy locate; ac_word=$2
1996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1997 echo "configure:1998: checking for $ac_word" >&5
1998 if eval "test \"`echo '$''{'ac_cv_path_LOCATE'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2003 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
2006 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a dos path.
2009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2011 for ac_dir in $ac_dummy; do
2012 test -z "$ac_dir" && ac_dir=.
2013 if test -f $ac_dir/$ac_word; then
2014 ac_cv_path_LOCATE="$ac_dir/$ac_word"
2022 LOCATE="$ac_cv_path_LOCATE"
2023 if test -n "$LOCATE"; then
2024 echo "$ac_t""$LOCATE" 1>&6
2026 echo "$ac_t""no" 1>&6
2029 # Extract the first word of "dirname", so it can be a program name with args.
2030 set dummy dirname; ac_word=$2
2031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2032 echo "configure:2033: checking for $ac_word" >&5
2033 if eval "test \"`echo '$''{'ac_cv_path_DIRNAME'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2038 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
2041 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a dos path.
2044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2046 for ac_dir in $ac_dummy; do
2047 test -z "$ac_dir" && ac_dir=.
2048 if test -f $ac_dir/$ac_word; then
2049 ac_cv_path_DIRNAME="$ac_dir/$ac_word"
2057 DIRNAME="$ac_cv_path_DIRNAME"
2058 if test -n "$DIRNAME"; then
2059 echo "$ac_t""$DIRNAME" 1>&6
2061 echo "$ac_t""no" 1>&6
2064 # Extract the first word of "grep", so it can be a program name with args.
2065 set dummy grep; ac_word=$2
2066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2067 echo "configure:2068: checking for $ac_word" >&5
2068 if eval "test \"`echo '$''{'ac_cv_path_GREP'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2073 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
2076 ac_cv_path_GREP="$GREP" # Let the user override the test with a dos path.
2079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2081 for ac_dir in $ac_dummy; do
2082 test -z "$ac_dir" && ac_dir=.
2083 if test -f $ac_dir/$ac_word; then
2084 ac_cv_path_GREP="$ac_dir/$ac_word"
2092 GREP="$ac_cv_path_GREP"
2093 if test -n "$GREP"; then
2094 echo "$ac_t""$GREP" 1>&6
2096 echo "$ac_t""no" 1>&6
2100 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2101 echo "configure:2102: checking for AIX" >&5
2102 cat > conftest.$ac_ext <<EOF
2103 #line 2104 "configure"
2104 #include "confdefs.h"
2110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2111 egrep "yes" >/dev/null 2>&1; then
2113 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2114 #define _ALL_SOURCE 1
2119 echo "$ac_t""no" 1>&6
2127 if test "$WITH_THREADS" = "yes"; then
2128 if test $ac_cv_prog_suncc = "yes"; then
2129 CFLAGS="$CFLAGS -mt"
2132 for ac_hdr in pthread.h
2134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2136 echo "configure:2137: checking for $ac_hdr" >&5
2137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 cat > conftest.$ac_ext <<EOF
2141 #line 2142 "configure"
2142 #include "confdefs.h"
2145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2146 { (eval echo configure:2147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2148 if test -z "$ac_err"; then
2150 eval "ac_cv_header_$ac_safe=yes"
2153 echo "configure: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2156 eval "ac_cv_header_$ac_safe=no"
2160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2161 echo "$ac_t""yes" 1>&6
2162 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2163 cat >> confdefs.h <<EOF
2164 #define $ac_tr_hdr 1
2168 echo "$ac_t""no" 1>&6
2173 if test "X$ac_cv_header_pthread_h" = "X"; then
2174 { echo "configure: error: "You are trying to use threads without a POSIX <pthread.h>"" 1>&2; exit 1; }
2177 echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
2178 echo "configure:2179: checking for pthread_join in -lpthread" >&5
2179 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
2180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 ac_save_LIBS="$LIBS"
2184 LIBS="-lpthread $LIBS"
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2188 /* Override any gcc2 internal prototype to avoid an error. */
2189 /* We use char because int might match the return type of a gcc2
2190 builtin and then its argument prototype would still apply. */
2191 char pthread_join();
2197 if { (eval echo configure:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2199 eval "ac_cv_lib_$ac_lib_var=yes"
2201 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2204 eval "ac_cv_lib_$ac_lib_var=no"
2207 LIBS="$ac_save_LIBS"
2210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2211 echo "$ac_t""yes" 1>&6
2212 PTHREADLIB="-lpthread"
2215 echo "$ac_t""no" 1>&6
2221 echo $ac_n "checking for library containing sem_init""... $ac_c" 1>&6
2222 echo "configure:2223: checking for library containing sem_init" >&5
2223 if eval "test \"`echo '$''{'ac_cv_search_sem_init'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 ac_func_search_save_LIBS="$LIBS"
2227 ac_cv_search_sem_init="no"
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 /* Override any gcc2 internal prototype to avoid an error. */
2232 /* We use char because int might match the return type of a gcc2
2233 builtin and then its argument prototype would still apply. */
2240 if { (eval echo configure:2241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2242 ac_cv_search_sem_init="none required"
2244 echo "configure: failed program was:" >&5
2245 cat conftest.$ac_ext >&5
2248 test "$ac_cv_search_sem_init" = "no" && for i in pthread rt; do
2249 LIBS="-l$i "-lpthread"
2250 $ac_func_search_save_LIBS"
2251 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2254 /* Override any gcc2 internal prototype to avoid an error. */
2255 /* We use char because int might match the return type of a gcc2
2256 builtin and then its argument prototype would still apply. */
2263 if { (eval echo configure:2264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2265 ac_cv_search_sem_init="-l$i"
2268 echo "configure: failed program was:" >&5
2269 cat conftest.$ac_ext >&5
2273 LIBS="$ac_func_search_save_LIBS"
2276 echo "$ac_t""$ac_cv_search_sem_init" 1>&6
2277 if test "$ac_cv_search_sem_init" != "no"; then
2278 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
2285 if test "X$PTHREADLIB" = "X"; then
2286 SAVED_CFLAGS=$CFLAGS
2287 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
2288 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2289 echo "configure:2290: checking for pthread_create in -lc_r" >&5
2290 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 ac_save_LIBS="$LIBS"
2296 cat > conftest.$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2299 /* Override any gcc2 internal prototype to avoid an error. */
2300 /* We use char because int might match the return type of a gcc2
2301 builtin and then its argument prototype would still apply. */
2302 char pthread_create();
2308 if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2310 eval "ac_cv_lib_$ac_lib_var=yes"
2312 echo "configure: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2315 eval "ac_cv_lib_$ac_lib_var=no"
2318 LIBS="$ac_save_LIBS"
2321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2322 echo "$ac_t""yes" 1>&6
2326 echo "$ac_t""no" 1>&6
2331 if test "x$PTHREADLIB" != "x"; then
2332 LIBS="$LIBS $PTHREADLIB"
2333 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
2337 if test "x$PTHREADLIB" = "x"; then
2338 CFLAGS=$SAVED_CFLAGS
2339 ac_cv_header_pthread_h="no"
2344 echo $ac_n "checking for getsockname in -lsocket""... $ac_c" 1>&6
2345 echo "configure:2346: checking for getsockname in -lsocket" >&5
2346 ac_lib_var=`echo socket'_'getsockname | sed 'y%./+-%__p_%'`
2347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 ac_save_LIBS="$LIBS"
2351 LIBS="-lsocket $LIBS"
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 /* Override any gcc2 internal prototype to avoid an error. */
2356 /* We use char because int might match the return type of a gcc2
2357 builtin and then its argument prototype would still apply. */
2364 if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2366 eval "ac_cv_lib_$ac_lib_var=yes"
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2371 eval "ac_cv_lib_$ac_lib_var=no"
2374 LIBS="$ac_save_LIBS"
2377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2378 echo "$ac_t""yes" 1>&6
2379 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2381 cat >> confdefs.h <<EOF
2382 #define $ac_tr_lib 1
2385 LIBS="-lsocket $LIBS"
2388 echo "$ac_t""no" 1>&6
2392 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
2393 echo "configure:2394: checking for inet_aton in -lresolv" >&5
2394 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
2395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 ac_save_LIBS="$LIBS"
2399 LIBS="-lresolv $LIBS"
2400 cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2403 /* Override any gcc2 internal prototype to avoid an error. */
2404 /* We use char because int might match the return type of a gcc2
2405 builtin and then its argument prototype would still apply. */
2412 if { (eval echo configure:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2414 eval "ac_cv_lib_$ac_lib_var=yes"
2416 echo "configure: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2419 eval "ac_cv_lib_$ac_lib_var=no"
2422 LIBS="$ac_save_LIBS"
2425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2426 echo "$ac_t""yes" 1>&6
2427 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2428 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2429 cat >> confdefs.h <<EOF
2430 #define $ac_tr_lib 1
2433 LIBS="-lresolv $LIBS"
2436 echo "$ac_t""no" 1>&6
2440 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
2441 echo "configure:2442: checking for inet_ntoa in -lnsl" >&5
2442 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
2443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2446 ac_save_LIBS="$LIBS"
2448 cat > conftest.$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2451 /* Override any gcc2 internal prototype to avoid an error. */
2452 /* We use char because int might match the return type of a gcc2
2453 builtin and then its argument prototype would still apply. */
2460 if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2462 eval "ac_cv_lib_$ac_lib_var=yes"
2464 echo "configure: failed program was:" >&5
2465 cat conftest.$ac_ext >&5
2467 eval "ac_cv_lib_$ac_lib_var=no"
2470 LIBS="$ac_save_LIBS"
2473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2474 echo "$ac_t""yes" 1>&6
2475 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2476 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2477 cat >> confdefs.h <<EOF
2478 #define $ac_tr_lib 1
2484 echo "$ac_t""no" 1>&6
2490 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2493 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2494 echo "configure:2495: checking for $ac_hdr that defines DIR" >&5
2495 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 cat > conftest.$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 #include <sys/types.h>
2507 if { (eval echo configure:2508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2509 eval "ac_cv_header_dirent_$ac_safe=yes"
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2514 eval "ac_cv_header_dirent_$ac_safe=no"
2518 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2521 cat >> confdefs.h <<EOF
2522 #define $ac_tr_hdr 1
2524 ac_header_dirent=$ac_hdr; break
2526 echo "$ac_t""no" 1>&6
2529 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2530 if test $ac_header_dirent = dirent.h; then
2531 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2532 echo "configure:2533: checking for opendir in -ldir" >&5
2533 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2534 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2537 ac_save_LIBS="$LIBS"
2539 cat > conftest.$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2542 /* Override any gcc2 internal prototype to avoid an error. */
2543 /* We use char because int might match the return type of a gcc2
2544 builtin and then its argument prototype would still apply. */
2551 if { (eval echo configure:2552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2553 eval "ac_cv_lib_$ac_lib_var=yes"
2555 echo "configure: failed program was:" >&5
2556 cat conftest.$ac_ext >&5
2558 eval "ac_cv_lib_$ac_lib_var=no"
2561 LIBS="$ac_save_LIBS"
2564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2565 echo "$ac_t""yes" 1>&6
2568 echo "$ac_t""no" 1>&6
2572 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2573 echo "configure:2574: checking for opendir in -lx" >&5
2574 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 ac_save_LIBS="$LIBS"
2580 cat > conftest.$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2583 /* Override any gcc2 internal prototype to avoid an error. */
2584 /* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2592 if { (eval echo configure:2593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2594 eval "ac_cv_lib_$ac_lib_var=yes"
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2599 eval "ac_cv_lib_$ac_lib_var=no"
2602 LIBS="$ac_save_LIBS"
2605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2609 echo "$ac_t""no" 1>&6
2614 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2615 echo "configure:2616: checking for ANSI C header files" >&5
2616 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2628 { (eval echo configure:2629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2630 if test -z "$ac_err"; then
2632 ac_cv_header_stdc=yes
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2638 ac_cv_header_stdc=no
2642 if test $ac_cv_header_stdc = yes; then
2643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2644 cat > conftest.$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2650 egrep "memchr" >/dev/null 2>&1; then
2654 ac_cv_header_stdc=no
2660 if test $ac_cv_header_stdc = yes; then
2661 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2668 egrep "free" >/dev/null 2>&1; then
2672 ac_cv_header_stdc=no
2678 if test $ac_cv_header_stdc = yes; then
2679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2680 if test "$cross_compiling" = yes; then
2683 cat > conftest.$ac_ext <<EOF
2684 #line 2685 "configure"
2685 #include "confdefs.h"
2687 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2688 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2689 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2690 int main () { int i; for (i = 0; i < 256; i++)
2691 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2695 if { (eval echo configure:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2699 echo "configure: failed program was:" >&5
2700 cat conftest.$ac_ext >&5
2702 ac_cv_header_stdc=no
2710 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2711 if test $ac_cv_header_stdc = yes; then
2712 cat >> confdefs.h <<\EOF
2713 #define STDC_HEADERS 1
2718 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2719 echo "configure:2720: checking whether time.h and sys/time.h may both be included" >&5
2720 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2723 cat > conftest.$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2726 #include <sys/types.h>
2727 #include <sys/time.h>
2733 if { (eval echo configure:2734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2735 ac_cv_header_time=yes
2737 echo "configure: failed program was:" >&5
2738 cat conftest.$ac_ext >&5
2740 ac_cv_header_time=no
2745 echo "$ac_t""$ac_cv_header_time" 1>&6
2746 if test $ac_cv_header_time = yes; then
2747 cat >> confdefs.h <<\EOF
2748 #define TIME_WITH_SYS_TIME 1
2753 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2754 echo "configure:2755: checking for sys/wait.h that is POSIX.1 compatible" >&5
2755 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2758 cat > conftest.$ac_ext <<EOF
2759 #line 2760 "configure"
2760 #include "confdefs.h"
2761 #include <sys/types.h>
2762 #include <sys/wait.h>
2764 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2767 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2772 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2775 if { (eval echo configure:2776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2777 ac_cv_header_sys_wait_h=yes
2779 echo "configure: failed program was:" >&5
2780 cat conftest.$ac_ext >&5
2782 ac_cv_header_sys_wait_h=no
2787 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2788 if test $ac_cv_header_sys_wait_h = yes; then
2789 cat >> confdefs.h <<\EOF
2790 #define HAVE_SYS_WAIT_H 1
2824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2826 echo "configure:2827: checking for $ac_hdr" >&5
2827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 cat > conftest.$ac_ext <<EOF
2831 #line 2832 "configure"
2832 #include "confdefs.h"
2835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2836 { (eval echo configure:2837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2838 if test -z "$ac_err"; then
2840 eval "ac_cv_header_$ac_safe=yes"
2843 echo "configure: failed program was:" >&5
2844 cat conftest.$ac_ext >&5
2846 eval "ac_cv_header_$ac_safe=no"
2850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2851 echo "$ac_t""yes" 1>&6
2852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2853 cat >> confdefs.h <<EOF
2854 #define $ac_tr_hdr 1
2858 echo "$ac_t""no" 1>&6
2864 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
2865 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
2866 echo "configure:2867: checking for regex.h" >&5
2867 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2870 cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2876 { (eval echo configure:2877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2878 if test -z "$ac_err"; then
2880 eval "ac_cv_header_$ac_safe=yes"
2883 echo "configure: failed program was:" >&5
2884 cat conftest.$ac_ext >&5
2886 eval "ac_cv_header_$ac_safe=no"
2890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2891 echo "$ac_t""yes" 1>&6
2892 cat >> confdefs.h <<\EOF
2893 #define HAVE_REGEX_H 1
2897 echo "$ac_t""no" 1>&6
2900 if test "x$ac_cv_header_regex_h" = "xyes"; then
2903 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2913 egrep "yes" >/dev/null 2>&1; then
2915 cat >> confdefs.h <<\EOF
2916 #define HAVE_REG_EXTENDED 1
2926 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
2928 cat >> confdefs.h <<\EOF
2934 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
2936 cat >> confdefs.h <<\EOF
2944 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2945 echo "configure:2946: checking for off_t" >&5
2946 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 cat > conftest.$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2952 #include <sys/types.h>
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2959 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2961 ac_cv_type_off_t=yes
2969 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2970 if test $ac_cv_type_off_t = no; then
2971 cat >> confdefs.h <<\EOF
2977 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2978 echo "configure:2979: checking for pid_t" >&5
2979 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2982 cat > conftest.$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2985 #include <sys/types.h>
2991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2992 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2994 ac_cv_type_pid_t=yes
3002 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3003 if test $ac_cv_type_pid_t = no; then
3004 cat >> confdefs.h <<\EOF
3010 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3011 echo "configure:3012: checking for size_t" >&5
3012 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3018 #include <sys/types.h>
3024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3025 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3027 ac_cv_type_size_t=yes
3030 ac_cv_type_size_t=no
3035 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3036 if test $ac_cv_type_size_t = no; then
3037 cat >> confdefs.h <<\EOF
3038 #define size_t unsigned
3043 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3044 echo "configure:3045: checking for uid_t in sys/types.h" >&5
3045 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3046 echo $ac_n "(cached) $ac_c" 1>&6
3048 cat > conftest.$ac_ext <<EOF
3049 #line 3050 "configure"
3050 #include "confdefs.h"
3051 #include <sys/types.h>
3053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3054 egrep "uid_t" >/dev/null 2>&1; then
3056 ac_cv_type_uid_t=yes
3065 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3066 if test $ac_cv_type_uid_t = no; then
3067 cat >> confdefs.h <<\EOF
3071 cat >> confdefs.h <<\EOF
3079 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3080 echo "configure:3081: checking for socklen_t" >&5
3081 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 ac_cv_type_socklen_t=no
3085 cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3088 #ifdef HAVE_SYS_TYPES_H
3089 #include <sys/types.h>
3091 #ifdef HAVE_SYS_SOCKET_H
3092 #include <sys/socket.h>
3099 if { (eval echo configure:3100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3101 ac_cv_type_socklen_t=yes
3103 echo "configure: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3111 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
3113 if test "$ac_cv_type_socklen_t" != "yes"; then
3114 cat >> confdefs.h <<\EOF
3115 #define socklen_t int
3122 echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
3123 echo "configure:3124: checking for uint8_t" >&5
3124 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
3125 echo $ac_n "(cached) $ac_c" 1>&6
3127 ac_cv_type_uint8_t=no
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #ifdef HAVE_INTTYPES_H
3132 #include <inttypes.h>
3134 #ifdef HAVE_STDINT_H
3142 if { (eval echo configure:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3144 ac_cv_type_uint8_t=yes
3146 echo "configure: failed program was:" >&5
3147 cat conftest.$ac_ext >&5
3154 echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
3156 if test "$ac_cv_type_uint8_t" != "yes"; then
3157 cat >> confdefs.h <<\EOF
3158 #define uint8_t unsigned char
3165 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3166 echo "configure:3167: checking for uint32_t" >&5
3167 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 ac_cv_type_uint32_t=no
3171 cat > conftest.$ac_ext <<EOF
3172 #line 3173 "configure"
3173 #include "confdefs.h"
3174 #ifdef HAVE_INTTYPES_H
3175 #include <inttypes.h>
3177 #ifdef HAVE_STDINT_H
3185 if { (eval echo configure:3186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3187 ac_cv_type_uint32_t=yes
3189 echo "configure: failed program was:" >&5
3190 cat conftest.$ac_ext >&5
3197 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
3199 if test "$ac_cv_type_uint32_t" != "yes"; then
3200 cat >> confdefs.h <<\EOF
3201 #define uint32_t unsigned int
3231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_func" >&5
3233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 /* System header to define __stub macros and hopefully few prototypes,
3240 which can conflict with char $ac_func(); below. */
3242 /* Override any gcc2 internal prototype to avoid an error. */
3243 /* We use char because int might match the return type of a gcc2
3244 builtin and then its argument prototype would still apply. */
3249 /* The GNU C library defines this for functions which it implements
3250 to always fail with ENOSYS. Some functions are actually named
3251 something starting with __ and the normal name is an alias. */
3252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3260 if { (eval echo configure:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3262 eval "ac_cv_func_$ac_func=yes"
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3267 eval "ac_cv_func_$ac_func=no"
3272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3273 echo "$ac_t""yes" 1>&6
3274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3275 cat >> confdefs.h <<EOF
3276 #define $ac_tr_func 1
3280 echo "$ac_t""no" 1>&6
3295 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3296 echo "configure:3297: checking whether $ac_func must be declared" >&5
3297 if eval "test \"`echo '$''{'radius_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3306 #ifdef HAVE_UNISTD_H
3315 #ifdef HAVE_RESOURCE_H
3316 #include <resource.h>
3318 #ifdef HAVE_GETOPT_H
3321 #ifdef HAVE_MALLOC_H
3330 #ifdef HAVE_SYS_SELECT_H
3331 #include <sys/select.h>
3339 #ifdef HAVE_SYSLOG_H
3342 #ifdef HAVE_INTTYPES_H
3343 #include <inttypes.h>
3345 #ifdef HAVE_STDINT_H
3348 #ifdef HAVE_ARPA_INET_H
3349 #include <arpa/inet.h>
3353 char *(*pfn) = (char *(*)) $ac_func
3356 if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358 eval "radius_cv_decl_needed_$ac_func=no"
3360 echo "configure: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3363 eval "radius_cv_decl_needed_$ac_func=yes"
3368 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
3369 echo "$ac_t""yes" 1>&6
3370 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3371 cat >> confdefs.h <<EOF
3372 #define $radius_tr_decl 1
3376 echo "$ac_t""no" 1>&6
3382 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3383 echo "configure:3384: checking return type of signal handlers" >&5
3384 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3387 cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 #include <sys/types.h>
3396 extern "C" void (*signal (int, void (*)(int)))(int);
3398 void (*signal ()) ();
3405 if { (eval echo configure:3406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3407 ac_cv_type_signal=void
3409 echo "configure: failed program was:" >&5
3410 cat conftest.$ac_ext >&5
3412 ac_cv_type_signal=int
3417 echo "$ac_t""$ac_cv_type_signal" 1>&6
3418 cat >> confdefs.h <<EOF
3419 #define RETSIGTYPE $ac_cv_type_signal
3424 if test "x$ac_cv_header_utmpx_h" = "xyes"
3427 echo $ac_n "checking for ut_xtime in struct utmpx""... $ac_c" 1>&6
3428 echo "configure:3429: checking for ut_xtime in struct utmpx" >&5
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3437 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
3441 int foo = offsetof(struct utmpx, ut_xtime)
3444 if { (eval echo configure:3445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3455 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
3456 if test "x$has_element" != "x"; then
3457 echo "$ac_t""yes" 1>&6
3458 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
3460 echo "$ac_t""no" 1>&6
3461 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
3464 if test "x$ac_cv_type_struct_utmpx_ut_xtime" = "x"
3466 cat >> confdefs.h <<\EOF
3467 #define ut_xtime ut_tv.tv_sec
3474 echo $ac_n "checking for working const""... $ac_c" 1>&6
3475 echo "configure:3476: checking for working const" >&5
3476 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3485 /* Ultrix mips cc rejects this. */
3486 typedef int charset[2]; const charset x;
3487 /* SunOS 4.1.1 cc rejects this. */
3488 char const *const *ccp;
3490 /* NEC SVR4.0.2 mips cc rejects this. */
3491 struct point {int x, y;};
3492 static struct point const zero = {0,0};
3493 /* AIX XL C 1.02.0.0 rejects this.
3494 It does not let you subtract one const X* pointer from another in an arm
3495 of an if-expression whose if-part is not a constant expression */
3496 const char *g = "string";
3497 ccp = &g + (g ? g-g : 0);
3498 /* HPUX 7.0 cc rejects these. */
3501 ccp = (char const *const *) p;
3502 { /* SCO 3.2v4 cc rejects this. */
3504 char const *s = 0 ? (char *) 0 : (char const *) 0;
3508 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3510 const int *foo = &x[0];
3513 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3514 typedef const int *iptr;
3518 { /* AIX XL C 1.02.0.0 rejects this saying
3519 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3520 struct s { int j; const int *ap[3]; };
3521 struct s *b; b->j = 5;
3523 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3529 if { (eval echo configure:3530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3533 echo "configure: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3541 echo "$ac_t""$ac_cv_c_const" 1>&6
3542 if test $ac_cv_c_const = no; then
3543 cat >> confdefs.h <<\EOF
3550 echo $ac_n "checking type of OS""... $ac_c" 1>&6
3551 echo "configure:3552: checking type of OS" >&5
3553 echo "$ac_t""$OS" 1>&6
3554 if test "$OS" = "OS/2"; then
3561 if test "x$GCC" = "xyes"; then
3562 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
3565 echo $ac_n "checking for developer gcc flags""... $ac_c" 1>&6
3566 echo "configure:3567: checking for developer gcc flags" >&5
3567 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
3568 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
3569 CFLAGS="$CFLAGS $devflags"
3571 echo "$ac_t""yes. Using $devflags" 1>&6
3574 CFLAGS="$CFLAGS -DNDEBUG"
3576 echo "$ac_t""no." 1>&6
3580 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3581 echo "configure:3582: checking for crypt in -lcrypt" >&5
3582 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 ac_save_LIBS="$LIBS"
3587 LIBS="-lcrypt $LIBS"
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 /* Override any gcc2 internal prototype to avoid an error. */
3592 /* We use char because int might match the return type of a gcc2
3593 builtin and then its argument prototype would still apply. */
3600 if { (eval echo configure:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3602 eval "ac_cv_lib_$ac_lib_var=yes"
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3607 eval "ac_cv_lib_$ac_lib_var=no"
3610 LIBS="$ac_save_LIBS"
3613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3614 echo "$ac_t""yes" 1>&6
3618 echo "$ac_t""no" 1>&6
3621 if test "$CRYPTLIB" != ""; then
3622 cat >> confdefs.h <<\EOF
3623 #define HAVE_CRYPT 1
3627 echo $ac_n "checking for crypt""... $ac_c" 1>&6
3628 echo "configure:3629: checking for crypt" >&5
3629 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 /* System header to define __stub macros and hopefully few prototypes,
3636 which can conflict with char crypt(); below. */
3638 /* Override any gcc2 internal prototype to avoid an error. */
3639 /* We use char because int might match the return type of a gcc2
3640 builtin and then its argument prototype would still apply. */
3645 /* The GNU C library defines this for functions which it implements
3646 to always fail with ENOSYS. Some functions are actually named
3647 something starting with __ and the normal name is an alias. */
3648 #if defined (__stub_crypt) || defined (__stub___crypt)
3656 if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3658 eval "ac_cv_func_crypt=yes"
3660 echo "configure: failed program was:" >&5
3661 cat conftest.$ac_ext >&5
3663 eval "ac_cv_func_crypt=no"
3668 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
3669 echo "$ac_t""yes" 1>&6
3670 cat >> confdefs.h <<\EOF
3671 #define HAVE_CRYPT 1
3675 echo "$ac_t""no" 1>&6
3680 echo $ac_n "checking for setkey in -lcipher""... $ac_c" 1>&6
3681 echo "configure:3682: checking for setkey in -lcipher" >&5
3682 ac_lib_var=`echo cipher'_'setkey | sed 'y%./+-%__p_%'`
3683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3686 ac_save_LIBS="$LIBS"
3687 LIBS="-lcipher $LIBS"
3688 cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3691 /* Override any gcc2 internal prototype to avoid an error. */
3692 /* We use char because int might match the return type of a gcc2
3693 builtin and then its argument prototype would still apply. */
3700 if { (eval echo configure:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3702 eval "ac_cv_lib_$ac_lib_var=yes"
3704 echo "configure: failed program was:" >&5
3705 cat conftest.$ac_ext >&5
3707 eval "ac_cv_lib_$ac_lib_var=no"
3710 LIBS="$ac_save_LIBS"
3713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3714 echo "$ac_t""yes" 1>&6
3715 CRYPTLIB="${CRYPTLIB} -lcipher"
3718 echo "$ac_t""no" 1>&6
3723 if test "x$WITH_SNMP" = "xyes"; then
3728 echo $ac_n "checking for asn1.h""... $ac_c" 1>&6
3729 echo "configure:3730: checking for asn1.h" >&5
3731 cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3735 #ifdef HAVE_SYS_TYPES_H
3736 #include <sys/types.h>
3738 #ifdef HAVE_STDINT_H
3747 #ifdef HAVE_UNISTD_H
3755 if { (eval echo configure:3756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3759 echo "configure: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3766 if test "x$SNMP_INCLUDE" = "x"; then
3767 old_CFLAGS="$CFLAGS"
3768 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
3769 CFLAGS="$old_CFLAGS -I$try"
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3774 #ifdef HAVE_SYS_TYPES_H
3775 #include <sys/types.h>
3777 #ifdef HAVE_STDINT_H
3786 #ifdef HAVE_UNISTD_H
3794 if { (eval echo configure:3795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3796 SNMP_INCLUDE="-I$try"
3798 echo "configure: failed program was:" >&5
3799 cat conftest.$ac_ext >&5
3804 if test "x$SNMP_INCLUDE" != "x"; then
3808 CFLAGS="$old_CFLAGS"
3811 if test "x$SNMP_INCLUDE" = "x"; then
3812 echo "$ac_t""no" 1>&6
3814 echo "$ac_t""yes" 1>&6
3815 cat >> confdefs.h <<\EOF
3816 #define HAVE_ASN1_H 1
3820 old_CFLAGS="$CFLAGS"
3821 CFLAGS="$CFLAGS $SNMP_INCLUDE"
3823 echo $ac_n "checking for snmp.h""... $ac_c" 1>&6
3824 echo "configure:3825: checking for snmp.h" >&5
3825 cat > conftest.$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3829 #ifdef HAVE_SYS_TYPES_H
3830 #include <sys/types.h>
3832 #ifdef HAVE_STDINT_H
3841 #ifdef HAVE_UNISTD_H
3852 if { (eval echo configure:3853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3854 cat >> confdefs.h <<\EOF
3855 #define HAVE_SNMP_H 1
3857 ac_cv_header_snmp_h=yes
3859 echo "configure: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3863 if test "x$ac_cv_header_snmp_h" = "xyes"; then
3864 echo "$ac_t""yes" 1>&6
3866 echo "$ac_t""no" 1>&6
3869 echo $ac_n "checking for snmp_impl.h""... $ac_c" 1>&6
3870 echo "configure:3871: checking for snmp_impl.h" >&5
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3875 #ifdef HAVE_SYS_TYPES_H
3876 #include <sys/types.h>
3878 #ifdef HAVE_STDINT_H
3887 #ifdef HAVE_UNISTD_H
3896 #include <snmp_impl.h>
3901 if { (eval echo configure:3902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3903 cat >> confdefs.h <<\EOF
3904 #define HAVE_SNMP_IMPL_H 1
3906 ac_cv_header_snmp_impl_h=yes
3908 echo "configure: failed program was:" >&5
3909 cat conftest.$ac_ext >&5
3912 if test "x$ac_cv_header_snmp_h" = "xyes"; then
3913 echo "$ac_t""yes" 1>&6
3915 echo "$ac_t""no" 1>&6
3918 echo $ac_n "checking for snmp_build_var_op in -lsnmp""... $ac_c" 1>&6
3919 echo "configure:3920: checking for snmp_build_var_op in -lsnmp" >&5
3922 LIBS="$old_LIBS -lsnmp"
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 extern char snmp_build_var_op();
3931 if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3935 echo "configure: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3942 if test "x$SNMP_LIBS" = "x"; then
3943 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
3944 LIBS="$old_LIBS -L$try -lsnmp"
3945 cat > conftest.$ac_ext <<EOF
3946 #line 3947 "configure"
3947 #include "confdefs.h"
3948 extern char snmp_build_var_op();
3953 if { (eval echo configure:3954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3955 SNMP_LIBS="-L$try -lsnmp"
3957 echo "configure: failed program was:" >&5
3958 cat conftest.$ac_ext >&5
3963 if test "x$SNMP_LIBS" != "x"; then
3966 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3970 extern char snmp_build_var_op();
3975 if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3977 SNMP_LIBS="-L$try -lsnmp -lcrypto"
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3985 if test "x$SNMP_LIBS" != "x"; then
3992 CFLAGS="$old_CFLAGS"
3993 if test "x$SNMP_LIBS" = "x"; then
3994 echo "$ac_t""no" 1>&6
3997 echo "$ac_t""yes" 1>&6
3998 cat >> confdefs.h <<\EOF
4002 cat >> confdefs.h <<\EOF
4003 #define HAVE_LIBSNMP 1
4011 if test "X$ac_cv_func_sem_init" = "Xno"; then
4013 echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
4014 echo "configure:4015: checking for sem_init in -lposix4" >&5
4015 ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
4016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4019 ac_save_LIBS="$LIBS"
4020 LIBS="-lposix4 $LIBS"
4021 cat > conftest.$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4024 /* Override any gcc2 internal prototype to avoid an error. */
4025 /* We use char because int might match the return type of a gcc2
4026 builtin and then its argument prototype would still apply. */
4033 if { (eval echo configure:4034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4035 eval "ac_cv_lib_$ac_lib_var=yes"
4037 echo "configure: failed program was:" >&5
4038 cat conftest.$ac_ext >&5
4040 eval "ac_cv_lib_$ac_lib_var=no"
4043 LIBS="$ac_save_LIBS"
4046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4047 echo "$ac_t""yes" 1>&6
4048 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4049 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4050 cat >> confdefs.h <<EOF
4051 #define $ac_tr_lib 1
4054 LIBS="-lposix4 $LIBS"
4057 echo "$ac_t""no" 1>&6
4061 if test "X$ac_cv_lib_posix4_sem_init" = "X"; then
4062 if test "$WITH_THREAD_POOL" = "yes"; then
4063 echo "configure: warning: You do not have posix semaphores. Disabling thread pools" 1>&2
4070 gethostbyaddrrstyle=""
4071 echo $ac_n "checking gethostbyaddr_r() syntax""... $ac_c" 1>&6
4072 echo "configure:4073: checking gethostbyaddr_r() syntax" >&5
4073 cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4078 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
4081 if { (eval echo configure:4082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4084 cat >> confdefs.h <<\EOF
4085 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
4088 gethostbyaddrrstyle=SYSV
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4095 cat > conftest.$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4100 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
4103 if { (eval echo configure:4104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4106 cat >> confdefs.h <<\EOF
4107 #define GETHOSTBYADDRRSTYLE GNUSTYLE
4110 gethostbyaddrrstyle=GNU
4113 echo "configure: failed program was:" >&5
4114 cat conftest.$ac_ext >&5
4117 if test "x$gethostbyaddrrstyle" = "x"; then
4118 echo "$ac_t""none! It must not exist, here." 1>&6
4120 echo "$ac_t""${gethostbyaddrrstyle}-style" 1>&6
4128 echo $ac_n "checking for isql.h""... $ac_c" 1>&6
4129 echo "configure:4130: checking for isql.h" >&5
4131 cat > conftest.$ac_ext <<EOF
4132 #line 4133 "configure"
4133 #include "confdefs.h"
4139 if { (eval echo configure:4140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4143 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4150 if test "x$ODBC_INCLUDE" = "x"; then
4151 old_CFLAGS="$CFLAGS"
4155 if test "x$LOCATE" != "x"; then
4159 for x in `${LOCATE} $file 2>/dev/null`; do
4160 base=`echo $x | sed "s%/${file}%%"`
4161 if test "x$x" = "x$base"; then
4165 dir=`${DIRNAME} $x 2>/dev/null`
4166 exclude=`echo ${dir} | ${GREP} /home`
4167 if test "x$exclude" != "x"; then
4171 already=`echo \$odbc_include_dir ${DIRS} | ${GREP} ${dir}`
4172 if test "x$already" = "x"; then
4178 eval "odbc_include_dir=\"\$odbc_include_dir $DIRS\""
4181 for try in /usr/include /usr/local/include/odbc /usr/local/odbc/include $odbc_include_dir; do
4182 CFLAGS="$old_CFLAGS -I$try"
4183 cat > conftest.$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4191 if { (eval echo configure:4192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4193 ODBC_INCLUDE="-I$try"
4195 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4201 if test "x$ODBC_INCLUDE" != "x"; then
4205 CFLAGS="$old_CFLAGS"
4208 if test "x$ODBC_INCLUDE" = "x"; then
4209 echo "$ac_t""no" 1>&6
4211 echo "$ac_t""yes" 1>&6
4213 echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
4214 echo "configure:4215: checking for SQLConnect in -lodbc" >&5
4220 if test "x$LOCATE" != "x"; then
4222 file=libodbc${libltdl_cv_shlibext}
4224 for x in `${LOCATE} $file 2>/dev/null`; do
4225 base=`echo $x | sed "s%/${file}%%"`
4226 if test "x$x" = "x$base"; then
4230 dir=`${DIRNAME} $x 2>/dev/null`
4231 exclude=`echo ${dir} | ${GREP} /home`
4232 if test "x$exclude" != "x"; then
4236 already=`echo \$odbc_lib_dir ${DIRS} | ${GREP} ${dir}`
4237 if test "x$already" = "x"; then
4243 eval "odbc_lib_dir=\"\$odbc_lib_dir $DIRS\""
4247 if test "x$LOCATE" != "x"; then
4251 for x in `${LOCATE} $file 2>/dev/null`; do
4252 base=`echo $x | sed "s%/${file}%%"`
4253 if test "x$x" = "x$base"; then
4257 dir=`${DIRNAME} $x 2>/dev/null`
4258 exclude=`echo ${dir} | ${GREP} /home`
4259 if test "x$exclude" != "x"; then
4263 already=`echo \$odbc_lib_dir ${DIRS} | ${GREP} ${dir}`
4264 if test "x$already" = "x"; then
4270 eval "odbc_lib_dir=\"\$odbc_lib_dir $DIRS\""
4273 for try in /usr/lib /usr/lib/odbc /usr/local/lib/odbc /usr/local/odbc/lib $odbc_lib_dir; do
4274 LIBS="$old_LIBS -L$try -lodbc"
4275 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4278 extern char SQLConnect();
4283 if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4285 ODBC_LIBS="-L$try -lodbc"
4287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4293 if test "x$ODBC_LIBS" != "x"; then
4299 if test "x$ODBC_LIBS" = "x"; then
4300 echo "$ac_t""no" 1>&6
4303 echo "$ac_t""yes" 1>&6
4304 cat >> confdefs.h <<\EOF
4305 #define HAVE_ISQL_H 1
4313 LIBTOOL="`pwd`/libtool"
4321 if test "$WITH_THREAD_POOL" = "yes"; then
4322 if test "$WITH_THREADS" != "yes"; then
4323 { echo "configure: error: You must have threads enabled for thread pools to work." 1>&2; exit 1; }
4326 if test "X$PTHREADLIB" = "X"; then
4327 { echo "configure: error: You must have threading libraries for thread pools to work." 1>&2; exit 1; }
4334 if test "x$EXPERIMENTAL" != "x"; then
4335 for foo in `find src/modules -name configure -print`; do
4336 bar=`echo $foo | sed 's%/configure$%%g'`
4337 mysubdirs="$mysubdirs $bar"
4340 mysubdirs=`cat src/modules/stable`
4343 subdirs="libltdl $mysubdirs"
4350 USE_SHARED_LIBS=$enable_shared
4352 USE_STATIC_LIBS=$enable_static
4361 cat > confcache <<\EOF
4362 # This file is a shell script that caches the results of configure
4363 # tests run on this system so they can be shared between configure
4364 # scripts and configure runs. It is not useful on other systems.
4365 # If it contains results you don't want to keep, you may remove or edit it.
4367 # By default, configure uses ./config.cache as the cache file,
4368 # creating it if it does not exist already. You can give configure
4369 # the --cache-file=FILE option to use a different cache file; that is
4370 # what configure does when it calls configure scripts in
4371 # subdirectories, so they share the cache.
4372 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4373 # config.status only pays attention to the cache file if you give it the
4374 # --recheck option to rerun configure.
4377 # The following way of writing the cache mishandles newlines in values,
4378 # but we know of no workaround that is simple, portable, and efficient.
4379 # So, don't put newlines in cache variables' values.
4380 # Ultrix sh set writes to stderr and can't be redirected directly,
4381 # and sets the high bit in the cache file unless we assign to the vars.
4383 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4385 # `set' does not quote correctly, so add quotes (double-quote substitution
4386 # turns \\\\ into \\, and sed turns \\ into \).
4388 -e "s/'/'\\\\''/g" \
4389 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4392 # `set' quotes correctly as required by POSIX, so do not add quotes.
4393 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4396 if cmp -s $cache_file confcache; then
4399 if test -w $cache_file; then
4400 echo "updating cache $cache_file"
4401 cat confcache > $cache_file
4403 echo "not updating unwritable cache $cache_file"
4408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4410 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4411 # Let make expand exec_prefix.
4412 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4414 # Any assignment to VPATH causes Sun make to only execute
4415 # the first set of double-colon rules, so remove it if not needed.
4416 # If there is a colon in the path, we need to keep it.
4417 if test "x$srcdir" = x.; then
4418 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4421 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4423 DEFS=-DHAVE_CONFIG_H
4425 # Without the "./", some shells look in PATH for config.status.
4426 : ${CONFIG_STATUS=./config.status}
4428 echo creating $CONFIG_STATUS
4429 rm -f $CONFIG_STATUS
4430 cat > $CONFIG_STATUS <<EOF
4432 # Generated automatically by configure.
4433 # Run this file to recreate the current configuration.
4434 # This directory was configured as follows,
4435 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4437 # $0 $ac_configure_args
4439 # Compiler output produced by configure, useful for debugging
4440 # configure, is in ./config.log if it exists.
4442 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4445 case "\$ac_option" in
4446 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4447 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4448 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4449 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4450 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4452 -help | --help | --hel | --he | --h)
4453 echo "\$ac_cs_usage"; exit 0 ;;
4454 *) echo "\$ac_cs_usage"; exit 1 ;;
4458 ac_given_srcdir=$srcdir
4460 trap 'rm -fr `echo "\
4462 ./src/include/build-radpaths-h \
4463 ./src/main/checkrad.pl \
4464 ./src/main/radlast \
4465 ./src/main/radtest \
4466 ./scripts/rc.radiusd \
4467 ./scripts/radwatch \
4468 ./scripts/check-radiusd-config \
4469 ./scripts/radiusd.cron.daily \
4470 ./scripts/radiusd.cron.monthly \
4471 ./scripts/cryptpasswd \
4472 ./raddb/radiusd.conf
4473 src/include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4475 cat >> $CONFIG_STATUS <<EOF
4477 # Protect against being on the right side of a sed subst in config.status.
4478 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4479 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4483 s%@CFLAGS@%$CFLAGS%g
4484 s%@CPPFLAGS@%$CPPFLAGS%g
4485 s%@CXXFLAGS@%$CXXFLAGS%g
4486 s%@FFLAGS@%$FFLAGS%g
4488 s%@LDFLAGS@%$LDFLAGS%g
4490 s%@exec_prefix@%$exec_prefix%g
4491 s%@prefix@%$prefix%g
4492 s%@program_transform_name@%$program_transform_name%g
4493 s%@bindir@%$bindir%g
4494 s%@sbindir@%$sbindir%g
4495 s%@libexecdir@%$libexecdir%g
4496 s%@datadir@%$datadir%g
4497 s%@sysconfdir@%$sysconfdir%g
4498 s%@sharedstatedir@%$sharedstatedir%g
4499 s%@localstatedir@%$localstatedir%g
4500 s%@libdir@%$libdir%g
4501 s%@includedir@%$includedir%g
4502 s%@oldincludedir@%$oldincludedir%g
4503 s%@infodir@%$infodir%g
4504 s%@mandir@%$mandir%g
4507 s%@RANLIB@%$RANLIB%g
4511 s%@host_alias@%$host_alias%g
4512 s%@host_cpu@%$host_cpu%g
4513 s%@host_vendor@%$host_vendor%g
4514 s%@host_os@%$host_os%g
4516 s%@build_alias@%$build_alias%g
4517 s%@build_cpu@%$build_cpu%g
4518 s%@build_vendor@%$build_vendor%g
4519 s%@build_os@%$build_os%g
4521 s%@LIBTOOL@%$LIBTOOL%g
4522 s%@logdir@%$logdir%g
4523 s%@radacctdir@%$radacctdir%g
4524 s%@raddbdir@%$raddbdir%g
4525 s%@subdirs@%$subdirs%g
4527 s%@SNMPGET@%$SNMPGET%g
4528 s%@SNMPWALK@%$SNMPWALK%g
4529 s%@RUSERS@%$RUSERS%g
4530 s%@ACLOCAL@%$ACLOCAL%g
4531 s%@AUTOCONF@%$AUTOCONF%g
4532 s%@AUTOHEADER@%$AUTOHEADER%g
4533 s%@LOCATE@%$LOCATE%g
4534 s%@DIRNAME@%$DIRNAME%g
4537 s%@REGEX_EXTENDED@%$REGEX_EXTENDED%g
4538 s%@LIBPREFIX@%$LIBPREFIX%g
4539 s%@CRYPTLIB@%$CRYPTLIB%g
4540 s%@SNMP_LIBS@%$SNMP_LIBS%g
4541 s%@SNMP_INCLUDE@%$SNMP_INCLUDE%g
4542 s%@ODBC_LIBS@%$ODBC_LIBS%g
4543 s%@ODBC_INCLUDE@%$ODBC_INCLUDE%g
4544 s%@LIBLTDL@%$LIBLTDL%g
4545 s%@INCLTDL@%$INCLTDL%g
4546 s%@top_builddir@%$top_builddir%g
4547 s%@INSTALLSTRIP@%$INSTALLSTRIP%g
4548 s%@USE_SHARED_LIBS@%$USE_SHARED_LIBS%g
4549 s%@USE_STATIC_LIBS@%$USE_STATIC_LIBS%g
4550 s%@STATIC_MODULES@%$STATIC_MODULES%g
4551 s%@RADIUSD_MAJOR_VERSION@%$RADIUSD_MAJOR_VERSION%g
4552 s%@RADIUSD_MINOR_VERSION@%$RADIUSD_MINOR_VERSION%g
4553 s%@RADIUSD_VERSION@%$RADIUSD_VERSION%g
4558 cat >> $CONFIG_STATUS <<\EOF
4560 # Split the substitutions into bite-sized pieces for seds with
4561 # small command number limits, like on Digital OSF/1 and HP-UX.
4562 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4563 ac_file=1 # Number of current file.
4564 ac_beg=1 # First line for current file.
4565 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4568 while $ac_more_lines; do
4569 if test $ac_beg -gt 1; then
4570 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4572 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4574 if test ! -s conftest.s$ac_file; then
4576 rm -f conftest.s$ac_file
4578 if test -z "$ac_sed_cmds"; then
4579 ac_sed_cmds="sed -f conftest.s$ac_file"
4581 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4583 ac_file=`expr $ac_file + 1`
4585 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4588 if test -z "$ac_sed_cmds"; then
4593 cat >> $CONFIG_STATUS <<EOF
4595 CONFIG_FILES=\${CONFIG_FILES-"\
4597 ./src/include/build-radpaths-h \
4598 ./src/main/checkrad.pl \
4599 ./src/main/radlast \
4600 ./src/main/radtest \
4601 ./scripts/rc.radiusd \
4602 ./scripts/radwatch \
4603 ./scripts/check-radiusd-config \
4604 ./scripts/radiusd.cron.daily \
4605 ./scripts/radiusd.cron.monthly \
4606 ./scripts/cryptpasswd \
4607 ./raddb/radiusd.conf
4610 cat >> $CONFIG_STATUS <<\EOF
4611 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4612 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4614 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4615 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4616 *) ac_file_in="${ac_file}.in" ;;
4619 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4621 # Remove last slash and all that follows it. Not all systems have dirname.
4622 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4623 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4624 # The file is in a subdirectory.
4625 test ! -d "$ac_dir" && mkdir "$ac_dir"
4626 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4627 # A "../" for each directory in $ac_dir_suffix.
4628 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4630 ac_dir_suffix= ac_dots=
4633 case "$ac_given_srcdir" in
4635 if test -z "$ac_dots"; then top_srcdir=.
4636 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4637 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4639 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4640 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4644 echo creating "$ac_file"
4646 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4648 *Makefile*) ac_comsub="1i\\
4649 # $configure_input" ;;
4653 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4655 s%@configure_input@%$configure_input%g
4656 s%@srcdir@%$srcdir%g
4657 s%@top_srcdir@%$top_srcdir%g
4658 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4662 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4663 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4665 # ac_d sets the value in "#define NAME VALUE" lines.
4666 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4667 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4670 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4671 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4672 ac_uB='\([ ]\)%\1#\2define\3'
4675 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4676 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4677 ac_eB='$%\1#\2define\3'
4681 if test "${CONFIG_HEADERS+set}" != set; then
4683 cat >> $CONFIG_STATUS <<EOF
4684 CONFIG_HEADERS="src/include/autoconf.h"
4686 cat >> $CONFIG_STATUS <<\EOF
4688 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4689 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4691 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4692 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4693 *) ac_file_in="${ac_file}.in" ;;
4696 echo creating $ac_file
4698 rm -f conftest.frag conftest.in conftest.out
4699 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4700 cat $ac_file_inputs > conftest.in
4704 # Transform confdefs.h into a sed script conftest.vals that substitutes
4705 # the proper values into config.h.in to produce config.h. And first:
4706 # Protect against being on the right side of a sed subst in config.status.
4707 # Protect against being in an unquoted here document in config.status.
4709 cat > conftest.hdr <<\EOF
4712 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4716 sed -n -f conftest.hdr confdefs.h > conftest.vals
4719 # This sed command replaces #undef with comments. This is necessary, for
4720 # example, in the case of _POSIX_SOURCE, which is predefined and required
4721 # on some systems where configure will not decide to define it.
4722 cat >> conftest.vals <<\EOF
4723 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4726 # Break up conftest.vals because some shells have a limit on
4727 # the size of here documents, and old seds have small limits too.
4732 ac_lines=`grep -c . conftest.vals`
4733 # grep -c gives empty output for an empty file on some AIX systems.
4734 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4735 # Write a limited-size here document to conftest.frag.
4736 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4737 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4739 sed -f conftest.frag conftest.in > conftest.out
4741 mv conftest.out conftest.in
4743 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4745 mv conftest.tail conftest.vals
4749 cat >> $CONFIG_STATUS <<\EOF
4750 rm -f conftest.frag conftest.h
4751 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4752 cat conftest.in >> conftest.h
4754 if cmp -s $ac_file conftest.h 2>/dev/null; then
4755 echo "$ac_file is unchanged"
4758 # Remove last slash and all that follows it. Not all systems have dirname.
4759 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4760 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4761 # The file is in a subdirectory.
4762 test ! -d "$ac_dir" && mkdir "$ac_dir"
4765 mv conftest.h $ac_file
4770 cat >> $CONFIG_STATUS <<EOF
4773 cat >> $CONFIG_STATUS <<\EOF
4777 chmod +x $CONFIG_STATUS
4778 rm -fr confdefs* $ac_clean_files
4779 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4781 if test "$no_recursion" != yes; then
4783 # Remove --cache-file and --srcdir arguments so they do not pile up.
4784 ac_sub_configure_args=
4786 for ac_arg in $ac_configure_args; do
4787 if test -n "$ac_prev"; then
4792 -cache-file | --cache-file | --cache-fil | --cache-fi \
4793 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4794 ac_prev=cache_file ;;
4795 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4796 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4798 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4800 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4802 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4806 for ac_config_dir in libltdl $mysubdirs; do
4808 # Do not complain, so a configure script can configure whichever
4809 # parts of a large source tree are present.
4810 if test ! -d $srcdir/$ac_config_dir; then
4814 echo configuring in $ac_config_dir
4819 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4821 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4829 # A "../" for each directory in /$ac_config_dir.
4830 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4833 .) # No --srcdir option. We are building in place.
4834 ac_sub_srcdir=$srcdir ;;
4835 /*) # Absolute path.
4836 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4838 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4841 # Check for guested configure; otherwise get Cygnus style configure.
4842 if test -f $ac_sub_srcdir/configure; then
4843 ac_sub_configure=$ac_sub_srcdir/configure
4844 elif test -f $ac_sub_srcdir/configure.in; then
4845 ac_sub_configure=$ac_configure
4847 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4851 # The recursion is here.
4852 if test -n "$ac_sub_configure"; then
4854 # Make the cache file name correct relative to the subdirectory.
4855 case "$cache_file" in
4856 /*) ac_sub_cache_file=$cache_file ;;
4858 ac_sub_cache_file="$ac_dots$cache_file" ;;
4861 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4862 # The eval makes quoting arguments work.
4863 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4866 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4880 echo timestamp > src/include/stamp-h
4881 (cd ./src/include && /bin/sh ./build-radpaths-h)
4882 (cd ./src/main && chmod +x checkrad.pl radlast radtest)
4883 (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd)
4885 cat >> src/include/autoconf.h <<EOF
4887 #define HOSTINFO "$host"
4888 #define RADIUSD_VERSION "$RADIUSD_VERSION"