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 --disable-ltdl-install do not install libltdl"
17 --with-ltdl-lib=DIR libltdl library is in DIR [default=${top_builddir}/libltdl/]"
19 --with-ltdl-include=DIR libltdl include files are in DIR [default=$top_srcdir/libltdl/]"
21 --with-system-libtool try to use libtool installed in your system [default=use our own]"
23 --enable-shared[=PKGS] build shared libraries [default=yes]"
25 --enable-static[=PKGS] build static libraries [default=yes]"
27 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
29 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
31 # Find the correct PATH separator. Usually this is `:', but
32 # DJGPP uses `;' like DOS.
33 if test "X${PATH_SEPARATOR+set}" != Xset; then
34 UNAME=${UNAME-`uname 2>/dev/null`}
36 *-DOS) lt_cv_sys_path_separator=';' ;;
37 *) lt_cv_sys_path_separator=':' ;;
39 PATH_SEPARATOR=$lt_cv_sys_path_separator
43 # Check that we are running under the correct shell.
44 SHELL=${CONFIG_SHELL-/bin/sh}
48 # Remove one level of quotation (which was required for Make).
49 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
54 if test "X$1" = X--no-reexec; then
55 # Discard the --no-reexec flag, and continue.
57 elif test "X$1" = X--fallback-echo; then
58 # Avoid inline document here, it may be left over
60 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
61 # Yippee, $echo works!
64 # Restart under the correct shell.
65 exec $SHELL "$0" --no-reexec ${1+"$@"}
68 if test "X$1" = X--fallback-echo; then
69 # used as fallback echo
77 # The HP-UX ksh and POSIX shell print the target directory to stdout
79 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
81 if test -z "$ECHO"; then
82 if test "X${echo_test_string+set}" != Xset; then
83 # find a string as large as possible, as long as the shell can cope with it
84 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
85 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
86 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
87 echo_test_string="`eval $cmd`" &&
88 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
95 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
96 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
97 test "X$echo_testing_string" = "X$echo_test_string"; then
100 # The Solaris, AIX, and Digital Unix default echo programs unquote
101 # backslashes. This makes it impossible to quote backslashes using
102 # echo "$something" | sed 's/\\/\\\\/g'
104 # So, first we look for a working echo in the user's PATH.
106 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
107 for dir in $PATH /usr/ucb; do
108 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
109 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
110 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
111 test "X$echo_testing_string" = "X$echo_test_string"; then
118 if test "X$echo" = Xecho; then
119 # We didn't find a better echo, so look for alternatives.
120 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
121 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
122 test "X$echo_testing_string" = "X$echo_test_string"; then
123 # This shell has a builtin print -r that does the trick.
125 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
126 test "X$CONFIG_SHELL" != X/bin/ksh; then
127 # If we have ksh, try running configure again with it.
128 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
129 export ORIGINAL_CONFIG_SHELL
130 CONFIG_SHELL=/bin/ksh
132 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
136 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
137 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
138 test "X$echo_testing_string" = "X$echo_test_string"; then
141 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
142 test "X$echo_testing_string" = 'X\t' &&
143 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
144 test "X$echo_testing_string" = "X$echo_test_string"; then
145 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
147 SHELL="$CONFIG_SHELL"
149 echo="$CONFIG_SHELL $0 --fallback-echo"
150 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
151 test "X$echo_testing_string" = 'X\t' &&
152 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
153 test "X$echo_testing_string" = "X$echo_test_string"; then
154 echo="$CONFIG_SHELL $0 --fallback-echo"
156 # maybe with a smaller string...
159 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
160 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
167 if test "$prev" != 'sed 50q "$0"'; then
168 echo_test_string=`eval $prev`
169 export echo_test_string
170 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
172 # Oops. We lost completely, so just stick with echo.
181 # Copy echo and quote the copy suitably for passing to libtool from
182 # the Makefile, instead of quoting the original, which is used later.
184 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
185 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
190 --disable-libtool-lock avoid locking (might break parallel builds)"
192 --with-pic try to use only PIC/non-PIC objects [default=use both]"
194 --enable-strict-dependencies Fail configure on lack of module dependancy."
196 --with-logdir=DIR Directory for logfiles [LOCALSTATEDIR/log/radius] "
198 --with-radacctdir=PATH Directory for detail files [LOGDIR/radacct] "
200 --with-raddbdir=DIR Directory for config files [SYSCONFDIR/raddb] "
202 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)"
204 --with-threads Use threads, if available. (default=yes) "
206 --with-snmp Compile in SNMP support. (default=yes)"
208 --with-large-files Compile in large (2G+) file support. (default=no)"
210 --with-static-modules=QUOTED-MODULE-LIST"
212 --with-modules=QUOTED-MODULE-LIST"
214 --enable-developer Enables features of interest to developers."
216 --with-experimental-modules Use experimental and unstable modules. (default=no) "
218 --with-openssl-includes=DIR Directory to look for OpenSSL include files"
220 --with-openssl-libraries=DIR Directory to look for OpenSSL library files"
222 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO"
224 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO"
226 --with-udpfromto Compile in UDPFROMTO support. (default=no)"
228 --with-edir Enable Novell eDirectory integration. (default=no) "
230 # Initialize some variables set by options.
231 # The variables have the same names as the options, with
232 # dashes changed to underlines.
234 cache_file=./config.cache
243 program_transform_name=s,x,x,
251 bindir='${exec_prefix}/bin'
252 sbindir='${exec_prefix}/sbin'
253 libexecdir='${exec_prefix}/libexec'
254 datadir='${prefix}/share'
255 sysconfdir='${prefix}/etc'
256 sharedstatedir='${prefix}/com'
257 localstatedir='${prefix}/var'
258 libdir='${exec_prefix}/lib'
259 includedir='${prefix}/include'
260 oldincludedir='/usr/include'
261 infodir='${prefix}/info'
262 mandir='${prefix}/man'
264 # Initialize some other variables.
267 SHELL=${CONFIG_SHELL-/bin/sh}
268 # Maximum number of lines to put in a shell here document.
275 # If the previous option needs an argument, assign it.
276 if test -n "$ac_prev"; then
277 eval "$ac_prev=\$ac_option"
283 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
287 # Accept the important Cygnus configure options, so we can diagnose typos.
291 -bindir | --bindir | --bindi | --bind | --bin | --bi)
293 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
294 bindir="$ac_optarg" ;;
296 -build | --build | --buil | --bui | --bu)
298 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
299 build="$ac_optarg" ;;
301 -cache-file | --cache-file | --cache-fil | --cache-fi \
302 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
303 ac_prev=cache_file ;;
304 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
305 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
306 cache_file="$ac_optarg" ;;
308 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
310 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
312 datadir="$ac_optarg" ;;
314 -disable-* | --disable-*)
315 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
316 # Reject names that are not valid shell variable names.
317 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
318 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
320 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
321 eval "enable_${ac_feature}=no" ;;
323 -enable-* | --enable-*)
324 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
325 # Reject names that are not valid shell variable names.
326 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
327 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
329 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
334 eval "enable_${ac_feature}='$ac_optarg'" ;;
336 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
337 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
338 | --exec | --exe | --ex)
339 ac_prev=exec_prefix ;;
340 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
341 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
342 | --exec=* | --exe=* | --ex=*)
343 exec_prefix="$ac_optarg" ;;
345 -gas | --gas | --ga | --g)
346 # Obsolete; use --with-gas.
349 -help | --help | --hel | --he)
350 # Omit some internal or obsolete options to make the list less imposing.
351 # This message is too long to be a string in the A/UX 3.1 sh.
353 Usage: configure [options] [host]
354 Options: [defaults in brackets after descriptions]
356 --cache-file=FILE cache test results in FILE
357 --help print this message
358 --no-create do not create output files
359 --quiet, --silent do not print \`checking...' messages
360 --version print the version of autoconf that created configure
361 Directory and file names:
362 --prefix=PREFIX install architecture-independent files in PREFIX
364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
366 --bindir=DIR user executables in DIR [EPREFIX/bin]
367 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
368 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
369 --datadir=DIR read-only architecture-independent data in DIR
371 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
372 --sharedstatedir=DIR modifiable architecture-independent data in DIR
374 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
375 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
376 --includedir=DIR C header files in DIR [PREFIX/include]
377 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
378 --infodir=DIR info documentation in DIR [PREFIX/info]
379 --mandir=DIR man documentation in DIR [PREFIX/man]
380 --srcdir=DIR find the sources in DIR [configure dir or ..]
381 --program-prefix=PREFIX prepend PREFIX to installed program names
382 --program-suffix=SUFFIX append SUFFIX to installed program names
383 --program-transform-name=PROGRAM
384 run sed PROGRAM on installed program names
388 --build=BUILD configure for building on BUILD [BUILD=HOST]
389 --host=HOST configure for HOST [guessed]
390 --target=TARGET configure for TARGET [TARGET=HOST]
391 Features and packages:
392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
396 --x-includes=DIR X include files are in DIR
397 --x-libraries=DIR X library files are in DIR
399 if test -n "$ac_help"; then
400 echo "--enable and --with options recognized:$ac_help"
404 -host | --host | --hos | --ho)
406 -host=* | --host=* | --hos=* | --ho=*)
409 -includedir | --includedir | --includedi | --included | --include \
410 | --includ | --inclu | --incl | --inc)
411 ac_prev=includedir ;;
412 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
413 | --includ=* | --inclu=* | --incl=* | --inc=*)
414 includedir="$ac_optarg" ;;
416 -infodir | --infodir | --infodi | --infod | --info | --inf)
418 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
419 infodir="$ac_optarg" ;;
421 -libdir | --libdir | --libdi | --libd)
423 -libdir=* | --libdir=* | --libdi=* | --libd=*)
424 libdir="$ac_optarg" ;;
426 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
427 | --libexe | --libex | --libe)
428 ac_prev=libexecdir ;;
429 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
430 | --libexe=* | --libex=* | --libe=*)
431 libexecdir="$ac_optarg" ;;
433 -localstatedir | --localstatedir | --localstatedi | --localstated \
434 | --localstate | --localstat | --localsta | --localst \
435 | --locals | --local | --loca | --loc | --lo)
436 ac_prev=localstatedir ;;
437 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
438 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
439 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
440 localstatedir="$ac_optarg" ;;
442 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
444 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445 mandir="$ac_optarg" ;;
448 # Obsolete; use --without-fp.
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
455 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
459 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
460 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
461 | --oldin | --oldi | --old | --ol | --o)
462 ac_prev=oldincludedir ;;
463 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
464 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
465 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
466 oldincludedir="$ac_optarg" ;;
468 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
470 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
471 prefix="$ac_optarg" ;;
473 -program-prefix | --program-prefix | --program-prefi | --program-pref \
474 | --program-pre | --program-pr | --program-p)
475 ac_prev=program_prefix ;;
476 -program-prefix=* | --program-prefix=* | --program-prefi=* \
477 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
478 program_prefix="$ac_optarg" ;;
480 -program-suffix | --program-suffix | --program-suffi | --program-suff \
481 | --program-suf | --program-su | --program-s)
482 ac_prev=program_suffix ;;
483 -program-suffix=* | --program-suffix=* | --program-suffi=* \
484 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
485 program_suffix="$ac_optarg" ;;
487 -program-transform-name | --program-transform-name \
488 | --program-transform-nam | --program-transform-na \
489 | --program-transform-n | --program-transform- \
490 | --program-transform | --program-transfor \
491 | --program-transfo | --program-transf \
492 | --program-trans | --program-tran \
493 | --progr-tra | --program-tr | --program-t)
494 ac_prev=program_transform_name ;;
495 -program-transform-name=* | --program-transform-name=* \
496 | --program-transform-nam=* | --program-transform-na=* \
497 | --program-transform-n=* | --program-transform-=* \
498 | --program-transform=* | --program-transfor=* \
499 | --program-transfo=* | --program-transf=* \
500 | --program-trans=* | --program-tran=* \
501 | --progr-tra=* | --program-tr=* | --program-t=*)
502 program_transform_name="$ac_optarg" ;;
504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
505 | -silent | --silent | --silen | --sile | --sil)
508 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
510 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
512 sbindir="$ac_optarg" ;;
514 -sharedstatedir | --sharedstatedir | --sharedstatedi \
515 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
516 | --sharedst | --shareds | --shared | --share | --shar \
518 ac_prev=sharedstatedir ;;
519 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
520 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
521 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
523 sharedstatedir="$ac_optarg" ;;
525 -site | --site | --sit)
527 -site=* | --site=* | --sit=*)
530 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
532 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
533 srcdir="$ac_optarg" ;;
535 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
536 | --syscon | --sysco | --sysc | --sys | --sy)
537 ac_prev=sysconfdir ;;
538 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
539 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
540 sysconfdir="$ac_optarg" ;;
542 -target | --target | --targe | --targ | --tar | --ta | --t)
544 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
545 target="$ac_optarg" ;;
547 -v | -verbose | --verbose | --verbos | --verbo | --verb)
550 -version | --version | --versio | --versi | --vers)
551 echo "configure generated by autoconf version 2.13"
555 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
556 # Reject names that are not valid shell variable names.
557 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
558 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
560 ac_package=`echo $ac_package| sed 's/-/_/g'`
565 eval "with_${ac_package}='$ac_optarg'" ;;
567 -without-* | --without-*)
568 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
569 # Reject names that are not valid shell variable names.
570 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
571 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
573 ac_package=`echo $ac_package| sed 's/-/_/g'`
574 eval "with_${ac_package}=no" ;;
577 # Obsolete; use --with-x.
580 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
581 | --x-incl | --x-inc | --x-in | --x-i)
582 ac_prev=x_includes ;;
583 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
584 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
585 x_includes="$ac_optarg" ;;
587 -x-libraries | --x-libraries | --x-librarie | --x-librari \
588 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
589 ac_prev=x_libraries ;;
590 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
591 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
592 x_libraries="$ac_optarg" ;;
594 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
598 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
599 echo "configure: warning: $ac_option: invalid host type" 1>&2
601 if test "x$nonopt" != xNONE; then
602 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
610 if test -n "$ac_prev"; then
611 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
614 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
616 # File descriptor usage:
619 # 2 errors and warnings
620 # 3 some systems may open it to /dev/tty
621 # 4 used on the Kubota Titan
622 # 6 checking for... messages and results
623 # 5 compiler messages saved in config.log
624 if test "$silent" = yes; then
632 This file contains any messages produced by compilers while
633 running configure, to aid debugging if configure makes a mistake.
636 # Strip out --no-create and --no-recursion so they do not pile up.
637 # Also quote any args containing shell metacharacters.
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c) ;;
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
646 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
647 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
648 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
653 # Only set these to C if already set. These must not be set unconditionally
654 # because not all systems understand e.g. LANG=C (notably SCO).
655 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
656 # Non-C LC_CTYPE values break the ctype check.
657 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
658 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
659 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
660 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
663 rm -rf conftest* confdefs.h
664 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
667 # A filename unique to this package, relative to the directory that
668 # configure is in, which we can look for to find out if srcdir is correct.
669 ac_unique_file=src/main/radiusd.c
671 # Find the source files, if location was not specified.
672 if test -z "$srcdir"; then
673 ac_srcdir_defaulted=yes
674 # Try the directory containing this script, then its parent.
676 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
677 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
679 if test ! -r $srcdir/$ac_unique_file; then
683 ac_srcdir_defaulted=no
685 if test ! -r $srcdir/$ac_unique_file; then
686 if test "$ac_srcdir_defaulted" = yes; then
687 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
689 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
692 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
694 # Prefer explicitly selected file to automatically selected ones.
695 if test -z "$CONFIG_SITE"; then
696 if test "x$prefix" != xNONE; then
697 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
699 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
702 for ac_site_file in $CONFIG_SITE; do
703 if test -r "$ac_site_file"; then
704 echo "loading site script $ac_site_file"
709 if test -r "$cache_file"; then
710 echo "loading cache $cache_file"
713 echo "creating cache $cache_file"
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
726 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
727 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
728 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
735 ac_n= ac_c='\c' ac_t=
740 # From configure.in Revision: 1.198.2.15.2.5
741 RADIUSD_MAJOR_VERSION=1
742 RADIUSD_MINOR_VERSION=1.1
743 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
746 # Extract the first word of "gcc", so it can be a program name with args.
747 set dummy gcc; ac_word=$2
748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
749 echo "configure:750: checking for $ac_word" >&5
750 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 if test -n "$CC"; then
754 ac_cv_prog_CC="$CC" # Let the user override the test.
756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
758 for ac_dir in $ac_dummy; do
759 test -z "$ac_dir" && ac_dir=.
760 if test -f $ac_dir/$ac_word; then
769 if test -n "$CC"; then
770 echo "$ac_t""$CC" 1>&6
772 echo "$ac_t""no" 1>&6
775 if test -z "$CC"; then
776 # Extract the first word of "cc", so it can be a program name with args.
777 set dummy cc; ac_word=$2
778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
779 echo "configure:780: checking for $ac_word" >&5
780 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 if test -n "$CC"; then
784 ac_cv_prog_CC="$CC" # Let the user override the test.
786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
789 for ac_dir in $ac_dummy; do
790 test -z "$ac_dir" && ac_dir=.
791 if test -f $ac_dir/$ac_word; then
792 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
801 if test $ac_prog_rejected = yes; then
802 # We found a bogon in the path, so make sure we never use it.
803 set dummy $ac_cv_prog_CC
805 if test $# -gt 0; then
806 # We chose a different compiler from the bogus one.
807 # However, it has the same basename, so the bogon will be chosen
808 # first if we set CC to just the basename; use the full file name.
810 set dummy "$ac_dir/$ac_word" "$@"
818 if test -n "$CC"; then
819 echo "$ac_t""$CC" 1>&6
821 echo "$ac_t""no" 1>&6
824 if test -z "$CC"; then
827 # Extract the first word of "cl", so it can be a program name with args.
828 set dummy cl; ac_word=$2
829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
830 echo "configure:831: checking for $ac_word" >&5
831 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
834 if test -n "$CC"; then
835 ac_cv_prog_CC="$CC" # Let the user override the test.
837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
839 for ac_dir in $ac_dummy; do
840 test -z "$ac_dir" && ac_dir=.
841 if test -f $ac_dir/$ac_word; then
850 if test -n "$CC"; then
851 echo "$ac_t""$CC" 1>&6
853 echo "$ac_t""no" 1>&6
858 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
861 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
862 echo "configure:863: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
865 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
866 ac_cpp='$CPP $CPPFLAGS'
867 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
868 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
869 cross_compiling=$ac_cv_prog_cc_cross
871 cat > conftest.$ac_ext << EOF
873 #line 874 "configure"
874 #include "confdefs.h"
878 if { (eval echo configure:879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
879 ac_cv_prog_cc_works=yes
880 # If we can't run a trivial program, we are probably using a cross compiler.
881 if (./conftest; exit) 2>/dev/null; then
882 ac_cv_prog_cc_cross=no
884 ac_cv_prog_cc_cross=yes
887 echo "configure: failed program was:" >&5
888 cat conftest.$ac_ext >&5
889 ac_cv_prog_cc_works=no
893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
894 ac_cpp='$CPP $CPPFLAGS'
895 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
896 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
897 cross_compiling=$ac_cv_prog_cc_cross
899 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
900 if test $ac_cv_prog_cc_works = no; then
901 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
903 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
904 echo "configure:905: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
905 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
906 cross_compiling=$ac_cv_prog_cc_cross
908 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
909 echo "configure:910: checking whether we are using GNU C" >&5
910 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
913 cat > conftest.c <<EOF
918 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
925 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
927 if test $ac_cv_prog_gcc = yes; then
933 ac_test_CFLAGS="${CFLAGS+set}"
934 ac_save_CFLAGS="$CFLAGS"
936 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
937 echo "configure:938: checking whether ${CC-cc} accepts -g" >&5
938 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
941 echo 'void f(){}' > conftest.c
942 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
951 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
952 if test "$ac_test_CFLAGS" = set; then
953 CFLAGS="$ac_save_CFLAGS"
954 elif test $ac_cv_prog_cc_g = yes; then
955 if test "$GCC" = yes; then
961 if test "$GCC" = yes; then
969 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
970 echo "configure:971: checking how to run the C preprocessor" >&5
971 # On Suns, sometimes $CPP names a directory.
972 if test -n "$CPP" && test -d "$CPP"; then
975 if test -z "$CPP"; then
976 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
977 echo $ac_n "(cached) $ac_c" 1>&6
979 # This must be in double quotes, not single quotes, because CPP may get
980 # substituted into the Makefile and "${CC-cc}" will confuse make.
982 # On the NeXT, cc -E runs the code through the compiler's parser,
983 # not just through cpp.
984 cat > conftest.$ac_ext <<EOF
985 #line 986 "configure"
986 #include "confdefs.h"
990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
991 { (eval echo configure:992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
993 if test -z "$ac_err"; then
997 echo "configure: failed program was:" >&5
998 cat conftest.$ac_ext >&5
1000 CPP="${CC-cc} -E -traditional-cpp"
1001 cat > conftest.$ac_ext <<EOF
1002 #line 1003 "configure"
1003 #include "confdefs.h"
1007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1008 { (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1010 if test -z "$ac_err"; then
1014 echo "configure: failed program was:" >&5
1015 cat conftest.$ac_ext >&5
1017 CPP="${CC-cc} -nologo -E"
1018 cat > conftest.$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1025 { (eval echo configure:1026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1027 if test -z "$ac_err"; then
1031 echo "configure: failed program was:" >&5
1032 cat conftest.$ac_ext >&5
1041 ac_cv_prog_CPP="$CPP"
1043 CPP="$ac_cv_prog_CPP"
1045 ac_cv_prog_CPP="$CPP"
1047 echo "$ac_t""$CPP" 1>&6
1049 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1050 echo "configure:1051: checking for AIX" >&5
1051 cat > conftest.$ac_ext <<EOF
1052 #line 1053 "configure"
1053 #include "confdefs.h"
1059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1060 egrep "yes" >/dev/null 2>&1; then
1062 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1063 #define _ALL_SOURCE 1
1068 echo "$ac_t""no" 1>&6
1074 if test $ac_cv_prog_gcc = yes; then
1075 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1076 echo "configure:1077: checking whether ${CC-cc} needs -traditional" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1080 ac_pattern="Autoconf.*'x'"
1081 cat > conftest.$ac_ext <<EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1088 egrep "$ac_pattern" >/dev/null 2>&1; then
1090 ac_cv_prog_gcc_traditional=yes
1093 ac_cv_prog_gcc_traditional=no
1098 if test $ac_cv_prog_gcc_traditional = no; then
1099 cat > conftest.$ac_ext <<EOF
1100 #line 1101 "configure"
1101 #include "confdefs.h"
1105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1106 egrep "$ac_pattern" >/dev/null 2>&1; then
1108 ac_cv_prog_gcc_traditional=yes
1115 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1116 if test $ac_cv_prog_gcc_traditional = yes; then
1117 CC="$CC -traditional"
1121 echo $ac_n "checking whether we are using SUNPro C""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether we are using SUNPro C" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_suncc'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 cat > conftest.c <<EOF
1131 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1132 ac_cv_prog_suncc=yes
1138 echo "$ac_t""$ac_cv_prog_suncc" 1>&6
1139 # Extract the first word of "ranlib", so it can be a program name with args.
1140 set dummy ranlib; ac_word=$2
1141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1142 echo "configure:1143: checking for $ac_word" >&5
1143 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 if test -n "$RANLIB"; then
1147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1151 for ac_dir in $ac_dummy; do
1152 test -z "$ac_dir" && ac_dir=.
1153 if test -f $ac_dir/$ac_word; then
1154 ac_cv_prog_RANLIB="ranlib"
1159 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1162 RANLIB="$ac_cv_prog_RANLIB"
1163 if test -n "$RANLIB"; then
1164 echo "$ac_t""$RANLIB" 1>&6
1166 echo "$ac_t""no" 1>&6
1170 abs_top_builddir=`pwd`
1176 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1177 echo "configure:1178: checking whether byte ordering is bigendian" >&5
1178 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 ac_cv_c_bigendian=unknown
1182 # See if sys/param.h defines the BYTE_ORDER macro.
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1186 #include <sys/types.h>
1187 #include <sys/param.h>
1190 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1195 if { (eval echo configure:1196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1197 # It does; now see whether it defined to BIG_ENDIAN or not.
1198 cat > conftest.$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1201 #include <sys/types.h>
1202 #include <sys/param.h>
1205 #if BYTE_ORDER != BIG_ENDIAN
1210 if { (eval echo configure:1211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1212 ac_cv_c_bigendian=yes
1214 echo "configure: failed program was:" >&5
1215 cat conftest.$ac_ext >&5
1217 ac_cv_c_bigendian=no
1221 echo "configure: failed program was:" >&5
1222 cat conftest.$ac_ext >&5
1225 if test $ac_cv_c_bigendian = unknown; then
1226 if test "$cross_compiling" = yes; then
1227 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1229 cat > conftest.$ac_ext <<EOF
1230 #line 1231 "configure"
1231 #include "confdefs.h"
1233 /* Are we little or big endian? From Harbison&Steele. */
1237 char c[sizeof (long)];
1240 exit (u.c[sizeof (long) - 1] == 1);
1243 if { (eval echo configure:1244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1245 ac_cv_c_bigendian=no
1247 echo "configure: failed program was:" >&5
1248 cat conftest.$ac_ext >&5
1250 ac_cv_c_bigendian=yes
1258 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1259 if test $ac_cv_c_bigendian = yes; then
1260 cat >> confdefs.h <<\EOF
1261 #define WORDS_BIGENDIAN 1
1267 # Extract the first word of "gmake", so it can be a program name with args.
1268 set dummy gmake; ac_word=$2
1269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1270 echo "configure:1271: checking for $ac_word" >&5
1271 if eval "test \"`echo '$''{'ac_cv_prog_GMAKE'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 if test -n "$GMAKE"; then
1275 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
1277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1279 for ac_dir in $ac_dummy; do
1280 test -z "$ac_dir" && ac_dir=.
1281 if test -f $ac_dir/$ac_word; then
1282 ac_cv_prog_GMAKE="yes"
1287 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
1290 GMAKE="$ac_cv_prog_GMAKE"
1291 if test -n "$GMAKE"; then
1292 echo "$ac_t""$GMAKE" 1>&6
1294 echo "$ac_t""no" 1>&6
1297 if test $GMAKE = no; then
1298 # Extract the first word of "make", so it can be a program name with args.
1299 set dummy make; ac_word=$2
1300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1301 echo "configure:1302: checking for $ac_word" >&5
1302 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1307 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1310 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1315 for ac_dir in $ac_dummy; do
1316 test -z "$ac_dir" && ac_dir=.
1317 if test -f $ac_dir/$ac_word; then
1318 ac_cv_path_MAKE="$ac_dir/$ac_word"
1323 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
1327 MAKE="$ac_cv_path_MAKE"
1328 if test -n "$MAKE"; then
1329 echo "$ac_t""$MAKE" 1>&6
1331 echo "$ac_t""no" 1>&6
1335 # Extract the first word of "gmake", so it can be a program name with args.
1336 set dummy gmake; ac_word=$2
1337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1338 echo "configure:1339: checking for $ac_word" >&5
1339 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1344 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1347 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1352 for ac_dir in $ac_dummy; do
1353 test -z "$ac_dir" && ac_dir=.
1354 if test -f $ac_dir/$ac_word; then
1355 ac_cv_path_MAKE="$ac_dir/$ac_word"
1360 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
1364 MAKE="$ac_cv_path_MAKE"
1365 if test -n "$MAKE"; then
1366 echo "$ac_t""$MAKE" 1>&6
1368 echo "$ac_t""no" 1>&6
1372 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
1373 if test -z "$makever"; then
1374 { echo "configure: error: GNU Make is not installed. Please download and install it
1375 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." 1>&2; exit 1; }
1379 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1380 if test -f $ac_dir/install-sh; then
1382 ac_install_sh="$ac_aux_dir/install-sh -c"
1384 elif test -f $ac_dir/install.sh; then
1386 ac_install_sh="$ac_aux_dir/install.sh -c"
1390 if test -z "$ac_aux_dir"; then
1391 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1393 ac_config_guess=$ac_aux_dir/config.guess
1394 ac_config_sub=$ac_aux_dir/config.sub
1395 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1397 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
1398 if test "${enable_ltdl_install+set}" = set; then
1399 enableval="$enable_ltdl_install"
1403 if test x"${enable_ltdl_install+set}" != xset; then
1404 enable_ltdl_install=yes
1405 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1407 # Check whether --with-ltdl-lib or --without-ltdl-lib was given.
1408 if test "${with_ltdl_lib+set}" = set; then
1409 withval="$with_ltdl_lib"
1410 if test x"withval" = x"yes" || test x"withval" = x"no" ; then
1411 echo "configure: warning: specify location of libltdl library" 1>&2
1418 save_LDFLAGS="$LDFLAGS"
1419 test -z "$withval" || LDFLAGS="$LDFLAGS -L$withval"
1420 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
1421 echo "configure:1422: checking for lt_dlinit in -lltdl" >&5
1422 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-%__p_%'`
1423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1426 ac_save_LIBS="$LIBS"
1428 cat > conftest.$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1431 /* Override any gcc2 internal prototype to avoid an error. */
1432 /* We use char because int might match the return type of a gcc2
1433 builtin and then its argument prototype would still apply. */
1440 if { (eval echo configure:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1442 eval "ac_cv_lib_$ac_lib_var=yes"
1444 echo "configure: failed program was:" >&5
1445 cat conftest.$ac_ext >&5
1447 eval "ac_cv_lib_$ac_lib_var=no"
1450 LIBS="$ac_save_LIBS"
1453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1454 echo "$ac_t""yes" 1>&6
1458 # Check whether --with-ltdl-include or --without-ltdl-include was given.
1459 if test "${with_ltdl_include+set}" = set; then
1460 withval="$with_ltdl_include"
1461 if test x"withval" = x"yes" || test x"withval" = x"no" ; then
1462 echo "configure: warning: specify location of ltdl.h" 1>&2
1465 save_CPPFLAGS="$CPPFLAGS"
1466 CPPFLAGS="$CPPFLAGS -I$withval"
1467 ac_safe=`echo "ltdl.h" | sed 'y%./+-%__p_%'`
1468 echo $ac_n "checking for ltdl.h""... $ac_c" 1>&6
1469 echo "configure:1470: checking for ltdl.h" >&5
1470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 cat > conftest.$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1479 { (eval echo configure:1480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1481 if test -z "$ac_err"; then
1483 eval "ac_cv_header_$ac_safe=yes"
1486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1489 eval "ac_cv_header_$ac_safe=no"
1493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1494 echo "$ac_t""yes" 1>&6
1496 INCLTDL="-I$withval"
1498 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
1501 echo "$ac_t""no" 1>&6
1504 CPPFLAGS="$save_CPPFLAGS"
1510 echo "$ac_t""no" 1>&6
1513 LDFLAGS="$save_LDFLAGS"
1515 if test x"$enable_ltdl_install" = xno && test x"$ltdl_found" != xyes; then
1516 echo "configure: warning: libltdl not installed, but installation disabled" 1>&2
1518 if test x"$ltdl_found" = xyes; then
1519 enable_ltdl_install="no"
1522 if test x"$enable_ltdl_install" = x"yes"; then
1523 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1524 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
1525 INCLTDL='-I${top_srcdir}/''libltdl'
1533 # Find the correct PATH separator. Usually this is `:', but
1534 # DJGPP uses `;' like DOS.
1535 if test "X${PATH_SEPARATOR+set}" != Xset; then
1536 UNAME=${UNAME-`uname 2>/dev/null`}
1538 *-DOS) lt_cv_sys_path_separator=';' ;;
1539 *) lt_cv_sys_path_separator=':' ;;
1541 PATH_SEPARATOR=$lt_cv_sys_path_separator
1544 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1545 echo "configure:1546: checking for Cygwin environment" >&5
1546 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1549 cat > conftest.$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1556 #define __CYGWIN__ __CYGWIN32__
1561 if { (eval echo configure:1562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
1574 echo "$ac_t""$ac_cv_cygwin" 1>&6
1576 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1577 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1578 echo "configure:1579: checking for mingw32 environment" >&5
1579 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1582 cat > conftest.$ac_ext <<EOF
1583 #line 1584 "configure"
1584 #include "confdefs.h"
1590 if { (eval echo configure:1591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1603 echo "$ac_t""$ac_cv_mingw32" 1>&6
1605 test "$ac_cv_mingw32" = yes && MINGW32=yes
1606 # Check whether --enable-shared or --disable-shared was given.
1607 if test "${enable_shared+set}" = set; then
1608 enableval="$enable_shared"
1609 p=${PACKAGE-default}
1611 yes) enable_shared=yes ;;
1612 no) enable_shared=no ;;
1615 # Look at the argument we got. We use all the common list separators.
1616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1617 for pkg in $enableval; do
1618 if test "X$pkg" = "X$p"; then
1629 # Check whether --enable-static or --disable-static was given.
1630 if test "${enable_static+set}" = set; then
1631 enableval="$enable_static"
1632 p=${PACKAGE-default}
1634 yes) enable_static=yes ;;
1635 no) enable_static=no ;;
1638 # Look at the argument we got. We use all the common list separators.
1639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1640 for pkg in $enableval; do
1641 if test "X$pkg" = "X$p"; then
1652 # Check whether --enable-fast-install or --disable-fast-install was given.
1653 if test "${enable_fast_install+set}" = set; then
1654 enableval="$enable_fast_install"
1655 p=${PACKAGE-default}
1657 yes) enable_fast_install=yes ;;
1658 no) enable_fast_install=no ;;
1660 enable_fast_install=no
1661 # Look at the argument we got. We use all the common list separators.
1662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1663 for pkg in $enableval; do
1664 if test "X$pkg" = "X$p"; then
1665 enable_fast_install=yes
1672 enable_fast_install=yes
1676 # Make sure we can run config.sub.
1677 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1678 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1681 echo $ac_n "checking host system type""... $ac_c" 1>&6
1682 echo "configure:1683: checking host system type" >&5
1685 case "$host_alias" in
1689 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1690 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1692 *) host_alias=$nonopt ;;
1696 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1697 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1698 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1699 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1700 echo "$ac_t""$host" 1>&6
1702 echo $ac_n "checking build system type""... $ac_c" 1>&6
1703 echo "configure:1704: checking build system type" >&5
1706 case "$build_alias" in
1709 NONE) build_alias=$host_alias ;;
1710 *) build_alias=$nonopt ;;
1714 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1715 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1716 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1717 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1718 echo "$ac_t""$build" 1>&6
1720 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1721 if test "${with_gnu_ld+set}" = set; then
1722 withval="$with_gnu_ld"
1723 test "$withval" = no || with_gnu_ld=yes
1729 if test "$GCC" = yes; then
1730 # Check if gcc -print-prog-name=ld gives a path.
1731 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1732 echo "configure:1733: checking for ld used by GCC" >&5
1735 # gcc leaves a trailing carriage return which upsets mingw
1736 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1738 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1741 # Accept absolute paths.
1742 [\\/]* | [A-Za-z]:[\\/]*)
1743 re_direlt='/[^/][^/]*/\.\./'
1744 # Canonicalize the path of ld
1745 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1746 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1747 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1749 test -z "$LD" && LD="$ac_prog"
1752 # If it fails, then pretend we aren't using GCC.
1756 # If it is relative, then search for the first ld in PATH.
1760 elif test "$with_gnu_ld" = yes; then
1761 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1762 echo "configure:1763: checking for GNU ld" >&5
1764 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1765 echo "configure:1766: checking for non-GNU ld" >&5
1767 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1770 if test -z "$LD"; then
1771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1772 for ac_dir in $PATH; do
1773 test -z "$ac_dir" && ac_dir=.
1774 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1775 lt_cv_path_LD="$ac_dir/$ac_prog"
1776 # Check to see if the program is GNU ld. I'd rather use --version,
1777 # but apparently some GNU ld's only accept -v.
1778 # Break only if it was the GNU/non-GNU ld that we prefer.
1779 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1780 test "$with_gnu_ld" != no && break
1782 test "$with_gnu_ld" != yes && break
1788 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1793 if test -n "$LD"; then
1794 echo "$ac_t""$LD" 1>&6
1796 echo "$ac_t""no" 1>&6
1798 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1799 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1800 echo "configure:1801: checking if the linker ($LD) is GNU ld" >&5
1801 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1804 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1805 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1806 lt_cv_prog_gnu_ld=yes
1808 lt_cv_prog_gnu_ld=no
1812 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1813 with_gnu_ld=$lt_cv_prog_gnu_ld
1816 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1817 echo "configure:1818: checking for $LD option to reload object files" >&5
1818 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 lt_cv_ld_reload_flag='-r'
1824 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1825 reload_flag=$lt_cv_ld_reload_flag
1826 test -n "$reload_flag" && reload_flag=" $reload_flag"
1828 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1829 echo "configure:1830: checking for BSD-compatible nm" >&5
1830 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1833 if test -n "$NM"; then
1834 # Let the user override the test.
1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1838 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1839 test -z "$ac_dir" && ac_dir=.
1840 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1841 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1842 # Check to see if the nm accepts a BSD-compat flag.
1843 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1844 # nm: unknown option "B" ignored
1845 # Tru64's nm complains that /dev/null is an invalid object file
1846 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1847 lt_cv_path_NM="$tmp_nm -B"
1849 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1850 lt_cv_path_NM="$tmp_nm -p"
1853 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1854 continue # so that we can try to find one that supports BSD flags
1859 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1864 echo "$ac_t""$NM" 1>&6
1866 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1867 echo "configure:1868: checking whether ln -s works" >&5
1868 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1872 if ln -s X conftestdata 2>/dev/null
1875 ac_cv_prog_LN_S="ln -s"
1880 LN_S="$ac_cv_prog_LN_S"
1881 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1882 echo "$ac_t""yes" 1>&6
1884 echo "$ac_t""no" 1>&6
1887 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1888 echo "configure:1889: checking how to recognise dependant libraries" >&5
1889 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1892 lt_cv_file_magic_cmd='$MAGIC_CMD'
1893 lt_cv_file_magic_test_file=
1894 lt_cv_deplibs_check_method='unknown'
1895 # Need to set the preceding variable on all platforms that support
1896 # interlibrary dependencies.
1897 # 'none' -- dependencies not supported.
1898 # `unknown' -- same as none, but documents that we really don't know.
1899 # 'pass_all' -- all dependencies passed with no checks.
1900 # 'test_compile' -- check by making test program.
1901 # 'file_magic [[regex]]' -- check by looking for files in library path
1902 # which responds to the $file_magic_cmd with a given egrep regex.
1903 # If you have `file' or equivalent on your system and you're not sure
1904 # whether `pass_all' will *always* work, you probably want this one.
1908 lt_cv_deplibs_check_method=pass_all
1912 lt_cv_deplibs_check_method=pass_all
1916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1917 lt_cv_file_magic_cmd='/usr/bin/file -L'
1918 lt_cv_file_magic_test_file=/shlib/libc.so
1921 cygwin* | mingw* | pw32*)
1922 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1923 lt_cv_file_magic_cmd='$OBJDUMP -f'
1926 darwin* | rhapsody*)
1927 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1928 lt_cv_file_magic_cmd='/usr/bin/file -L'
1930 rhapsody* | darwin1.[012])
1931 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1934 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1940 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1943 # Not sure whether the presence of OpenBSD here was a mistake.
1944 # Let's accept both of them until this is cleared up.
1945 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1946 lt_cv_file_magic_cmd=/usr/bin/file
1947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1951 lt_cv_deplibs_check_method=pass_all
1956 lt_cv_deplibs_check_method=pass_all
1960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1961 lt_cv_file_magic_cmd=/usr/bin/file
1962 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1968 # this will be overridden with pass_all, but let us keep it just in case
1969 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1973 *-32|*"-32 ") libmagic=32-bit;;
1974 *-n32|*"-n32 ") libmagic=N32;;
1975 *-64|*"-64 ") libmagic=64-bit;;
1976 *) libmagic=never-match;;
1978 # this will be overridden with pass_all, but let us keep it just in case
1979 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1982 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1983 lt_cv_deplibs_check_method=pass_all
1986 # This must be Linux ELF.
1989 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
1990 lt_cv_deplibs_check_method=pass_all ;;
1992 # glibc up to 2.1.1 does not perform some relocations on ARM
1993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1995 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1999 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2000 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2002 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2008 lt_cv_file_magic_cmd=/usr/bin/file
2009 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2013 lt_cv_file_magic_cmd=/usr/bin/file
2014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2015 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2018 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2022 osf3* | osf4* | osf5*)
2023 # this will be overridden with pass_all, but let us keep it just in case
2024 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2025 lt_cv_file_magic_test_file=/shlib/libc.so
2026 lt_cv_deplibs_check_method=pass_all
2030 lt_cv_deplibs_check_method=pass_all
2034 lt_cv_deplibs_check_method=pass_all
2035 lt_cv_file_magic_test_file=/lib/libc.so
2038 sysv5uw[78]* | sysv4*uw2*)
2039 lt_cv_deplibs_check_method=pass_all
2042 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2043 case $host_vendor in
2045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2049 lt_cv_deplibs_check_method=pass_all
2052 lt_cv_file_magic_cmd='/bin/file'
2053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2056 lt_cv_file_magic_cmd='/bin/file'
2057 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2058 lt_cv_file_magic_test_file=/lib/libc.so
2066 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2067 file_magic_cmd=$lt_cv_file_magic_cmd
2068 deplibs_check_method=$lt_cv_deplibs_check_method
2070 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2071 echo "configure:2072: checking for object suffix" >&5
2072 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2076 echo 'int i = 1;' > conftest.$ac_ext
2077 if { (eval echo configure:2078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2078 for ac_file in conftest.*; do
2081 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2085 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2090 echo "$ac_t""$ac_cv_objext" 1>&6
2091 OBJEXT=$ac_cv_objext
2092 ac_objext=$ac_cv_objext
2096 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2097 echo "configure:2098: checking for executable suffix" >&5
2098 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2105 echo 'int main () { return 0; }' > conftest.$ac_ext
2107 if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2108 for file in conftest.*; do
2110 *.$ac_ext | *.c | *.o | *.obj) ;;
2111 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2115 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2118 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2123 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2124 echo "$ac_t""${ac_cv_exeext}" 1>&6
2127 if test $host != $build; then
2128 ac_tool_prefix=${host_alias}-
2136 # Check for command to grab the raw symbol name followed by C symbol from nm.
2137 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2138 echo "configure:2139: checking command to parse $NM output" >&5
2139 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2143 # These are sane defaults that work on at least a few old systems.
2144 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2146 # Character class describing NM global symbol codes.
2147 symcode='[BCDEGRST]'
2149 # Regexp to match symbols that can be accessed directly from C.
2150 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2152 # Transform the above into a raw symbol and a C symbol.
2153 symxfrm='\1 \2\3 \3'
2155 # Transform an extracted symbol line into a proper C declaration
2156 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2158 # Transform an extracted symbol line into symbol name and symbol address
2159 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2161 # Define system-specific variables.
2166 cygwin* | mingw* | pw32*)
2167 symcode='[ABCDGISTW]'
2169 hpux*) # Its linker distinguishes data from code symbols
2170 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2171 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2174 symcode='[BCDEGRST]'
2184 # Handle CRLF in mingw tool chain
2188 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2192 # If we're using GNU nm, then use its standard symbol codes.
2193 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2194 symcode='[ABCDGISTW]'
2197 # Try without a prefix undercore, then with it.
2198 for ac_symprfx in "" "_"; do
2200 # Write the raw and C identifiers.
2201 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2203 # Check to see that the pipe works correctly.
2206 cat > conftest.$ac_ext <<EOF
2211 void nm_test_func(){}
2215 int main(){nm_test_var='a';nm_test_func();return(0);}
2218 if { (eval echo configure:2219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2219 # Now try to grab the symbols.
2221 if { (eval echo configure:2222: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2222 # Try sorting and uniquifying the output.
2223 if sort "$nlist" | uniq > "$nlist"T; then
2224 mv -f "$nlist"T "$nlist"
2229 # Make sure that we snagged all the symbols we need.
2230 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2231 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2232 cat <<EOF > conftest.$ac_ext
2238 # Now generate the symbol file.
2239 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2241 cat <<EOF >> conftest.$ac_ext
2242 #if defined (__STDC__) && __STDC__
2243 # define lt_ptr void *
2245 # define lt_ptr char *
2249 /* The mapping between symbol names and symbols. */
2254 lt_preloaded_symbols[] =
2257 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2258 cat <<\EOF >> conftest.$ac_ext
2266 # Now try linking the two files.
2267 mv conftest.$ac_objext conftstm.$ac_objext
2269 save_CFLAGS="$CFLAGS"
2270 LIBS="conftstm.$ac_objext"
2271 CFLAGS="$CFLAGS$no_builtin_flag"
2272 if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2276 CFLAGS="$save_CFLAGS"
2278 echo "cannot find nm_test_func in $nlist" >&5
2281 echo "cannot find nm_test_var in $nlist" >&5
2284 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2287 echo "$progname: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2290 rm -f conftest* conftst*
2292 # Do not use the global_symbol_pipe unless it works.
2293 if test "$pipe_works" = yes; then
2296 lt_cv_sys_global_symbol_pipe=
2302 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2303 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2304 global_symbol_to_cdecl=
2305 global_symbol_to_c_name_address=
2307 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2308 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2310 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2312 echo "$ac_t""failed" 1>&6
2314 echo "$ac_t""ok" 1>&6
2317 for ac_hdr in dlfcn.h
2319 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2321 echo "configure:2322: checking for $ac_hdr" >&5
2322 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2331 { (eval echo configure:2332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2333 if test -z "$ac_err"; then
2335 eval "ac_cv_header_$ac_safe=yes"
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2341 eval "ac_cv_header_$ac_safe=no"
2345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2346 echo "$ac_t""yes" 1>&6
2347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2348 cat >> confdefs.h <<EOF
2349 #define $ac_tr_hdr 1
2353 echo "$ac_t""no" 1>&6
2361 # Only perform the check for file, if the check method requires it
2362 case $deplibs_check_method in
2364 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2365 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2366 echo "configure:2367: checking for ${ac_tool_prefix}file" >&5
2367 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2372 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2375 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2378 ac_save_MAGIC_CMD="$MAGIC_CMD"
2379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2380 ac_dummy="/usr/bin:$PATH"
2381 for ac_dir in $ac_dummy; do
2382 test -z "$ac_dir" && ac_dir=.
2383 if test -f $ac_dir/${ac_tool_prefix}file; then
2384 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2385 if test -n "$file_magic_test_file"; then
2386 case $deplibs_check_method in
2388 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2389 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2390 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2391 egrep "$file_magic_regex" > /dev/null; then
2396 *** Warning: the command libtool uses to detect shared libraries,
2397 *** $file_magic_cmd, produces output that libtool cannot recognize.
2398 *** The result is that libtool may fail to recognize shared libraries
2399 *** as such. This will affect the creation of libtool libraries that
2400 *** depend on shared libraries, but programs linked with such libtool
2401 *** libraries will work regardless of this problem. Nevertheless, you
2402 *** may want to report the problem to your system manager and/or to
2403 *** bug-libtool@gnu.org
2413 MAGIC_CMD="$ac_save_MAGIC_CMD"
2418 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2419 if test -n "$MAGIC_CMD"; then
2420 echo "$ac_t""$MAGIC_CMD" 1>&6
2422 echo "$ac_t""no" 1>&6
2425 if test -z "$lt_cv_path_MAGIC_CMD"; then
2426 if test -n "$ac_tool_prefix"; then
2427 echo $ac_n "checking for file""... $ac_c" 1>&6
2428 echo "configure:2429: checking for file" >&5
2429 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2434 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2437 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2440 ac_save_MAGIC_CMD="$MAGIC_CMD"
2441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2442 ac_dummy="/usr/bin:$PATH"
2443 for ac_dir in $ac_dummy; do
2444 test -z "$ac_dir" && ac_dir=.
2445 if test -f $ac_dir/file; then
2446 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2447 if test -n "$file_magic_test_file"; then
2448 case $deplibs_check_method in
2450 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2452 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2453 egrep "$file_magic_regex" > /dev/null; then
2458 *** Warning: the command libtool uses to detect shared libraries,
2459 *** $file_magic_cmd, produces output that libtool cannot recognize.
2460 *** The result is that libtool may fail to recognize shared libraries
2461 *** as such. This will affect the creation of libtool libraries that
2462 *** depend on shared libraries, but programs linked with such libtool
2463 *** libraries will work regardless of this problem. Nevertheless, you
2464 *** may want to report the problem to your system manager and/or to
2465 *** bug-libtool@gnu.org
2475 MAGIC_CMD="$ac_save_MAGIC_CMD"
2480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2481 if test -n "$MAGIC_CMD"; then
2482 echo "$ac_t""$MAGIC_CMD" 1>&6
2484 echo "$ac_t""no" 1>&6
2496 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2499 echo "configure:2500: checking for $ac_word" >&5
2500 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 if test -n "$RANLIB"; then
2504 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2508 for ac_dir in $ac_dummy; do
2509 test -z "$ac_dir" && ac_dir=.
2510 if test -f $ac_dir/$ac_word; then
2511 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2518 RANLIB="$ac_cv_prog_RANLIB"
2519 if test -n "$RANLIB"; then
2520 echo "$ac_t""$RANLIB" 1>&6
2522 echo "$ac_t""no" 1>&6
2526 if test -z "$ac_cv_prog_RANLIB"; then
2527 if test -n "$ac_tool_prefix"; then
2528 # Extract the first word of "ranlib", so it can be a program name with args.
2529 set dummy ranlib; ac_word=$2
2530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2531 echo "configure:2532: checking for $ac_word" >&5
2532 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2535 if test -n "$RANLIB"; then
2536 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2540 for ac_dir in $ac_dummy; do
2541 test -z "$ac_dir" && ac_dir=.
2542 if test -f $ac_dir/$ac_word; then
2543 ac_cv_prog_RANLIB="ranlib"
2548 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2551 RANLIB="$ac_cv_prog_RANLIB"
2552 if test -n "$RANLIB"; then
2553 echo "$ac_t""$RANLIB" 1>&6
2555 echo "$ac_t""no" 1>&6
2563 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2564 set dummy ${ac_tool_prefix}strip; ac_word=$2
2565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2566 echo "configure:2567: checking for $ac_word" >&5
2567 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2570 if test -n "$STRIP"; then
2571 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2575 for ac_dir in $ac_dummy; do
2576 test -z "$ac_dir" && ac_dir=.
2577 if test -f $ac_dir/$ac_word; then
2578 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2585 STRIP="$ac_cv_prog_STRIP"
2586 if test -n "$STRIP"; then
2587 echo "$ac_t""$STRIP" 1>&6
2589 echo "$ac_t""no" 1>&6
2593 if test -z "$ac_cv_prog_STRIP"; then
2594 if test -n "$ac_tool_prefix"; then
2595 # Extract the first word of "strip", so it can be a program name with args.
2596 set dummy strip; ac_word=$2
2597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2598 echo "configure:2599: checking for $ac_word" >&5
2599 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 if test -n "$STRIP"; then
2603 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2607 for ac_dir in $ac_dummy; do
2608 test -z "$ac_dir" && ac_dir=.
2609 if test -f $ac_dir/$ac_word; then
2610 ac_cv_prog_STRIP="strip"
2615 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2618 STRIP="$ac_cv_prog_STRIP"
2619 if test -n "$STRIP"; then
2620 echo "$ac_t""$STRIP" 1>&6
2622 echo "$ac_t""no" 1>&6
2634 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2635 if test "${enable_libtool_lock+set}" = set; then
2636 enableval="$enable_libtool_lock"
2640 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2642 # Some flags need to be propagated to the compiler or linker for good
2646 # Find out which ABI we are using.
2647 echo '#line 2648 "configure"' > conftest.$ac_ext
2648 if { (eval echo configure:2649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2649 case `/usr/bin/file conftest.$ac_objext` in
2665 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2666 SAVE_CFLAGS="$CFLAGS"
2667 CFLAGS="$CFLAGS -belf"
2668 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2669 echo "configure:2670: checking whether the C compiler needs -belf" >&5
2670 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2676 ac_cpp='$CPP $CPPFLAGS'
2677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2679 cross_compiling=$ac_cv_prog_cc_cross
2681 cat > conftest.$ac_ext <<EOF
2682 #line 2683 "configure"
2683 #include "confdefs.h"
2689 if { (eval echo configure:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2691 lt_cv_cc_needs_belf=yes
2693 echo "configure: failed program was:" >&5
2694 cat conftest.$ac_ext >&5
2696 lt_cv_cc_needs_belf=no
2700 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2703 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2704 cross_compiling=$ac_cv_prog_cc_cross
2708 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2709 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2710 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2711 CFLAGS="$SAVE_CFLAGS"
2718 # Sed substitution that helps us do robust quoting. It backslashifies
2719 # metacharacters that are still active within double-quoted strings.
2720 Xsed='sed -e s/^X//'
2721 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2723 # Same as above, but do not quote variable references.
2724 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2726 # Sed substitution to delay expansion of an escaped shell variable in a
2727 # double_quote_subst'ed string.
2728 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2734 default_ofile=libtool
2735 can_build_shared=yes
2737 # All known linkers require a `.a' archive for static linking (except M$VC,
2738 # which needs '.lib').
2740 ltmain="$ac_aux_dir/ltmain.sh"
2741 ofile="$default_ofile"
2742 with_gnu_ld="$lt_cv_prog_gnu_ld"
2743 need_locks="$enable_libtool_lock"
2746 old_CFLAGS="$CFLAGS"
2748 # Set sane defaults for various variables
2749 test -z "$AR" && AR=ar
2750 test -z "$AR_FLAGS" && AR_FLAGS=cru
2751 test -z "$AS" && AS=as
2752 test -z "$CC" && CC=cc
2753 test -z "$DLLTOOL" && DLLTOOL=dlltool
2754 test -z "$LD" && LD=ld
2755 test -z "$LN_S" && LN_S="ln -s"
2756 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2757 test -z "$NM" && NM=nm
2758 test -z "$OBJDUMP" && OBJDUMP=objdump
2759 test -z "$RANLIB" && RANLIB=:
2760 test -z "$STRIP" && STRIP=:
2761 test -z "$ac_objext" && ac_objext=o
2763 if test x"$host" != x"$build"; then
2764 ac_tool_prefix=${host_alias}-
2769 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2772 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2777 # AIX sometimes has problems with the GCC collect2 program. For some
2778 # reason, if we set the COLLECT_NAMES environment variable, the problems
2779 # vanish in a puff of smoke.
2780 if test "X${COLLECT_NAMES+set}" != Xset; then
2782 export COLLECT_NAMES
2787 # Determine commands to create old-style static archives.
2788 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2789 old_postinstall_cmds='chmod 644 $oldlib'
2790 old_postuninstall_cmds=
2792 if test -n "$RANLIB"; then
2795 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2798 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2801 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2804 # Allow CC to be a program name with arguments.
2808 ## FIXME: this should be a separate macro
2810 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2811 echo "configure:2812: checking for objdir" >&5
2812 rm -f .libs 2>/dev/null
2813 mkdir .libs 2>/dev/null
2814 if test -d .libs; then
2817 # MS-DOS does not allow filenames that begin with a dot.
2820 rmdir .libs 2>/dev/null
2821 echo "$ac_t""$objdir" 1>&6
2826 ## FIXME: this should be a separate macro
2828 # Check whether --with-pic or --without-pic was given.
2829 if test "${with_pic+set}" = set; then
2836 test -z "$pic_mode" && pic_mode=default
2838 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2839 # in isolation, and that seeing it set (from the cache) indicates that
2840 # the associated values are set (in the cache) correctly too.
2841 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2842 echo "configure:2843: checking for $compiler option to produce PIC" >&5
2843 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2847 lt_cv_prog_cc_shlib=
2849 lt_cv_prog_cc_static=
2850 lt_cv_prog_cc_no_builtin=
2851 lt_cv_prog_cc_can_build_shared=$can_build_shared
2853 if test "$GCC" = yes; then
2854 lt_cv_prog_cc_wl='-Wl,'
2855 lt_cv_prog_cc_static='-static'
2859 # Below there is a dirty hack to force normal static linking with -ldl
2860 # The problem is because libdl dynamically linked with both libc and
2861 # libC (AIX C++ library), which obviously doesn't included in libraries
2862 # list by gcc. This cause undefined symbols with -static flags.
2863 # This hack allows C programs to be linked with "-static -ldl", but
2864 # not sure about C++ programs.
2865 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2868 # FIXME: we need at least 68020 code to build shared libraries, but
2869 # adding the `-m68020' flag to GCC prevents building anything better,
2871 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2873 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2874 # PIC is the default for these OSes.
2876 darwin* | rhapsody*)
2877 # PIC is the default on this platform
2878 # Common symbols not allowed in MH_DYLIB files
2879 lt_cv_prog_cc_pic='-fno-common'
2881 cygwin* | mingw* | pw32* | os2*)
2882 # This hack is so that the source file can tell whether it is being
2883 # built for inclusion in a dll (and should export symbols for example).
2884 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2887 if test -d /usr/nec; then
2888 lt_cv_prog_cc_pic=-Kconform_pic
2892 lt_cv_prog_cc_pic='-fPIC'
2896 # PORTME Check for PIC flags for the system compiler.
2898 aix3* | aix4* | aix5*)
2899 lt_cv_prog_cc_wl='-Wl,'
2900 # All AIX code is PIC.
2901 if test "$host_cpu" = ia64; then
2902 # AIX 5 now supports IA64 processor
2903 lt_cv_prog_cc_static='-Bstatic'
2905 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2909 hpux9* | hpux10* | hpux11*)
2910 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2911 lt_cv_prog_cc_wl='-Wl,'
2912 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2913 lt_cv_prog_cc_pic='+Z'
2917 lt_cv_prog_cc_wl='-Wl,'
2918 lt_cv_prog_cc_static='-non_shared'
2919 # PIC (with -KPIC) is the default.
2922 cygwin* | mingw* | pw32* | os2*)
2923 # This hack is so that the source file can tell whether it is being
2924 # built for inclusion in a dll (and should export symbols for example).
2925 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2929 lt_cv_prog_cc_pic='-KPIC'
2930 lt_cv_prog_cc_static='-Bstatic'
2933 osf3* | osf4* | osf5*)
2934 # All OSF/1 code is PIC.
2935 lt_cv_prog_cc_wl='-Wl,'
2936 lt_cv_prog_cc_static='-non_shared'
2940 lt_cv_prog_cc_pic='-Kpic'
2941 lt_cv_prog_cc_static='-dn'
2942 lt_cv_prog_cc_shlib='-belf'
2946 lt_cv_prog_cc_pic='-KPIC'
2947 lt_cv_prog_cc_static='-Bstatic'
2948 lt_cv_prog_cc_wl='-Wl,'
2952 lt_cv_prog_cc_pic='-PIC'
2953 lt_cv_prog_cc_static='-Bstatic'
2954 lt_cv_prog_cc_wl='-Qoption ld '
2957 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2958 lt_cv_prog_cc_pic='-KPIC'
2959 lt_cv_prog_cc_static='-Bstatic'
2960 if test "x$host_vendor" = xsni; then
2961 lt_cv_prog_cc_wl='-LD'
2963 lt_cv_prog_cc_wl='-Wl,'
2968 lt_cv_prog_cc_pic='-pic'
2969 lt_cv_prog_cc_static='-Bstatic'
2973 if test -d /usr/nec ;then
2974 lt_cv_prog_cc_pic='-Kconform_pic'
2975 lt_cv_prog_cc_static='-Bstatic'
2980 lt_cv_prog_cc_can_build_shared=no
2987 if test -z "$lt_cv_prog_cc_pic"; then
2988 echo "$ac_t""none" 1>&6
2990 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2992 # Check to make sure the pic_flag actually works.
2993 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2994 echo "configure:2995: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2995 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2998 save_CFLAGS="$CFLAGS"
2999 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3000 cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3008 if { (eval echo configure:3009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3011 hpux9* | hpux10* | hpux11*)
3012 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3013 # they create non-PIC objects. So, if there were any warnings, we
3014 # assume that PIC is not supported.
3015 if test -s conftest.err; then
3016 lt_cv_prog_cc_pic_works=no
3018 lt_cv_prog_cc_pic_works=yes
3022 lt_cv_prog_cc_pic_works=yes
3027 echo "configure: failed program was:" >&5
3028 cat conftest.$ac_ext >&5
3030 lt_cv_prog_cc_pic_works=no
3034 CFLAGS="$save_CFLAGS"
3039 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3041 lt_cv_prog_cc_can_build_shared=no
3043 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3046 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
3051 # Check for any special shared library compilation flags.
3052 if test -n "$lt_cv_prog_cc_shlib"; then
3053 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
3054 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
3056 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
3057 lt_cv_prog_cc_can_build_shared=no
3061 ## FIXME: this should be a separate macro
3063 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
3064 echo "configure:3065: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3065 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 lt_cv_prog_cc_static_works=no
3069 save_LDFLAGS="$LDFLAGS"
3070 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3079 if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3081 lt_cv_prog_cc_static_works=yes
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3087 LDFLAGS="$save_LDFLAGS"
3092 # Belt *and* braces to stop my trousers falling down:
3093 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3094 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
3096 pic_flag="$lt_cv_prog_cc_pic"
3097 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3098 wl="$lt_cv_prog_cc_wl"
3099 link_static_flag="$lt_cv_prog_cc_static"
3100 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3101 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3106 ## FIXME: this should be a separate macro
3108 # Check to see if options -o and -c are simultaneously supported by compiler
3109 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
3110 echo "configure:3111: checking if $compiler supports -c -o file.$ac_objext" >&5
3111 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
3112 echo $ac_n "(cached) $ac_c" 1>&6
3115 $rm -r conftest 2>/dev/null
3118 echo "int some_variable = 0;" > conftest.$ac_ext
3120 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3121 # that will create temporary files in the current directory regardless of
3122 # the output directory. Thus, making CWD read-only will cause this test
3123 # to fail, enabling locking or at least warning the user not to do parallel
3126 save_CFLAGS="$CFLAGS"
3127 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3129 if { (eval echo configure:3130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3130 # The compiler can only warn and ignore the option if not recognized
3131 # So say no if there are warnings
3132 if test -s out/conftest.err; then
3133 lt_cv_compiler_c_o=no
3135 lt_cv_compiler_c_o=yes
3138 # Append any errors to the config.log.
3139 cat out/conftest.err 1>&5
3140 lt_cv_compiler_c_o=no
3142 CFLAGS="$save_CFLAGS"
3148 $rm -r conftest 2>/dev/null
3152 compiler_c_o=$lt_cv_compiler_c_o
3153 echo "$ac_t""$compiler_c_o" 1>&6
3155 if test x"$compiler_c_o" = x"yes"; then
3156 # Check to see if we can write to a .lo
3157 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3158 echo "configure:3159: checking if $compiler supports -c -o file.lo" >&5
3159 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3163 lt_cv_compiler_o_lo=no
3164 save_CFLAGS="$CFLAGS"
3165 CFLAGS="$CFLAGS -c -o conftest.lo"
3166 save_objext="$ac_objext"
3168 cat > conftest.$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3173 int some_variable = 0;
3176 if { (eval echo configure:3177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3178 # The compiler can only warn and ignore the option if not recognized
3179 # So say no if there are warnings
3180 if test -s conftest.err; then
3181 lt_cv_compiler_o_lo=no
3183 lt_cv_compiler_o_lo=yes
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3191 ac_objext="$save_objext"
3192 CFLAGS="$save_CFLAGS"
3196 compiler_o_lo=$lt_cv_compiler_o_lo
3197 echo "$ac_t""$compiler_o_lo" 1>&6
3204 ## FIXME: this should be a separate macro
3206 # Check to see if we can do hard links to lock some files if needed
3207 hard_links="nottested"
3208 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3209 # do not overwrite the value of need_locks provided by the user
3210 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3211 echo "configure:3212: checking if we can lock with hard links" >&5
3214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3216 ln conftest.a conftest.b 2>&5 || hard_links=no
3217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3218 echo "$ac_t""$hard_links" 1>&6
3219 if test "$hard_links" = no; then
3220 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3229 ## FIXME: this should be a separate macro
3231 if test "$GCC" = yes; then
3232 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3233 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3234 echo "configure:3235: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3235 echo "int some_variable = 0;" > conftest.$ac_ext
3236 save_CFLAGS="$CFLAGS"
3237 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3238 compiler_rtti_exceptions=no
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3244 int some_variable = 0;
3247 if { (eval echo configure:3248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3249 # The compiler can only warn and ignore the option if not recognized
3250 # So say no if there are warnings
3251 if test -s conftest.err; then
3252 compiler_rtti_exceptions=no
3254 compiler_rtti_exceptions=yes
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3262 CFLAGS="$save_CFLAGS"
3263 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3265 if test "$compiler_rtti_exceptions" = "yes"; then
3266 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3268 no_builtin_flag=' -fno-builtin'
3274 ## FIXME: this should be a separate macro
3276 # See if the linker supports building shared libraries.
3277 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3278 echo "configure:3279: checking whether the linker ($LD) supports shared libraries" >&5
3280 allow_undefined_flag=
3282 need_lib_prefix=unknown
3283 need_version=unknown
3284 # when you set need_version to no, make sure it does not cause -set_version
3285 # flags to be left without arguments
3287 archive_expsym_cmds=
3288 old_archive_from_new_cmds=
3289 old_archive_from_expsyms_cmds=
3290 export_dynamic_flag_spec=
3291 whole_archive_flag_spec=
3292 thread_safe_flag_spec=
3293 hardcode_into_libs=no
3294 hardcode_libdir_flag_spec=
3295 hardcode_libdir_separator=
3298 hardcode_shlibpath_var=unsupported
3300 link_all_deplibs=unknown
3301 always_export_symbols=no
3302 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3303 # include_expsyms should be a list of space-separated symbols to be *always*
3304 # included in the symbol list
3306 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3307 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3308 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3309 # as well as any symbol that contains `d'.
3310 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3312 # platforms (ab)use it in PIC code, but their linkers get confused if
3313 # the symbol is explicitly referenced. Since portable code cannot
3314 # rely on this symbol name, it's probably fine to never include it in
3315 # preloaded symbol tables.
3316 extract_expsyms_cmds=
3319 cygwin* | mingw* | pw32*)
3320 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3321 # When not using gcc, we currently assume that we are using
3322 # Microsoft Visual C++.
3323 if test "$GCC" != yes; then
3333 if test "$with_gnu_ld" = yes; then
3334 # If archive_cmds runs LD, not CC, wlarc should be empty
3337 # See if GNU ld supports shared libraries.
3339 aix3* | aix4* | aix5*)
3340 # On AIX, the GNU linker is very broken
3341 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3345 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3346 *** to be unable to reliably create shared libraries on AIX.
3347 *** Therefore, libtool is disabling shared libraries support. If you
3348 *** really care for shared libraries, you may want to modify your PATH
3349 *** so that a non-GNU linker is found, and then restart.
3355 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3356 hardcode_libdir_flag_spec='-L$libdir'
3357 hardcode_minus_L=yes
3359 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3360 # that the semantics of dynamic libraries on AmigaOS, at least up
3361 # to version 4, is to share data among multiple programs linked
3362 # with the same dynamic library. Since this doesn't match the
3363 # behavior of shared libraries on other platforms, we can use
3369 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3370 allow_undefined_flag=unsupported
3371 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3372 # support --undefined. This deserves some investigation. FIXME
3373 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3379 cygwin* | mingw* | pw32*)
3380 # hardcode_libdir_flag_spec is actually meaningless, as there is
3381 # no search path for DLLs.
3382 hardcode_libdir_flag_spec='-L$libdir'
3383 allow_undefined_flag=unsupported
3384 always_export_symbols=yes
3386 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3387 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3388 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3389 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3390 else $CC -o impgen impgen.c ; fi)~
3391 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3393 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3395 # cygwin and mingw dlls have different entry points and sets of symbols
3397 # FIXME: what about values for MSVC?
3398 dll_entry=__cygwin_dll_entry@12
3399 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3403 dll_entry=_DllMainCRTStartup@12
3404 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3408 # mingw and cygwin differ, and it's simplest to just exclude the union
3409 # of the two symbol sets.
3410 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3412 # recent cygwin and mingw systems supply a stub DllMain which the user
3413 # can override, but on older systems we have to supply one (in ltdll.c)
3414 if test "x$lt_cv_need_dllmain" = "xyes"; then
3415 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3416 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
3417 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3423 # Extract the symbol export list from an `--export-all' def file,
3424 # then regenerate the def file from the symbol export list, so that
3425 # the compiled dll only exports the symbol export list.
3426 # Be careful not to strip the DATA tag left be newer dlltools.
3427 export_symbols_cmds="$ltdll_cmds"'
3428 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3429 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3431 # If the export-symbols file already is a .def file (1st line
3432 # is EXPORTS), use it as is.
3433 # If DATA tags from a recent dlltool are present, honour them!
3434 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3435 cp $export_symbols $output_objdir/$soname-def;
3437 echo EXPORTS > $output_objdir/$soname-def;
3439 cat $export_symbols | while read symbol; do
3442 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3443 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3445 _lt_hint=`expr 1 + \$_lt_hint`;
3449 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3450 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3451 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3452 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
3453 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3458 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3461 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3462 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3467 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3471 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3472 *** create shared libraries on Solaris systems. Therefore, libtool
3473 *** is disabling shared libraries support. We urge you to upgrade GNU
3474 *** binutils to release 2.9.1 or newer. Another option is to modify
3475 *** your PATH or compiler configuration so that the native linker is
3476 *** used, and then restart.
3479 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3488 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3491 hardcode_shlibpath_var=no
3495 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3504 if test "$ld_shlibs" = yes; then
3505 runpath_var=LD_RUN_PATH
3506 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3507 export_dynamic_flag_spec='${wl}--export-dynamic'
3509 cygwin* | mingw* | pw32*)
3510 # dlltool doesn't understand --whole-archive et. al.
3511 whole_archive_flag_spec=
3514 # ancient GNU ld didn't support --whole-archive et. al.
3515 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3516 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3518 whole_archive_flag_spec=
3524 # PORTME fill in a description of your system's linker (not GNU ld)
3527 allow_undefined_flag=unsupported
3528 always_export_symbols=yes
3529 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
3530 # Note: this linker hardcodes the directories in LIBPATH if there
3531 # are no directories specified by -L.
3532 hardcode_minus_L=yes
3533 if test "$GCC" = yes && test -z "$link_static_flag"; then
3534 # Neither direct hardcoding nor static linking is supported with a
3536 hardcode_direct=unsupported
3541 if test "$host_cpu" = ia64; then
3542 # On IA64, the linker does run time linking by default, so we don't
3543 # have to do anything special.
3544 aix_use_runtimelinking=no
3545 exp_sym_flag='-Bexport'
3548 aix_use_runtimelinking=no
3550 # Test if we are trying to use run time linking or normal
3551 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3552 # need to do runtime linking.
3553 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3554 for ld_flag in $LDFLAGS; do
3555 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3556 aix_use_runtimelinking=yes
3562 exp_sym_flag='-bexport'
3563 no_entry_flag='-bnoentry'
3566 # When large executables or shared objects are built, AIX ld can
3567 # have problems creating the table of contents. If linking a library
3568 # or program results in "error TOC overflow" add -mminimal-toc to
3569 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3570 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3574 hardcode_libdir_separator=':'
3575 if test "$GCC" = yes; then
3576 case $host_os in aix4.[012]|aix4.[012].*)
3577 collect2name=`${CC} -print-prog-name=collect2`
3578 if test -f "$collect2name" && \
3579 strings "$collect2name" | grep resolve_lib_name >/dev/null
3581 # We have reworked collect2
3584 # We have old collect2
3585 hardcode_direct=unsupported
3586 # It fails to find uninstalled libraries when the uninstalled
3587 # path is not listed in the libpath. Setting hardcode_minus_L
3588 # to unsupported forces relinking
3589 hardcode_minus_L=yes
3590 hardcode_libdir_flag_spec='-L$libdir'
3591 hardcode_libdir_separator=
3595 shared_flag='-shared'
3598 if test "$host_cpu" = ia64; then
3599 shared_flag='${wl}-G'
3601 if test "$aix_use_runtimelinking" = yes; then
3602 shared_flag='${wl}-G'
3604 shared_flag='${wl}-bM:SRE'
3609 # It seems that -bexpall can do strange things, so it is better to
3610 # generate a list of symbols to export.
3611 always_export_symbols=yes
3612 if test "$aix_use_runtimelinking" = yes; then
3613 # Warning - without using the other runtime loading flags (-brtl),
3614 # -berok will link without error, but may produce a broken library.
3615 allow_undefined_flag='-berok'
3616 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3617 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3619 if test "$host_cpu" = ia64; then
3620 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3621 allow_undefined_flag="-z nodefs"
3622 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3624 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3625 # Warning - without using the other run time loading flags,
3626 # -berok will link without error, but may produce a broken library.
3627 allow_undefined_flag='${wl}-berok'
3628 # This is a bit strange, but is similar to how AIX traditionally builds
3629 # it's shared libraries.
3630 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
3636 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3637 hardcode_libdir_flag_spec='-L$libdir'
3638 hardcode_minus_L=yes
3639 # see comment about different semantics on the GNU ld section
3643 cygwin* | mingw* | pw32*)
3644 # When not using gcc, we currently assume that we are using
3645 # Microsoft Visual C++.
3646 # hardcode_libdir_flag_spec is actually meaningless, as there is
3647 # no search path for DLLs.
3648 hardcode_libdir_flag_spec=' '
3649 allow_undefined_flag=unsupported
3650 # Tell ltmain to make .lib files, not .a files.
3652 # FIXME: Setting linknames here is a bad hack.
3653 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3654 # The linker will automatically build a .lib file if we build a DLL.
3655 old_archive_from_new_cmds='true'
3656 # FIXME: Should let the user specify the lib program.
3657 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3658 fix_srcfile_path='`cygpath -w "$srcfile"`'
3661 darwin* | rhapsody*)
3663 rhapsody* | darwin1.[012])
3664 allow_undefined_flag='-undefined suppress'
3667 allow_undefined_flag='-flat_namespace -undefined suppress'
3670 # FIXME: Relying on posixy $() will cause problems for
3671 # cross-compilation, but unfortunately the echo tests do not
3672 # yet detect zsh echo's removal of \ escapes.
3673 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3674 # We need to add '_' to the symbols in $export_symbols first
3675 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3677 hardcode_shlibpath_var=no
3678 whole_archive_flag_spec='-all_load $convenience'
3685 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3686 # support. Future versions do this automatically, but an explicit c++rt0.o
3687 # does not break anything, and helps significantly (at the cost of a little
3690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3691 hardcode_libdir_flag_spec='-R$libdir'
3693 hardcode_shlibpath_var=no
3696 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3700 hardcode_minus_L=yes
3701 hardcode_shlibpath_var=no
3704 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3706 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3707 hardcode_libdir_flag_spec='-R$libdir'
3709 hardcode_shlibpath_var=no
3712 hpux9* | hpux10* | hpux11*)
3714 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
3715 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3717 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3718 hardcode_libdir_separator=:
3720 hardcode_minus_L=yes # Not in the search PATH, but as the default
3721 # location of the library.
3722 export_dynamic_flag_spec='${wl}-E'
3726 if test "$GCC" = yes; then
3727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3729 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3732 hardcode_libdir_separator=:
3733 link_all_deplibs=yes
3737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3738 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3740 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3742 hardcode_libdir_flag_spec='-R$libdir'
3744 hardcode_shlibpath_var=no
3748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3751 hardcode_libdir_separator=:
3752 hardcode_shlibpath_var=no
3757 hardcode_shlibpath_var=no
3758 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3759 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3761 export_dynamic_flag_spec='${wl}-E'
3764 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3766 hardcode_libdir_flag_spec='-R$libdir'
3769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3770 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3777 hardcode_libdir_flag_spec='-L$libdir'
3778 hardcode_minus_L=yes
3779 allow_undefined_flag=unsupported
3780 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
3781 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3785 if test "$GCC" = yes; then
3786 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3787 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3789 allow_undefined_flag=' -expect_unresolved \*'
3790 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3793 hardcode_libdir_separator=:
3796 osf4* | osf5*) # as osf3* with the addition of -msym flag
3797 if test "$GCC" = yes; then
3798 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3799 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3802 allow_undefined_flag=' -expect_unresolved \*'
3803 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3804 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3805 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
3807 #Both c and cxx compiler support -rpath directly
3808 hardcode_libdir_flag_spec='-rpath $libdir'
3810 hardcode_libdir_separator=:
3814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3815 hardcode_shlibpath_var=no
3816 runpath_var=LD_RUN_PATH
3817 hardcode_runpath_var=yes
3818 export_dynamic_flag_spec='${wl}-Bexport'
3822 # gcc --version < 3.0 without binutils cannot create self contained
3823 # shared libraries reliably, requiring libgcc.a to resolve some of
3824 # the object symbols generated in some cases. Libraries that use
3825 # assert need libgcc.a to resolve __eprintf, for example. Linking
3826 # a copy of libgcc.a into every shared library to guarantee resolving
3827 # such symbols causes other problems: According to Tim Van Holder
3828 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3829 # (to the application) exception stack for one thing.
3830 no_undefined_flag=' -z defs'
3831 if test "$GCC" = yes; then
3832 case `$CC --version 2>/dev/null` in
3836 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3837 *** create self contained shared libraries on Solaris systems, without
3838 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3839 *** -no-undefined support, which will at least allow you to build shared
3840 *** libraries. However, you may find that when you link such libraries
3841 *** into an application without using GCC, you have to manually add
3842 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3843 *** upgrade to a newer version of GCC. Another option is to rebuild your
3844 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3851 # $CC -shared without GNU ld will not create a library from C++
3852 # object files and a static libstdc++, better avoid it by now
3853 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3854 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3855 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3856 hardcode_libdir_flag_spec='-R$libdir'
3857 hardcode_shlibpath_var=no
3859 solaris2.[0-5] | solaris2.[0-5].*) ;;
3860 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3861 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3863 link_all_deplibs=yes
3867 if test "x$host_vendor" = xsequent; then
3868 # Use $CC to link under sequent, because it throws in some extra .o
3869 # files that make .init and .fini sections work.
3870 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3872 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3874 hardcode_libdir_flag_spec='-L$libdir'
3876 hardcode_minus_L=yes
3877 hardcode_shlibpath_var=no
3881 if test "x$host_vendor" = xsno; then
3882 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
3883 hardcode_direct=yes # is this really true???
3885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3886 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3888 runpath_var='LD_RUN_PATH'
3889 hardcode_shlibpath_var=no
3893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3894 hardcode_shlibpath_var=no
3895 export_dynamic_flag_spec='-Bexport'
3899 no_undefined_flag=' -z text'
3900 # $CC -shared without GNU ld will not create a library from C++
3901 # object files and a static libstdc++, better avoid it by now
3902 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3903 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3904 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3905 hardcode_libdir_flag_spec=
3906 hardcode_shlibpath_var=no
3907 runpath_var='LD_RUN_PATH'
3911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3912 hardcode_libdir_flag_spec='-L$libdir'
3913 hardcode_shlibpath_var=no
3917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3918 hardcode_libdir_flag_spec='-L$libdir'
3919 hardcode_shlibpath_var=no
3923 if test -d /usr/nec; then
3924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3925 hardcode_shlibpath_var=no
3926 runpath_var=LD_RUN_PATH
3927 hardcode_runpath_var=yes
3933 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3936 hardcode_shlibpath_var=no
3937 hardcode_runpath_var=yes
3938 runpath_var=LD_RUN_PATH
3941 sysv5uw7* | unixware7*)
3942 no_undefined_flag='${wl}-z ${wl}text'
3943 if test "$GCC" = yes; then
3944 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3946 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3948 runpath_var='LD_RUN_PATH'
3949 hardcode_shlibpath_var=no
3957 echo "$ac_t""$ld_shlibs" 1>&6
3958 test "$ld_shlibs" = no && can_build_shared=no
3962 ## FIXME: this should be a separate macro
3964 # Check hardcoding attributes.
3965 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3966 echo "configure:3967: checking how to hardcode library paths into programs" >&5
3968 if test -n "$hardcode_libdir_flag_spec" || \
3969 test -n "$runpath_var"; then
3971 # We can hardcode non-existant directories.
3972 if test "$hardcode_direct" != no &&
3973 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3974 # have to relink, otherwise we might link with an installed library
3975 # when we should be linking with a yet-to-be-installed one
3976 ## test "$hardcode_shlibpath_var" != no &&
3977 test "$hardcode_minus_L" != no; then
3978 # Linking always hardcodes the temporary library directory.
3979 hardcode_action=relink
3981 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3982 hardcode_action=immediate
3985 # We cannot hardcode anything, or else we can only hardcode existing
3987 hardcode_action=unsupported
3989 echo "$ac_t""$hardcode_action" 1>&6
3993 ## FIXME: this should be a separate macro
3997 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3998 echo "configure:3999: checking whether stripping libraries is possible" >&5
3999 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4000 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4001 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4002 echo "$ac_t""yes" 1>&6
4004 echo "$ac_t""no" 1>&6
4009 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4010 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4012 ## FIXME: this should be a separate macro
4014 # PORTME Fill in your ld.so characteristics
4015 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
4016 echo "configure:4017: checking dynamic linker characteristics" >&5
4018 libname_spec='lib$name'
4025 shlibpath_overrides_runpath=unknown
4027 dynamic_linker="$host_os ld.so"
4028 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4029 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4034 library_names_spec='${libname}${release}.so$versuffix $libname.a'
4035 shlibpath_var=LIBPATH
4037 # AIX has no versioning support, so we append a major version to the name.
4038 soname_spec='${libname}${release}.so$major'
4043 if test "$host_cpu" = ia64; then
4044 # AIX 5 supports IA64
4045 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4046 shlibpath_var=LD_LIBRARY_PATH
4048 # With GCC up to 2.95.x, collect2 would create an import file
4049 # for dependence libraries. The import file would start with
4050 # the line `#! .'. This would cause the generated library to
4051 # depend on `.', always an invalid library. This was fixed in
4052 # development snapshots of GCC prior to 3.0.
4054 aix4 | aix4.[01] | aix4.[01].*)
4055 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4057 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4064 # AIX (on Power*) has no versioning support, so currently we can
4065 # not hardcode correct soname into executable. Probably we can
4066 # add versioning support to collect2, so additional links can
4067 # be useful in future.
4068 if test "$aix_use_runtimelinking" = yes; then
4069 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4070 # instead of lib<name>.a to let people know that these are not
4071 # typical AIX shared libraries.
4072 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4074 # We preserve .a as extension for shared libraries through AIX4.2
4075 # and later when we are not doing run time linking.
4076 library_names_spec='${libname}${release}.a $libname.a'
4077 soname_spec='${libname}${release}.so$major'
4079 shlibpath_var=LIBPATH
4084 library_names_spec='$libname.ixlibrary $libname.a'
4085 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4086 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4090 library_names_spec='${libname}.so'
4091 dynamic_linker="$host_os ld.so"
4092 shlibpath_var=LIBRARY_PATH
4098 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4099 soname_spec='${libname}${release}.so$major'
4100 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4101 shlibpath_var=LD_LIBRARY_PATH
4102 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4103 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4104 export_dynamic_flag_spec=-rdynamic
4105 # the default ld.so.conf also contains /usr/contrib/lib and
4106 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4107 # libtool to hard-code these into programs
4110 cygwin* | mingw* | pw32*)
4111 version_type=windows
4114 case $GCC,$host_os in
4116 library_names_spec='$libname.dll.a'
4117 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4118 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4119 dldir=$destdir/`dirname \$dlpath`~
4120 test -d \$dldir || mkdir -p \$dldir~
4121 $install_prog .libs/$dlname \$dldir/$dlname'
4122 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4123 dlpath=$dir/\$dldll~
4127 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4128 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4131 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4134 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4137 dynamic_linker='Win32 ld.exe'
4138 # FIXME: first we should search . and the directory the executable is in
4142 darwin* | rhapsody*)
4143 dynamic_linker="$host_os dyld"
4147 # FIXME: Relying on posixy $() will cause problems for
4148 # cross-compilation, but unfortunately the echo tests do not
4149 # yet detect zsh echo's removal of \ escapes.
4150 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
4151 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4152 shlibpath_overrides_runpath=yes
4153 shlibpath_var=DYLD_LIBRARY_PATH
4161 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4162 version_type=freebsd-$objformat
4163 case $version_type in
4165 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4170 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4174 shlibpath_var=LD_LIBRARY_PATH
4177 shlibpath_overrides_runpath=yes
4180 shlibpath_overrides_runpath=no
4181 hardcode_into_libs=yes
4190 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4191 soname_spec='${libname}${release}.so$major'
4192 shlibpath_var=LD_LIBRARY_PATH
4193 hardcode_into_libs=yes
4196 hpux9* | hpux10* | hpux11*)
4197 # Give a soname corresponding to the major version so that dld.sl refuses to
4198 # link against other versions.
4199 dynamic_linker="$host_os dld.sl"
4203 shlibpath_var=SHLIB_PATH
4204 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4205 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4206 soname_spec='${libname}${release}.sl$major'
4207 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4208 postinstall_cmds='chmod 555 $lib'
4215 soname_spec='${libname}${release}.so$major'
4216 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4222 case $LD in # libtool.m4 will add one of these switches to LD
4223 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4224 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4225 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4226 *) libsuff= shlibsuff= libmagic=never-match;;
4230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4231 shlibpath_overrides_runpath=no
4232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4236 # No shared lib support for Linux oldld, aout, or coff.
4237 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4241 # This must be Linux ELF.
4246 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4247 soname_spec='${libname}${release}.so$major'
4248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4249 shlibpath_var=LD_LIBRARY_PATH
4250 shlibpath_overrides_runpath=no
4251 # This implies no fast_install, which is unacceptable.
4252 # Some rework will be needed to allow for fast_install
4253 # before this can be enabled.
4254 hardcode_into_libs=yes
4256 # We used to test for /lib/ld.so.1 and disable shared libraries on
4257 # powerpc, because MkLinux only supported shared libraries with the
4258 # GNU dynamic linker. Since this was broken with cross compilers,
4259 # most powerpc-linux boxes support dynamic linking these days and
4260 # people can always --disable-shared, the test was removed, and we
4261 # assume the GNU/Linux dynamic linker is in use.
4262 dynamic_linker='GNU/Linux ld.so'
4269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4270 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4272 dynamic_linker='NetBSD (a.out) ld.so'
4274 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4275 soname_spec='${libname}${release}.so$major'
4276 dynamic_linker='NetBSD ld.elf_so'
4278 shlibpath_var=LD_LIBRARY_PATH
4279 shlibpath_overrides_runpath=yes
4280 hardcode_into_libs=yes
4285 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4286 shlibpath_var=LD_LIBRARY_PATH
4287 shlibpath_overrides_runpath=yes
4294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4296 openbsd2.[89] | openbsd2.[89].*)
4297 shlibpath_overrides_runpath=no
4300 shlibpath_overrides_runpath=yes
4304 shlibpath_overrides_runpath=yes
4306 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4308 shlibpath_var=LD_LIBRARY_PATH
4312 libname_spec='$name'
4314 library_names_spec='$libname.dll $libname.a'
4315 dynamic_linker='OS/2 ld.exe'
4316 shlibpath_var=LIBPATH
4319 osf3* | osf4* | osf5*)
4322 soname_spec='${libname}${release}.so'
4323 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4324 shlibpath_var=LD_LIBRARY_PATH
4325 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4326 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4331 soname_spec='${libname}${release}.so$major'
4332 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4333 shlibpath_var=LD_LIBRARY_PATH
4340 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4341 soname_spec='${libname}${release}.so$major'
4342 shlibpath_var=LD_LIBRARY_PATH
4343 shlibpath_overrides_runpath=yes
4344 hardcode_into_libs=yes
4345 # ldd complains unless libraries are executable
4346 postinstall_cmds='chmod +x $lib'
4351 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4352 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4353 shlibpath_var=LD_LIBRARY_PATH
4354 shlibpath_overrides_runpath=yes
4355 if test "$with_gnu_ld" = yes; then
4361 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4363 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4364 soname_spec='${libname}${release}.so$major'
4365 shlibpath_var=LD_LIBRARY_PATH
4366 case $host_vendor in
4368 shlibpath_overrides_runpath=no
4373 shlibpath_overrides_runpath=no
4374 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4381 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4382 soname_spec='${libname}${release}.so$major'
4383 shlibpath_var=LD_LIBRARY_PATH
4390 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4391 soname_spec='${libname}${release}.so$major'
4392 shlibpath_var=LD_LIBRARY_PATH
4396 if test -d /usr/nec ;then
4398 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4399 soname_spec='$libname.so.$major'
4400 shlibpath_var=LD_LIBRARY_PATH
4408 echo "$ac_t""$dynamic_linker" 1>&6
4409 test "$dynamic_linker" = no && can_build_shared=no
4413 ## FIXME: this should be a separate macro
4415 # Report the final consequences.
4416 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4417 echo "configure:4418: checking if libtool supports shared libraries" >&5
4418 echo "$ac_t""$can_build_shared" 1>&6
4422 ## FIXME: this should be a separate macro
4424 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4425 echo "configure:4426: checking whether to build shared libraries" >&5
4426 test "$can_build_shared" = "no" && enable_shared=no
4428 # On AIX, shared libraries and static libraries use the same namespace, and
4429 # are all built from PIC.
4432 test "$enable_shared" = yes && enable_static=no
4433 if test -n "$RANLIB"; then
4434 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4435 postinstall_cmds='$RANLIB $lib'
4440 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4441 test "$enable_shared" = yes && enable_static=no
4445 echo "$ac_t""$enable_shared" 1>&6
4449 ## FIXME: this should be a separate macro
4451 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4452 echo "configure:4453: checking whether to build static libraries" >&5
4453 # Make sure either enable_shared or enable_static is yes.
4454 test "$enable_shared" = yes || enable_static=yes
4455 echo "$ac_t""$enable_static" 1>&6
4459 if test "$hardcode_action" = relink; then
4460 # Fast installation is not supported
4461 enable_fast_install=no
4462 elif test "$shlibpath_overrides_runpath" = yes ||
4463 test "$enable_shared" = no; then
4464 # Fast installation is not necessary
4465 enable_fast_install=needless
4468 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4469 if test "$GCC" = yes; then
4470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4473 if test "x$enable_dlopen" != xyes; then
4474 enable_dlopen=unknown
4475 enable_dlopen_self=unknown
4476 enable_dlopen_self_static=unknown
4483 lt_cv_dlopen="load_add_on"
4485 lt_cv_dlopen_self=yes
4488 cygwin* | mingw* | pw32*)
4489 lt_cv_dlopen="LoadLibrary"
4494 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4495 echo "configure:4496: checking for shl_load" >&5
4496 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4497 echo $ac_n "(cached) $ac_c" 1>&6
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 /* System header to define __stub macros and hopefully few prototypes,
4503 which can conflict with char shl_load(); below. */
4505 /* Override any gcc2 internal prototype to avoid an error. */
4506 /* We use char because int might match the return type of a gcc2
4507 builtin and then its argument prototype would still apply. */
4512 /* The GNU C library defines this for functions which it implements
4513 to always fail with ENOSYS. Some functions are actually named
4514 something starting with __ and the normal name is an alias. */
4515 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4525 eval "ac_cv_func_shl_load=yes"
4527 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4530 eval "ac_cv_func_shl_load=no"
4535 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4536 echo "$ac_t""yes" 1>&6
4537 lt_cv_dlopen="shl_load"
4539 echo "$ac_t""no" 1>&6
4540 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4541 echo "configure:4542: checking for shl_load in -ldld" >&5
4542 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4544 echo $ac_n "(cached) $ac_c" 1>&6
4546 ac_save_LIBS="$LIBS"
4548 cat > conftest.$ac_ext <<EOF
4549 #line 4550 "configure"
4550 #include "confdefs.h"
4551 /* Override any gcc2 internal prototype to avoid an error. */
4552 /* We use char because int might match the return type of a gcc2
4553 builtin and then its argument prototype would still apply. */
4560 if { (eval echo configure:4561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4562 eval "ac_cv_lib_$ac_lib_var=yes"
4564 echo "configure: failed program was:" >&5
4565 cat conftest.$ac_ext >&5
4567 eval "ac_cv_lib_$ac_lib_var=no"
4570 LIBS="$ac_save_LIBS"
4573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4574 echo "$ac_t""yes" 1>&6
4575 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4577 echo "$ac_t""no" 1>&6
4578 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4579 echo "configure:4580: checking for dlopen" >&5
4580 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 cat > conftest.$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4586 /* System header to define __stub macros and hopefully few prototypes,
4587 which can conflict with char dlopen(); below. */
4589 /* Override any gcc2 internal prototype to avoid an error. */
4590 /* We use char because int might match the return type of a gcc2
4591 builtin and then its argument prototype would still apply. */
4596 /* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
4599 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4607 if { (eval echo configure:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4609 eval "ac_cv_func_dlopen=yes"
4611 echo "configure: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4614 eval "ac_cv_func_dlopen=no"
4619 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4620 echo "$ac_t""yes" 1>&6
4621 lt_cv_dlopen="dlopen"
4623 echo "$ac_t""no" 1>&6
4624 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4625 echo "configure:4626: checking for dlopen in -ldl" >&5
4626 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4630 ac_save_LIBS="$LIBS"
4632 cat > conftest.$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4635 /* Override any gcc2 internal prototype to avoid an error. */
4636 /* We use char because int might match the return type of a gcc2
4637 builtin and then its argument prototype would still apply. */
4644 if { (eval echo configure:4645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4646 eval "ac_cv_lib_$ac_lib_var=yes"
4648 echo "configure: failed program was:" >&5
4649 cat conftest.$ac_ext >&5
4651 eval "ac_cv_lib_$ac_lib_var=no"
4654 LIBS="$ac_save_LIBS"
4657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4658 echo "$ac_t""yes" 1>&6
4659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4661 echo "$ac_t""no" 1>&6
4662 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4663 echo "configure:4664: checking for dlopen in -lsvld" >&5
4664 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4668 ac_save_LIBS="$LIBS"
4670 cat > conftest.$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4673 /* Override any gcc2 internal prototype to avoid an error. */
4674 /* We use char because int might match the return type of a gcc2
4675 builtin and then its argument prototype would still apply. */
4682 if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4684 eval "ac_cv_lib_$ac_lib_var=yes"
4686 echo "configure: failed program was:" >&5
4687 cat conftest.$ac_ext >&5
4689 eval "ac_cv_lib_$ac_lib_var=no"
4692 LIBS="$ac_save_LIBS"
4695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4696 echo "$ac_t""yes" 1>&6
4697 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4699 echo "$ac_t""no" 1>&6
4700 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4701 echo "configure:4702: checking for dld_link in -ldld" >&5
4702 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4704 echo $ac_n "(cached) $ac_c" 1>&6
4706 ac_save_LIBS="$LIBS"
4708 cat > conftest.$ac_ext <<EOF
4709 #line 4710 "configure"
4710 #include "confdefs.h"
4711 /* Override any gcc2 internal prototype to avoid an error. */
4712 /* We use char because int might match the return type of a gcc2
4713 builtin and then its argument prototype would still apply. */
4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4722 eval "ac_cv_lib_$ac_lib_var=yes"
4724 echo "configure: failed program was:" >&5
4725 cat conftest.$ac_ext >&5
4727 eval "ac_cv_lib_$ac_lib_var=no"
4730 LIBS="$ac_save_LIBS"
4733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4734 echo "$ac_t""yes" 1>&6
4735 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4737 echo "$ac_t""no" 1>&6
4758 if test "x$lt_cv_dlopen" != xno; then
4764 case $lt_cv_dlopen in
4766 save_CPPFLAGS="$CPPFLAGS"
4767 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4769 save_LDFLAGS="$LDFLAGS"
4770 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4773 LIBS="$lt_cv_dlopen_libs $LIBS"
4775 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4776 echo "configure:4777: checking whether a program can dlopen itself" >&5
4777 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4780 if test "$cross_compiling" = yes; then :
4781 lt_cv_dlopen_self=cross
4783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4784 lt_status=$lt_dlunknown
4785 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure"
4787 #include "confdefs.h"
4796 # define LT_DLGLOBAL RTLD_GLOBAL
4799 # define LT_DLGLOBAL DL_GLOBAL
4801 # define LT_DLGLOBAL 0
4805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4806 find out it does not work in some platform. */
4807 #ifndef LT_DLLAZY_OR_NOW
4809 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4812 # define LT_DLLAZY_OR_NOW DL_LAZY
4815 # define LT_DLLAZY_OR_NOW RTLD_NOW
4818 # define LT_DLLAZY_OR_NOW DL_NOW
4820 # define LT_DLLAZY_OR_NOW 0
4828 extern "C" void exit (int);
4831 void fnord() { int i=42;}
4834 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4835 int status = $lt_dlunknown;
4839 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4840 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4841 /* dlclose (self); */
4847 if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4848 (./conftest; exit; ) 2>/dev/null
4851 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4852 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4853 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4856 # compilation failed
4857 lt_cv_dlopen_self=no
4865 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4867 if test "x$lt_cv_dlopen_self" = xyes; then
4868 LDFLAGS="$LDFLAGS $link_static_flag"
4869 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4870 echo "configure:4871: checking whether a statically linked program can dlopen itself" >&5
4871 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4874 if test "$cross_compiling" = yes; then :
4875 lt_cv_dlopen_self_static=cross
4877 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4878 lt_status=$lt_dlunknown
4879 cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4890 # define LT_DLGLOBAL RTLD_GLOBAL
4893 # define LT_DLGLOBAL DL_GLOBAL
4895 # define LT_DLGLOBAL 0
4899 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4900 find out it does not work in some platform. */
4901 #ifndef LT_DLLAZY_OR_NOW
4903 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4906 # define LT_DLLAZY_OR_NOW DL_LAZY
4909 # define LT_DLLAZY_OR_NOW RTLD_NOW
4912 # define LT_DLLAZY_OR_NOW DL_NOW
4914 # define LT_DLLAZY_OR_NOW 0
4922 extern "C" void exit (int);
4925 void fnord() { int i=42;}
4928 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4929 int status = $lt_dlunknown;
4933 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4934 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4935 /* dlclose (self); */
4941 if { (eval echo configure:4942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4942 (./conftest; exit; ) 2>/dev/null
4945 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4946 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4947 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4950 # compilation failed
4951 lt_cv_dlopen_self_static=no
4959 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4962 CPPFLAGS="$save_CPPFLAGS"
4963 LDFLAGS="$save_LDFLAGS"
4968 case $lt_cv_dlopen_self in
4969 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4970 *) enable_dlopen_self=unknown ;;
4973 case $lt_cv_dlopen_self_static in
4974 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4975 *) enable_dlopen_self_static=unknown ;;
4980 ## FIXME: this should be a separate macro
4982 if test "$enable_shared" = yes && test "$GCC" = yes; then
4983 case $archive_cmds in
4985 # FIXME: we may have to deal with multi-command sequences.
4988 # Test whether the compiler implicitly links with -lc since on some
4989 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4990 # to ld, don't add -lc before -lgcc.
4991 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4992 echo "configure:4993: checking whether -lc should be explicitly linked in" >&5
4993 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4997 echo 'static int dummy;' > conftest.$ac_ext
4999 if { (eval echo configure:5000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5002 libobjs=conftest.$ac_objext
5004 wl=$lt_cv_prog_cc_wl
5010 save_allow_undefined_flag=$allow_undefined_flag
5011 allow_undefined_flag=
5012 if { (eval echo configure:5013: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
5014 lt_cv_archive_cmds_need_lc=no
5016 lt_cv_archive_cmds_need_lc=yes
5018 allow_undefined_flag=$save_allow_undefined_flag
5020 cat conftest.err 1>&5
5024 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
5028 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5032 ## FIXME: this should be a separate macro
5034 # The second clause should only fire when bootstrapping the
5035 # libtool distribution, otherwise you forgot to ship ltmain.sh
5036 # with your package, and you will get complaints that there are
5037 # no rules to generate ltmain.sh.
5038 if test -f "$ltmain"; then
5041 # If there is no Makefile yet, we rely on a make rule to execute
5042 # `config.status --recheck' to rerun these tests and create the
5043 # libtool script then.
5044 test -f Makefile && make "$ltmain"
5047 if test -f "$ltmain"; then
5048 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5051 echo creating $ofile
5053 # Now quote all the things that may contain metacharacters while being
5054 # careful not to overquote the AC_SUBSTed values. We take copies of the
5055 # variables and quote the copies for generation of the libtool script.
5056 for var in echo old_CC old_CFLAGS \
5057 AR AR_FLAGS CC LD LN_S NM SHELL \
5058 reload_flag reload_cmds wl \
5059 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5060 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5061 library_names_spec soname_spec \
5062 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5063 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5064 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5065 old_striplib striplib file_magic_cmd export_symbols_cmds \
5066 deplibs_check_method allow_undefined_flag no_undefined_flag \
5067 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5068 global_symbol_to_c_name_address \
5069 hardcode_libdir_flag_spec hardcode_libdir_separator \
5070 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5071 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5074 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5075 old_postinstall_cmds | old_postuninstall_cmds | \
5076 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5077 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5078 postinstall_cmds | postuninstall_cmds | \
5079 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5080 # Double-quote double-evaled strings.
5081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5089 cat <<__EOF__ > "${ofile}T"
5092 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5093 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5094 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5096 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5097 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5099 # This program is free software; you can redistribute it and/or modify
5100 # it under the terms of the GNU General Public License as published by
5101 # the Free Software Foundation; either version 2 of the License, or
5102 # (at your option) any later version.
5104 # This program is distributed in the hope that it will be useful, but
5105 # WITHOUT ANY WARRANTY; without even the implied warranty of
5106 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5107 # General Public License for more details.
5109 # You should have received a copy of the GNU General Public License
5110 # along with this program; if not, write to the Free Software
5111 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5113 # As a special exception to the GNU General Public License, if you
5114 # distribute this file as part of a program that contains a
5115 # configuration script generated by Autoconf, you may include it under
5116 # the same distribution terms that you use for the rest of that program.
5118 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5119 Xsed="sed -e s/^X//"
5121 # The HP-UX ksh and POSIX shell print the target directory to stdout
5123 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5125 # ### BEGIN LIBTOOL CONFIG
5127 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5129 # Shell to use when invoking shell scripts.
5132 # Whether or not to build shared libraries.
5133 build_libtool_libs=$enable_shared
5135 # Whether or not to build static libraries.
5136 build_old_libs=$enable_static
5138 # Whether or not to add -lc for building shared libraries.
5139 build_libtool_need_lc=$need_lc
5141 # Whether or not to optimize for fast installation.
5142 fast_install=$enable_fast_install
5145 host_alias=$host_alias
5148 # An echo program that does not interpret backslashes.
5153 AR_FLAGS=$lt_AR_FLAGS
5155 # The default C compiler.
5158 # Is the compiler the GNU C compiler?
5161 # The linker used to build libraries.
5164 # Whether we need hard or soft links.
5167 # A BSD-compatible nm program.
5170 # A symbol stripping program
5173 # Used to examine libraries when file_magic_cmd begins "file"
5174 MAGIC_CMD=$MAGIC_CMD
5176 # Used on cygwin: DLL creation program.
5179 # Used on cygwin: object dumper.
5182 # Used on cygwin: assembler.
5185 # The name of the directory that contains temporary libtool files.
5188 # How to create reloadable object files.
5189 reload_flag=$lt_reload_flag
5190 reload_cmds=$lt_reload_cmds
5192 # How to pass a linker flag through the compiler.
5195 # Object file suffix (normally "o").
5198 # Old archive suffix (normally "a").
5201 # Executable file suffix (normally "").
5204 # Additional compiler flags for building library objects.
5205 pic_flag=$lt_pic_flag
5208 # Does compiler simultaneously support -c and -o options?
5209 compiler_c_o=$lt_compiler_c_o
5211 # Can we write directly to a .lo ?
5212 compiler_o_lo=$lt_compiler_o_lo
5214 # Must we lock files when doing compilation ?
5215 need_locks=$lt_need_locks
5217 # Do we need the lib prefix for modules?
5218 need_lib_prefix=$need_lib_prefix
5220 # Do we need a version for libraries?
5221 need_version=$need_version
5223 # Whether dlopen is supported.
5224 dlopen_support=$enable_dlopen
5226 # Whether dlopen of programs is supported.
5227 dlopen_self=$enable_dlopen_self
5229 # Whether dlopen of statically linked programs is supported.
5230 dlopen_self_static=$enable_dlopen_self_static
5232 # Compiler flag to prevent dynamic linking.
5233 link_static_flag=$lt_link_static_flag
5235 # Compiler flag to turn off builtin functions.
5236 no_builtin_flag=$lt_no_builtin_flag
5238 # Compiler flag to allow reflexive dlopens.
5239 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5241 # Compiler flag to generate shared objects directly from archives.
5242 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5244 # Compiler flag to generate thread-safe objects.
5245 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5247 # Library versioning type.
5248 version_type=$version_type
5250 # Format of library name prefix.
5251 libname_spec=$lt_libname_spec
5253 # List of archive names. First name is the real one, the rest are links.
5254 # The last name is the one that the linker finds with -lNAME.
5255 library_names_spec=$lt_library_names_spec
5257 # The coded name of the library, if different from the real name.
5258 soname_spec=$lt_soname_spec
5260 # Commands used to build and install an old-style archive.
5262 old_archive_cmds=$lt_old_archive_cmds
5263 old_postinstall_cmds=$lt_old_postinstall_cmds
5264 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5266 # Create an old-style archive from a shared archive.
5267 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5269 # Create a temporary old-style archive to link instead of a shared archive.
5270 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5272 # Commands used to build and install a shared archive.
5273 archive_cmds=$lt_archive_cmds
5274 archive_expsym_cmds=$lt_archive_expsym_cmds
5275 postinstall_cmds=$lt_postinstall_cmds
5276 postuninstall_cmds=$lt_postuninstall_cmds
5278 # Commands to strip libraries.
5279 old_striplib=$lt_old_striplib
5280 striplib=$lt_striplib
5282 # Method to check whether dependent libraries are shared objects.
5283 deplibs_check_method=$lt_deplibs_check_method
5285 # Command to use when deplibs_check_method == file_magic.
5286 file_magic_cmd=$lt_file_magic_cmd
5288 # Flag that allows shared libraries with undefined symbols to be built.
5289 allow_undefined_flag=$lt_allow_undefined_flag
5291 # Flag that forces no undefined symbols.
5292 no_undefined_flag=$lt_no_undefined_flag
5294 # Commands used to finish a libtool library installation in a directory.
5295 finish_cmds=$lt_finish_cmds
5297 # Same as above, but a single script fragment to be evaled but not shown.
5298 finish_eval=$lt_finish_eval
5300 # Take the output of nm and produce a listing of raw symbols and C names.
5301 global_symbol_pipe=$lt_global_symbol_pipe
5303 # Transform the output of nm in a proper C declaration
5304 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5306 # Transform the output of nm in a C name address pair
5307 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5309 # This is the shared library runtime path variable.
5310 runpath_var=$runpath_var
5312 # This is the shared library path variable.
5313 shlibpath_var=$shlibpath_var
5315 # Is shlibpath searched before the hard-coded library search path?
5316 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5318 # How to hardcode a shared library path into an executable.
5319 hardcode_action=$hardcode_action
5321 # Whether we should hardcode library paths into libraries.
5322 hardcode_into_libs=$hardcode_into_libs
5324 # Flag to hardcode \$libdir into a binary during linking.
5325 # This must work even if \$libdir does not exist.
5326 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5328 # Whether we need a single -rpath flag with a separated argument.
5329 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5331 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5333 hardcode_direct=$hardcode_direct
5335 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5337 hardcode_minus_L=$hardcode_minus_L
5339 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5340 # the resulting binary.
5341 hardcode_shlibpath_var=$hardcode_shlibpath_var
5343 # Variables whose values should be saved in libtool wrapper scripts and
5344 # restored at relink time.
5345 variables_saved_for_relink="$variables_saved_for_relink"
5347 # Whether libtool must link a program against all its dependency libraries.
5348 link_all_deplibs=$link_all_deplibs
5350 # Compile-time system search path for libraries
5351 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5353 # Run-time system search path for libraries
5354 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5356 # Fix the shell variable \$srcfile for the compiler.
5357 fix_srcfile_path="$fix_srcfile_path"
5359 # Set to yes if exported symbols are required.
5360 always_export_symbols=$always_export_symbols
5362 # The commands to list exported symbols.
5363 export_symbols_cmds=$lt_export_symbols_cmds
5365 # The commands to extract the exported symbol list from a shared archive.
5366 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5368 # Symbols that should not be listed in the preloaded symbols.
5369 exclude_expsyms=$lt_exclude_expsyms
5371 # Symbols that must always be exported.
5372 include_expsyms=$lt_include_expsyms
5374 # ### END LIBTOOL CONFIG
5380 cat <<\EOF >> "${ofile}T"
5382 # AIX sometimes has problems with the GCC collect2 program. For some
5383 # reason, if we set the COLLECT_NAMES environment variable, the problems
5384 # vanish in a puff of smoke.
5385 if test "X${COLLECT_NAMES+set}" != Xset; then
5387 export COLLECT_NAMES
5394 cygwin* | mingw* | pw32* | os2*)
5395 cat <<'EOF' >> "${ofile}T"
5396 # This is a source program that is used to create dlls on Windows
5397 # Don't remove nor modify the starting and closing comments
5398 # /* ltdll.c starts here */
5399 # #define WIN32_LEAN_AND_MEAN
5400 # #include <windows.h>
5401 # #undef WIN32_LEAN_AND_MEAN
5402 # #include <stdio.h>
5404 # #ifndef __CYGWIN__
5405 # # ifdef __CYGWIN32__
5406 # # define __CYGWIN__ __CYGWIN32__
5410 # #ifdef __cplusplus
5413 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5414 # #ifdef __cplusplus
5419 # #include <cygwin/cygwin_dll.h>
5420 # DECLARE_CYGWIN_DLL( DllMain );
5422 # HINSTANCE __hDllInstance_base;
5425 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5427 # __hDllInstance_base = hInst;
5430 # /* ltdll.c ends here */
5431 # This is a source program that is used to create import libraries
5432 # on Windows for dlls which lack them. Don't remove nor modify the
5433 # starting and closing comments
5434 # /* impgen.c starts here */
5435 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5437 # This file is part of GNU libtool.
5439 # This program is free software; you can redistribute it and/or modify
5440 # it under the terms of the GNU General Public License as published by
5441 # the Free Software Foundation; either version 2 of the License, or
5442 # (at your option) any later version.
5444 # This program is distributed in the hope that it will be useful,
5445 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5446 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5447 # GNU General Public License for more details.
5449 # You should have received a copy of the GNU General Public License
5450 # along with this program; if not, write to the Free Software
5451 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5454 # #include <stdio.h> /* for printf() */
5455 # #include <unistd.h> /* for open(), lseek(), read() */
5456 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5457 # #include <string.h> /* for strdup() */
5459 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5461 # #define O_BINARY 0
5464 # static unsigned int
5465 # pe_get16 (fd, offset)
5469 # unsigned char b[2];
5470 # lseek (fd, offset, SEEK_SET);
5472 # return b[0] + (b[1]<<8);
5475 # static unsigned int
5476 # pe_get32 (fd, offset)
5480 # unsigned char b[4];
5481 # lseek (fd, offset, SEEK_SET);
5483 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5486 # static unsigned int
5490 # unsigned char *b = ptr;
5491 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5500 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5501 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5502 # unsigned long name_rvas, nexp;
5503 # unsigned char *expdata, *erva;
5504 # char *filename, *dll_name;
5506 # filename = argv[1];
5508 # dll = open(filename, O_RDONLY|O_BINARY);
5512 # dll_name = filename;
5514 # for (i=0; filename[i]; i++)
5515 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5516 # dll_name = filename + i +1;
5518 # pe_header_offset = pe_get32 (dll, 0x3c);
5519 # opthdr_ofs = pe_header_offset + 4 + 20;
5520 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5522 # if (num_entries < 1) /* no exports */
5525 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5526 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5527 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5528 # secptr = (pe_header_offset + 4 + 20 +
5529 # pe_get16 (dll, pe_header_offset + 4 + 16));
5532 # for (i = 0; i < nsections; i++)
5535 # unsigned long secptr1 = secptr + 40 * i;
5536 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5537 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5538 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5539 # lseek(dll, secptr1, SEEK_SET);
5540 # read(dll, sname, 8);
5541 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5543 # expptr = fptr + (export_rva - vaddr);
5544 # if (export_rva + export_size > vaddr + vsize)
5545 # export_size = vsize - (export_rva - vaddr);
5550 # expdata = (unsigned char*)malloc(export_size);
5551 # lseek (dll, expptr, SEEK_SET);
5552 # read (dll, expdata, export_size);
5553 # erva = expdata - export_rva;
5555 # nexp = pe_as32 (expdata+24);
5556 # name_rvas = pe_as32 (expdata+32);
5558 # printf ("EXPORTS\n");
5559 # for (i = 0; i<nexp; i++)
5561 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5562 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5567 # /* impgen.c ends here */
5573 # We use sed instead of cat because bash on DJGPP gets confused if
5574 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5575 # text mode, it properly converts lines to CR/LF. This bash problem
5576 # is reportedly fixed, but why not run on old versions too?
5577 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5579 mv -f "${ofile}T" "$ofile" || \
5580 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5589 # Check whether --with-system-libtool or --without-system-libtool was given.
5590 if test "${with_system_libtool+set}" = set; then
5591 withval="$with_system_libtool"
5592 # Extract the first word of "libtool", so it can be a program name with args.
5593 set dummy libtool; ac_word=$2
5594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5595 echo "configure:5596: checking for $ac_word" >&5
5596 if eval "test \"`echo '$''{'ac_cv_path_LIBTOOL'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5601 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
5604 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a dos path.
5607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5608 ac_dummy="$PATH:/usr/local/bin"
5609 for ac_dir in $ac_dummy; do
5610 test -z "$ac_dir" && ac_dir=.
5611 if test -f $ac_dir/$ac_word; then
5612 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
5620 LIBTOOL="$ac_cv_path_LIBTOOL"
5621 if test -n "$LIBTOOL"; then
5622 echo "$ac_t""$LIBTOOL" 1>&6
5624 echo "$ac_t""no" 1>&6
5629 LIBTOOL="`pwd`/libtool"
5634 # This can be used to rebuild libtool when needed
5635 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5637 # Prevent multiple expansion
5646 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
5647 if test "${enable_strict_dependencies+set}" = set; then
5648 enableval="$enable_strict_dependencies"
5653 logdir='${localstatedir}/log/radius'
5654 echo $ac_n "checking logdir""... $ac_c" 1>&6
5655 echo "configure:5656: checking logdir" >&5
5656 # Check whether --with-logdir or --without-logdir was given.
5657 if test "${with_logdir+set}" = set; then
5658 withval="$with_logdir"
5661 { echo "configure: error: Need logdir" 1>&2; exit 1; }
5673 echo "$ac_t""$logdir" 1>&6
5675 radacctdir='${logdir}/radacct'
5676 echo $ac_n "checking radacctdir""... $ac_c" 1>&6
5677 echo "configure:5678: checking radacctdir" >&5
5678 # Check whether --with-radacctdir or --without-radacctdir was given.
5679 if test "${with_radacctdir+set}" = set; then
5680 withval="$with_radacctdir"
5683 { echo "configure: error: Need radacctdir" 1>&2; exit 1; }
5688 radacctdir="$withval"
5695 echo "$ac_t""$radacctdir" 1>&6
5697 raddbdir='${sysconfdir}/raddb'
5698 echo $ac_n "checking raddbdir""... $ac_c" 1>&6
5699 echo "configure:5700: checking raddbdir" >&5
5700 # Check whether --with-raddbdir or --without-raddbdir was given.
5701 if test "${with_raddbdir+set}" = set; then
5702 withval="$with_raddbdir"
5705 { echo "configure: error: Need raddbdir" 1>&2; exit 1; }
5717 echo "$ac_t""$raddbdir" 1>&6
5720 # Check whether --with-ascend-binary or --without-ascend-binary was given.
5721 if test "${with_ascend_binary+set}" = set; then
5722 withval="$with_ascend_binary"
5732 if test "X$ASCEND_BINARY" = "Xyes"; then
5733 cat >> confdefs.h <<\EOF
5734 #define ASCEND_BINARY 1
5740 # Check whether --with-threads or --without-threads was given.
5741 if test "${with_threads+set}" = set; then
5742 withval="$with_threads"
5754 # Check whether --with-snmp or --without-snmp was given.
5755 if test "${with_snmp+set}" = set; then
5756 withval="$with_snmp"
5767 rad_enable_largefiles=no
5768 # Check whether --with-large-files or --without-large-files was given.
5769 if test "${with_large_files+set}" = set; then
5770 withval="$with_large_files"
5773 rad_enable_largefiles=yes
5785 # Check whether --with-static_modules or --without-static_modules was given.
5786 if test "${with_static_modules+set}" = set; then
5787 withval="$with_static_modules"
5789 for i in $withval; do
5790 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5797 # Check whether --with-modules or --without-modules was given.
5798 if test "${with_modules+set}" = set; then
5799 withval="$with_modules"
5801 for i in $withval; do
5802 MODULES="$MODULES $i"
5808 # Check whether --enable-developer or --disable-developer was given.
5809 if test "${enable_developer+set}" = set; then
5810 enableval="$enable_developer"
5811 case "$enableval" in
5822 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
5827 # Check whether --with-experimental-modules or --without-experimental-modules was given.
5828 if test "${with_experimental_modules+set}" = set; then
5829 withval="$with_experimental_modules"
5840 OPENSSL_INCLUDE_DIR=
5841 # Check whether --with-openssl-includes or --without-openssl-includes was given.
5842 if test "${with_openssl_includes+set}" = set; then
5843 withval="$with_openssl_includes"
5845 *) OPENSSL_INCLUDE_DIR="$withval"
5853 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
5854 if test "${with_openssl_libraries+set}" = set; then
5855 withval="$with_openssl_libraries"
5857 *) OPENSSL_LIB_DIR="$withval"
5865 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
5866 if test "${with_rlm_FOO_lib_dir+set}" = set; then
5867 withval="$with_rlm_FOO_lib_dir"
5876 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
5877 if test "${with_rlm_FOO_include_dir+set}" = set; then
5878 withval="$with_rlm_FOO_include_dir"
5889 # Check whether --with-udpfromto or --without-udpfromto was given.
5890 if test "${with_udpfromto+set}" = set; then
5891 withval="$with_udpfromto"
5903 if test "x$WITH_UDPFROMTO" = "xyes"; then
5904 cat >> confdefs.h <<\EOF
5905 #define WITH_UDPFROMTO 1
5910 # Check whether --with-edir or --without-edir was given.
5911 if test "${with_edir+set}" = set; then
5912 withval="$with_edir"
5918 CHECKRAD=checkrad.pl
5919 # Extract the first word of "perl", so it can be a program name with args.
5920 set dummy perl; ac_word=$2
5921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5922 echo "configure:5923: checking for $ac_word" >&5
5923 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
5924 echo $ac_n "(cached) $ac_c" 1>&6
5928 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5931 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
5934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5936 for ac_dir in $ac_dummy; do
5937 test -z "$ac_dir" && ac_dir=.
5938 if test -f $ac_dir/$ac_word; then
5939 ac_cv_path_PERL="$ac_dir/$ac_word"
5944 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5948 PERL="$ac_cv_path_PERL"
5949 if test -n "$PERL"; then
5950 echo "$ac_t""$PERL" 1>&6
5952 echo "$ac_t""no" 1>&6
5955 if test "x$ac_cv_path_PERL" = "x"; then
5956 echo "configure: warning: perl not found - Simultaneous-Use and checkrad.pl may not work" 1>&2
5958 # Extract the first word of "snmpget", so it can be a program name with args.
5959 set dummy snmpget; ac_word=$2
5960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5961 echo "configure:5962: checking for $ac_word" >&5
5962 if eval "test \"`echo '$''{'ac_cv_path_SNMPGET'+set}'`\" = set"; then
5963 echo $ac_n "(cached) $ac_c" 1>&6
5967 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5970 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a dos path.
5973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5975 for ac_dir in $ac_dummy; do
5976 test -z "$ac_dir" && ac_dir=.
5977 if test -f $ac_dir/$ac_word; then
5978 ac_cv_path_SNMPGET="$ac_dir/$ac_word"
5986 SNMPGET="$ac_cv_path_SNMPGET"
5987 if test -n "$SNMPGET"; then
5988 echo "$ac_t""$SNMPGET" 1>&6
5990 echo "$ac_t""no" 1>&6
5993 if test "x$ac_cv_path_SNMPGET" = "x"; then
5994 echo "configure: warning: snmpget not found - Simultaneous-Use and checkrad.pl may not work" 1>&2
5997 # Extract the first word of "snmpwalk", so it can be a program name with args.
5998 set dummy snmpwalk; ac_word=$2
5999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6000 echo "configure:6001: checking for $ac_word" >&5
6001 if eval "test \"`echo '$''{'ac_cv_path_SNMPWALK'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6006 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
6009 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a dos path.
6012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6014 for ac_dir in $ac_dummy; do
6015 test -z "$ac_dir" && ac_dir=.
6016 if test -f $ac_dir/$ac_word; then
6017 ac_cv_path_SNMPWALK="$ac_dir/$ac_word"
6025 SNMPWALK="$ac_cv_path_SNMPWALK"
6026 if test -n "$SNMPWALK"; then
6027 echo "$ac_t""$SNMPWALK" 1>&6
6029 echo "$ac_t""no" 1>&6
6032 if test "x$ac_cv_path_SNMPWALK" = "x"; then
6033 echo "configure: warning: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" 1>&2
6036 # Extract the first word of "rusers", so it can be a program name with args.
6037 set dummy rusers; ac_word=$2
6038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6039 echo "configure:6040: checking for $ac_word" >&5
6040 if eval "test \"`echo '$''{'ac_cv_path_RUSERS'+set}'`\" = set"; then
6041 echo $ac_n "(cached) $ac_c" 1>&6
6045 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
6048 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a dos path.
6051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6053 for ac_dir in $ac_dummy; do
6054 test -z "$ac_dir" && ac_dir=.
6055 if test -f $ac_dir/$ac_word; then
6056 ac_cv_path_RUSERS="$ac_dir/$ac_word"
6061 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
6065 RUSERS="$ac_cv_path_RUSERS"
6066 if test -n "$RUSERS"; then
6067 echo "$ac_t""$RUSERS" 1>&6
6069 echo "$ac_t""no" 1>&6
6073 missing_dir=`cd $ac_aux_dir && pwd`
6074 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
6075 echo "configure:6076: checking for working aclocal" >&5
6076 # Run test in a subshell; some versions of sh will print an error if
6077 # an executable is not found, even if stderr is redirected.
6078 # Redirect stdin to placate older versions of autoconf. Sigh.
6079 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
6081 echo "$ac_t""found" 1>&6
6083 ACLOCAL="$missing_dir/missing aclocal"
6084 echo "$ac_t""missing" 1>&6
6087 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
6088 echo "configure:6089: checking for working autoconf" >&5
6089 # Run test in a subshell; some versions of sh will print an error if
6090 # an executable is not found, even if stderr is redirected.
6091 # Redirect stdin to placate older versions of autoconf. Sigh.
6092 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
6094 echo "$ac_t""found" 1>&6
6096 AUTOCONF="$missing_dir/missing autoconf"
6097 echo "$ac_t""missing" 1>&6
6100 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
6101 echo "configure:6102: checking for working autoheader" >&5
6102 # Run test in a subshell; some versions of sh will print an error if
6103 # an executable is not found, even if stderr is redirected.
6104 # Redirect stdin to placate older versions of autoconf. Sigh.
6105 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
6106 AUTOHEADER=autoheader
6107 echo "$ac_t""found" 1>&6
6109 AUTOHEADER="$missing_dir/missing autoheader"
6110 echo "$ac_t""missing" 1>&6
6114 # Extract the first word of "locate", so it can be a program name with args.
6115 set dummy locate; ac_word=$2
6116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6117 echo "configure:6118: checking for $ac_word" >&5
6118 if eval "test \"`echo '$''{'ac_cv_path_LOCATE'+set}'`\" = set"; then
6119 echo $ac_n "(cached) $ac_c" 1>&6
6123 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
6126 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a dos path.
6129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6131 for ac_dir in $ac_dummy; do
6132 test -z "$ac_dir" && ac_dir=.
6133 if test -f $ac_dir/$ac_word; then
6134 ac_cv_path_LOCATE="$ac_dir/$ac_word"
6142 LOCATE="$ac_cv_path_LOCATE"
6143 if test -n "$LOCATE"; then
6144 echo "$ac_t""$LOCATE" 1>&6
6146 echo "$ac_t""no" 1>&6
6149 # Extract the first word of "dirname", so it can be a program name with args.
6150 set dummy dirname; ac_word=$2
6151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6152 echo "configure:6153: checking for $ac_word" >&5
6153 if eval "test \"`echo '$''{'ac_cv_path_DIRNAME'+set}'`\" = set"; then
6154 echo $ac_n "(cached) $ac_c" 1>&6
6158 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6161 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a dos path.
6164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6166 for ac_dir in $ac_dummy; do
6167 test -z "$ac_dir" && ac_dir=.
6168 if test -f $ac_dir/$ac_word; then
6169 ac_cv_path_DIRNAME="$ac_dir/$ac_word"
6177 DIRNAME="$ac_cv_path_DIRNAME"
6178 if test -n "$DIRNAME"; then
6179 echo "$ac_t""$DIRNAME" 1>&6
6181 echo "$ac_t""no" 1>&6
6184 # Extract the first word of "grep", so it can be a program name with args.
6185 set dummy grep; ac_word=$2
6186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6187 echo "configure:6188: checking for $ac_word" >&5
6188 if eval "test \"`echo '$''{'ac_cv_path_GREP'+set}'`\" = set"; then
6189 echo $ac_n "(cached) $ac_c" 1>&6
6193 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6196 ac_cv_path_GREP="$GREP" # Let the user override the test with a dos path.
6199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6201 for ac_dir in $ac_dummy; do
6202 test -z "$ac_dir" && ac_dir=.
6203 if test -f $ac_dir/$ac_word; then
6204 ac_cv_path_GREP="$ac_dir/$ac_word"
6212 GREP="$ac_cv_path_GREP"
6213 if test -n "$GREP"; then
6214 echo "$ac_t""$GREP" 1>&6
6216 echo "$ac_t""no" 1>&6
6222 if test "x$WITH_THREADS" = "xyes"; then
6223 if test $ac_cv_prog_suncc = "yes"; then
6224 CFLAGS="$CFLAGS -mt"
6227 for ac_hdr in pthread.h
6229 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6230 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6231 echo "configure:6232: checking for $ac_hdr" >&5
6232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6233 echo $ac_n "(cached) $ac_c" 1>&6
6235 cat > conftest.$ac_ext <<EOF
6236 #line 6237 "configure"
6237 #include "confdefs.h"
6240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6241 { (eval echo configure:6242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6243 if test -z "$ac_err"; then
6245 eval "ac_cv_header_$ac_safe=yes"
6248 echo "configure: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6251 eval "ac_cv_header_$ac_safe=no"
6255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6256 echo "$ac_t""yes" 1>&6
6257 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6258 cat >> confdefs.h <<EOF
6259 #define $ac_tr_hdr 1
6263 echo "$ac_t""no" 1>&6
6269 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
6270 echo "configure:6271: checking for pthread_create in -lpthread" >&5
6271 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
6272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6275 ac_save_LIBS="$LIBS"
6276 LIBS="-lpthread $LIBS"
6277 cat > conftest.$ac_ext <<EOF
6278 #line 6279 "configure"
6279 #include "confdefs.h"
6280 /* Override any gcc2 internal prototype to avoid an error. */
6281 /* We use char because int might match the return type of a gcc2
6282 builtin and then its argument prototype would still apply. */
6283 char pthread_create();
6289 if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6291 eval "ac_cv_lib_$ac_lib_var=yes"
6293 echo "configure: failed program was:" >&5
6294 cat conftest.$ac_ext >&5
6296 eval "ac_cv_lib_$ac_lib_var=no"
6299 LIBS="$ac_save_LIBS"
6302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6303 echo "$ac_t""yes" 1>&6
6304 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
6305 LIBS="$LIBS -lpthread"
6307 echo "$ac_t""no" 1>&6
6308 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
6309 echo "configure:6310: checking for pthread_create in -lc_r" >&5
6310 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
6311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6314 ac_save_LIBS="$LIBS"
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6319 /* Override any gcc2 internal prototype to avoid an error. */
6320 /* We use char because int might match the return type of a gcc2
6321 builtin and then its argument prototype would still apply. */
6322 char pthread_create();
6328 if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6330 eval "ac_cv_lib_$ac_lib_var=yes"
6332 echo "configure: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6335 eval "ac_cv_lib_$ac_lib_var=no"
6338 LIBS="$ac_save_LIBS"
6341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6342 echo "$ac_t""yes" 1>&6
6343 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
6345 echo "$ac_t""no" 1>&6
6355 if test "x$WITH_THREADS" != "xyes"; then
6357 ac_cv_header_pthread_h="no"
6362 echo $ac_n "checking for library containing sem_init""... $ac_c" 1>&6
6363 echo "configure:6364: checking for library containing sem_init" >&5
6364 if eval "test \"`echo '$''{'ac_cv_search_sem_init'+set}'`\" = set"; then
6365 echo $ac_n "(cached) $ac_c" 1>&6
6367 ac_func_search_save_LIBS="$LIBS"
6368 ac_cv_search_sem_init="no"
6369 cat > conftest.$ac_ext <<EOF
6370 #line 6371 "configure"
6371 #include "confdefs.h"
6372 /* Override any gcc2 internal prototype to avoid an error. */
6373 /* We use char because int might match the return type of a gcc2
6374 builtin and then its argument prototype would still apply. */
6381 if { (eval echo configure:6382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6383 ac_cv_search_sem_init="none required"
6385 echo "configure: failed program was:" >&5
6386 cat conftest.$ac_ext >&5
6389 test "$ac_cv_search_sem_init" = "no" && for i in pthread sem posix4 rt; do
6390 LIBS="-l$i $ac_func_search_save_LIBS"
6391 cat > conftest.$ac_ext <<EOF
6392 #line 6393 "configure"
6393 #include "confdefs.h"
6394 /* Override any gcc2 internal prototype to avoid an error. */
6395 /* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6403 if { (eval echo configure:6404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6405 ac_cv_search_sem_init="-l$i"
6408 echo "configure: failed program was:" >&5
6409 cat conftest.$ac_ext >&5
6413 LIBS="$ac_func_search_save_LIBS"
6416 echo "$ac_t""$ac_cv_search_sem_init" 1>&6
6417 if test "$ac_cv_search_sem_init" != "no"; then
6418 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
6421 { echo "configure: error: -lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" 1>&2; exit 1; }
6426 echo $ac_n "checking for getsockname in -lsocket""... $ac_c" 1>&6
6427 echo "configure:6428: checking for getsockname in -lsocket" >&5
6428 ac_lib_var=`echo socket'_'getsockname | sed 'y%./+-%__p_%'`
6429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6430 echo $ac_n "(cached) $ac_c" 1>&6
6432 ac_save_LIBS="$LIBS"
6433 LIBS="-lsocket $LIBS"
6434 cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6437 /* Override any gcc2 internal prototype to avoid an error. */
6438 /* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */
6446 if { (eval echo configure:6447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6448 eval "ac_cv_lib_$ac_lib_var=yes"
6450 echo "configure: failed program was:" >&5
6451 cat conftest.$ac_ext >&5
6453 eval "ac_cv_lib_$ac_lib_var=no"
6456 LIBS="$ac_save_LIBS"
6459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6460 echo "$ac_t""yes" 1>&6
6461 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6463 cat >> confdefs.h <<EOF
6464 #define $ac_tr_lib 1
6467 LIBS="-lsocket $LIBS"
6470 echo "$ac_t""no" 1>&6
6474 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
6475 echo "configure:6476: checking for inet_aton in -lresolv" >&5
6476 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
6477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6480 ac_save_LIBS="$LIBS"
6481 LIBS="-lresolv $LIBS"
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 /* Override any gcc2 internal prototype to avoid an error. */
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6494 if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6496 eval "ac_cv_lib_$ac_lib_var=yes"
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6501 eval "ac_cv_lib_$ac_lib_var=no"
6504 LIBS="$ac_save_LIBS"
6507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6508 echo "$ac_t""yes" 1>&6
6509 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6510 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6511 cat >> confdefs.h <<EOF
6512 #define $ac_tr_lib 1
6515 LIBS="-lresolv $LIBS"
6518 echo "$ac_t""no" 1>&6
6522 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
6523 echo "configure:6524: checking for inet_ntoa in -lnsl" >&5
6524 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
6525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6526 echo $ac_n "(cached) $ac_c" 1>&6
6528 ac_save_LIBS="$LIBS"
6530 cat > conftest.$ac_ext <<EOF
6531 #line 6532 "configure"
6532 #include "confdefs.h"
6533 /* Override any gcc2 internal prototype to avoid an error. */
6534 /* We use char because int might match the return type of a gcc2
6535 builtin and then its argument prototype would still apply. */
6542 if { (eval echo configure:6543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6544 eval "ac_cv_lib_$ac_lib_var=yes"
6546 echo "configure: failed program was:" >&5
6547 cat conftest.$ac_ext >&5
6549 eval "ac_cv_lib_$ac_lib_var=no"
6552 LIBS="$ac_save_LIBS"
6555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6556 echo "$ac_t""yes" 1>&6
6557 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6558 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6559 cat >> confdefs.h <<EOF
6560 #define $ac_tr_lib 1
6566 echo "$ac_t""no" 1>&6
6572 if test "x$OPENSSL_LIB_DIR" != "x"; then
6573 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
6575 echo $ac_n "checking for DH_new in -lcrypto""... $ac_c" 1>&6
6576 echo "configure:6577: checking for DH_new in -lcrypto" >&5
6577 ac_lib_var=`echo crypto'_'DH_new | sed 'y%./+-%__p_%'`
6578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6579 echo $ac_n "(cached) $ac_c" 1>&6
6581 ac_save_LIBS="$LIBS"
6582 LIBS="-lcrypto $LIBS"
6583 cat > conftest.$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6586 /* Override any gcc2 internal prototype to avoid an error. */
6587 /* We use char because int might match the return type of a gcc2
6588 builtin and then its argument prototype would still apply. */
6595 if { (eval echo configure:6596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6597 eval "ac_cv_lib_$ac_lib_var=yes"
6599 echo "configure: failed program was:" >&5
6600 cat conftest.$ac_ext >&5
6602 eval "ac_cv_lib_$ac_lib_var=no"
6605 LIBS="$ac_save_LIBS"
6608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6609 echo "$ac_t""yes" 1>&6
6611 cat >> confdefs.h <<\EOF
6612 #define HAVE_LIBCRYPTO 1
6615 echo $ac_n "checking for SSL_new in -lssl""... $ac_c" 1>&6
6616 echo "configure:6617: checking for SSL_new in -lssl" >&5
6617 ac_lib_var=`echo ssl'_'SSL_new | sed 'y%./+-%__p_%'`
6618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6619 echo $ac_n "(cached) $ac_c" 1>&6
6621 ac_save_LIBS="$LIBS"
6623 cat > conftest.$ac_ext <<EOF
6624 #line 6625 "configure"
6625 #include "confdefs.h"
6626 /* Override any gcc2 internal prototype to avoid an error. */
6627 /* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6635 if { (eval echo configure:6636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6637 eval "ac_cv_lib_$ac_lib_var=yes"
6639 echo "configure: failed program was:" >&5
6640 cat conftest.$ac_ext >&5
6642 eval "ac_cv_lib_$ac_lib_var=no"
6645 LIBS="$ac_save_LIBS"
6648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6649 echo "$ac_t""yes" 1>&6
6651 cat >> confdefs.h <<\EOF
6652 #define HAVE_LIBSSL 1
6655 if test "x$OPENSSL_LIB_DIR" != "x"; then
6656 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
6658 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
6661 echo "$ac_t""no" 1>&6
6666 echo "$ac_t""no" 1>&6
6674 CFLAGS="$CFLAGS -D_ALL_SOURCE"
6677 CFLAGS="$CFLAGS -DDARWIN"
6682 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6685 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6686 echo "configure:6687: checking for $ac_hdr that defines DIR" >&5
6687 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6688 echo $ac_n "(cached) $ac_c" 1>&6
6690 cat > conftest.$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 #include <sys/types.h>
6699 if { (eval echo configure:6700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6701 eval "ac_cv_header_dirent_$ac_safe=yes"
6703 echo "configure: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6706 eval "ac_cv_header_dirent_$ac_safe=no"
6710 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6711 echo "$ac_t""yes" 1>&6
6712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6713 cat >> confdefs.h <<EOF
6714 #define $ac_tr_hdr 1
6716 ac_header_dirent=$ac_hdr; break
6718 echo "$ac_t""no" 1>&6
6721 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6722 if test $ac_header_dirent = dirent.h; then
6723 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6724 echo "configure:6725: checking for opendir in -ldir" >&5
6725 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6727 echo $ac_n "(cached) $ac_c" 1>&6
6729 ac_save_LIBS="$LIBS"
6731 cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6734 /* Override any gcc2 internal prototype to avoid an error. */
6735 /* We use char because int might match the return type of a gcc2
6736 builtin and then its argument prototype would still apply. */
6743 if { (eval echo configure:6744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6745 eval "ac_cv_lib_$ac_lib_var=yes"
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6750 eval "ac_cv_lib_$ac_lib_var=no"
6753 LIBS="$ac_save_LIBS"
6756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6757 echo "$ac_t""yes" 1>&6
6760 echo "$ac_t""no" 1>&6
6764 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6765 echo "configure:6766: checking for opendir in -lx" >&5
6766 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6
6770 ac_save_LIBS="$LIBS"
6772 cat > conftest.$ac_ext <<EOF
6773 #line 6774 "configure"
6774 #include "confdefs.h"
6775 /* Override any gcc2 internal prototype to avoid an error. */
6776 /* We use char because int might match the return type of a gcc2
6777 builtin and then its argument prototype would still apply. */
6784 if { (eval echo configure:6785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6786 eval "ac_cv_lib_$ac_lib_var=yes"
6788 echo "configure: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6791 eval "ac_cv_lib_$ac_lib_var=no"
6794 LIBS="$ac_save_LIBS"
6797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6798 echo "$ac_t""yes" 1>&6
6801 echo "$ac_t""no" 1>&6
6806 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6807 echo "configure:6808: checking for ANSI C header files" >&5
6808 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6809 echo $ac_n "(cached) $ac_c" 1>&6
6811 cat > conftest.$ac_ext <<EOF
6812 #line 6813 "configure"
6813 #include "confdefs.h"
6819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6820 { (eval echo configure:6821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6822 if test -z "$ac_err"; then
6824 ac_cv_header_stdc=yes
6827 echo "configure: failed program was:" >&5
6828 cat conftest.$ac_ext >&5
6830 ac_cv_header_stdc=no
6834 if test $ac_cv_header_stdc = yes; then
6835 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6836 cat > conftest.$ac_ext <<EOF
6837 #line 6838 "configure"
6838 #include "confdefs.h"
6841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6842 egrep "memchr" >/dev/null 2>&1; then
6846 ac_cv_header_stdc=no
6852 if test $ac_cv_header_stdc = yes; then
6853 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6854 cat > conftest.$ac_ext <<EOF
6855 #line 6856 "configure"
6856 #include "confdefs.h"
6859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6860 egrep "free" >/dev/null 2>&1; then
6864 ac_cv_header_stdc=no
6870 if test $ac_cv_header_stdc = yes; then
6871 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6872 if test "$cross_compiling" = yes; then
6875 cat > conftest.$ac_ext <<EOF
6876 #line 6877 "configure"
6877 #include "confdefs.h"
6879 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6880 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6881 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6882 int main () { int i; for (i = 0; i < 256; i++)
6883 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6887 if { (eval echo configure:6888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6891 echo "configure: failed program was:" >&5
6892 cat conftest.$ac_ext >&5
6894 ac_cv_header_stdc=no
6902 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6903 if test $ac_cv_header_stdc = yes; then
6904 cat >> confdefs.h <<\EOF
6905 #define STDC_HEADERS 1
6910 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
6911 echo "configure:6912: checking whether time.h and sys/time.h may both be included" >&5
6912 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
6913 echo $ac_n "(cached) $ac_c" 1>&6
6915 cat > conftest.$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6918 #include <sys/types.h>
6919 #include <sys/time.h>
6925 if { (eval echo configure:6926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6927 ac_cv_header_time=yes
6929 echo "configure: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6932 ac_cv_header_time=no
6937 echo "$ac_t""$ac_cv_header_time" 1>&6
6938 if test $ac_cv_header_time = yes; then
6939 cat >> confdefs.h <<\EOF
6940 #define TIME_WITH_SYS_TIME 1
6945 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6946 echo "configure:6947: checking for sys/wait.h that is POSIX.1 compatible" >&5
6947 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6948 echo $ac_n "(cached) $ac_c" 1>&6
6950 cat > conftest.$ac_ext <<EOF
6951 #line 6952 "configure"
6952 #include "confdefs.h"
6953 #include <sys/types.h>
6954 #include <sys/wait.h>
6956 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6959 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6964 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6967 if { (eval echo configure:6968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6969 ac_cv_header_sys_wait_h=yes
6971 echo "configure: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6974 ac_cv_header_sys_wait_h=no
6979 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6980 if test $ac_cv_header_sys_wait_h = yes; then
6981 cat >> confdefs.h <<\EOF
6982 #define HAVE_SYS_WAIT_H 1
7020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7022 echo "configure:7023: checking for $ac_hdr" >&5
7023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7026 cat > conftest.$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7032 { (eval echo configure:7033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7034 if test -z "$ac_err"; then
7036 eval "ac_cv_header_$ac_safe=yes"
7039 echo "configure: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7042 eval "ac_cv_header_$ac_safe=no"
7046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7047 echo "$ac_t""yes" 1>&6
7048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7049 cat >> confdefs.h <<EOF
7050 #define $ac_tr_hdr 1
7054 echo "$ac_t""no" 1>&6
7060 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
7061 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
7062 echo "configure:7063: checking for regex.h" >&5
7063 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7064 echo $ac_n "(cached) $ac_c" 1>&6
7066 cat > conftest.$ac_ext <<EOF
7067 #line 7068 "configure"
7068 #include "confdefs.h"
7071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7072 { (eval echo configure:7073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7074 if test -z "$ac_err"; then
7076 eval "ac_cv_header_$ac_safe=yes"
7079 echo "configure: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7082 eval "ac_cv_header_$ac_safe=no"
7086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7087 echo "$ac_t""yes" 1>&6
7088 cat >> confdefs.h <<\EOF
7089 #define HAVE_REGEX_H 1
7093 echo "$ac_t""no" 1>&6
7096 if test "x$ac_cv_header_regex_h" = "xyes"; then
7099 cat > conftest.$ac_ext <<EOF
7100 #line 7101 "configure"
7101 #include "confdefs.h"
7108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7109 egrep "yes" >/dev/null 2>&1; then
7111 cat >> confdefs.h <<\EOF
7112 #define HAVE_REG_EXTENDED 1
7122 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
7124 cat >> confdefs.h <<\EOF
7130 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
7132 cat >> confdefs.h <<\EOF
7138 OPENSSL_INCLUDE="-DNO_OPENSSL"
7139 if test "x$OPENSSL_LIBS" = "x"; then
7140 echo "configure: warning: skipping test for openssl/ssl.h" 1>&2
7142 old_CPPFLAGS=$CPPFLAGS
7143 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
7144 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
7146 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
7153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7155 echo "configure:7156: checking for $ac_hdr" >&5
7156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7157 echo $ac_n "(cached) $ac_c" 1>&6
7159 cat > conftest.$ac_ext <<EOF
7160 #line 7161 "configure"
7161 #include "confdefs.h"
7164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7165 { (eval echo configure:7166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7167 if test -z "$ac_err"; then
7169 eval "ac_cv_header_$ac_safe=yes"
7172 echo "configure: failed program was:" >&5
7173 cat conftest.$ac_ext >&5
7175 eval "ac_cv_header_$ac_safe=no"
7179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7180 echo "$ac_t""yes" 1>&6
7181 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7182 cat >> confdefs.h <<EOF
7183 #define $ac_tr_hdr 1
7187 echo "$ac_t""no" 1>&6
7193 if test "x$OPENSSL_LIBS" != "x"; then
7194 echo $ac_n "checking for OpenSSL version >= 0.9.7""... $ac_c" 1>&6
7195 echo "configure:7196: checking for OpenSSL version >= 0.9.7" >&5
7196 cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7199 #include <openssl/crypto.h>
7200 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
7205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7206 egrep "yes" >/dev/null 2>&1; then
7212 if test "x$goodssl" != "xyes"; then
7213 echo "$ac_t""no" 1>&6
7216 echo "$ac_t""yes" 1>&6
7217 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
7218 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
7220 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
7224 CPPFLAGS=$old_CPPFLAGS
7231 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7232 echo "configure:7233: checking for off_t" >&5
7233 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7234 echo $ac_n "(cached) $ac_c" 1>&6
7236 cat > conftest.$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7239 #include <sys/types.h>
7245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7246 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7248 ac_cv_type_off_t=yes
7256 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7257 if test $ac_cv_type_off_t = no; then
7258 cat >> confdefs.h <<\EOF
7264 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7265 echo "configure:7266: checking for pid_t" >&5
7266 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7267 echo $ac_n "(cached) $ac_c" 1>&6
7269 cat > conftest.$ac_ext <<EOF
7270 #line 7271 "configure"
7271 #include "confdefs.h"
7272 #include <sys/types.h>
7278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7279 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7281 ac_cv_type_pid_t=yes
7289 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7290 if test $ac_cv_type_pid_t = no; then
7291 cat >> confdefs.h <<\EOF
7297 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7298 echo "configure:7299: checking for size_t" >&5
7299 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7300 echo $ac_n "(cached) $ac_c" 1>&6
7302 cat > conftest.$ac_ext <<EOF
7303 #line 7304 "configure"
7304 #include "confdefs.h"
7305 #include <sys/types.h>
7311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7312 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7314 ac_cv_type_size_t=yes
7317 ac_cv_type_size_t=no
7322 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7323 if test $ac_cv_type_size_t = no; then
7324 cat >> confdefs.h <<\EOF
7325 #define size_t unsigned
7330 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7331 echo "configure:7332: checking for uid_t in sys/types.h" >&5
7332 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7333 echo $ac_n "(cached) $ac_c" 1>&6
7335 cat > conftest.$ac_ext <<EOF
7336 #line 7337 "configure"
7337 #include "confdefs.h"
7338 #include <sys/types.h>
7340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7341 egrep "uid_t" >/dev/null 2>&1; then
7343 ac_cv_type_uid_t=yes
7352 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7353 if test $ac_cv_type_uid_t = no; then
7354 cat >> confdefs.h <<\EOF
7358 cat >> confdefs.h <<\EOF
7366 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
7367 echo "configure:7368: checking for socklen_t" >&5
7368 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
7369 echo $ac_n "(cached) $ac_c" 1>&6
7371 ac_cv_type_socklen_t=no
7372 cat > conftest.$ac_ext <<EOF
7373 #line 7374 "configure"
7374 #include "confdefs.h"
7375 #ifdef HAVE_SYS_TYPES_H
7376 #include <sys/types.h>
7378 #ifdef HAVE_SYS_SOCKET_H
7379 #include <sys/socket.h>
7386 if { (eval echo configure:7387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7388 ac_cv_type_socklen_t=yes
7390 echo "configure: failed program was:" >&5
7391 cat conftest.$ac_ext >&5
7398 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
7400 if test "$ac_cv_type_socklen_t" != "yes"; then
7401 cat >> confdefs.h <<\EOF
7402 #define socklen_t int
7409 echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
7410 echo "configure:7411: checking for uint8_t" >&5
7411 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
7412 echo $ac_n "(cached) $ac_c" 1>&6
7414 ac_cv_type_uint8_t=no
7415 cat > conftest.$ac_ext <<EOF
7416 #line 7417 "configure"
7417 #include "confdefs.h"
7418 #ifdef HAVE_INTTYPES_H
7419 #include <inttypes.h>
7421 #ifdef HAVE_STDINT_H
7429 if { (eval echo configure:7430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7431 ac_cv_type_uint8_t=yes
7433 echo "configure: failed program was:" >&5
7434 cat conftest.$ac_ext >&5
7441 echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
7443 if test "$ac_cv_type_uint8_t" != "yes"; then
7444 cat >> confdefs.h <<\EOF
7445 #define uint8_t unsigned char
7452 echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
7453 echo "configure:7454: checking for uint16_t" >&5
7454 if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
7455 echo $ac_n "(cached) $ac_c" 1>&6
7457 ac_cv_type_uint16_t=no
7458 cat > conftest.$ac_ext <<EOF
7459 #line 7460 "configure"
7460 #include "confdefs.h"
7461 #ifdef HAVE_INTTYPES_H
7462 #include <inttypes.h>
7464 #ifdef HAVE_STDINT_H
7472 if { (eval echo configure:7473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7474 ac_cv_type_uint16_t=yes
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7484 echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
7486 if test "$ac_cv_type_uint16_t" != "yes"; then
7487 cat >> confdefs.h <<\EOF
7488 #define uint16_t unsigned short
7495 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
7496 echo "configure:7497: checking for uint32_t" >&5
7497 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
7498 echo $ac_n "(cached) $ac_c" 1>&6
7500 ac_cv_type_uint32_t=no
7501 cat > conftest.$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7504 #ifdef HAVE_INTTYPES_H
7505 #include <inttypes.h>
7507 #ifdef HAVE_STDINT_H
7515 if { (eval echo configure:7516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7517 ac_cv_type_uint32_t=yes
7519 echo "configure: failed program was:" >&5
7520 cat conftest.$ac_ext >&5
7527 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
7529 if test "$ac_cv_type_uint32_t" != "yes"; then
7530 cat >> confdefs.h <<\EOF
7531 #define uint32_t unsigned int
7564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7565 echo "configure:7566: checking for $ac_func" >&5
7566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7567 echo $ac_n "(cached) $ac_c" 1>&6
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7572 /* System header to define __stub macros and hopefully few prototypes,
7573 which can conflict with char $ac_func(); below. */
7575 /* Override any gcc2 internal prototype to avoid an error. */
7576 /* We use char because int might match the return type of a gcc2
7577 builtin and then its argument prototype would still apply. */
7582 /* The GNU C library defines this for functions which it implements
7583 to always fail with ENOSYS. Some functions are actually named
7584 something starting with __ and the normal name is an alias. */
7585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7593 if { (eval echo configure:7594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7595 eval "ac_cv_func_$ac_func=yes"
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7600 eval "ac_cv_func_$ac_func=no"
7605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7606 echo "$ac_t""yes" 1>&6
7607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7608 cat >> confdefs.h <<EOF
7609 #define $ac_tr_func 1
7613 echo "$ac_t""no" 1>&6
7628 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
7629 echo "configure:7630: checking whether $ac_func must be declared" >&5
7630 if eval "test \"`echo '$''{'radius_cv_decl_needed_$ac_func'+set}'`\" = set"; then
7631 echo $ac_n "(cached) $ac_c" 1>&6
7633 cat > conftest.$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7639 #ifdef HAVE_UNISTD_H
7648 #ifdef HAVE_RESOURCE_H
7649 #include <resource.h>
7651 #ifdef HAVE_GETOPT_H
7654 #ifdef HAVE_MALLOC_H
7663 #ifdef HAVE_SYS_SELECT_H
7664 #include <sys/select.h>
7672 #ifdef HAVE_SYSLOG_H
7675 #ifdef HAVE_INTTYPES_H
7676 #include <inttypes.h>
7678 #ifdef HAVE_STDINT_H
7681 #ifdef HAVE_ARPA_INET_H
7682 #include <arpa/inet.h>
7686 char *(*pfn) = (char *(*)) $ac_func
7689 if { (eval echo configure:7690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7691 eval "radius_cv_decl_needed_$ac_func=no"
7693 echo "configure: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7696 eval "radius_cv_decl_needed_$ac_func=yes"
7701 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
7702 echo "$ac_t""yes" 1>&6
7703 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7704 cat >> confdefs.h <<EOF
7705 #define $radius_tr_decl 1
7709 echo "$ac_t""no" 1>&6
7715 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
7716 echo "configure:7717: checking return type of signal handlers" >&5
7717 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
7718 echo $ac_n "(cached) $ac_c" 1>&6
7720 cat > conftest.$ac_ext <<EOF
7721 #line 7722 "configure"
7722 #include "confdefs.h"
7723 #include <sys/types.h>
7729 extern "C" void (*signal (int, void (*)(int)))(int);
7731 void (*signal ()) ();
7738 if { (eval echo configure:7739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7740 ac_cv_type_signal=void
7742 echo "configure: failed program was:" >&5
7743 cat conftest.$ac_ext >&5
7745 ac_cv_type_signal=int
7750 echo "$ac_t""$ac_cv_type_signal" 1>&6
7751 cat >> confdefs.h <<EOF
7752 #define RETSIGTYPE $ac_cv_type_signal
7757 if test "x$ac_cv_header_utmpx_h" = "xyes"
7760 echo $ac_n "checking for ut_xtime in struct utmpx""... $ac_c" 1>&6
7761 echo "configure:7762: checking for ut_xtime in struct utmpx" >&5
7764 cat > conftest.$ac_ext <<EOF
7765 #line 7766 "configure"
7766 #include "confdefs.h"
7770 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7774 int foo = offsetof(struct utmpx, ut_xtime)
7777 if { (eval echo configure:7778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7781 echo "configure: failed program was:" >&5
7782 cat conftest.$ac_ext >&5
7788 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7789 if test "x$has_element" != "x"; then
7790 echo "$ac_t""yes" 1>&6
7791 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7793 echo "$ac_t""no" 1>&6
7794 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7797 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
7799 cat >> confdefs.h <<\EOF
7800 #define ut_xtime ut_tv.tv_sec
7807 echo $ac_n "checking for ipi_addr in struct in_pktinfo""... $ac_c" 1>&6
7808 echo "configure:7809: checking for ipi_addr in struct in_pktinfo" >&5
7811 cat > conftest.$ac_ext <<EOF
7812 #line 7813 "configure"
7813 #include "confdefs.h"
7815 #include <netinet/in.h>
7817 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7821 int foo = offsetof(struct in_pktinfo, ipi_addr)
7824 if { (eval echo configure:7825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7828 echo "configure: failed program was:" >&5
7829 cat conftest.$ac_ext >&5
7835 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7836 if test "x$has_element" != "x"; then
7837 echo "$ac_t""yes" 1>&6
7838 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7840 echo "$ac_t""no" 1>&6
7841 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7844 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
7846 cat >> confdefs.h <<\EOF
7847 #define HAVE_IP_PKTINFO 1
7853 echo $ac_n "checking for working const""... $ac_c" 1>&6
7854 echo "configure:7855: checking for working const" >&5
7855 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7856 echo $ac_n "(cached) $ac_c" 1>&6
7858 cat > conftest.$ac_ext <<EOF
7859 #line 7860 "configure"
7860 #include "confdefs.h"
7864 /* Ultrix mips cc rejects this. */
7865 typedef int charset[2]; const charset x;
7866 /* SunOS 4.1.1 cc rejects this. */
7867 char const *const *ccp;
7869 /* NEC SVR4.0.2 mips cc rejects this. */
7870 struct point {int x, y;};
7871 static struct point const zero = {0,0};
7872 /* AIX XL C 1.02.0.0 rejects this.
7873 It does not let you subtract one const X* pointer from another in an arm
7874 of an if-expression whose if-part is not a constant expression */
7875 const char *g = "string";
7876 ccp = &g + (g ? g-g : 0);
7877 /* HPUX 7.0 cc rejects these. */
7880 ccp = (char const *const *) p;
7881 { /* SCO 3.2v4 cc rejects this. */
7883 char const *s = 0 ? (char *) 0 : (char const *) 0;
7887 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7889 const int *foo = &x[0];
7892 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7893 typedef const int *iptr;
7897 { /* AIX XL C 1.02.0.0 rejects this saying
7898 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7899 struct s { int j; const int *ap[3]; };
7900 struct s *b; b->j = 5;
7902 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7908 if { (eval echo configure:7909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7912 echo "configure: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7920 echo "$ac_t""$ac_cv_c_const" 1>&6
7921 if test $ac_cv_c_const = no; then
7922 cat >> confdefs.h <<\EOF
7929 echo $ac_n "checking type of OS""... $ac_c" 1>&6
7930 echo "configure:7931: checking type of OS" >&5
7932 echo "$ac_t""$OS" 1>&6
7933 if test "$OS" = "OS/2"; then
7940 if test "x$GCC" = "xyes"; then
7941 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
7944 echo $ac_n "checking for developer gcc flags""... $ac_c" 1>&6
7945 echo "configure:7946: checking for developer gcc flags" >&5
7946 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
7947 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
7948 CFLAGS="$CFLAGS $devflags"
7950 echo "$ac_t""yes. Using $devflags" 1>&6
7953 CFLAGS="$CFLAGS -DNDEBUG"
7955 echo "$ac_t""no." 1>&6
7959 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7960 echo "configure:7961: checking for crypt in -lcrypt" >&5
7961 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7963 echo $ac_n "(cached) $ac_c" 1>&6
7965 ac_save_LIBS="$LIBS"
7966 LIBS="-lcrypt $LIBS"
7967 cat > conftest.$ac_ext <<EOF
7968 #line 7969 "configure"
7969 #include "confdefs.h"
7970 /* Override any gcc2 internal prototype to avoid an error. */
7971 /* We use char because int might match the return type of a gcc2
7972 builtin and then its argument prototype would still apply. */
7979 if { (eval echo configure:7980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7981 eval "ac_cv_lib_$ac_lib_var=yes"
7983 echo "configure: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7986 eval "ac_cv_lib_$ac_lib_var=no"
7989 LIBS="$ac_save_LIBS"
7992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7993 echo "$ac_t""yes" 1>&6
7997 echo "$ac_t""no" 1>&6
8000 if test "$CRYPTLIB" != ""; then
8001 cat >> confdefs.h <<\EOF
8002 #define HAVE_CRYPT 1
8006 echo $ac_n "checking for crypt""... $ac_c" 1>&6
8007 echo "configure:8008: checking for crypt" >&5
8008 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8011 cat > conftest.$ac_ext <<EOF
8012 #line 8013 "configure"
8013 #include "confdefs.h"
8014 /* System header to define __stub macros and hopefully few prototypes,
8015 which can conflict with char crypt(); below. */
8017 /* Override any gcc2 internal prototype to avoid an error. */
8018 /* We use char because int might match the return type of a gcc2
8019 builtin and then its argument prototype would still apply. */
8024 /* The GNU C library defines this for functions which it implements
8025 to always fail with ENOSYS. Some functions are actually named
8026 something starting with __ and the normal name is an alias. */
8027 #if defined (__stub_crypt) || defined (__stub___crypt)
8035 if { (eval echo configure:8036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8037 eval "ac_cv_func_crypt=yes"
8039 echo "configure: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8042 eval "ac_cv_func_crypt=no"
8047 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
8048 echo "$ac_t""yes" 1>&6
8049 cat >> confdefs.h <<\EOF
8050 #define HAVE_CRYPT 1
8054 echo "$ac_t""no" 1>&6
8059 echo $ac_n "checking for setkey in -lcipher""... $ac_c" 1>&6
8060 echo "configure:8061: checking for setkey in -lcipher" >&5
8061 ac_lib_var=`echo cipher'_'setkey | sed 'y%./+-%__p_%'`
8062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8063 echo $ac_n "(cached) $ac_c" 1>&6
8065 ac_save_LIBS="$LIBS"
8066 LIBS="-lcipher $LIBS"
8067 cat > conftest.$ac_ext <<EOF
8068 #line 8069 "configure"
8069 #include "confdefs.h"
8070 /* Override any gcc2 internal prototype to avoid an error. */
8071 /* We use char because int might match the return type of a gcc2
8072 builtin and then its argument prototype would still apply. */
8079 if { (eval echo configure:8080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8081 eval "ac_cv_lib_$ac_lib_var=yes"
8083 echo "configure: failed program was:" >&5
8084 cat conftest.$ac_ext >&5
8086 eval "ac_cv_lib_$ac_lib_var=no"
8089 LIBS="$ac_save_LIBS"
8092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8093 echo "$ac_t""yes" 1>&6
8094 CRYPTLIB="${CRYPTLIB} -lcipher"
8097 echo "$ac_t""no" 1>&6
8102 if test "x$WITH_SNMP" = "xyes"; then
8107 echo $ac_n "checking for asn1.h,snmp.h,snmp_impl.h""... $ac_c" 1>&6
8108 echo "configure:8109: checking for asn1.h,snmp.h,snmp_impl.h" >&5
8110 cat > conftest.$ac_ext <<EOF
8111 #line 8112 "configure"
8112 #include "confdefs.h"
8114 #ifdef HAVE_SYS_TYPES_H
8115 #include <sys/types.h>
8117 #ifdef HAVE_STDINT_H
8126 #ifdef HAVE_UNISTD_H
8129 #include <ucd-snmp/ucd-snmp-config.h>
8130 #include <ucd-snmp/asn1.h>
8131 #include <ucd-snmp/snmp.h>
8132 #include <ucd-snmp/snmp_impl.h>
8137 if { (eval echo configure:8138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8139 SNMP_INCLUDE="";ucdsnmp=yes
8141 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8148 if test "x$ucdsnmp" = "x"; then
8149 old_CFLAGS="$CFLAGS"
8150 for try in /usr/include /usr/local/include $with_snmp_include_dir; do
8151 CFLAGS="$old_CFLAGS -I$try"
8152 cat > conftest.$ac_ext <<EOF
8153 #line 8154 "configure"
8154 #include "confdefs.h"
8156 #ifdef HAVE_SYS_TYPES_H
8157 #include <sys/types.h>
8159 #ifdef HAVE_STDINT_H
8168 #ifdef HAVE_UNISTD_H
8171 #include <ucd-snmp/ucd-snmp-config.h>
8172 #include <ucd-snmp/asn1.h>
8173 #include <ucd-snmp/snmp.h>
8174 #include <ucd-snmp/snmp_impl.h>
8179 if { (eval echo configure:8180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8181 SNMP_INCLUDE="-I$try";ucdsnmp=yes
8183 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8189 if test "x$ucdsnmp" != "x"; then
8193 CFLAGS="$old_CFLAGS"
8196 if test "x$ucdsnmp" = "x"; then
8197 old_CFLAGS="$CFLAGS"
8198 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
8199 CFLAGS="$old_CFLAGS -I$try"
8200 cat > conftest.$ac_ext <<EOF
8201 #line 8202 "configure"
8202 #include "confdefs.h"
8204 #ifdef HAVE_SYS_TYPES_H
8205 #include <sys/types.h>
8207 #ifdef HAVE_STDINT_H
8216 #ifdef HAVE_UNISTD_H
8221 #include <snmp_impl.h>
8226 if { (eval echo configure:8227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8228 SNMP_INCLUDE="";ucdsnmp=no
8230 echo "configure: failed program was:" >&5
8231 cat conftest.$ac_ext >&5
8236 if test "x$ucdsnmp" != "x"; then
8240 CFLAGS="$old_CFLAGS"
8243 if test "x$ucdsnmp" = "x"; then
8244 old_CFLAGS="$CFLAGS"
8245 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
8246 CFLAGS="$old_CFLAGS -I$try"
8247 cat > conftest.$ac_ext <<EOF
8248 #line 8249 "configure"
8249 #include "confdefs.h"
8251 #ifdef HAVE_SYS_TYPES_H
8252 #include <sys/types.h>
8254 #ifdef HAVE_STDINT_H
8263 #ifdef HAVE_UNISTD_H
8268 #include <snmp_impl.h>
8273 if { (eval echo configure:8274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8275 SNMP_INCLUDE="-I$try";ucdsnmp=no
8277 echo "configure: failed program was:" >&5
8278 cat conftest.$ac_ext >&5
8283 if test "x$ucdsnmp" != "x"; then
8287 CFLAGS="$old_CFLAGS"
8290 if test "x$ucdsnmp" = "x"; then
8291 echo "$ac_t""no" 1>&6
8293 if test "x$ucdsnmp" = "xyes"; then
8294 echo "$ac_t""(ucd-snmp)yes" 1>&6
8295 cat >> confdefs.h <<\EOF
8296 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
8300 echo "$ac_t""yes" 1>&6
8301 cat >> confdefs.h <<\EOF
8302 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
8306 echo $ac_n "checking for snmp_build_var_op in -lsnmp""... $ac_c" 1>&6
8307 echo "configure:8308: checking for snmp_build_var_op in -lsnmp" >&5
8310 LIBS="$old_LIBS -lsnmp"
8311 cat > conftest.$ac_ext <<EOF
8312 #line 8313 "configure"
8313 #include "confdefs.h"
8314 extern char snmp_build_var_op();
8319 if { (eval echo configure:8320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8323 echo "configure: failed program was:" >&5
8324 cat conftest.$ac_ext >&5
8330 if test "x$SNMP_LIBS" = "x"; then
8331 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
8332 LIBS="$old_LIBS -L$try -lsnmp"
8333 cat > conftest.$ac_ext <<EOF
8334 #line 8335 "configure"
8335 #include "confdefs.h"
8336 extern char snmp_build_var_op();
8341 if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8343 SNMP_LIBS="-L$try -lsnmp"
8345 echo "configure: failed program was:" >&5
8346 cat conftest.$ac_ext >&5
8351 if test "x$SNMP_LIBS" != "x"; then
8354 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
8355 cat > conftest.$ac_ext <<EOF
8356 #line 8357 "configure"
8357 #include "confdefs.h"
8358 extern char snmp_build_var_op();
8363 if { (eval echo configure:8364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8365 SNMP_LIBS="-L$try -lsnmp -lcrypto"
8367 echo "configure: failed program was:" >&5
8368 cat conftest.$ac_ext >&5
8373 if test "x$SNMP_LIBS" != "x"; then
8376 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
8377 cat > conftest.$ac_ext <<EOF
8378 #line 8379 "configure"
8379 #include "confdefs.h"
8380 extern char snmp_build_var_op();
8385 if { (eval echo configure:8386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8387 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
8389 echo "configure: failed program was:" >&5
8390 cat conftest.$ac_ext >&5
8395 if test "x$SNMP_LIBS" != "x"; then
8402 CFLAGS="$old_CFLAGS"
8403 if test "x$SNMP_LIBS" = "x"; then
8404 echo "$ac_t""no" 1>&6
8407 echo "$ac_t""yes" 1>&6
8408 cat >> confdefs.h <<\EOF
8412 cat >> confdefs.h <<\EOF
8413 #define HAVE_LIBSNMP 1
8421 gethostbyaddrrstyle=""
8422 echo $ac_n "checking gethostbyaddr_r() syntax""... $ac_c" 1>&6
8423 echo "configure:8424: checking gethostbyaddr_r() syntax" >&5
8426 cat >> confdefs.h <<\EOF
8427 #define GETHOSTBYADDRRSTYLE BSDSTYLE
8430 gethostbyaddrrstyle=BSD
8431 echo "configure: warning: FreeBSD overridden to BSD-style" 1>&2
8434 if test "x$gethostbyaddrrstyle" = "x"; then
8435 cat > conftest.$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8443 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
8446 if { (eval echo configure:8447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8449 cat >> confdefs.h <<\EOF
8450 #define GETHOSTBYADDRRSTYLE GNUSTYLE
8453 gethostbyaddrrstyle=GNU
8456 echo "configure: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8461 if test "x$gethostbyaddrrstyle" = "x"; then
8462 cat > conftest.$ac_ext <<EOF
8463 #line 8464 "configure"
8464 #include "confdefs.h"
8470 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
8473 if { (eval echo configure:8474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8476 cat >> confdefs.h <<\EOF
8477 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
8480 gethostbyaddrrstyle=SYSV
8483 echo "configure: failed program was:" >&5
8484 cat conftest.$ac_ext >&5
8488 if test "x$gethostbyaddrrstyle" = "x"; then
8489 cat > conftest.$ac_ext <<EOF
8490 #line 8491 "configure"
8491 #include "confdefs.h"
8497 gethostbyaddr(NULL, 0, 0)
8500 if { (eval echo configure:8501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8503 cat >> confdefs.h <<\EOF
8504 #define GETHOSTBYADDRRSTYLE BSDSTYLE
8507 gethostbyaddrrstyle=BSD
8510 echo "configure: failed program was:" >&5
8511 cat conftest.$ac_ext >&5
8516 if test "x$gethostbyaddrrstyle" = "x"; then
8517 echo "$ac_t""none! It must not exist, here." 1>&6
8519 echo "$ac_t""${gethostbyaddrrstyle}-style" 1>&6
8522 if test "x$gethostbyaddrrstyle" = "xBSD"; then
8523 echo "configure: warning: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " 1>&2
8526 gethostbynamerstyle=""
8527 echo $ac_n "checking gethostbyname_r() syntax""... $ac_c" 1>&6
8528 echo "configure:8529: checking gethostbyname_r() syntax" >&5
8529 cat > conftest.$ac_ext <<EOF
8530 #line 8531 "configure"
8531 #include "confdefs.h"
8537 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
8540 if { (eval echo configure:8541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8543 cat >> confdefs.h <<\EOF
8544 #define GETHOSTBYNAMERSTYLE GNUSTYLE
8547 gethostbynamerstyle=GNU
8550 echo "configure: failed program was:" >&5
8551 cat conftest.$ac_ext >&5
8554 if test "x$gethostbynamerstyle" = "x"; then
8555 cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure"
8557 #include "confdefs.h"
8563 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
8566 if { (eval echo configure:8567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8569 cat >> confdefs.h <<\EOF
8570 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
8573 gethostbynamerstyle=SYSV
8576 echo "configure: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8581 if test "x$gethostbynamerstyle" = "x"; then
8582 cat > conftest.$ac_ext <<EOF
8583 #line 8584 "configure"
8584 #include "confdefs.h"
8593 if { (eval echo configure:8594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8596 cat >> confdefs.h <<\EOF
8597 #define GETHOSTBYNAMERSTYLE BSDSTYLE
8600 gethostbynamerstyle=BSD
8603 echo "configure: failed program was:" >&5
8604 cat conftest.$ac_ext >&5
8609 if test "x$gethostbynamerstyle" = "x"; then
8610 echo "$ac_t""none! It must not exist, here." 1>&6
8612 echo "$ac_t""${gethostbynamerstyle}-style" 1>&6
8615 if test "x$gethostbynamerstyle" = "xBSD"; then
8616 echo "configure: warning: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " 1>&2
8620 echo $ac_n "checking ctime_r() syntax""... $ac_c" 1>&6
8621 echo "configure:8622: checking ctime_r() syntax" >&5
8622 cat > conftest.$ac_ext <<EOF
8623 #line 8624 "configure"
8624 #include "confdefs.h"
8629 ctime_r(NULL, NULL, 0)
8632 if { (eval echo configure:8633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8635 cat >> confdefs.h <<\EOF
8636 #define CTIMERSTYLE SOLARISSTYLE
8639 ctimerstyle="SOLARIS"
8642 echo "configure: failed program was:" >&5
8643 cat conftest.$ac_ext >&5
8646 if test "x$ctimerstyle" = "x"; then
8647 cat > conftest.$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8657 if { (eval echo configure:8658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8660 cat >> confdefs.h <<\EOF
8661 #define CTIMERSTYLE POSIXSTYLE
8667 echo "configure: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8673 if test "x$ctimerstyle" = "x"; then
8674 echo "$ac_t""none! It must not exist, here." 1>&6
8676 echo "$ac_t""${ctimerstyle}-style" 1>&6
8680 if test x"$rad_enable_largefiles" = xyes ; then
8681 echo $ac_n "checking for largefile linkage""... $ac_c" 1>&6
8682 echo "configure:8683: checking for largefile linkage" >&5
8685 echo "$ac_t""no" 1>&6
8686 { echo "configure: error: AIX before 4.2 does not support large files" 1>&2; exit 1; }
8689 echo "$ac_t""ok" 1>&6
8690 LFS_CFLAGS="-D_LARGE_FILES"
8695 echo "$ac_t""ok" 1>&6
8696 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8701 echo "$ac_t""no" 1>&6
8702 { echo "configure: error: Large files not supported on this platform" 1>&2; exit 1; }
8705 echo "$ac_t""maybe" 1>&6
8706 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8709 cat >> confdefs.h <<\EOF
8710 #define _GNU_SOURCE 1
8715 echo "$ac_t""ok" 1>&6
8716 # Extract the first word of "getconf", so it can be a program name with args.
8717 set dummy getconf; ac_word=$2
8718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8719 echo "configure:8720: checking for $ac_word" >&5
8720 if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then
8721 echo $ac_n "(cached) $ac_c" 1>&6
8725 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
8728 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a dos path.
8731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8733 for ac_dir in $ac_dummy; do
8734 test -z "$ac_dir" && ac_dir=.
8735 if test -f $ac_dir/$ac_word; then
8736 ac_cv_path_GETCONF="$ac_dir/$ac_word"
8744 GETCONF="$ac_cv_path_GETCONF"
8745 if test -n "$GETCONF"; then
8746 echo "$ac_t""$GETCONF" 1>&6
8748 echo "$ac_t""no" 1>&6
8751 if test -z "$GETCONF" ; then
8752 { echo "configure: error: getconf required to configure large file support" 1>&2; exit 1; }
8754 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
8755 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
8756 LFS_LIBS=`$GETCONF LFS_LIBS`
8759 echo "$ac_t""maybe" 1>&6
8760 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8775 echo "$ac_t""top_builddir=$top_builddir" 1>&6
8779 if test "x$INCLTDL" != "x";then
8780 INCLTDL='-I${top_builddir}/''libltdl'
8786 if test "x$EXPERIMENTAL" = "xyes"; then
8787 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
8788 mysubdirs=`echo $bar`
8790 for bar in `cat src/modules/stable`; do
8791 if test -f src/modules/$bar/configure; then
8792 mysubdirs="$mysubdirs src/modules/$bar"
8797 if test "x$EXPERIMENTAL" = "xyes"; then
8798 for foo in `ls -1 src/modules | grep rlm_`; do
8799 MODULES="$MODULES $foo"
8802 for foo in `cat src/modules/stable`; do
8803 MODULES="$MODULES $foo"
8807 subdirs="'libltdl' $mysubdirs"
8815 USE_SHARED_LIBS=$enable_shared
8817 USE_STATIC_LIBS=$enable_static
8826 cat > confcache <<\EOF
8827 # This file is a shell script that caches the results of configure
8828 # tests run on this system so they can be shared between configure
8829 # scripts and configure runs. It is not useful on other systems.
8830 # If it contains results you don't want to keep, you may remove or edit it.
8832 # By default, configure uses ./config.cache as the cache file,
8833 # creating it if it does not exist already. You can give configure
8834 # the --cache-file=FILE option to use a different cache file; that is
8835 # what configure does when it calls configure scripts in
8836 # subdirectories, so they share the cache.
8837 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8838 # config.status only pays attention to the cache file if you give it the
8839 # --recheck option to rerun configure.
8842 # The following way of writing the cache mishandles newlines in values,
8843 # but we know of no workaround that is simple, portable, and efficient.
8844 # So, don't put newlines in cache variables' values.
8845 # Ultrix sh set writes to stderr and can't be redirected directly,
8846 # and sets the high bit in the cache file unless we assign to the vars.
8848 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8850 # `set' does not quote correctly, so add quotes (double-quote substitution
8851 # turns \\\\ into \\, and sed turns \\ into \).
8853 -e "s/'/'\\\\''/g" \
8854 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8857 # `set' quotes correctly as required by POSIX, so do not add quotes.
8858 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8861 if cmp -s $cache_file confcache; then
8864 if test -w $cache_file; then
8865 echo "updating cache $cache_file"
8866 cat confcache > $cache_file
8868 echo "not updating unwritable cache $cache_file"
8873 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8875 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8876 # Let make expand exec_prefix.
8877 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8879 # Any assignment to VPATH causes Sun make to only execute
8880 # the first set of double-colon rules, so remove it if not needed.
8881 # If there is a colon in the path, we need to keep it.
8882 if test "x$srcdir" = x.; then
8883 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8886 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8888 DEFS=-DHAVE_CONFIG_H
8890 # Without the "./", some shells look in PATH for config.status.
8891 : ${CONFIG_STATUS=./config.status}
8893 echo creating $CONFIG_STATUS
8894 rm -f $CONFIG_STATUS
8895 cat > $CONFIG_STATUS <<EOF
8897 # Generated automatically by configure.
8898 # Run this file to recreate the current configuration.
8899 # This directory was configured as follows,
8900 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8902 # $0 $ac_configure_args
8904 # Compiler output produced by configure, useful for debugging
8905 # configure, is in ./config.log if it exists.
8907 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8910 case "\$ac_option" in
8911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8912 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8913 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8914 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8915 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8917 -help | --help | --hel | --he | --h)
8918 echo "\$ac_cs_usage"; exit 0 ;;
8919 *) echo "\$ac_cs_usage"; exit 1 ;;
8923 ac_given_srcdir=$srcdir
8925 trap 'rm -fr `echo "\
8927 ./src/include/build-radpaths-h \
8928 ./src/main/Makefile \
8929 ./src/main/checkrad.pl \
8930 ./src/main/radlast \
8931 ./src/main/radtest \
8932 ./scripts/rc.radiusd \
8933 ./scripts/radwatch \
8934 ./scripts/check-radiusd-config \
8935 ./scripts/radiusd.cron.daily \
8936 ./scripts/radiusd.cron.monthly \
8937 ./scripts/cryptpasswd \
8938 ./raddb/dictionary \
8939 ./raddb/radiusd.conf
8940 src/include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8942 cat >> $CONFIG_STATUS <<EOF
8944 # Protect against being on the right side of a sed subst in config.status.
8945 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8946 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8950 s%@CFLAGS@%$CFLAGS%g
8951 s%@CPPFLAGS@%$CPPFLAGS%g
8952 s%@CXXFLAGS@%$CXXFLAGS%g
8953 s%@FFLAGS@%$FFLAGS%g
8955 s%@LDFLAGS@%$LDFLAGS%g
8957 s%@exec_prefix@%$exec_prefix%g
8958 s%@prefix@%$prefix%g
8959 s%@program_transform_name@%$program_transform_name%g
8960 s%@bindir@%$bindir%g
8961 s%@sbindir@%$sbindir%g
8962 s%@libexecdir@%$libexecdir%g
8963 s%@datadir@%$datadir%g
8964 s%@sysconfdir@%$sysconfdir%g
8965 s%@sharedstatedir@%$sharedstatedir%g
8966 s%@localstatedir@%$localstatedir%g
8967 s%@libdir@%$libdir%g
8968 s%@includedir@%$includedir%g
8969 s%@oldincludedir@%$oldincludedir%g
8970 s%@infodir@%$infodir%g
8971 s%@mandir@%$mandir%g
8974 s%@RANLIB@%$RANLIB%g
8975 s%@abs_top_builddir@%$abs_top_builddir%g
8978 s%@subdirs@%$subdirs%g
8979 s%@LIBLTDLPATH@%$LIBLTDLPATH%g
8980 s%@LIBTOOL@%$LIBTOOL%g
8982 s%@host_alias@%$host_alias%g
8983 s%@host_cpu@%$host_cpu%g
8984 s%@host_vendor@%$host_vendor%g
8985 s%@host_os@%$host_os%g
8987 s%@build_alias@%$build_alias%g
8988 s%@build_cpu@%$build_cpu%g
8989 s%@build_vendor@%$build_vendor%g
8990 s%@build_os@%$build_os%g
8992 s%@OBJEXT@%$OBJEXT%g
8993 s%@EXEEXT@%$EXEEXT%g
8996 s%@logdir@%$logdir%g
8997 s%@radacctdir@%$radacctdir%g
8998 s%@raddbdir@%$raddbdir%g
9000 s%@SNMPGET@%$SNMPGET%g
9001 s%@SNMPWALK@%$SNMPWALK%g
9002 s%@RUSERS@%$RUSERS%g
9003 s%@ACLOCAL@%$ACLOCAL%g
9004 s%@AUTOCONF@%$AUTOCONF%g
9005 s%@AUTOHEADER@%$AUTOHEADER%g
9006 s%@LOCATE@%$LOCATE%g
9007 s%@DIRNAME@%$DIRNAME%g
9010 s%@REGEX_EXTENDED@%$REGEX_EXTENDED%g
9011 s%@OPENSSL_INCLUDE@%$OPENSSL_INCLUDE%g
9012 s%@OPENSSL_LIBS@%$OPENSSL_LIBS%g
9013 s%@LIBPREFIX@%$LIBPREFIX%g
9014 s%@CRYPTLIB@%$CRYPTLIB%g
9015 s%@SNMP_LIBS@%$SNMP_LIBS%g
9016 s%@SNMP_INCLUDE@%$SNMP_INCLUDE%g
9017 s%@GETCONF@%$GETCONF%g
9018 s%@LFS_CFLAGS@%$LFS_CFLAGS%g
9019 s%@LFS_LDFLAGS@%$LFS_LDFLAGS%g
9020 s%@LFS_LIBS@%$LFS_LIBS%g
9021 s%@HOSTINFO@%$HOSTINFO%g
9022 s%@LIBLTDL@%$LIBLTDL%g
9023 s%@INCLTDL@%$INCLTDL%g
9024 s%@MODULES@%$MODULES%g
9025 s%@INSTALLSTRIP@%$INSTALLSTRIP%g
9026 s%@USE_SHARED_LIBS@%$USE_SHARED_LIBS%g
9027 s%@USE_STATIC_LIBS@%$USE_STATIC_LIBS%g
9028 s%@STATIC_MODULES@%$STATIC_MODULES%g
9029 s%@RADIUSD_MAJOR_VERSION@%$RADIUSD_MAJOR_VERSION%g
9030 s%@RADIUSD_MINOR_VERSION@%$RADIUSD_MINOR_VERSION%g
9031 s%@RADIUSD_VERSION@%$RADIUSD_VERSION%g
9036 cat >> $CONFIG_STATUS <<\EOF
9038 # Split the substitutions into bite-sized pieces for seds with
9039 # small command number limits, like on Digital OSF/1 and HP-UX.
9040 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9041 ac_file=1 # Number of current file.
9042 ac_beg=1 # First line for current file.
9043 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9046 while $ac_more_lines; do
9047 if test $ac_beg -gt 1; then
9048 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9050 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9052 if test ! -s conftest.s$ac_file; then
9054 rm -f conftest.s$ac_file
9056 if test -z "$ac_sed_cmds"; then
9057 ac_sed_cmds="sed -f conftest.s$ac_file"
9059 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9061 ac_file=`expr $ac_file + 1`
9063 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9066 if test -z "$ac_sed_cmds"; then
9071 cat >> $CONFIG_STATUS <<EOF
9073 CONFIG_FILES=\${CONFIG_FILES-"\
9075 ./src/include/build-radpaths-h \
9076 ./src/main/Makefile \
9077 ./src/main/checkrad.pl \
9078 ./src/main/radlast \
9079 ./src/main/radtest \
9080 ./scripts/rc.radiusd \
9081 ./scripts/radwatch \
9082 ./scripts/check-radiusd-config \
9083 ./scripts/radiusd.cron.daily \
9084 ./scripts/radiusd.cron.monthly \
9085 ./scripts/cryptpasswd \
9086 ./raddb/dictionary \
9087 ./raddb/radiusd.conf
9090 cat >> $CONFIG_STATUS <<\EOF
9091 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9092 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9094 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9095 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9096 *) ac_file_in="${ac_file}.in" ;;
9099 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9101 # Remove last slash and all that follows it. Not all systems have dirname.
9102 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9103 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9104 # The file is in a subdirectory.
9105 test ! -d "$ac_dir" && mkdir "$ac_dir"
9106 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9107 # A "../" for each directory in $ac_dir_suffix.
9108 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9110 ac_dir_suffix= ac_dots=
9113 case "$ac_given_srcdir" in
9115 if test -z "$ac_dots"; then top_srcdir=.
9116 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9117 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9119 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9120 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9124 echo creating "$ac_file"
9126 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9128 *Makefile*) ac_comsub="1i\\
9129 # $configure_input" ;;
9133 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9135 s%@configure_input@%$configure_input%g
9136 s%@srcdir@%$srcdir%g
9137 s%@top_srcdir@%$top_srcdir%g
9138 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9142 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9143 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9145 # ac_d sets the value in "#define NAME VALUE" lines.
9146 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9147 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9150 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9151 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9152 ac_uB='\([ ]\)%\1#\2define\3'
9155 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9156 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9157 ac_eB='$%\1#\2define\3'
9161 if test "${CONFIG_HEADERS+set}" != set; then
9163 cat >> $CONFIG_STATUS <<EOF
9164 CONFIG_HEADERS="src/include/autoconf.h"
9166 cat >> $CONFIG_STATUS <<\EOF
9168 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9169 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9171 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9172 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9173 *) ac_file_in="${ac_file}.in" ;;
9176 echo creating $ac_file
9178 rm -f conftest.frag conftest.in conftest.out
9179 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9180 cat $ac_file_inputs > conftest.in
9184 # Transform confdefs.h into a sed script conftest.vals that substitutes
9185 # the proper values into config.h.in to produce config.h. And first:
9186 # Protect against being on the right side of a sed subst in config.status.
9187 # Protect against being in an unquoted here document in config.status.
9189 cat > conftest.hdr <<\EOF
9192 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9196 sed -n -f conftest.hdr confdefs.h > conftest.vals
9199 # This sed command replaces #undef with comments. This is necessary, for
9200 # example, in the case of _POSIX_SOURCE, which is predefined and required
9201 # on some systems where configure will not decide to define it.
9202 cat >> conftest.vals <<\EOF
9203 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9206 # Break up conftest.vals because some shells have a limit on
9207 # the size of here documents, and old seds have small limits too.
9212 ac_lines=`grep -c . conftest.vals`
9213 # grep -c gives empty output for an empty file on some AIX systems.
9214 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9215 # Write a limited-size here document to conftest.frag.
9216 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9217 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9219 sed -f conftest.frag conftest.in > conftest.out
9221 mv conftest.out conftest.in
9223 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9225 mv conftest.tail conftest.vals
9229 cat >> $CONFIG_STATUS <<\EOF
9230 rm -f conftest.frag conftest.h
9231 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9232 cat conftest.in >> conftest.h
9234 if cmp -s $ac_file conftest.h 2>/dev/null; then
9235 echo "$ac_file is unchanged"
9238 # Remove last slash and all that follows it. Not all systems have dirname.
9239 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9240 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9241 # The file is in a subdirectory.
9242 test ! -d "$ac_dir" && mkdir "$ac_dir"
9245 mv conftest.h $ac_file
9250 cat >> $CONFIG_STATUS <<EOF
9253 cat >> $CONFIG_STATUS <<\EOF
9257 chmod +x $CONFIG_STATUS
9258 rm -fr confdefs* $ac_clean_files
9259 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9261 if test "$no_recursion" != yes; then
9263 # Remove --cache-file and --srcdir arguments so they do not pile up.
9264 ac_sub_configure_args=
9266 for ac_arg in $ac_configure_args; do
9267 if test -n "$ac_prev"; then
9272 -cache-file | --cache-file | --cache-fil | --cache-fi \
9273 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9274 ac_prev=cache_file ;;
9275 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9276 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9278 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9280 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9282 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9286 for ac_config_dir in 'libltdl' $mysubdirs; do
9288 # Do not complain, so a configure script can configure whichever
9289 # parts of a large source tree are present.
9290 if test ! -d $srcdir/$ac_config_dir; then
9294 echo configuring in $ac_config_dir
9299 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9301 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9309 # A "../" for each directory in /$ac_config_dir.
9310 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9313 .) # No --srcdir option. We are building in place.
9314 ac_sub_srcdir=$srcdir ;;
9315 /*) # Absolute path.
9316 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9318 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9321 # Check for guested configure; otherwise get Cygnus style configure.
9322 if test -f $ac_sub_srcdir/configure; then
9323 ac_sub_configure=$ac_sub_srcdir/configure
9324 elif test -f $ac_sub_srcdir/configure.in; then
9325 ac_sub_configure=$ac_configure
9327 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9331 # The recursion is here.
9332 if test -n "$ac_sub_configure"; then
9334 # Make the cache file name correct relative to the subdirectory.
9335 case "$cache_file" in
9336 /*) ac_sub_cache_file=$cache_file ;;
9338 ac_sub_cache_file="$ac_dots$cache_file" ;;
9341 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9342 # The eval makes quoting arguments work.
9343 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9346 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
9359 echo timestamp > src/include/stamp-h
9360 (cd ./src/include && /bin/sh ./build-radpaths-h)
9361 (cd ./src/main && chmod +x checkrad.pl radlast radtest)
9362 (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd)