3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --enable-strict-dependencies Fail configure on lack of module dependancy."
27 --with-FOO-include-dir=DIR Dir for includes for FOO, module dependancy."
29 --with-FOO-lib-dir=DIR Dir for libraries for FOO, module dependancy."
31 --with-logdir=DIR Directory for logfiles [LOCALSTATEDIR/log/radius] "
33 --with-radacctdir=PATH Directory for detail files [LOGDIR/radacct] "
35 --with-raddbdir=DIR Directory for config files [SYSCONFDIR/raddb] "
37 --with-dict-nocase Make dictionary case-independant (default=yes)"
39 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)"
41 --with-threads Use threads, if available. (default=yes) "
43 --with-snmp Compile in SNMP support. (default=yes)"
45 --disable-ltdl-install do not install libltdl"
47 --with-static-modules=QUOTED-MODULE-LIST"
49 --enable-developer Turns on flags of interest to developers."
51 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO"
53 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO"
55 # Initialize some variables set by options.
56 # The variables have the same names as the options, with
57 # dashes changed to underlines.
59 cache_file=./config.cache
68 program_transform_name=s,x,x,
76 bindir='${exec_prefix}/bin'
77 sbindir='${exec_prefix}/sbin'
78 libexecdir='${exec_prefix}/libexec'
79 datadir='${prefix}/share'
80 sysconfdir='${prefix}/etc'
81 sharedstatedir='${prefix}/com'
82 localstatedir='${prefix}/var'
83 libdir='${exec_prefix}/lib'
84 includedir='${prefix}/include'
85 oldincludedir='/usr/include'
86 infodir='${prefix}/info'
87 mandir='${prefix}/man'
89 # Initialize some other variables.
92 SHELL=${CONFIG_SHELL-/bin/sh}
93 # Maximum number of lines to put in a shell here document.
100 # If the previous option needs an argument, assign it.
101 if test -n "$ac_prev"; then
102 eval "$ac_prev=\$ac_option"
108 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
112 # Accept the important Cygnus configure options, so we can diagnose typos.
116 -bindir | --bindir | --bindi | --bind | --bin | --bi)
118 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
119 bindir="$ac_optarg" ;;
121 -build | --build | --buil | --bui | --bu)
123 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
124 build="$ac_optarg" ;;
126 -cache-file | --cache-file | --cache-fil | --cache-fi \
127 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
128 ac_prev=cache_file ;;
129 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
130 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
131 cache_file="$ac_optarg" ;;
133 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
135 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
137 datadir="$ac_optarg" ;;
139 -disable-* | --disable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}=no" ;;
148 -enable-* | --enable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}='$ac_optarg'" ;;
161 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
162 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
163 | --exec | --exe | --ex)
164 ac_prev=exec_prefix ;;
165 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
166 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
167 | --exec=* | --exe=* | --ex=*)
168 exec_prefix="$ac_optarg" ;;
170 -gas | --gas | --ga | --g)
171 # Obsolete; use --with-gas.
174 -help | --help | --hel | --he)
175 # Omit some internal or obsolete options to make the list less imposing.
176 # This message is too long to be a string in the A/UX 3.1 sh.
178 Usage: configure [options] [host]
179 Options: [defaults in brackets after descriptions]
181 --cache-file=FILE cache test results in FILE
182 --help print this message
183 --no-create do not create output files
184 --quiet, --silent do not print \`checking...' messages
185 --version print the version of autoconf that created configure
186 Directory and file names:
187 --prefix=PREFIX install architecture-independent files in PREFIX
189 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
191 --bindir=DIR user executables in DIR [EPREFIX/bin]
192 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
193 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
194 --datadir=DIR read-only architecture-independent data in DIR
196 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
197 --sharedstatedir=DIR modifiable architecture-independent data in DIR
199 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
200 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
201 --includedir=DIR C header files in DIR [PREFIX/include]
202 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
203 --infodir=DIR info documentation in DIR [PREFIX/info]
204 --mandir=DIR man documentation in DIR [PREFIX/man]
205 --srcdir=DIR find the sources in DIR [configure dir or ..]
206 --program-prefix=PREFIX prepend PREFIX to installed program names
207 --program-suffix=SUFFIX append SUFFIX to installed program names
208 --program-transform-name=PROGRAM
209 run sed PROGRAM on installed program names
213 --build=BUILD configure for building on BUILD [BUILD=HOST]
214 --host=HOST configure for HOST [guessed]
215 --target=TARGET configure for TARGET [TARGET=HOST]
216 Features and packages:
217 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
218 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
219 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
220 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
221 --x-includes=DIR X include files are in DIR
222 --x-libraries=DIR X library files are in DIR
224 if test -n "$ac_help"; then
225 echo "--enable and --with options recognized:$ac_help"
229 -host | --host | --hos | --ho)
231 -host=* | --host=* | --hos=* | --ho=*)
234 -includedir | --includedir | --includedi | --included | --include \
235 | --includ | --inclu | --incl | --inc)
236 ac_prev=includedir ;;
237 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
238 | --includ=* | --inclu=* | --incl=* | --inc=*)
239 includedir="$ac_optarg" ;;
241 -infodir | --infodir | --infodi | --infod | --info | --inf)
243 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
244 infodir="$ac_optarg" ;;
246 -libdir | --libdir | --libdi | --libd)
248 -libdir=* | --libdir=* | --libdi=* | --libd=*)
249 libdir="$ac_optarg" ;;
251 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
252 | --libexe | --libex | --libe)
253 ac_prev=libexecdir ;;
254 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
255 | --libexe=* | --libex=* | --libe=*)
256 libexecdir="$ac_optarg" ;;
258 -localstatedir | --localstatedir | --localstatedi | --localstated \
259 | --localstate | --localstat | --localsta | --localst \
260 | --locals | --local | --loca | --loc | --lo)
261 ac_prev=localstatedir ;;
262 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
263 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
264 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
265 localstatedir="$ac_optarg" ;;
267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
270 mandir="$ac_optarg" ;;
273 # Obsolete; use --without-fp.
276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
286 | --oldin | --oldi | --old | --ol | --o)
287 ac_prev=oldincludedir ;;
288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
291 oldincludedir="$ac_optarg" ;;
293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
296 prefix="$ac_optarg" ;;
298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
299 | --program-pre | --program-pr | --program-p)
300 ac_prev=program_prefix ;;
301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
303 program_prefix="$ac_optarg" ;;
305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
306 | --program-suf | --program-su | --program-s)
307 ac_prev=program_suffix ;;
308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
310 program_suffix="$ac_optarg" ;;
312 -program-transform-name | --program-transform-name \
313 | --program-transform-nam | --program-transform-na \
314 | --program-transform-n | --program-transform- \
315 | --program-transform | --program-transfor \
316 | --program-transfo | --program-transf \
317 | --program-trans | --program-tran \
318 | --progr-tra | --program-tr | --program-t)
319 ac_prev=program_transform_name ;;
320 -program-transform-name=* | --program-transform-name=* \
321 | --program-transform-nam=* | --program-transform-na=* \
322 | --program-transform-n=* | --program-transform-=* \
323 | --program-transform=* | --program-transfor=* \
324 | --program-transfo=* | --program-transf=* \
325 | --program-trans=* | --program-tran=* \
326 | --progr-tra=* | --program-tr=* | --program-t=*)
327 program_transform_name="$ac_optarg" ;;
329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
330 | -silent | --silent | --silen | --sile | --sil)
333 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
335 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
337 sbindir="$ac_optarg" ;;
339 -sharedstatedir | --sharedstatedir | --sharedstatedi \
340 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
341 | --sharedst | --shareds | --shared | --share | --shar \
343 ac_prev=sharedstatedir ;;
344 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
345 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
346 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
348 sharedstatedir="$ac_optarg" ;;
350 -site | --site | --sit)
352 -site=* | --site=* | --sit=*)
355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
358 srcdir="$ac_optarg" ;;
360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
361 | --syscon | --sysco | --sysc | --sys | --sy)
362 ac_prev=sysconfdir ;;
363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
365 sysconfdir="$ac_optarg" ;;
367 -target | --target | --targe | --targ | --tar | --ta | --t)
369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
370 target="$ac_optarg" ;;
372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
375 -version | --version | --versio | --versi | --vers)
376 echo "configure generated by autoconf version 2.13"
380 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}='$ac_optarg'" ;;
392 -without-* | --without-*)
393 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}=no" ;;
402 # Obsolete; use --with-x.
405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
406 | --x-incl | --x-inc | --x-in | --x-i)
407 ac_prev=x_includes ;;
408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
410 x_includes="$ac_optarg" ;;
412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
414 ac_prev=x_libraries ;;
415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
417 x_libraries="$ac_optarg" ;;
419 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424 echo "configure: warning: $ac_option: invalid host type" 1>&2
426 if test "x$nonopt" != xNONE; then
427 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
435 if test -n "$ac_prev"; then
436 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
441 # File descriptor usage:
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell metacharacters.
467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468 | --no-cr | --no-c) ;;
469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
473 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
478 # Only set these to C if already set. These must not be set unconditionally
479 # because not all systems understand e.g. LANG=C (notably SCO).
480 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481 # Non-C LC_CTYPE values break the ctype check.
482 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
483 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
484 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
485 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
488 rm -rf conftest* confdefs.h
489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
492 # A filename unique to this package, relative to the directory that
493 # configure is in, which we can look for to find out if srcdir is correct.
494 ac_unique_file=src/main/radiusd.c
496 # Find the source files, if location was not specified.
497 if test -z "$srcdir"; then
498 ac_srcdir_defaulted=yes
499 # Try the directory containing this script, then its parent.
501 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
504 if test ! -r $srcdir/$ac_unique_file; then
508 ac_srcdir_defaulted=no
510 if test ! -r $srcdir/$ac_unique_file; then
511 if test "$ac_srcdir_defaulted" = yes; then
512 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
514 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
517 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
519 # Prefer explicitly selected file to automatically selected ones.
520 if test -z "$CONFIG_SITE"; then
521 if test "x$prefix" != xNONE; then
522 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
524 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
527 for ac_site_file in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
538 echo "creating cache $cache_file"
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp='$CPP $CPPFLAGS'
545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling=$ac_cv_prog_cc_cross
551 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
560 ac_n= ac_c='\c' ac_t=
565 # From configure.in Revision: 1.141
566 RADIUSD_MAJOR_VERSION=0
567 RADIUSD_MINOR_VERSION=5
568 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
571 # Extract the first word of "gcc", so it can be a program name with args.
572 set dummy gcc; ac_word=$2
573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
574 echo "configure:575: checking for $ac_word" >&5
575 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
576 echo $ac_n "(cached) $ac_c" 1>&6
578 if test -n "$CC"; then
579 ac_cv_prog_CC="$CC" # Let the user override the test.
581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
583 for ac_dir in $ac_dummy; do
584 test -z "$ac_dir" && ac_dir=.
585 if test -f $ac_dir/$ac_word; then
594 if test -n "$CC"; then
595 echo "$ac_t""$CC" 1>&6
597 echo "$ac_t""no" 1>&6
600 if test -z "$CC"; then
601 # Extract the first word of "cc", so it can be a program name with args.
602 set dummy cc; ac_word=$2
603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
604 echo "configure:605: checking for $ac_word" >&5
605 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
606 echo $ac_n "(cached) $ac_c" 1>&6
608 if test -n "$CC"; then
609 ac_cv_prog_CC="$CC" # Let the user override the test.
611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
614 for ac_dir in $ac_dummy; do
615 test -z "$ac_dir" && ac_dir=.
616 if test -f $ac_dir/$ac_word; then
617 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
626 if test $ac_prog_rejected = yes; then
627 # We found a bogon in the path, so make sure we never use it.
628 set dummy $ac_cv_prog_CC
630 if test $# -gt 0; then
631 # We chose a different compiler from the bogus one.
632 # However, it has the same basename, so the bogon will be chosen
633 # first if we set CC to just the basename; use the full file name.
635 set dummy "$ac_dir/$ac_word" "$@"
643 if test -n "$CC"; then
644 echo "$ac_t""$CC" 1>&6
646 echo "$ac_t""no" 1>&6
649 if test -z "$CC"; then
652 # Extract the first word of "cl", so it can be a program name with args.
653 set dummy cl; ac_word=$2
654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
655 echo "configure:656: checking for $ac_word" >&5
656 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
657 echo $ac_n "(cached) $ac_c" 1>&6
659 if test -n "$CC"; then
660 ac_cv_prog_CC="$CC" # Let the user override the test.
662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
664 for ac_dir in $ac_dummy; do
665 test -z "$ac_dir" && ac_dir=.
666 if test -f $ac_dir/$ac_word; then
675 if test -n "$CC"; then
676 echo "$ac_t""$CC" 1>&6
678 echo "$ac_t""no" 1>&6
683 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
686 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
687 echo "configure:688: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
690 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
691 ac_cpp='$CPP $CPPFLAGS'
692 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
693 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
694 cross_compiling=$ac_cv_prog_cc_cross
696 cat > conftest.$ac_ext << EOF
698 #line 699 "configure"
699 #include "confdefs.h"
703 if { (eval echo configure:704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
704 ac_cv_prog_cc_works=yes
705 # If we can't run a trivial program, we are probably using a cross compiler.
706 if (./conftest; exit) 2>/dev/null; then
707 ac_cv_prog_cc_cross=no
709 ac_cv_prog_cc_cross=yes
712 echo "configure: failed program was:" >&5
713 cat conftest.$ac_ext >&5
714 ac_cv_prog_cc_works=no
718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
719 ac_cpp='$CPP $CPPFLAGS'
720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
722 cross_compiling=$ac_cv_prog_cc_cross
724 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
725 if test $ac_cv_prog_cc_works = no; then
726 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
729 echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
730 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
731 cross_compiling=$ac_cv_prog_cc_cross
733 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
734 echo "configure:735: checking whether we are using GNU C" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
738 cat > conftest.c <<EOF
743 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
750 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
752 if test $ac_cv_prog_gcc = yes; then
758 ac_test_CFLAGS="${CFLAGS+set}"
759 ac_save_CFLAGS="$CFLAGS"
761 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
762 echo "configure:763: checking whether ${CC-cc} accepts -g" >&5
763 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
766 echo 'void f(){}' > conftest.c
767 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
776 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
777 if test "$ac_test_CFLAGS" = set; then
778 CFLAGS="$ac_save_CFLAGS"
779 elif test $ac_cv_prog_cc_g = yes; then
780 if test "$GCC" = yes; then
786 if test "$GCC" = yes; then
793 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
794 echo "configure:795: checking how to run the C preprocessor" >&5
795 # On Suns, sometimes $CPP names a directory.
796 if test -n "$CPP" && test -d "$CPP"; then
799 if test -z "$CPP"; then
800 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
803 # This must be in double quotes, not single quotes, because CPP may get
804 # substituted into the Makefile and "${CC-cc}" will confuse make.
806 # On the NeXT, cc -E runs the code through the compiler's parser,
807 # not just through cpp.
808 cat > conftest.$ac_ext <<EOF
809 #line 810 "configure"
810 #include "confdefs.h"
814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
815 { (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
817 if test -z "$ac_err"; then
821 echo "configure: failed program was:" >&5
822 cat conftest.$ac_ext >&5
824 CPP="${CC-cc} -E -traditional-cpp"
825 cat > conftest.$ac_ext <<EOF
826 #line 827 "configure"
827 #include "confdefs.h"
831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
832 { (eval echo configure:833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
834 if test -z "$ac_err"; then
838 echo "configure: failed program was:" >&5
839 cat conftest.$ac_ext >&5
841 CPP="${CC-cc} -nologo -E"
842 cat > conftest.$ac_ext <<EOF
843 #line 844 "configure"
844 #include "confdefs.h"
848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
849 { (eval echo configure:850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
851 if test -z "$ac_err"; then
855 echo "configure: failed program was:" >&5
856 cat conftest.$ac_ext >&5
865 ac_cv_prog_CPP="$CPP"
867 CPP="$ac_cv_prog_CPP"
869 ac_cv_prog_CPP="$CPP"
871 echo "$ac_t""$CPP" 1>&6
873 if test $ac_cv_prog_gcc = yes; then
874 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
875 echo "configure:876: checking whether ${CC-cc} needs -traditional" >&5
876 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
879 ac_pattern="Autoconf.*'x'"
880 cat > conftest.$ac_ext <<EOF
881 #line 882 "configure"
882 #include "confdefs.h"
886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
887 egrep "$ac_pattern" >/dev/null 2>&1; then
889 ac_cv_prog_gcc_traditional=yes
892 ac_cv_prog_gcc_traditional=no
897 if test $ac_cv_prog_gcc_traditional = no; then
898 cat > conftest.$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
905 egrep "$ac_pattern" >/dev/null 2>&1; then
907 ac_cv_prog_gcc_traditional=yes
914 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
915 if test $ac_cv_prog_gcc_traditional = yes; then
916 CC="$CC -traditional"
920 echo $ac_n "checking whether we are using SUNPro C""... $ac_c" 1>&6
921 echo "configure:922: checking whether we are using SUNPro C" >&5
922 if eval "test \"`echo '$''{'ac_cv_prog_suncc'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 cat > conftest.c <<EOF
930 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
937 echo "$ac_t""$ac_cv_prog_suncc" 1>&6
938 # Extract the first word of "ranlib", so it can be a program name with args.
939 set dummy ranlib; ac_word=$2
940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
941 echo "configure:942: checking for $ac_word" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
945 if test -n "$RANLIB"; then
946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
950 for ac_dir in $ac_dummy; do
951 test -z "$ac_dir" && ac_dir=.
952 if test -f $ac_dir/$ac_word; then
953 ac_cv_prog_RANLIB="ranlib"
958 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
961 RANLIB="$ac_cv_prog_RANLIB"
962 if test -n "$RANLIB"; then
963 echo "$ac_t""$RANLIB" 1>&6
965 echo "$ac_t""no" 1>&6
971 # Extract the first word of "gmake", so it can be a program name with args.
972 set dummy gmake; ac_word=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_GMAKE'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 if test -n "$GMAKE"; then
979 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
983 for ac_dir in $ac_dummy; do
984 test -z "$ac_dir" && ac_dir=.
985 if test -f $ac_dir/$ac_word; then
986 ac_cv_prog_GMAKE="yes"
991 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
994 GMAKE="$ac_cv_prog_GMAKE"
995 if test -n "$GMAKE"; then
996 echo "$ac_t""$GMAKE" 1>&6
998 echo "$ac_t""no" 1>&6
1001 if test $GMAKE = no; then
1002 # Extract the first word of "make", so it can be a program name with args.
1003 set dummy make; ac_word=$2
1004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1005 echo "configure:1006: checking for $ac_word" >&5
1006 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1011 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1014 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1019 for ac_dir in $ac_dummy; do
1020 test -z "$ac_dir" && ac_dir=.
1021 if test -f $ac_dir/$ac_word; then
1022 ac_cv_path_MAKE="$ac_dir/$ac_word"
1027 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
1031 MAKE="$ac_cv_path_MAKE"
1032 if test -n "$MAKE"; then
1033 echo "$ac_t""$MAKE" 1>&6
1035 echo "$ac_t""no" 1>&6
1039 # Extract the first word of "gmake", so it can be a program name with args.
1040 set dummy gmake; ac_word=$2
1041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042 echo "configure:1043: checking for $ac_word" >&5
1043 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1048 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1051 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1056 for ac_dir in $ac_dummy; do
1057 test -z "$ac_dir" && ac_dir=.
1058 if test -f $ac_dir/$ac_word; then
1059 ac_cv_path_MAKE="$ac_dir/$ac_word"
1064 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
1068 MAKE="$ac_cv_path_MAKE"
1069 if test -n "$MAKE"; then
1070 echo "$ac_t""$MAKE" 1>&6
1072 echo "$ac_t""no" 1>&6
1076 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
1077 if test -z "$makever"; then
1078 { echo "configure: error: GNU Make is not installed. Please download and install it
1079 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." 1>&2; exit 1; }
1082 echo $ac_n "checking for main in -lltdl""... $ac_c" 1>&6
1083 echo "configure:1084: checking for main in -lltdl" >&5
1084 ac_lib_var=`echo ltdl'_'main | sed 'y%./+-%__p_%'`
1085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 ac_save_LIBS="$LIBS"
1090 cat > conftest.$ac_ext <<EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1098 if { (eval echo configure:1099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1100 eval "ac_cv_lib_$ac_lib_var=yes"
1102 echo "configure: failed program was:" >&5
1103 cat conftest.$ac_ext >&5
1105 eval "ac_cv_lib_$ac_lib_var=no"
1108 LIBS="$ac_save_LIBS"
1111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1112 echo "$ac_t""yes" 1>&6
1113 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
1115 echo "$ac_t""no" 1>&6
1116 if test x"$enable_ltdl_install" = xno; then
1117 echo "configure: warning: libltdl not installed, but installation disabled" 1>&2
1119 enable_ltdl_install=yes
1124 if test x"$enable_ltdl_install" = x"yes"; then
1125 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1126 LIBLTDL='${top_builddir}/libltdl'/libltdl.la
1127 INCLTDL='-I${top_builddir}/libltdl'
1129 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
1138 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1139 if test -f $ac_dir/install-sh; then
1141 ac_install_sh="$ac_aux_dir/install-sh -c"
1143 elif test -f $ac_dir/install.sh; then
1145 ac_install_sh="$ac_aux_dir/install.sh -c"
1149 if test -z "$ac_aux_dir"; then
1150 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1152 ac_config_guess=$ac_aux_dir/config.guess
1153 ac_config_sub=$ac_aux_dir/config.sub
1154 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1156 # Check whether --enable-shared or --disable-shared was given.
1157 if test "${enable_shared+set}" = set; then
1158 enableval="$enable_shared"
1159 p=${PACKAGE-default}
1160 case "$enableval" in
1161 yes) enable_shared=yes ;;
1162 no) enable_shared=no ;;
1165 # Look at the argument we got. We use all the common list separators.
1166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1167 for pkg in $enableval; do
1168 if test "X$pkg" = "X$p"; then
1179 # Check whether --enable-static or --disable-static was given.
1180 if test "${enable_static+set}" = set; then
1181 enableval="$enable_static"
1182 p=${PACKAGE-default}
1183 case "$enableval" in
1184 yes) enable_static=yes ;;
1185 no) enable_static=no ;;
1188 # Look at the argument we got. We use all the common list separators.
1189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1190 for pkg in $enableval; do
1191 if test "X$pkg" = "X$p"; then
1202 # Check whether --enable-fast-install or --disable-fast-install was given.
1203 if test "${enable_fast_install+set}" = set; then
1204 enableval="$enable_fast_install"
1205 p=${PACKAGE-default}
1206 case "$enableval" in
1207 yes) enable_fast_install=yes ;;
1208 no) enable_fast_install=no ;;
1210 enable_fast_install=no
1211 # Look at the argument we got. We use all the common list separators.
1212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1213 for pkg in $enableval; do
1214 if test "X$pkg" = "X$p"; then
1215 enable_fast_install=yes
1222 enable_fast_install=yes
1226 # Make sure we can run config.sub.
1227 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1228 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1231 echo $ac_n "checking host system type""... $ac_c" 1>&6
1232 echo "configure:1233: checking host system type" >&5
1235 case "$host_alias" in
1239 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1240 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1242 *) host_alias=$nonopt ;;
1246 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1247 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1248 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1249 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1250 echo "$ac_t""$host" 1>&6
1252 echo $ac_n "checking build system type""... $ac_c" 1>&6
1253 echo "configure:1254: checking build system type" >&5
1256 case "$build_alias" in
1259 NONE) build_alias=$host_alias ;;
1260 *) build_alias=$nonopt ;;
1264 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1265 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1266 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1267 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1268 echo "$ac_t""$build" 1>&6
1270 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1271 if test "${with_gnu_ld+set}" = set; then
1272 withval="$with_gnu_ld"
1273 test "$withval" = no || with_gnu_ld=yes
1279 if test "$ac_cv_prog_gcc" = yes; then
1280 # Check if gcc -print-prog-name=ld gives a path.
1281 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1282 echo "configure:1283: checking for ld used by GCC" >&5
1283 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1285 # Accept absolute paths.
1286 [\\/]* | [A-Za-z]:[\\/]*)
1287 re_direlt='/[^/][^/]*/\.\./'
1288 # Canonicalize the path of ld
1289 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1290 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1291 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1293 test -z "$LD" && LD="$ac_prog"
1296 # If it fails, then pretend we aren't using GCC.
1300 # If it is relative, then search for the first ld in PATH.
1304 elif test "$with_gnu_ld" = yes; then
1305 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1306 echo "configure:1307: checking for GNU ld" >&5
1308 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1309 echo "configure:1310: checking for non-GNU ld" >&5
1311 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1314 if test -z "$LD"; then
1315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1316 for ac_dir in $PATH; do
1317 test -z "$ac_dir" && ac_dir=.
1318 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1319 ac_cv_path_LD="$ac_dir/$ac_prog"
1320 # Check to see if the program is GNU ld. I'd rather use --version,
1321 # but apparently some GNU ld's only accept -v.
1322 # Break only if it was the GNU/non-GNU ld that we prefer.
1323 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1324 test "$with_gnu_ld" != no && break
1326 test "$with_gnu_ld" != yes && break
1332 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1337 if test -n "$LD"; then
1338 echo "$ac_t""$LD" 1>&6
1340 echo "$ac_t""no" 1>&6
1342 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1343 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1344 echo "configure:1345: checking if the linker ($LD) is GNU ld" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1349 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1350 ac_cv_prog_gnu_ld=yes
1352 ac_cv_prog_gnu_ld=no
1356 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1359 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1360 echo "configure:1361: checking for BSD-compatible nm" >&5
1361 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 if test -n "$NM"; then
1365 # Let the user override the test.
1368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1369 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1370 test -z "$ac_dir" && ac_dir=.
1371 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1372 # Check to see if the nm accepts a BSD-compat flag.
1373 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1374 # nm: unknown option "B" ignored
1375 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1376 ac_cv_path_NM="$ac_dir/nm -B"
1378 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1379 ac_cv_path_NM="$ac_dir/nm -p"
1382 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1383 continue # so that we can try to find one that supports BSD flags
1388 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1393 echo "$ac_t""$NM" 1>&6
1395 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1396 echo "configure:1397: checking whether ln -s works" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1401 if ln -s X conftestdata 2>/dev/null
1404 ac_cv_prog_LN_S="ln -s"
1409 LN_S="$ac_cv_prog_LN_S"
1410 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1411 echo "$ac_t""yes" 1>&6
1413 echo "$ac_t""no" 1>&6
1418 NONE) lt_target="$host" ;;
1419 *) lt_target="$target" ;;
1422 # Check for any special flags to pass to ltconfig.
1423 libtool_flags="--cache-file=$cache_file"
1424 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1425 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1426 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1427 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1428 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1429 libtool_flags="$libtool_flags --enable-dlopen"
1431 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1432 if test "${enable_libtool_lock+set}" = set; then
1433 enableval="$enable_libtool_lock"
1437 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1438 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1440 # Some flags need to be propagated to the compiler or linker for good
1442 case "$lt_target" in
1444 # Find out which ABI we are using.
1445 echo '#line 1446 "configure"' > conftest.$ac_ext
1446 if { (eval echo configure:1447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1447 case "`/usr/bin/file conftest.o`" in
1463 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1464 SAVE_CFLAGS="$CFLAGS"
1465 CFLAGS="$CFLAGS -belf"
1466 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether the C compiler needs -belf" >&5
1468 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1479 if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1481 lt_cv_cc_needs_belf=yes
1483 echo "configure: failed program was:" >&5
1484 cat conftest.$ac_ext >&5
1486 lt_cv_cc_needs_belf=no
1491 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1492 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1493 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1494 CFLAGS="$SAVE_CFLAGS"
1502 # Save cache, so that ltconfig can load it
1503 cat > confcache <<\EOF
1504 # This file is a shell script that caches the results of configure
1505 # tests run on this system so they can be shared between configure
1506 # scripts and configure runs. It is not useful on other systems.
1507 # If it contains results you don't want to keep, you may remove or edit it.
1509 # By default, configure uses ./config.cache as the cache file,
1510 # creating it if it does not exist already. You can give configure
1511 # the --cache-file=FILE option to use a different cache file; that is
1512 # what configure does when it calls configure scripts in
1513 # subdirectories, so they share the cache.
1514 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1515 # config.status only pays attention to the cache file if you give it the
1516 # --recheck option to rerun configure.
1519 # The following way of writing the cache mishandles newlines in values,
1520 # but we know of no workaround that is simple, portable, and efficient.
1521 # So, don't put newlines in cache variables' values.
1522 # Ultrix sh set writes to stderr and can't be redirected directly,
1523 # and sets the high bit in the cache file unless we assign to the vars.
1525 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1527 # `set' does not quote correctly, so add quotes (double-quote substitution
1528 # turns \\\\ into \\, and sed turns \\ into \).
1530 -e "s/'/'\\\\''/g" \
1531 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1534 # `set' quotes correctly as required by POSIX, so do not add quotes.
1535 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1538 if cmp -s $cache_file confcache; then
1541 if test -w $cache_file; then
1542 echo "updating cache $cache_file"
1543 cat confcache > $cache_file
1545 echo "not updating unwritable cache $cache_file"
1551 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1552 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1553 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1554 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1555 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1556 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1557 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1558 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1560 # Reload cache, that may have been modified by ltconfig
1561 if test -r "$cache_file"; then
1562 echo "loading cache $cache_file"
1565 echo "creating cache $cache_file"
1570 # This can be used to rebuild libtool when needed
1571 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1573 # Always use our own libtool.
1574 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1576 # Redirect the config.log output again, so that the ltconfig log is not
1577 # clobbered by the next message.
1578 exec 5>>./config.log
1582 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
1583 if test "${enable_strict_dependencies+set}" = set; then
1584 enableval="$enable_strict_dependencies"
1589 # Check whether --with-fooincludedir or --without-fooincludedir was given.
1590 if test "${with_fooincludedir+set}" = set; then
1591 withval="$with_fooincludedir"
1596 # Check whether --with-foolibdir or --without-foolibdir was given.
1597 if test "${with_foolibdir+set}" = set; then
1598 withval="$with_foolibdir"
1603 logdir='${localstatedir}/log/radius'
1604 echo $ac_n "checking logdir""... $ac_c" 1>&6
1605 echo "configure:1606: checking logdir" >&5
1606 # Check whether --with-logdir or --without-logdir was given.
1607 if test "${with_logdir+set}" = set; then
1608 withval="$with_logdir"
1611 { echo "configure: error: Need logdir" 1>&2; exit 1; }
1623 echo "$ac_t""$logdir" 1>&6
1625 radacctdir='${logdir}/radacct'
1626 echo $ac_n "checking radacctdir""... $ac_c" 1>&6
1627 echo "configure:1628: checking radacctdir" >&5
1628 # Check whether --with-radacctdir or --without-radacctdir was given.
1629 if test "${with_radacctdir+set}" = set; then
1630 withval="$with_radacctdir"
1633 { echo "configure: error: Need radacctdir" 1>&2; exit 1; }
1638 radacctdir="$withval"
1645 echo "$ac_t""$radacctdir" 1>&6
1647 raddbdir='${sysconfdir}/raddb'
1648 echo $ac_n "checking raddbdir""... $ac_c" 1>&6
1649 echo "configure:1650: checking raddbdir" >&5
1650 # Check whether --with-raddbdir or --without-raddbdir was given.
1651 if test "${with_raddbdir+set}" = set; then
1652 withval="$with_raddbdir"
1655 { echo "configure: error: Need raddbdir" 1>&2; exit 1; }
1667 echo "$ac_t""$raddbdir" 1>&6
1669 WITH_DICT_NOCASE=yes
1670 # Check whether --with-dict-nocase or --without-dict-nocase was given.
1671 if test "${with_dict_nocase+set}" = set; then
1672 withval="$with_dict_nocase"
1682 if test "X$WITH_DICT_NOCASE" = "Xyes"; then
1683 cat >> confdefs.h <<\EOF
1684 #define WITH_DICT_NOCASE 1
1690 # Check whether --with-ascend-binary or --without-ascend-binary was given.
1691 if test "${with_ascend_binary+set}" = set; then
1692 withval="$with_ascend_binary"
1702 if test "X$ASCEND_BINARY" = "Xyes"; then
1703 cat >> confdefs.h <<\EOF
1704 #define ASCEND_BINARY 1
1710 WITH_THREAD_POOL=yes
1711 # Check whether --with-threads or --without-threads was given.
1712 if test "${with_threads+set}" = set; then
1713 withval="$with_threads"
1726 # Check whether --with-snmp or --without-snmp was given.
1727 if test "${with_snmp+set}" = set; then
1728 withval="$with_snmp"
1739 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
1740 if test "${enable_ltdl_install+set}" = set; then
1741 enableval="$enable_ltdl_install"
1745 if test x"${enable_ltdl_install+set}" != xset; then
1746 enable_ltdl_install=yes
1747 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1753 # Check whether --with-static_modules or --without-static_modules was given.
1754 if test "${with_static_modules+set}" = set; then
1755 withval="$with_static_modules"
1757 for i in $withval; do
1758 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
1764 # Check whether --enable-developer or --disable-developer was given.
1765 if test "${enable_developer+set}" = set; then
1766 enableval="$enable_developer"
1778 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
1783 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
1784 if test "${with_rlm_FOO_lib_dir+set}" = set; then
1785 withval="$with_rlm_FOO_lib_dir"
1794 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
1795 if test "${with_rlm_FOO_include_dir+set}" = set; then
1796 withval="$with_rlm_FOO_include_dir"
1807 # Extract the first word of "perl", so it can be a program name with args.
1808 set dummy perl; ac_word=$2
1809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_word" >&5
1811 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1816 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1819 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1824 for ac_dir in $ac_dummy; do
1825 test -z "$ac_dir" && ac_dir=.
1826 if test -f $ac_dir/$ac_word; then
1827 ac_cv_path_PERL="$ac_dir/$ac_word"
1832 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
1836 PERL="$ac_cv_path_PERL"
1837 if test -n "$PERL"; then
1838 echo "$ac_t""$PERL" 1>&6
1840 echo "$ac_t""no" 1>&6
1843 if test ! -x $ac_cv_path_PERL; then
1844 { echo "configure: error: perl not found - fatal" 1>&2; exit 1; }
1846 # Extract the first word of "snmpget", so it can be a program name with args.
1847 set dummy snmpget; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1850 if eval "test \"`echo '$''{'ac_cv_path_SNMPGET'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1855 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
1858 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a dos path.
1861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1863 for ac_dir in $ac_dummy; do
1864 test -z "$ac_dir" && ac_dir=.
1865 if test -f $ac_dir/$ac_word; then
1866 ac_cv_path_SNMPGET="$ac_dir/$ac_word"
1871 test -z "$ac_cv_path_SNMPGET" && ac_cv_path_SNMPGET="/usr/local/bin/snmpget"
1875 SNMPGET="$ac_cv_path_SNMPGET"
1876 if test -n "$SNMPGET"; then
1877 echo "$ac_t""$SNMPGET" 1>&6
1879 echo "$ac_t""no" 1>&6
1882 # Extract the first word of "snmpwalk", so it can be a program name with args.
1883 set dummy snmpwalk; ac_word=$2
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885 echo "configure:1886: checking for $ac_word" >&5
1886 if eval "test \"`echo '$''{'ac_cv_path_SNMPWALK'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1891 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
1894 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a dos path.
1897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1899 for ac_dir in $ac_dummy; do
1900 test -z "$ac_dir" && ac_dir=.
1901 if test -f $ac_dir/$ac_word; then
1902 ac_cv_path_SNMPWALK="$ac_dir/$ac_word"
1907 test -z "$ac_cv_path_SNMPWALK" && ac_cv_path_SNMPWALK="/usr/local/bin/snmpwalk"
1911 SNMPWALK="$ac_cv_path_SNMPWALK"
1912 if test -n "$SNMPWALK"; then
1913 echo "$ac_t""$SNMPWALK" 1>&6
1915 echo "$ac_t""no" 1>&6
1918 # Extract the first word of "rusers", so it can be a program name with args.
1919 set dummy rusers; ac_word=$2
1920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_word" >&5
1922 if eval "test \"`echo '$''{'ac_cv_path_RUSERS'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1927 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
1930 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a dos path.
1933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1935 for ac_dir in $ac_dummy; do
1936 test -z "$ac_dir" && ac_dir=.
1937 if test -f $ac_dir/$ac_word; then
1938 ac_cv_path_RUSERS="$ac_dir/$ac_word"
1943 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
1947 RUSERS="$ac_cv_path_RUSERS"
1948 if test -n "$RUSERS"; then
1949 echo "$ac_t""$RUSERS" 1>&6
1951 echo "$ac_t""no" 1>&6
1955 missing_dir=`cd $ac_aux_dir && pwd`
1956 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1957 echo "configure:1958: checking for working aclocal" >&5
1958 # Run test in a subshell; some versions of sh will print an error if
1959 # an executable is not found, even if stderr is redirected.
1960 # Redirect stdin to placate older versions of autoconf. Sigh.
1961 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1963 echo "$ac_t""found" 1>&6
1965 ACLOCAL="$missing_dir/missing aclocal"
1966 echo "$ac_t""missing" 1>&6
1969 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1970 echo "configure:1971: checking for working autoconf" >&5
1971 # Run test in a subshell; some versions of sh will print an error if
1972 # an executable is not found, even if stderr is redirected.
1973 # Redirect stdin to placate older versions of autoconf. Sigh.
1974 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1976 echo "$ac_t""found" 1>&6
1978 AUTOCONF="$missing_dir/missing autoconf"
1979 echo "$ac_t""missing" 1>&6
1982 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1983 echo "configure:1984: checking for working autoheader" >&5
1984 # Run test in a subshell; some versions of sh will print an error if
1985 # an executable is not found, even if stderr is redirected.
1986 # Redirect stdin to placate older versions of autoconf. Sigh.
1987 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1988 AUTOHEADER=autoheader
1989 echo "$ac_t""found" 1>&6
1991 AUTOHEADER="$missing_dir/missing autoheader"
1992 echo "$ac_t""missing" 1>&6
1996 # Extract the first word of "locate", so it can be a program name with args.
1997 set dummy locate; ac_word=$2
1998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999 echo "configure:2000: checking for $ac_word" >&5
2000 if eval "test \"`echo '$''{'ac_cv_path_LOCATE'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2005 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
2008 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a dos path.
2011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2013 for ac_dir in $ac_dummy; do
2014 test -z "$ac_dir" && ac_dir=.
2015 if test -f $ac_dir/$ac_word; then
2016 ac_cv_path_LOCATE="$ac_dir/$ac_word"
2024 LOCATE="$ac_cv_path_LOCATE"
2025 if test -n "$LOCATE"; then
2026 echo "$ac_t""$LOCATE" 1>&6
2028 echo "$ac_t""no" 1>&6
2031 # Extract the first word of "dirname", so it can be a program name with args.
2032 set dummy dirname; ac_word=$2
2033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2034 echo "configure:2035: checking for $ac_word" >&5
2035 if eval "test \"`echo '$''{'ac_cv_path_DIRNAME'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2040 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
2043 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a dos path.
2046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2048 for ac_dir in $ac_dummy; do
2049 test -z "$ac_dir" && ac_dir=.
2050 if test -f $ac_dir/$ac_word; then
2051 ac_cv_path_DIRNAME="$ac_dir/$ac_word"
2059 DIRNAME="$ac_cv_path_DIRNAME"
2060 if test -n "$DIRNAME"; then
2061 echo "$ac_t""$DIRNAME" 1>&6
2063 echo "$ac_t""no" 1>&6
2066 # Extract the first word of "grep", so it can be a program name with args.
2067 set dummy grep; ac_word=$2
2068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_word" >&5
2070 if eval "test \"`echo '$''{'ac_cv_path_GREP'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2075 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
2078 ac_cv_path_GREP="$GREP" # Let the user override the test with a dos path.
2081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2083 for ac_dir in $ac_dummy; do
2084 test -z "$ac_dir" && ac_dir=.
2085 if test -f $ac_dir/$ac_word; then
2086 ac_cv_path_GREP="$ac_dir/$ac_word"
2094 GREP="$ac_cv_path_GREP"
2095 if test -n "$GREP"; then
2096 echo "$ac_t""$GREP" 1>&6
2098 echo "$ac_t""no" 1>&6
2102 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2103 echo "configure:2104: checking for AIX" >&5
2104 cat > conftest.$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2113 egrep "yes" >/dev/null 2>&1; then
2115 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2116 #define _ALL_SOURCE 1
2121 echo "$ac_t""no" 1>&6
2129 if test "$WITH_THREADS" = "yes"; then
2130 if test $ac_cv_prog_suncc = "yes"; then
2131 CFLAGS="$CFLAGS -mt"
2134 for ac_hdr in pthread.h
2136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2138 echo "configure:2139: checking for $ac_hdr" >&5
2139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2148 { (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2150 if test -z "$ac_err"; then
2152 eval "ac_cv_header_$ac_safe=yes"
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2158 eval "ac_cv_header_$ac_safe=no"
2162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2163 echo "$ac_t""yes" 1>&6
2164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2165 cat >> confdefs.h <<EOF
2166 #define $ac_tr_hdr 1
2170 echo "$ac_t""no" 1>&6
2175 if test "X$ac_cv_header_pthread_h" = "X"; then
2176 { echo "configure: error: "You are trying to use threads without a POSIX <pthread.h>"" 1>&2; exit 1; }
2179 echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
2180 echo "configure:2181: checking for pthread_join in -lpthread" >&5
2181 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 ac_save_LIBS="$LIBS"
2186 LIBS="-lpthread $LIBS"
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2193 char pthread_join();
2199 if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2206 eval "ac_cv_lib_$ac_lib_var=no"
2209 LIBS="$ac_save_LIBS"
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 PTHREADLIB="-lpthread"
2217 echo "$ac_t""no" 1>&6
2223 echo $ac_n "checking for library containing sem_init""... $ac_c" 1>&6
2224 echo "configure:2225: checking for library containing sem_init" >&5
2225 if eval "test \"`echo '$''{'ac_cv_search_sem_init'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 ac_func_search_save_LIBS="$LIBS"
2229 ac_cv_search_sem_init="no"
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2233 /* Override any gcc2 internal prototype to avoid an error. */
2234 /* We use char because int might match the return type of a gcc2
2235 builtin and then its argument prototype would still apply. */
2242 if { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2244 ac_cv_search_sem_init="none required"
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2250 test "$ac_cv_search_sem_init" = "no" && for i in pthread rt; do
2251 LIBS="-l$i "-lpthread"
2252 $ac_func_search_save_LIBS"
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 /* Override any gcc2 internal prototype to avoid an error. */
2257 /* We use char because int might match the return type of a gcc2
2258 builtin and then its argument prototype would still apply. */
2265 if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2267 ac_cv_search_sem_init="-l$i"
2270 echo "configure: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
2275 LIBS="$ac_func_search_save_LIBS"
2278 echo "$ac_t""$ac_cv_search_sem_init" 1>&6
2279 if test "$ac_cv_search_sem_init" != "no"; then
2280 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
2287 if test "X$PTHREADLIB" = "X"; then
2288 SAVED_CFLAGS=$CFLAGS
2289 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
2290 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2291 echo "configure:2292: checking for pthread_create in -lc_r" >&5
2292 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2296 ac_save_LIBS="$LIBS"
2298 cat > conftest.$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2301 /* Override any gcc2 internal prototype to avoid an error. */
2302 /* We use char because int might match the return type of a gcc2
2303 builtin and then its argument prototype would still apply. */
2304 char pthread_create();
2310 if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2312 eval "ac_cv_lib_$ac_lib_var=yes"
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2317 eval "ac_cv_lib_$ac_lib_var=no"
2320 LIBS="$ac_save_LIBS"
2323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2324 echo "$ac_t""yes" 1>&6
2328 echo "$ac_t""no" 1>&6
2333 if test "x$PTHREADLIB" != "x"; then
2334 LIBS="$LIBS $PTHREADLIB"
2335 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
2339 if test "x$PTHREADLIB" = "x"; then
2340 CFLAGS=$SAVED_CFLAGS
2341 ac_cv_header_pthread_h="no"
2346 echo $ac_n "checking for getsockname in -lsocket""... $ac_c" 1>&6
2347 echo "configure:2348: checking for getsockname in -lsocket" >&5
2348 ac_lib_var=`echo socket'_'getsockname | sed 'y%./+-%__p_%'`
2349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 ac_save_LIBS="$LIBS"
2353 LIBS="-lsocket $LIBS"
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 /* Override any gcc2 internal prototype to avoid an error. */
2358 /* We use char because int might match the return type of a gcc2
2359 builtin and then its argument prototype would still apply. */
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368 eval "ac_cv_lib_$ac_lib_var=yes"
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2373 eval "ac_cv_lib_$ac_lib_var=no"
2376 LIBS="$ac_save_LIBS"
2379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2382 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2383 cat >> confdefs.h <<EOF
2384 #define $ac_tr_lib 1
2387 LIBS="-lsocket $LIBS"
2390 echo "$ac_t""no" 1>&6
2394 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
2395 echo "configure:2396: checking for inet_aton in -lresolv" >&5
2396 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
2397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 ac_save_LIBS="$LIBS"
2401 LIBS="-lresolv $LIBS"
2402 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 /* Override any gcc2 internal prototype to avoid an error. */
2406 /* We use char because int might match the return type of a gcc2
2407 builtin and then its argument prototype would still apply. */
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2416 eval "ac_cv_lib_$ac_lib_var=yes"
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2421 eval "ac_cv_lib_$ac_lib_var=no"
2424 LIBS="$ac_save_LIBS"
2427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2428 echo "$ac_t""yes" 1>&6
2429 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2430 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2431 cat >> confdefs.h <<EOF
2432 #define $ac_tr_lib 1
2435 LIBS="-lresolv $LIBS"
2438 echo "$ac_t""no" 1>&6
2442 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
2443 echo "configure:2444: checking for inet_ntoa in -lnsl" >&5
2444 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
2445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2448 ac_save_LIBS="$LIBS"
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 /* Override any gcc2 internal prototype to avoid an error. */
2454 /* We use char because int might match the return type of a gcc2
2455 builtin and then its argument prototype would still apply. */
2462 if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2464 eval "ac_cv_lib_$ac_lib_var=yes"
2466 echo "configure: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2469 eval "ac_cv_lib_$ac_lib_var=no"
2472 LIBS="$ac_save_LIBS"
2475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2476 echo "$ac_t""yes" 1>&6
2477 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2478 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2479 cat >> confdefs.h <<EOF
2480 #define $ac_tr_lib 1
2486 echo "$ac_t""no" 1>&6
2492 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2495 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2496 echo "configure:2497: checking for $ac_hdr that defines DIR" >&5
2497 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2500 cat > conftest.$ac_ext <<EOF
2501 #line 2502 "configure"
2502 #include "confdefs.h"
2503 #include <sys/types.h>
2509 if { (eval echo configure:2510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2511 eval "ac_cv_header_dirent_$ac_safe=yes"
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2516 eval "ac_cv_header_dirent_$ac_safe=no"
2520 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2521 echo "$ac_t""yes" 1>&6
2522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2523 cat >> confdefs.h <<EOF
2524 #define $ac_tr_hdr 1
2526 ac_header_dirent=$ac_hdr; break
2528 echo "$ac_t""no" 1>&6
2531 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2532 if test $ac_header_dirent = dirent.h; then
2533 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2534 echo "configure:2535: checking for opendir in -ldir" >&5
2535 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2539 ac_save_LIBS="$LIBS"
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2544 /* Override any gcc2 internal prototype to avoid an error. */
2545 /* We use char because int might match the return type of a gcc2
2546 builtin and then its argument prototype would still apply. */
2553 if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2555 eval "ac_cv_lib_$ac_lib_var=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2560 eval "ac_cv_lib_$ac_lib_var=no"
2563 LIBS="$ac_save_LIBS"
2566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2567 echo "$ac_t""yes" 1>&6
2570 echo "$ac_t""no" 1>&6
2574 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2575 echo "configure:2576: checking for opendir in -lx" >&5
2576 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2577 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2580 ac_save_LIBS="$LIBS"
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2585 /* Override any gcc2 internal prototype to avoid an error. */
2586 /* We use char because int might match the return type of a gcc2
2587 builtin and then its argument prototype would still apply. */
2594 if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2596 eval "ac_cv_lib_$ac_lib_var=yes"
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2601 eval "ac_cv_lib_$ac_lib_var=no"
2604 LIBS="$ac_save_LIBS"
2607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2608 echo "$ac_t""yes" 1>&6
2611 echo "$ac_t""no" 1>&6
2616 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2617 echo "configure:2618: checking for ANSI C header files" >&5
2618 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2630 { (eval echo configure:2631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2632 if test -z "$ac_err"; then
2634 ac_cv_header_stdc=yes
2637 echo "configure: failed program was:" >&5
2638 cat conftest.$ac_ext >&5
2640 ac_cv_header_stdc=no
2644 if test $ac_cv_header_stdc = yes; then
2645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2646 cat > conftest.$ac_ext <<EOF
2647 #line 2648 "configure"
2648 #include "confdefs.h"
2651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2652 egrep "memchr" >/dev/null 2>&1; then
2656 ac_cv_header_stdc=no
2662 if test $ac_cv_header_stdc = yes; then
2663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2664 cat > conftest.$ac_ext <<EOF
2665 #line 2666 "configure"
2666 #include "confdefs.h"
2669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2670 egrep "free" >/dev/null 2>&1; then
2674 ac_cv_header_stdc=no
2680 if test $ac_cv_header_stdc = yes; then
2681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2682 if test "$cross_compiling" = yes; then
2685 cat > conftest.$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2689 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2690 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2691 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2692 int main () { int i; for (i = 0; i < 256; i++)
2693 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2697 if { (eval echo configure:2698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2701 echo "configure: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2704 ac_cv_header_stdc=no
2712 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2713 if test $ac_cv_header_stdc = yes; then
2714 cat >> confdefs.h <<\EOF
2715 #define STDC_HEADERS 1
2720 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2721 echo "configure:2722: checking whether time.h and sys/time.h may both be included" >&5
2722 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2725 cat > conftest.$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2728 #include <sys/types.h>
2729 #include <sys/time.h>
2735 if { (eval echo configure:2736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2737 ac_cv_header_time=yes
2739 echo "configure: failed program was:" >&5
2740 cat conftest.$ac_ext >&5
2742 ac_cv_header_time=no
2747 echo "$ac_t""$ac_cv_header_time" 1>&6
2748 if test $ac_cv_header_time = yes; then
2749 cat >> confdefs.h <<\EOF
2750 #define TIME_WITH_SYS_TIME 1
2755 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2756 echo "configure:2757: checking for sys/wait.h that is POSIX.1 compatible" >&5
2757 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 cat > conftest.$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2763 #include <sys/types.h>
2764 #include <sys/wait.h>
2766 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2769 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2774 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2777 if { (eval echo configure:2778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2779 ac_cv_header_sys_wait_h=yes
2781 echo "configure: failed program was:" >&5
2782 cat conftest.$ac_ext >&5
2784 ac_cv_header_sys_wait_h=no
2789 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2790 if test $ac_cv_header_sys_wait_h = yes; then
2791 cat >> confdefs.h <<\EOF
2792 #define HAVE_SYS_WAIT_H 1
2826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2828 echo "configure:2829: checking for $ac_hdr" >&5
2829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2838 { (eval echo configure:2839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2840 if test -z "$ac_err"; then
2842 eval "ac_cv_header_$ac_safe=yes"
2845 echo "configure: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2848 eval "ac_cv_header_$ac_safe=no"
2852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2853 echo "$ac_t""yes" 1>&6
2854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2855 cat >> confdefs.h <<EOF
2856 #define $ac_tr_hdr 1
2860 echo "$ac_t""no" 1>&6
2866 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
2867 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
2868 echo "configure:2869: checking for regex.h" >&5
2869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2870 echo $ac_n "(cached) $ac_c" 1>&6
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2878 { (eval echo configure:2879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2880 if test -z "$ac_err"; then
2882 eval "ac_cv_header_$ac_safe=yes"
2885 echo "configure: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2888 eval "ac_cv_header_$ac_safe=no"
2892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2893 echo "$ac_t""yes" 1>&6
2894 cat >> confdefs.h <<\EOF
2895 #define HAVE_REGEX_H 1
2899 echo "$ac_t""no" 1>&6
2902 if test "x$ac_cv_header_regex_h" = "xyes"; then
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2915 egrep "yes" >/dev/null 2>&1; then
2917 cat >> confdefs.h <<\EOF
2918 #define HAVE_REG_EXTENDED 1
2928 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
2930 cat >> confdefs.h <<\EOF
2936 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
2938 cat >> confdefs.h <<\EOF
2946 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2947 echo "configure:2948: checking for off_t" >&5
2948 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 cat > conftest.$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2954 #include <sys/types.h>
2960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2961 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2963 ac_cv_type_off_t=yes
2971 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2972 if test $ac_cv_type_off_t = no; then
2973 cat >> confdefs.h <<\EOF
2979 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2980 echo "configure:2981: checking for pid_t" >&5
2981 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2987 #include <sys/types.h>
2993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2994 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2996 ac_cv_type_pid_t=yes
3004 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3005 if test $ac_cv_type_pid_t = no; then
3006 cat >> confdefs.h <<\EOF
3012 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3013 echo "configure:3014: checking for size_t" >&5
3014 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3017 cat > conftest.$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3020 #include <sys/types.h>
3026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3027 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3029 ac_cv_type_size_t=yes
3032 ac_cv_type_size_t=no
3037 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3038 if test $ac_cv_type_size_t = no; then
3039 cat >> confdefs.h <<\EOF
3040 #define size_t unsigned
3045 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3046 echo "configure:3047: checking for uid_t in sys/types.h" >&5
3047 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 #include <sys/types.h>
3055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056 egrep "uid_t" >/dev/null 2>&1; then
3058 ac_cv_type_uid_t=yes
3067 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3068 if test $ac_cv_type_uid_t = no; then
3069 cat >> confdefs.h <<\EOF
3073 cat >> confdefs.h <<\EOF
3081 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3082 echo "configure:3083: checking for socklen_t" >&5
3083 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3086 ac_cv_type_socklen_t=no
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 #ifdef HAVE_SYS_TYPES_H
3091 #include <sys/types.h>
3093 #ifdef HAVE_SYS_SOCKET_H
3094 #include <sys/socket.h>
3101 if { (eval echo configure:3102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3103 ac_cv_type_socklen_t=yes
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3113 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
3115 if test "$ac_cv_type_socklen_t" != "yes"; then
3116 cat >> confdefs.h <<\EOF
3117 #define socklen_t int
3124 echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
3125 echo "configure:3126: checking for uint8_t" >&5
3126 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 ac_cv_type_uint8_t=no
3130 cat > conftest.$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3133 #ifdef HAVE_INTTYPES_H
3134 #include <inttypes.h>
3136 #ifdef HAVE_STDINT_H
3144 if { (eval echo configure:3145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3146 ac_cv_type_uint8_t=yes
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3156 echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
3158 if test "$ac_cv_type_uint8_t" != "yes"; then
3159 cat >> confdefs.h <<\EOF
3160 #define uint8_t unsigned char
3167 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3168 echo "configure:3169: checking for uint32_t" >&5
3169 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3172 ac_cv_type_uint32_t=no
3173 cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3176 #ifdef HAVE_INTTYPES_H
3177 #include <inttypes.h>
3179 #ifdef HAVE_STDINT_H
3187 if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3189 ac_cv_type_uint32_t=yes
3191 echo "configure: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3199 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
3201 if test "$ac_cv_type_uint32_t" != "yes"; then
3202 cat >> confdefs.h <<\EOF
3203 #define uint32_t unsigned int
3233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_func" >&5
3235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 /* System header to define __stub macros and hopefully few prototypes,
3242 which can conflict with char $ac_func(); below. */
3244 /* Override any gcc2 internal prototype to avoid an error. */
3245 /* We use char because int might match the return type of a gcc2
3246 builtin and then its argument prototype would still apply. */
3251 /* The GNU C library defines this for functions which it implements
3252 to always fail with ENOSYS. Some functions are actually named
3253 something starting with __ and the normal name is an alias. */
3254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3262 if { (eval echo configure:3263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3264 eval "ac_cv_func_$ac_func=yes"
3266 echo "configure: failed program was:" >&5
3267 cat conftest.$ac_ext >&5
3269 eval "ac_cv_func_$ac_func=no"
3274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3275 echo "$ac_t""yes" 1>&6
3276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3277 cat >> confdefs.h <<EOF
3278 #define $ac_tr_func 1
3282 echo "$ac_t""no" 1>&6
3297 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3298 echo "configure:3299: checking whether $ac_func must be declared" >&5
3299 if eval "test \"`echo '$''{'radius_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3308 #ifdef HAVE_UNISTD_H
3317 #ifdef HAVE_RESOURCE_H
3318 #include <resource.h>
3320 #ifdef HAVE_GETOPT_H
3323 #ifdef HAVE_MALLOC_H
3332 #ifdef HAVE_SYS_SELECT_H
3333 #include <sys/select.h>
3341 #ifdef HAVE_SYSLOG_H
3344 #ifdef HAVE_INTTYPES_H
3345 #include <inttypes.h>
3347 #ifdef HAVE_STDINT_H
3350 #ifdef HAVE_ARPA_INET_H
3351 #include <arpa/inet.h>
3355 char *(*pfn) = (char *(*)) $ac_func
3358 if { (eval echo configure:3359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3360 eval "radius_cv_decl_needed_$ac_func=no"
3362 echo "configure: failed program was:" >&5
3363 cat conftest.$ac_ext >&5
3365 eval "radius_cv_decl_needed_$ac_func=yes"
3370 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
3371 echo "$ac_t""yes" 1>&6
3372 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3373 cat >> confdefs.h <<EOF
3374 #define $radius_tr_decl 1
3378 echo "$ac_t""no" 1>&6
3384 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3385 echo "configure:3386: checking return type of signal handlers" >&5
3386 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3387 echo $ac_n "(cached) $ac_c" 1>&6
3389 cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3392 #include <sys/types.h>
3398 extern "C" void (*signal (int, void (*)(int)))(int);
3400 void (*signal ()) ();
3407 if { (eval echo configure:3408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3409 ac_cv_type_signal=void
3411 echo "configure: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3414 ac_cv_type_signal=int
3419 echo "$ac_t""$ac_cv_type_signal" 1>&6
3420 cat >> confdefs.h <<EOF
3421 #define RETSIGTYPE $ac_cv_type_signal
3426 if test "x$ac_cv_header_utmpx_h" = "xyes"
3429 echo $ac_n "checking for ut_xtime in struct utmpx""... $ac_c" 1>&6
3430 echo "configure:3431: checking for ut_xtime in struct utmpx" >&5
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3439 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
3443 int foo = offsetof(struct utmpx, ut_xtime)
3446 if { (eval echo configure:3447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3450 echo "configure: failed program was:" >&5
3451 cat conftest.$ac_ext >&5
3457 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
3458 if test "x$has_element" != "x"; then
3459 echo "$ac_t""yes" 1>&6
3460 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
3462 echo "$ac_t""no" 1>&6
3463 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
3466 if test "x$ac_cv_type_struct_utmpx_ut_xtime" = "x"
3468 cat >> confdefs.h <<\EOF
3469 #define ut_xtime ut_tv.tv_sec
3476 echo $ac_n "checking for working const""... $ac_c" 1>&6
3477 echo "configure:3478: checking for working const" >&5
3478 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3481 cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3487 /* Ultrix mips cc rejects this. */
3488 typedef int charset[2]; const charset x;
3489 /* SunOS 4.1.1 cc rejects this. */
3490 char const *const *ccp;
3492 /* NEC SVR4.0.2 mips cc rejects this. */
3493 struct point {int x, y;};
3494 static struct point const zero = {0,0};
3495 /* AIX XL C 1.02.0.0 rejects this.
3496 It does not let you subtract one const X* pointer from another in an arm
3497 of an if-expression whose if-part is not a constant expression */
3498 const char *g = "string";
3499 ccp = &g + (g ? g-g : 0);
3500 /* HPUX 7.0 cc rejects these. */
3503 ccp = (char const *const *) p;
3504 { /* SCO 3.2v4 cc rejects this. */
3506 char const *s = 0 ? (char *) 0 : (char const *) 0;
3510 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3512 const int *foo = &x[0];
3515 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3516 typedef const int *iptr;
3520 { /* AIX XL C 1.02.0.0 rejects this saying
3521 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3522 struct s { int j; const int *ap[3]; };
3523 struct s *b; b->j = 5;
3525 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3531 if { (eval echo configure:3532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3535 echo "configure: failed program was:" >&5
3536 cat conftest.$ac_ext >&5
3543 echo "$ac_t""$ac_cv_c_const" 1>&6
3544 if test $ac_cv_c_const = no; then
3545 cat >> confdefs.h <<\EOF
3552 echo $ac_n "checking type of OS""... $ac_c" 1>&6
3553 echo "configure:3554: checking type of OS" >&5
3555 echo "$ac_t""$OS" 1>&6
3556 if test "$OS" = "OS/2"; then
3563 if test "x$GCC" = "xyes"; then
3564 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
3567 echo $ac_n "checking for developer gcc flags""... $ac_c" 1>&6
3568 echo "configure:3569: checking for developer gcc flags" >&5
3569 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
3570 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
3571 CFLAGS="$CFLAGS $devflags"
3573 echo "$ac_t""yes. Using $devflags" 1>&6
3576 CFLAGS="$CFLAGS -DNDEBUG"
3578 echo "$ac_t""no." 1>&6
3582 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3583 echo "configure:3584: checking for crypt in -lcrypt" >&5
3584 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3588 ac_save_LIBS="$LIBS"
3589 LIBS="-lcrypt $LIBS"
3590 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3593 /* Override any gcc2 internal prototype to avoid an error. */
3594 /* We use char because int might match the return type of a gcc2
3595 builtin and then its argument prototype would still apply. */
3602 if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3604 eval "ac_cv_lib_$ac_lib_var=yes"
3606 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3609 eval "ac_cv_lib_$ac_lib_var=no"
3612 LIBS="$ac_save_LIBS"
3615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3616 echo "$ac_t""yes" 1>&6
3620 echo "$ac_t""no" 1>&6
3623 if test "$CRYPTLIB" != ""; then
3624 cat >> confdefs.h <<\EOF
3625 #define HAVE_CRYPT 1
3629 echo $ac_n "checking for crypt""... $ac_c" 1>&6
3630 echo "configure:3631: checking for crypt" >&5
3631 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3637 /* System header to define __stub macros and hopefully few prototypes,
3638 which can conflict with char crypt(); below. */
3640 /* Override any gcc2 internal prototype to avoid an error. */
3641 /* We use char because int might match the return type of a gcc2
3642 builtin and then its argument prototype would still apply. */
3647 /* The GNU C library defines this for functions which it implements
3648 to always fail with ENOSYS. Some functions are actually named
3649 something starting with __ and the normal name is an alias. */
3650 #if defined (__stub_crypt) || defined (__stub___crypt)
3658 if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3660 eval "ac_cv_func_crypt=yes"
3662 echo "configure: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3665 eval "ac_cv_func_crypt=no"
3670 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
3671 echo "$ac_t""yes" 1>&6
3672 cat >> confdefs.h <<\EOF
3673 #define HAVE_CRYPT 1
3677 echo "$ac_t""no" 1>&6
3682 echo $ac_n "checking for setkey in -lcipher""... $ac_c" 1>&6
3683 echo "configure:3684: checking for setkey in -lcipher" >&5
3684 ac_lib_var=`echo cipher'_'setkey | sed 'y%./+-%__p_%'`
3685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3688 ac_save_LIBS="$LIBS"
3689 LIBS="-lcipher $LIBS"
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 /* Override any gcc2 internal prototype to avoid an error. */
3694 /* We use char because int might match the return type of a gcc2
3695 builtin and then its argument prototype would still apply. */
3702 if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3704 eval "ac_cv_lib_$ac_lib_var=yes"
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3709 eval "ac_cv_lib_$ac_lib_var=no"
3712 LIBS="$ac_save_LIBS"
3715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3716 echo "$ac_t""yes" 1>&6
3717 CRYPTLIB="${CRYPTLIB} -lcipher"
3720 echo "$ac_t""no" 1>&6
3725 if test "x$WITH_SNMP" = "xyes"; then
3730 echo $ac_n "checking for asn1.h""... $ac_c" 1>&6
3731 echo "configure:3732: checking for asn1.h" >&5
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3737 #ifdef HAVE_SYS_TYPES_H
3738 #include <sys/types.h>
3740 #ifdef HAVE_STDINT_H
3749 #ifdef HAVE_UNISTD_H
3757 if { (eval echo configure:3758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3761 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5
3768 if test "x$SNMP_INCLUDE" = "x"; then
3769 old_CFLAGS="$CFLAGS"
3770 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
3771 CFLAGS="$old_CFLAGS -I$try"
3772 cat > conftest.$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3776 #ifdef HAVE_SYS_TYPES_H
3777 #include <sys/types.h>
3779 #ifdef HAVE_STDINT_H
3788 #ifdef HAVE_UNISTD_H
3796 if { (eval echo configure:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3798 SNMP_INCLUDE="-I$try"
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3806 if test "x$SNMP_INCLUDE" != "x"; then
3810 CFLAGS="$old_CFLAGS"
3813 if test "x$SNMP_INCLUDE" = "x"; then
3814 echo "$ac_t""no" 1>&6
3816 echo "$ac_t""yes" 1>&6
3817 cat >> confdefs.h <<\EOF
3818 #define HAVE_ASN1_H 1
3822 old_CFLAGS="$CFLAGS"
3823 CFLAGS="$CFLAGS $SNMP_INCLUDE"
3825 echo $ac_n "checking for snmp.h""... $ac_c" 1>&6
3826 echo "configure:3827: checking for snmp.h" >&5
3827 cat > conftest.$ac_ext <<EOF
3828 #line 3829 "configure"
3829 #include "confdefs.h"
3831 #ifdef HAVE_SYS_TYPES_H
3832 #include <sys/types.h>
3834 #ifdef HAVE_STDINT_H
3843 #ifdef HAVE_UNISTD_H
3854 if { (eval echo configure:3855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3856 cat >> confdefs.h <<\EOF
3857 #define HAVE_SNMP_H 1
3859 ac_cv_header_snmp_h=yes
3861 echo "configure: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3865 if test "x$ac_cv_header_snmp_h" = "xyes"; then
3866 echo "$ac_t""yes" 1>&6
3868 echo "$ac_t""no" 1>&6
3871 echo $ac_n "checking for snmp_impl.h""... $ac_c" 1>&6
3872 echo "configure:3873: checking for snmp_impl.h" >&5
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3877 #ifdef HAVE_SYS_TYPES_H
3878 #include <sys/types.h>
3880 #ifdef HAVE_STDINT_H
3889 #ifdef HAVE_UNISTD_H
3898 #include <snmp_impl.h>
3903 if { (eval echo configure:3904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3905 cat >> confdefs.h <<\EOF
3906 #define HAVE_SNMP_IMPL_H 1
3908 ac_cv_header_snmp_impl_h=yes
3910 echo "configure: failed program was:" >&5
3911 cat conftest.$ac_ext >&5
3914 if test "x$ac_cv_header_snmp_h" = "xyes"; then
3915 echo "$ac_t""yes" 1>&6
3917 echo "$ac_t""no" 1>&6
3920 echo $ac_n "checking for snmp_build_var_op in -lsnmp""... $ac_c" 1>&6
3921 echo "configure:3922: checking for snmp_build_var_op in -lsnmp" >&5
3924 LIBS="$old_LIBS -lsnmp"
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 extern char snmp_build_var_op();
3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3937 echo "configure: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3944 if test "x$SNMP_LIBS" = "x"; then
3945 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
3946 LIBS="$old_LIBS -L$try -lsnmp"
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3950 extern char snmp_build_var_op();
3955 if { (eval echo configure:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3957 SNMP_LIBS="-L$try -lsnmp"
3959 echo "configure: failed program was:" >&5
3960 cat conftest.$ac_ext >&5
3965 if test "x$SNMP_LIBS" != "x"; then
3968 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
3969 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 extern char snmp_build_var_op();
3977 if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3979 SNMP_LIBS="-L$try -lsnmp -lcrypto"
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3987 if test "x$SNMP_LIBS" != "x"; then
3994 CFLAGS="$old_CFLAGS"
3995 if test "x$SNMP_LIBS" = "x"; then
3996 echo "$ac_t""no" 1>&6
3999 echo "$ac_t""yes" 1>&6
4000 cat >> confdefs.h <<\EOF
4004 cat >> confdefs.h <<\EOF
4005 #define HAVE_LIBSNMP 1
4013 if test "X$ac_cv_func_sem_init" = "Xno"; then
4015 echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
4016 echo "configure:4017: checking for sem_init in -lposix4" >&5
4017 ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
4018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4019 echo $ac_n "(cached) $ac_c" 1>&6
4021 ac_save_LIBS="$LIBS"
4022 LIBS="-lposix4 $LIBS"
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4026 /* Override any gcc2 internal prototype to avoid an error. */
4027 /* We use char because int might match the return type of a gcc2
4028 builtin and then its argument prototype would still apply. */
4035 if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4037 eval "ac_cv_lib_$ac_lib_var=yes"
4039 echo "configure: failed program was:" >&5
4040 cat conftest.$ac_ext >&5
4042 eval "ac_cv_lib_$ac_lib_var=no"
4045 LIBS="$ac_save_LIBS"
4048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4049 echo "$ac_t""yes" 1>&6
4050 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4051 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4052 cat >> confdefs.h <<EOF
4053 #define $ac_tr_lib 1
4056 LIBS="-lposix4 $LIBS"
4059 echo "$ac_t""no" 1>&6
4063 if test "X$ac_cv_lib_posix4_sem_init" = "X"; then
4064 if test "$WITH_THREAD_POOL" = "yes"; then
4065 echo "configure: warning: You do not have posix semaphores. Disabling thread pools" 1>&2
4075 echo $ac_n "checking for isql.h""... $ac_c" 1>&6
4076 echo "configure:4077: checking for isql.h" >&5
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4086 if { (eval echo configure:4087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4097 if test "x$ODBC_INCLUDE" = "x"; then
4098 old_CFLAGS="$CFLAGS"
4102 if test "x$LOCATE" != "x"; then
4106 for x in `${LOCATE} $file 2>/dev/null`; do
4107 base=`echo $x | sed "s%/${file}%%"`
4108 if test "x$x" = "x$base"; then
4112 dir=`${DIRNAME} $x 2>/dev/null`
4113 exclude=`echo ${dir} | ${GREP} /home`
4114 if test "x$exclude" != "x"; then
4118 already=`echo \$odbc_include_dir ${DIRS} | ${GREP} ${dir}`
4119 if test "x$already" = "x"; then
4125 eval "odbc_include_dir=\"\$odbc_include_dir $DIRS\""
4128 for try in /usr/include /usr/local/include/odbc /usr/local/odbc/include $odbc_include_dir; do
4129 CFLAGS="$old_CFLAGS -I$try"
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4138 if { (eval echo configure:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4140 ODBC_INCLUDE="-I$try"
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4148 if test "x$ODBC_INCLUDE" != "x"; then
4152 CFLAGS="$old_CFLAGS"
4155 if test "x$ODBC_INCLUDE" = "x"; then
4156 echo "$ac_t""no" 1>&6
4158 echo "$ac_t""yes" 1>&6
4160 echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
4161 echo "configure:4162: checking for SQLConnect in -lodbc" >&5
4167 if test "x$LOCATE" != "x"; then
4169 file=libodbc${libltdl_cv_shlibext}
4171 for x in `${LOCATE} $file 2>/dev/null`; do
4172 base=`echo $x | sed "s%/${file}%%"`
4173 if test "x$x" = "x$base"; then
4177 dir=`${DIRNAME} $x 2>/dev/null`
4178 exclude=`echo ${dir} | ${GREP} /home`
4179 if test "x$exclude" != "x"; then
4183 already=`echo \$odbc_lib_dir ${DIRS} | ${GREP} ${dir}`
4184 if test "x$already" = "x"; then
4190 eval "odbc_lib_dir=\"\$odbc_lib_dir $DIRS\""
4194 if test "x$LOCATE" != "x"; then
4198 for x in `${LOCATE} $file 2>/dev/null`; do
4199 base=`echo $x | sed "s%/${file}%%"`
4200 if test "x$x" = "x$base"; then
4204 dir=`${DIRNAME} $x 2>/dev/null`
4205 exclude=`echo ${dir} | ${GREP} /home`
4206 if test "x$exclude" != "x"; then
4210 already=`echo \$odbc_lib_dir ${DIRS} | ${GREP} ${dir}`
4211 if test "x$already" = "x"; then
4217 eval "odbc_lib_dir=\"\$odbc_lib_dir $DIRS\""
4220 for try in /usr/lib /usr/lib/odbc /usr/local/lib/odbc /usr/local/odbc/lib $odbc_lib_dir; do
4221 LIBS="$old_LIBS -L$try -lodbc"
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225 extern char SQLConnect();
4230 if { (eval echo configure:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4232 ODBC_LIBS="-L$try -lodbc"
4234 echo "configure: failed program was:" >&5
4235 cat conftest.$ac_ext >&5
4240 if test "x$ODBC_LIBS" != "x"; then
4246 if test "x$ODBC_LIBS" = "x"; then
4247 echo "$ac_t""no" 1>&6
4250 echo "$ac_t""yes" 1>&6
4251 cat >> confdefs.h <<\EOF
4252 #define HAVE_ISQL_H 1
4260 LIBTOOL="`pwd`/libtool"
4268 if test "$WITH_THREAD_POOL" = "yes"; then
4269 if test "$WITH_THREADS" != "yes"; then
4270 { echo "configure: error: You must have threads enabled for thread pools to work." 1>&2; exit 1; }
4273 if test "X$PTHREADLIB" = "X"; then
4274 { echo "configure: error: You must have threading libraries for thread pools to work." 1>&2; exit 1; }
4281 for foo in `find src/modules -name configure -print`; do
4282 bar=`echo $foo | sed 's%/configure$%%g'`
4283 mysubdirs="$mysubdirs $bar"
4286 subdirs="libltdl $mysubdirs"
4293 USE_SHARED_LIBS=$enable_shared
4295 USE_STATIC_LIBS=$enable_static
4304 cat > confcache <<\EOF
4305 # This file is a shell script that caches the results of configure
4306 # tests run on this system so they can be shared between configure
4307 # scripts and configure runs. It is not useful on other systems.
4308 # If it contains results you don't want to keep, you may remove or edit it.
4310 # By default, configure uses ./config.cache as the cache file,
4311 # creating it if it does not exist already. You can give configure
4312 # the --cache-file=FILE option to use a different cache file; that is
4313 # what configure does when it calls configure scripts in
4314 # subdirectories, so they share the cache.
4315 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4316 # config.status only pays attention to the cache file if you give it the
4317 # --recheck option to rerun configure.
4320 # The following way of writing the cache mishandles newlines in values,
4321 # but we know of no workaround that is simple, portable, and efficient.
4322 # So, don't put newlines in cache variables' values.
4323 # Ultrix sh set writes to stderr and can't be redirected directly,
4324 # and sets the high bit in the cache file unless we assign to the vars.
4326 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4328 # `set' does not quote correctly, so add quotes (double-quote substitution
4329 # turns \\\\ into \\, and sed turns \\ into \).
4331 -e "s/'/'\\\\''/g" \
4332 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4335 # `set' quotes correctly as required by POSIX, so do not add quotes.
4336 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4339 if cmp -s $cache_file confcache; then
4342 if test -w $cache_file; then
4343 echo "updating cache $cache_file"
4344 cat confcache > $cache_file
4346 echo "not updating unwritable cache $cache_file"
4351 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4353 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4354 # Let make expand exec_prefix.
4355 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4357 # Any assignment to VPATH causes Sun make to only execute
4358 # the first set of double-colon rules, so remove it if not needed.
4359 # If there is a colon in the path, we need to keep it.
4360 if test "x$srcdir" = x.; then
4361 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4364 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4366 DEFS=-DHAVE_CONFIG_H
4368 # Without the "./", some shells look in PATH for config.status.
4369 : ${CONFIG_STATUS=./config.status}
4371 echo creating $CONFIG_STATUS
4372 rm -f $CONFIG_STATUS
4373 cat > $CONFIG_STATUS <<EOF
4375 # Generated automatically by configure.
4376 # Run this file to recreate the current configuration.
4377 # This directory was configured as follows,
4378 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4380 # $0 $ac_configure_args
4382 # Compiler output produced by configure, useful for debugging
4383 # configure, is in ./config.log if it exists.
4385 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4388 case "\$ac_option" in
4389 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4390 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4391 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4392 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4393 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4395 -help | --help | --hel | --he | --h)
4396 echo "\$ac_cs_usage"; exit 0 ;;
4397 *) echo "\$ac_cs_usage"; exit 1 ;;
4401 ac_given_srcdir=$srcdir
4403 trap 'rm -fr `echo "\
4405 ./src/include/build-radpaths-h \
4406 ./src/main/checkrad.pl \
4407 ./src/main/radlast \
4408 ./src/main/radtest \
4409 ./scripts/rc.radiusd \
4410 ./scripts/radwatch \
4411 ./scripts/check-radiusd-config \
4412 ./scripts/radiusd.cron.daily \
4413 ./scripts/radiusd.cron.monthly \
4414 ./scripts/cryptpasswd \
4415 ./raddb/radiusd.conf
4416 src/include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4418 cat >> $CONFIG_STATUS <<EOF
4420 # Protect against being on the right side of a sed subst in config.status.
4421 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4422 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4426 s%@CFLAGS@%$CFLAGS%g
4427 s%@CPPFLAGS@%$CPPFLAGS%g
4428 s%@CXXFLAGS@%$CXXFLAGS%g
4429 s%@FFLAGS@%$FFLAGS%g
4431 s%@LDFLAGS@%$LDFLAGS%g
4433 s%@exec_prefix@%$exec_prefix%g
4434 s%@prefix@%$prefix%g
4435 s%@program_transform_name@%$program_transform_name%g
4436 s%@bindir@%$bindir%g
4437 s%@sbindir@%$sbindir%g
4438 s%@libexecdir@%$libexecdir%g
4439 s%@datadir@%$datadir%g
4440 s%@sysconfdir@%$sysconfdir%g
4441 s%@sharedstatedir@%$sharedstatedir%g
4442 s%@localstatedir@%$localstatedir%g
4443 s%@libdir@%$libdir%g
4444 s%@includedir@%$includedir%g
4445 s%@oldincludedir@%$oldincludedir%g
4446 s%@infodir@%$infodir%g
4447 s%@mandir@%$mandir%g
4450 s%@RANLIB@%$RANLIB%g
4454 s%@host_alias@%$host_alias%g
4455 s%@host_cpu@%$host_cpu%g
4456 s%@host_vendor@%$host_vendor%g
4457 s%@host_os@%$host_os%g
4459 s%@build_alias@%$build_alias%g
4460 s%@build_cpu@%$build_cpu%g
4461 s%@build_vendor@%$build_vendor%g
4462 s%@build_os@%$build_os%g
4464 s%@LIBTOOL@%$LIBTOOL%g
4465 s%@logdir@%$logdir%g
4466 s%@radacctdir@%$radacctdir%g
4467 s%@raddbdir@%$raddbdir%g
4468 s%@subdirs@%$subdirs%g
4470 s%@SNMPGET@%$SNMPGET%g
4471 s%@SNMPWALK@%$SNMPWALK%g
4472 s%@RUSERS@%$RUSERS%g
4473 s%@ACLOCAL@%$ACLOCAL%g
4474 s%@AUTOCONF@%$AUTOCONF%g
4475 s%@AUTOHEADER@%$AUTOHEADER%g
4476 s%@LOCATE@%$LOCATE%g
4477 s%@DIRNAME@%$DIRNAME%g
4480 s%@REGEX_EXTENDED@%$REGEX_EXTENDED%g
4481 s%@LIBPREFIX@%$LIBPREFIX%g
4482 s%@CRYPTLIB@%$CRYPTLIB%g
4483 s%@SNMP_LIBS@%$SNMP_LIBS%g
4484 s%@SNMP_INCLUDE@%$SNMP_INCLUDE%g
4485 s%@ODBC_LIBS@%$ODBC_LIBS%g
4486 s%@ODBC_INCLUDE@%$ODBC_INCLUDE%g
4487 s%@LIBLTDL@%$LIBLTDL%g
4488 s%@INCLTDL@%$INCLTDL%g
4489 s%@top_builddir@%$top_builddir%g
4490 s%@INSTALLSTRIP@%$INSTALLSTRIP%g
4491 s%@USE_SHARED_LIBS@%$USE_SHARED_LIBS%g
4492 s%@USE_STATIC_LIBS@%$USE_STATIC_LIBS%g
4493 s%@STATIC_MODULES@%$STATIC_MODULES%g
4494 s%@RADIUSD_MAJOR_VERSION@%$RADIUSD_MAJOR_VERSION%g
4495 s%@RADIUSD_MINOR_VERSION@%$RADIUSD_MINOR_VERSION%g
4496 s%@RADIUSD_VERSION@%$RADIUSD_VERSION%g
4501 cat >> $CONFIG_STATUS <<\EOF
4503 # Split the substitutions into bite-sized pieces for seds with
4504 # small command number limits, like on Digital OSF/1 and HP-UX.
4505 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4506 ac_file=1 # Number of current file.
4507 ac_beg=1 # First line for current file.
4508 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4511 while $ac_more_lines; do
4512 if test $ac_beg -gt 1; then
4513 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4515 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4517 if test ! -s conftest.s$ac_file; then
4519 rm -f conftest.s$ac_file
4521 if test -z "$ac_sed_cmds"; then
4522 ac_sed_cmds="sed -f conftest.s$ac_file"
4524 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4526 ac_file=`expr $ac_file + 1`
4528 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4531 if test -z "$ac_sed_cmds"; then
4536 cat >> $CONFIG_STATUS <<EOF
4538 CONFIG_FILES=\${CONFIG_FILES-"\
4540 ./src/include/build-radpaths-h \
4541 ./src/main/checkrad.pl \
4542 ./src/main/radlast \
4543 ./src/main/radtest \
4544 ./scripts/rc.radiusd \
4545 ./scripts/radwatch \
4546 ./scripts/check-radiusd-config \
4547 ./scripts/radiusd.cron.daily \
4548 ./scripts/radiusd.cron.monthly \
4549 ./scripts/cryptpasswd \
4550 ./raddb/radiusd.conf
4553 cat >> $CONFIG_STATUS <<\EOF
4554 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4555 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4557 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4558 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4559 *) ac_file_in="${ac_file}.in" ;;
4562 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4564 # Remove last slash and all that follows it. Not all systems have dirname.
4565 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4566 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4567 # The file is in a subdirectory.
4568 test ! -d "$ac_dir" && mkdir "$ac_dir"
4569 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4570 # A "../" for each directory in $ac_dir_suffix.
4571 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4573 ac_dir_suffix= ac_dots=
4576 case "$ac_given_srcdir" in
4578 if test -z "$ac_dots"; then top_srcdir=.
4579 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4580 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4582 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4583 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4587 echo creating "$ac_file"
4589 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4591 *Makefile*) ac_comsub="1i\\
4592 # $configure_input" ;;
4596 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4598 s%@configure_input@%$configure_input%g
4599 s%@srcdir@%$srcdir%g
4600 s%@top_srcdir@%$top_srcdir%g
4601 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4605 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4606 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4608 # ac_d sets the value in "#define NAME VALUE" lines.
4609 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4610 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4613 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4614 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4615 ac_uB='\([ ]\)%\1#\2define\3'
4618 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4619 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4620 ac_eB='$%\1#\2define\3'
4624 if test "${CONFIG_HEADERS+set}" != set; then
4626 cat >> $CONFIG_STATUS <<EOF
4627 CONFIG_HEADERS="src/include/autoconf.h"
4629 cat >> $CONFIG_STATUS <<\EOF
4631 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4632 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4634 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4635 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4636 *) ac_file_in="${ac_file}.in" ;;
4639 echo creating $ac_file
4641 rm -f conftest.frag conftest.in conftest.out
4642 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4643 cat $ac_file_inputs > conftest.in
4647 # Transform confdefs.h into a sed script conftest.vals that substitutes
4648 # the proper values into config.h.in to produce config.h. And first:
4649 # Protect against being on the right side of a sed subst in config.status.
4650 # Protect against being in an unquoted here document in config.status.
4652 cat > conftest.hdr <<\EOF
4655 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4659 sed -n -f conftest.hdr confdefs.h > conftest.vals
4662 # This sed command replaces #undef with comments. This is necessary, for
4663 # example, in the case of _POSIX_SOURCE, which is predefined and required
4664 # on some systems where configure will not decide to define it.
4665 cat >> conftest.vals <<\EOF
4666 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4669 # Break up conftest.vals because some shells have a limit on
4670 # the size of here documents, and old seds have small limits too.
4675 ac_lines=`grep -c . conftest.vals`
4676 # grep -c gives empty output for an empty file on some AIX systems.
4677 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4678 # Write a limited-size here document to conftest.frag.
4679 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4680 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4682 sed -f conftest.frag conftest.in > conftest.out
4684 mv conftest.out conftest.in
4686 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4688 mv conftest.tail conftest.vals
4692 cat >> $CONFIG_STATUS <<\EOF
4693 rm -f conftest.frag conftest.h
4694 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4695 cat conftest.in >> conftest.h
4697 if cmp -s $ac_file conftest.h 2>/dev/null; then
4698 echo "$ac_file is unchanged"
4701 # Remove last slash and all that follows it. Not all systems have dirname.
4702 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4703 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4704 # The file is in a subdirectory.
4705 test ! -d "$ac_dir" && mkdir "$ac_dir"
4708 mv conftest.h $ac_file
4713 cat >> $CONFIG_STATUS <<EOF
4716 cat >> $CONFIG_STATUS <<\EOF
4720 chmod +x $CONFIG_STATUS
4721 rm -fr confdefs* $ac_clean_files
4722 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4724 if test "$no_recursion" != yes; then
4726 # Remove --cache-file and --srcdir arguments so they do not pile up.
4727 ac_sub_configure_args=
4729 for ac_arg in $ac_configure_args; do
4730 if test -n "$ac_prev"; then
4735 -cache-file | --cache-file | --cache-fil | --cache-fi \
4736 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4737 ac_prev=cache_file ;;
4738 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4739 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4741 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4743 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4745 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4749 for ac_config_dir in libltdl $mysubdirs; do
4751 # Do not complain, so a configure script can configure whichever
4752 # parts of a large source tree are present.
4753 if test ! -d $srcdir/$ac_config_dir; then
4757 echo configuring in $ac_config_dir
4762 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4764 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4772 # A "../" for each directory in /$ac_config_dir.
4773 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4776 .) # No --srcdir option. We are building in place.
4777 ac_sub_srcdir=$srcdir ;;
4778 /*) # Absolute path.
4779 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4781 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4784 # Check for guested configure; otherwise get Cygnus style configure.
4785 if test -f $ac_sub_srcdir/configure; then
4786 ac_sub_configure=$ac_sub_srcdir/configure
4787 elif test -f $ac_sub_srcdir/configure.in; then
4788 ac_sub_configure=$ac_configure
4790 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4794 # The recursion is here.
4795 if test -n "$ac_sub_configure"; then
4797 # Make the cache file name correct relative to the subdirectory.
4798 case "$cache_file" in
4799 /*) ac_sub_cache_file=$cache_file ;;
4801 ac_sub_cache_file="$ac_dots$cache_file" ;;
4804 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4805 # The eval makes quoting arguments work.
4806 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4809 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4823 echo timestamp > src/include/stamp-h
4824 (cd ./src/include && /bin/sh ./build-radpaths-h)
4825 (cd ./src/main && chmod +x checkrad.pl radlast radtest)
4826 (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd)
4828 cat >> src/include/autoconf.h <<EOF
4830 #define HOSTINFO "$host"
4831 #define RADIUSD_VERSION "$RADIUSD_VERSION"