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 --enable-developer Enables features of interest to developers."
214 --with-experimental-modules Use experimental and unstable modules. (default=no) "
216 --with-openssl-includes=DIR Directory to look for OpenSSL include files"
218 --with-openssl-libraries=DIR Directory to look for OpenSSL library files"
220 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO"
222 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO"
224 --with-udpfromto Compile in UDPFROMTO support. (default=no)"
226 # Initialize some variables set by options.
227 # The variables have the same names as the options, with
228 # dashes changed to underlines.
230 cache_file=./config.cache
239 program_transform_name=s,x,x,
247 bindir='${exec_prefix}/bin'
248 sbindir='${exec_prefix}/sbin'
249 libexecdir='${exec_prefix}/libexec'
250 datadir='${prefix}/share'
251 sysconfdir='${prefix}/etc'
252 sharedstatedir='${prefix}/com'
253 localstatedir='${prefix}/var'
254 libdir='${exec_prefix}/lib'
255 includedir='${prefix}/include'
256 oldincludedir='/usr/include'
257 infodir='${prefix}/info'
258 mandir='${prefix}/man'
260 # Initialize some other variables.
263 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
271 # If the previous option needs an argument, assign it.
272 if test -n "$ac_prev"; then
273 eval "$ac_prev=\$ac_option"
279 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
283 # Accept the important Cygnus configure options, so we can diagnose typos.
287 -bindir | --bindir | --bindi | --bind | --bin | --bi)
289 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
290 bindir="$ac_optarg" ;;
292 -build | --build | --buil | --bui | --bu)
294 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
295 build="$ac_optarg" ;;
297 -cache-file | --cache-file | --cache-fil | --cache-fi \
298 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
299 ac_prev=cache_file ;;
300 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
301 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
302 cache_file="$ac_optarg" ;;
304 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
306 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
308 datadir="$ac_optarg" ;;
310 -disable-* | --disable-*)
311 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
312 # Reject names that are not valid shell variable names.
313 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
314 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
316 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
317 eval "enable_${ac_feature}=no" ;;
319 -enable-* | --enable-*)
320 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
321 # Reject names that are not valid shell variable names.
322 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
323 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
325 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
330 eval "enable_${ac_feature}='$ac_optarg'" ;;
332 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
333 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
334 | --exec | --exe | --ex)
335 ac_prev=exec_prefix ;;
336 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
337 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
338 | --exec=* | --exe=* | --ex=*)
339 exec_prefix="$ac_optarg" ;;
341 -gas | --gas | --ga | --g)
342 # Obsolete; use --with-gas.
345 -help | --help | --hel | --he)
346 # Omit some internal or obsolete options to make the list less imposing.
347 # This message is too long to be a string in the A/UX 3.1 sh.
349 Usage: configure [options] [host]
350 Options: [defaults in brackets after descriptions]
352 --cache-file=FILE cache test results in FILE
353 --help print this message
354 --no-create do not create output files
355 --quiet, --silent do not print \`checking...' messages
356 --version print the version of autoconf that created configure
357 Directory and file names:
358 --prefix=PREFIX install architecture-independent files in PREFIX
360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
362 --bindir=DIR user executables in DIR [EPREFIX/bin]
363 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
364 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
365 --datadir=DIR read-only architecture-independent data in DIR
367 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
368 --sharedstatedir=DIR modifiable architecture-independent data in DIR
370 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
371 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
372 --includedir=DIR C header files in DIR [PREFIX/include]
373 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
374 --infodir=DIR info documentation in DIR [PREFIX/info]
375 --mandir=DIR man documentation in DIR [PREFIX/man]
376 --srcdir=DIR find the sources in DIR [configure dir or ..]
377 --program-prefix=PREFIX prepend PREFIX to installed program names
378 --program-suffix=SUFFIX append SUFFIX to installed program names
379 --program-transform-name=PROGRAM
380 run sed PROGRAM on installed program names
384 --build=BUILD configure for building on BUILD [BUILD=HOST]
385 --host=HOST configure for HOST [guessed]
386 --target=TARGET configure for TARGET [TARGET=HOST]
387 Features and packages:
388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
390 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
391 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
392 --x-includes=DIR X include files are in DIR
393 --x-libraries=DIR X library files are in DIR
395 if test -n "$ac_help"; then
396 echo "--enable and --with options recognized:$ac_help"
400 -host | --host | --hos | --ho)
402 -host=* | --host=* | --hos=* | --ho=*)
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir="$ac_optarg" ;;
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir="$ac_optarg" ;;
417 -libdir | --libdir | --libdi | --libd)
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
420 libdir="$ac_optarg" ;;
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir="$ac_optarg" ;;
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir="$ac_optarg" ;;
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441 mandir="$ac_optarg" ;;
444 # Obsolete; use --without-fp.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir="$ac_optarg" ;;
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467 prefix="$ac_optarg" ;;
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix="$ac_optarg" ;;
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix="$ac_optarg" ;;
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name="$ac_optarg" ;;
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 sbindir="$ac_optarg" ;;
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 sharedstatedir="$ac_optarg" ;;
521 -site | --site | --sit)
523 -site=* | --site=* | --sit=*)
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529 srcdir="$ac_optarg" ;;
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir="$ac_optarg" ;;
538 -target | --target | --targe | --targ | --tar | --ta | --t)
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target="$ac_optarg" ;;
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
546 -version | --version | --versio | --versi | --vers)
547 echo "configure generated by autoconf version 2.13"
551 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
552 # Reject names that are not valid shell variable names.
553 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
554 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
561 eval "with_${ac_package}='$ac_optarg'" ;;
563 -without-* | --without-*)
564 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
565 # Reject names that are not valid shell variable names.
566 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
567 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
569 ac_package=`echo $ac_package| sed 's/-/_/g'`
570 eval "with_${ac_package}=no" ;;
573 # Obsolete; use --with-x.
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes="$ac_optarg" ;;
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries="$ac_optarg" ;;
590 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
594 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
595 echo "configure: warning: $ac_option: invalid host type" 1>&2
597 if test "x$nonopt" != xNONE; then
598 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
606 if test -n "$ac_prev"; then
607 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
610 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
612 # File descriptor usage:
615 # 2 errors and warnings
616 # 3 some systems may open it to /dev/tty
617 # 4 used on the Kubota Titan
618 # 6 checking for... messages and results
619 # 5 compiler messages saved in config.log
620 if test "$silent" = yes; then
628 This file contains any messages produced by compilers while
629 running configure, to aid debugging if configure makes a mistake.
632 # Strip out --no-create and --no-recursion so they do not pile up.
633 # Also quote any args containing shell metacharacters.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c) ;;
640 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
641 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
642 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
643 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
644 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
649 # Only set these to C if already set. These must not be set unconditionally
650 # because not all systems understand e.g. LANG=C (notably SCO).
651 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
652 # Non-C LC_CTYPE values break the ctype check.
653 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
654 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
655 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
656 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
658 # confdefs.h avoids OS command line length limits that DEFS can exceed.
659 rm -rf conftest* confdefs.h
660 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
663 # A filename unique to this package, relative to the directory that
664 # configure is in, which we can look for to find out if srcdir is correct.
665 ac_unique_file=src/main/radiusd.c
667 # Find the source files, if location was not specified.
668 if test -z "$srcdir"; then
669 ac_srcdir_defaulted=yes
670 # Try the directory containing this script, then its parent.
672 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
673 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
675 if test ! -r $srcdir/$ac_unique_file; then
679 ac_srcdir_defaulted=no
681 if test ! -r $srcdir/$ac_unique_file; then
682 if test "$ac_srcdir_defaulted" = yes; then
683 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
685 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
688 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
690 # Prefer explicitly selected file to automatically selected ones.
691 if test -z "$CONFIG_SITE"; then
692 if test "x$prefix" != xNONE; then
693 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
695 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
698 for ac_site_file in $CONFIG_SITE; do
699 if test -r "$ac_site_file"; then
700 echo "loading site script $ac_site_file"
705 if test -r "$cache_file"; then
706 echo "loading cache $cache_file"
709 echo "creating cache $cache_file"
714 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
715 ac_cpp='$CPP $CPPFLAGS'
716 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
717 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
718 cross_compiling=$ac_cv_prog_cc_cross
722 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
723 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
724 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
731 ac_n= ac_c='\c' ac_t=
736 # From configure.in Revision: 1.198.2.6
737 RADIUSD_MAJOR_VERSION=1
738 RADIUSD_MINOR_VERSION=0.0
739 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
742 # Extract the first word of "gcc", so it can be a program name with args.
743 set dummy gcc; ac_word=$2
744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
745 echo "configure:746: checking for $ac_word" >&5
746 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
749 if test -n "$CC"; then
750 ac_cv_prog_CC="$CC" # Let the user override the test.
752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
754 for ac_dir in $ac_dummy; do
755 test -z "$ac_dir" && ac_dir=.
756 if test -f $ac_dir/$ac_word; then
765 if test -n "$CC"; then
766 echo "$ac_t""$CC" 1>&6
768 echo "$ac_t""no" 1>&6
771 if test -z "$CC"; then
772 # Extract the first word of "cc", so it can be a program name with args.
773 set dummy cc; ac_word=$2
774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
775 echo "configure:776: checking for $ac_word" >&5
776 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 if test -n "$CC"; then
780 ac_cv_prog_CC="$CC" # Let the user override the test.
782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
785 for ac_dir in $ac_dummy; do
786 test -z "$ac_dir" && ac_dir=.
787 if test -f $ac_dir/$ac_word; then
788 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
797 if test $ac_prog_rejected = yes; then
798 # We found a bogon in the path, so make sure we never use it.
799 set dummy $ac_cv_prog_CC
801 if test $# -gt 0; then
802 # We chose a different compiler from the bogus one.
803 # However, it has the same basename, so the bogon will be chosen
804 # first if we set CC to just the basename; use the full file name.
806 set dummy "$ac_dir/$ac_word" "$@"
814 if test -n "$CC"; then
815 echo "$ac_t""$CC" 1>&6
817 echo "$ac_t""no" 1>&6
820 if test -z "$CC"; then
823 # Extract the first word of "cl", so it can be a program name with args.
824 set dummy cl; ac_word=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 if test -n "$CC"; then
831 ac_cv_prog_CC="$CC" # Let the user override the test.
833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
835 for ac_dir in $ac_dummy; do
836 test -z "$ac_dir" && ac_dir=.
837 if test -f $ac_dir/$ac_word; then
846 if test -n "$CC"; then
847 echo "$ac_t""$CC" 1>&6
849 echo "$ac_t""no" 1>&6
854 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
857 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
858 echo "configure:859: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
862 ac_cpp='$CPP $CPPFLAGS'
863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
864 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
865 cross_compiling=$ac_cv_prog_cc_cross
867 cat > conftest.$ac_ext << EOF
869 #line 870 "configure"
870 #include "confdefs.h"
874 if { (eval echo configure:875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
875 ac_cv_prog_cc_works=yes
876 # If we can't run a trivial program, we are probably using a cross compiler.
877 if (./conftest; exit) 2>/dev/null; then
878 ac_cv_prog_cc_cross=no
880 ac_cv_prog_cc_cross=yes
883 echo "configure: failed program was:" >&5
884 cat conftest.$ac_ext >&5
885 ac_cv_prog_cc_works=no
889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
890 ac_cpp='$CPP $CPPFLAGS'
891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
893 cross_compiling=$ac_cv_prog_cc_cross
895 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
896 if test $ac_cv_prog_cc_works = no; then
897 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
899 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
900 echo "configure:901: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
901 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
902 cross_compiling=$ac_cv_prog_cc_cross
904 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
905 echo "configure:906: checking whether we are using GNU C" >&5
906 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
909 cat > conftest.c <<EOF
914 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
921 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
923 if test $ac_cv_prog_gcc = yes; then
929 ac_test_CFLAGS="${CFLAGS+set}"
930 ac_save_CFLAGS="$CFLAGS"
932 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
933 echo "configure:934: checking whether ${CC-cc} accepts -g" >&5
934 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
937 echo 'void f(){}' > conftest.c
938 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
947 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
948 if test "$ac_test_CFLAGS" = set; then
949 CFLAGS="$ac_save_CFLAGS"
950 elif test $ac_cv_prog_cc_g = yes; then
951 if test "$GCC" = yes; then
957 if test "$GCC" = yes; then
964 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
965 echo "configure:966: checking how to run the C preprocessor" >&5
966 # On Suns, sometimes $CPP names a directory.
967 if test -n "$CPP" && test -d "$CPP"; then
970 if test -z "$CPP"; then
971 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
974 # This must be in double quotes, not single quotes, because CPP may get
975 # substituted into the Makefile and "${CC-cc}" will confuse make.
977 # On the NeXT, cc -E runs the code through the compiler's parser,
978 # not just through cpp.
979 cat > conftest.$ac_ext <<EOF
980 #line 981 "configure"
981 #include "confdefs.h"
985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986 { (eval echo configure:987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
988 if test -z "$ac_err"; then
992 echo "configure: failed program was:" >&5
993 cat conftest.$ac_ext >&5
995 CPP="${CC-cc} -E -traditional-cpp"
996 cat > conftest.$ac_ext <<EOF
997 #line 998 "configure"
998 #include "confdefs.h"
1002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1003 { (eval echo configure:1004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1005 if test -z "$ac_err"; then
1009 echo "configure: failed program was:" >&5
1010 cat conftest.$ac_ext >&5
1012 CPP="${CC-cc} -nologo -E"
1013 cat > conftest.$ac_ext <<EOF
1014 #line 1015 "configure"
1015 #include "confdefs.h"
1019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1020 { (eval echo configure:1021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1022 if test -z "$ac_err"; then
1026 echo "configure: failed program was:" >&5
1027 cat conftest.$ac_ext >&5
1036 ac_cv_prog_CPP="$CPP"
1038 CPP="$ac_cv_prog_CPP"
1040 ac_cv_prog_CPP="$CPP"
1042 echo "$ac_t""$CPP" 1>&6
1044 if test $ac_cv_prog_gcc = yes; then
1045 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1046 echo "configure:1047: checking whether ${CC-cc} needs -traditional" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 ac_pattern="Autoconf.*'x'"
1051 cat > conftest.$ac_ext <<EOF
1052 #line 1053 "configure"
1053 #include "confdefs.h"
1057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1058 egrep "$ac_pattern" >/dev/null 2>&1; then
1060 ac_cv_prog_gcc_traditional=yes
1063 ac_cv_prog_gcc_traditional=no
1068 if test $ac_cv_prog_gcc_traditional = no; then
1069 cat > conftest.$ac_ext <<EOF
1070 #line 1071 "configure"
1071 #include "confdefs.h"
1075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1076 egrep "$ac_pattern" >/dev/null 2>&1; then
1078 ac_cv_prog_gcc_traditional=yes
1085 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1086 if test $ac_cv_prog_gcc_traditional = yes; then
1087 CC="$CC -traditional"
1091 echo $ac_n "checking whether we are using SUNPro C""... $ac_c" 1>&6
1092 echo "configure:1093: checking whether we are using SUNPro C" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_suncc'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 cat > conftest.c <<EOF
1101 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1102 ac_cv_prog_suncc=yes
1108 echo "$ac_t""$ac_cv_prog_suncc" 1>&6
1109 # Extract the first word of "ranlib", so it can be a program name with args.
1110 set dummy ranlib; ac_word=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 if test -n "$RANLIB"; then
1117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1121 for ac_dir in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_prog_RANLIB="ranlib"
1129 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1132 RANLIB="$ac_cv_prog_RANLIB"
1133 if test -n "$RANLIB"; then
1134 echo "$ac_t""$RANLIB" 1>&6
1136 echo "$ac_t""no" 1>&6
1140 abs_top_builddir=`pwd`
1146 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1147 echo "configure:1148: checking for AIX" >&5
1148 cat > conftest.$ac_ext <<EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1157 egrep "yes" >/dev/null 2>&1; then
1159 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1160 #define _ALL_SOURCE 1
1165 echo "$ac_t""no" 1>&6
1171 # Extract the first word of "gmake", so it can be a program name with args.
1172 set dummy gmake; ac_word=$2
1173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1174 echo "configure:1175: checking for $ac_word" >&5
1175 if eval "test \"`echo '$''{'ac_cv_prog_GMAKE'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 if test -n "$GMAKE"; then
1179 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
1181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1183 for ac_dir in $ac_dummy; do
1184 test -z "$ac_dir" && ac_dir=.
1185 if test -f $ac_dir/$ac_word; then
1186 ac_cv_prog_GMAKE="yes"
1191 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
1194 GMAKE="$ac_cv_prog_GMAKE"
1195 if test -n "$GMAKE"; then
1196 echo "$ac_t""$GMAKE" 1>&6
1198 echo "$ac_t""no" 1>&6
1201 if test $GMAKE = no; then
1202 # Extract the first word of "make", so it can be a program name with args.
1203 set dummy make; ac_word=$2
1204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1205 echo "configure:1206: checking for $ac_word" >&5
1206 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1211 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1214 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1219 for ac_dir in $ac_dummy; do
1220 test -z "$ac_dir" && ac_dir=.
1221 if test -f $ac_dir/$ac_word; then
1222 ac_cv_path_MAKE="$ac_dir/$ac_word"
1227 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
1231 MAKE="$ac_cv_path_MAKE"
1232 if test -n "$MAKE"; then
1233 echo "$ac_t""$MAKE" 1>&6
1235 echo "$ac_t""no" 1>&6
1239 # Extract the first word of "gmake", so it can be a program name with args.
1240 set dummy gmake; ac_word=$2
1241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1242 echo "configure:1243: checking for $ac_word" >&5
1243 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1248 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1251 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1256 for ac_dir in $ac_dummy; do
1257 test -z "$ac_dir" && ac_dir=.
1258 if test -f $ac_dir/$ac_word; then
1259 ac_cv_path_MAKE="$ac_dir/$ac_word"
1264 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
1268 MAKE="$ac_cv_path_MAKE"
1269 if test -n "$MAKE"; then
1270 echo "$ac_t""$MAKE" 1>&6
1272 echo "$ac_t""no" 1>&6
1276 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
1277 if test -z "$makever"; then
1278 { echo "configure: error: GNU Make is not installed. Please download and install it
1279 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." 1>&2; exit 1; }
1283 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1284 if test -f $ac_dir/install-sh; then
1286 ac_install_sh="$ac_aux_dir/install-sh -c"
1288 elif test -f $ac_dir/install.sh; then
1290 ac_install_sh="$ac_aux_dir/install.sh -c"
1294 if test -z "$ac_aux_dir"; then
1295 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1297 ac_config_guess=$ac_aux_dir/config.guess
1298 ac_config_sub=$ac_aux_dir/config.sub
1299 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1301 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
1302 if test "${enable_ltdl_install+set}" = set; then
1303 enableval="$enable_ltdl_install"
1307 if test x"${enable_ltdl_install+set}" != xset; then
1308 enable_ltdl_install=yes
1309 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1311 # Check whether --with-ltdl-lib or --without-ltdl-lib was given.
1312 if test "${with_ltdl_lib+set}" = set; then
1313 withval="$with_ltdl_lib"
1314 if test x"withval" = x"yes" || test x"withval" = x"no" ; then
1315 echo "configure: warning: specify location of libltdl library" 1>&2
1322 save_LDFLAGS="$LDFLAGS"
1323 test -z "$withval" || LDFLAGS="$LDFLAGS -L$withval"
1324 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
1325 echo "configure:1326: checking for lt_dlinit in -lltdl" >&5
1326 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-%__p_%'`
1327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 ac_save_LIBS="$LIBS"
1332 cat > conftest.$ac_ext <<EOF
1333 #line 1334 "configure"
1334 #include "confdefs.h"
1335 /* Override any gcc2 internal prototype to avoid an error. */
1336 /* We use char because int might match the return type of a gcc2
1337 builtin and then its argument prototype would still apply. */
1344 if { (eval echo configure:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1346 eval "ac_cv_lib_$ac_lib_var=yes"
1348 echo "configure: failed program was:" >&5
1349 cat conftest.$ac_ext >&5
1351 eval "ac_cv_lib_$ac_lib_var=no"
1354 LIBS="$ac_save_LIBS"
1357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1358 echo "$ac_t""yes" 1>&6
1362 # Check whether --with-ltdl-include or --without-ltdl-include was given.
1363 if test "${with_ltdl_include+set}" = set; then
1364 withval="$with_ltdl_include"
1365 if test x"withval" = x"yes" || test x"withval" = x"no" ; then
1366 echo "configure: warning: specify location of ltdl.h" 1>&2
1369 save_CPPFLAGS="$CPPFLAGS"
1370 CPPFLAGS="$CPPFLAGS -I$withval"
1371 ac_safe=`echo "ltdl.h" | sed 'y%./+-%__p_%'`
1372 echo $ac_n "checking for ltdl.h""... $ac_c" 1>&6
1373 echo "configure:1374: checking for ltdl.h" >&5
1374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1383 { (eval echo configure:1384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1385 if test -z "$ac_err"; then
1387 eval "ac_cv_header_$ac_safe=yes"
1390 echo "configure: failed program was:" >&5
1391 cat conftest.$ac_ext >&5
1393 eval "ac_cv_header_$ac_safe=no"
1397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1398 echo "$ac_t""yes" 1>&6
1400 INCLTDL="-I$withval"
1402 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
1405 echo "$ac_t""no" 1>&6
1408 CPPFLAGS="$save_CPPFLAGS"
1414 echo "$ac_t""no" 1>&6
1417 LDFLAGS="$save_LDFLAGS"
1419 if test x"$enable_ltdl_install" = xno && test x"$ltdl_found" != xyes; then
1420 echo "configure: warning: libltdl not installed, but installation disabled" 1>&2
1422 if test x"$ltdl_found" = xyes; then
1423 enable_ltdl_install="no"
1426 if test x"$enable_ltdl_install" = x"yes"; then
1427 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1428 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
1429 INCLTDL='-I${top_srcdir}/''libltdl'
1437 # Find the correct PATH separator. Usually this is `:', but
1438 # DJGPP uses `;' like DOS.
1439 if test "X${PATH_SEPARATOR+set}" != Xset; then
1440 UNAME=${UNAME-`uname 2>/dev/null`}
1442 *-DOS) lt_cv_sys_path_separator=';' ;;
1443 *) lt_cv_sys_path_separator=':' ;;
1445 PATH_SEPARATOR=$lt_cv_sys_path_separator
1448 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1449 echo "configure:1450: checking for Cygwin environment" >&5
1450 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1453 cat > conftest.$ac_ext <<EOF
1454 #line 1455 "configure"
1455 #include "confdefs.h"
1460 #define __CYGWIN__ __CYGWIN32__
1465 if { (eval echo configure:1466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1469 echo "configure: failed program was:" >&5
1470 cat conftest.$ac_ext >&5
1478 echo "$ac_t""$ac_cv_cygwin" 1>&6
1480 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1481 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1482 echo "configure:1483: checking for mingw32 environment" >&5
1483 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 cat > conftest.$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1494 if { (eval echo configure:1495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1498 echo "configure: failed program was:" >&5
1499 cat conftest.$ac_ext >&5
1507 echo "$ac_t""$ac_cv_mingw32" 1>&6
1509 test "$ac_cv_mingw32" = yes && MINGW32=yes
1510 # Check whether --enable-shared or --disable-shared was given.
1511 if test "${enable_shared+set}" = set; then
1512 enableval="$enable_shared"
1513 p=${PACKAGE-default}
1515 yes) enable_shared=yes ;;
1516 no) enable_shared=no ;;
1519 # Look at the argument we got. We use all the common list separators.
1520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1521 for pkg in $enableval; do
1522 if test "X$pkg" = "X$p"; then
1533 # Check whether --enable-static or --disable-static was given.
1534 if test "${enable_static+set}" = set; then
1535 enableval="$enable_static"
1536 p=${PACKAGE-default}
1538 yes) enable_static=yes ;;
1539 no) enable_static=no ;;
1542 # Look at the argument we got. We use all the common list separators.
1543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1544 for pkg in $enableval; do
1545 if test "X$pkg" = "X$p"; then
1556 # Check whether --enable-fast-install or --disable-fast-install was given.
1557 if test "${enable_fast_install+set}" = set; then
1558 enableval="$enable_fast_install"
1559 p=${PACKAGE-default}
1561 yes) enable_fast_install=yes ;;
1562 no) enable_fast_install=no ;;
1564 enable_fast_install=no
1565 # Look at the argument we got. We use all the common list separators.
1566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1567 for pkg in $enableval; do
1568 if test "X$pkg" = "X$p"; then
1569 enable_fast_install=yes
1576 enable_fast_install=yes
1580 # Make sure we can run config.sub.
1581 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1582 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1585 echo $ac_n "checking host system type""... $ac_c" 1>&6
1586 echo "configure:1587: checking host system type" >&5
1589 case "$host_alias" in
1593 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1594 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1596 *) host_alias=$nonopt ;;
1600 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1601 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604 echo "$ac_t""$host" 1>&6
1606 echo $ac_n "checking build system type""... $ac_c" 1>&6
1607 echo "configure:1608: checking build system type" >&5
1610 case "$build_alias" in
1613 NONE) build_alias=$host_alias ;;
1614 *) build_alias=$nonopt ;;
1618 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1619 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1620 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1621 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622 echo "$ac_t""$build" 1>&6
1624 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1625 if test "${with_gnu_ld+set}" = set; then
1626 withval="$with_gnu_ld"
1627 test "$withval" = no || with_gnu_ld=yes
1633 if test "$GCC" = yes; then
1634 # Check if gcc -print-prog-name=ld gives a path.
1635 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1636 echo "configure:1637: checking for ld used by GCC" >&5
1639 # gcc leaves a trailing carriage return which upsets mingw
1640 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1642 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1645 # Accept absolute paths.
1646 [\\/]* | [A-Za-z]:[\\/]*)
1647 re_direlt='/[^/][^/]*/\.\./'
1648 # Canonicalize the path of ld
1649 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1650 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1651 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1653 test -z "$LD" && LD="$ac_prog"
1656 # If it fails, then pretend we aren't using GCC.
1660 # If it is relative, then search for the first ld in PATH.
1664 elif test "$with_gnu_ld" = yes; then
1665 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1666 echo "configure:1667: checking for GNU ld" >&5
1668 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1669 echo "configure:1670: checking for non-GNU ld" >&5
1671 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 if test -z "$LD"; then
1675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1676 for ac_dir in $PATH; do
1677 test -z "$ac_dir" && ac_dir=.
1678 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1679 lt_cv_path_LD="$ac_dir/$ac_prog"
1680 # Check to see if the program is GNU ld. I'd rather use --version,
1681 # but apparently some GNU ld's only accept -v.
1682 # Break only if it was the GNU/non-GNU ld that we prefer.
1683 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1684 test "$with_gnu_ld" != no && break
1686 test "$with_gnu_ld" != yes && break
1692 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1697 if test -n "$LD"; then
1698 echo "$ac_t""$LD" 1>&6
1700 echo "$ac_t""no" 1>&6
1702 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1703 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1704 echo "configure:1705: checking if the linker ($LD) is GNU ld" >&5
1705 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1709 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1710 lt_cv_prog_gnu_ld=yes
1712 lt_cv_prog_gnu_ld=no
1716 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1717 with_gnu_ld=$lt_cv_prog_gnu_ld
1720 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1721 echo "configure:1722: checking for $LD option to reload object files" >&5
1722 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 lt_cv_ld_reload_flag='-r'
1728 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1729 reload_flag=$lt_cv_ld_reload_flag
1730 test -n "$reload_flag" && reload_flag=" $reload_flag"
1732 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1733 echo "configure:1734: checking for BSD-compatible nm" >&5
1734 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 if test -n "$NM"; then
1738 # Let the user override the test.
1741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1742 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1743 test -z "$ac_dir" && ac_dir=.
1744 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1745 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1746 # Check to see if the nm accepts a BSD-compat flag.
1747 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1748 # nm: unknown option "B" ignored
1749 # Tru64's nm complains that /dev/null is an invalid object file
1750 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1751 lt_cv_path_NM="$tmp_nm -B"
1753 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1754 lt_cv_path_NM="$tmp_nm -p"
1757 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1758 continue # so that we can try to find one that supports BSD flags
1763 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1768 echo "$ac_t""$NM" 1>&6
1770 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1771 echo "configure:1772: checking whether ln -s works" >&5
1772 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1776 if ln -s X conftestdata 2>/dev/null
1779 ac_cv_prog_LN_S="ln -s"
1784 LN_S="$ac_cv_prog_LN_S"
1785 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1786 echo "$ac_t""yes" 1>&6
1788 echo "$ac_t""no" 1>&6
1791 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1792 echo "configure:1793: checking how to recognise dependant libraries" >&5
1793 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1796 lt_cv_file_magic_cmd='$MAGIC_CMD'
1797 lt_cv_file_magic_test_file=
1798 lt_cv_deplibs_check_method='unknown'
1799 # Need to set the preceding variable on all platforms that support
1800 # interlibrary dependencies.
1801 # 'none' -- dependencies not supported.
1802 # `unknown' -- same as none, but documents that we really don't know.
1803 # 'pass_all' -- all dependencies passed with no checks.
1804 # 'test_compile' -- check by making test program.
1805 # 'file_magic [[regex]]' -- check by looking for files in library path
1806 # which responds to the $file_magic_cmd with a given egrep regex.
1807 # If you have `file' or equivalent on your system and you're not sure
1808 # whether `pass_all' will *always* work, you probably want this one.
1812 lt_cv_deplibs_check_method=pass_all
1816 lt_cv_deplibs_check_method=pass_all
1820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1821 lt_cv_file_magic_cmd='/usr/bin/file -L'
1822 lt_cv_file_magic_test_file=/shlib/libc.so
1825 cygwin* | mingw* | pw32*)
1826 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1827 lt_cv_file_magic_cmd='$OBJDUMP -f'
1830 darwin* | rhapsody*)
1831 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1832 lt_cv_file_magic_cmd='/usr/bin/file -L'
1834 rhapsody* | darwin1.[012])
1835 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1838 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1844 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1847 # Not sure whether the presence of OpenBSD here was a mistake.
1848 # Let's accept both of them until this is cleared up.
1849 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1850 lt_cv_file_magic_cmd=/usr/bin/file
1851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1855 lt_cv_deplibs_check_method=pass_all
1860 lt_cv_deplibs_check_method=pass_all
1864 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1865 lt_cv_file_magic_cmd=/usr/bin/file
1866 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1872 # this will be overridden with pass_all, but let us keep it just in case
1873 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1877 *-32|*"-32 ") libmagic=32-bit;;
1878 *-n32|*"-n32 ") libmagic=N32;;
1879 *-64|*"-64 ") libmagic=64-bit;;
1880 *) libmagic=never-match;;
1882 # this will be overridden with pass_all, but let us keep it just in case
1883 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1886 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1887 lt_cv_deplibs_check_method=pass_all
1890 # This must be Linux ELF.
1893 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
1894 lt_cv_deplibs_check_method=pass_all ;;
1896 # glibc up to 2.1.1 does not perform some relocations on ARM
1897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1899 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1903 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1904 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1906 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1912 lt_cv_file_magic_cmd=/usr/bin/file
1913 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1917 lt_cv_file_magic_cmd=/usr/bin/file
1918 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1919 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1922 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1926 osf3* | osf4* | osf5*)
1927 # this will be overridden with pass_all, but let us keep it just in case
1928 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1929 lt_cv_file_magic_test_file=/shlib/libc.so
1930 lt_cv_deplibs_check_method=pass_all
1934 lt_cv_deplibs_check_method=pass_all
1938 lt_cv_deplibs_check_method=pass_all
1939 lt_cv_file_magic_test_file=/lib/libc.so
1942 sysv5uw[78]* | sysv4*uw2*)
1943 lt_cv_deplibs_check_method=pass_all
1946 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1947 case $host_vendor in
1949 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]'
1950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1953 lt_cv_deplibs_check_method=pass_all
1956 lt_cv_file_magic_cmd='/bin/file'
1957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1960 lt_cv_file_magic_cmd='/bin/file'
1961 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1962 lt_cv_file_magic_test_file=/lib/libc.so
1970 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1971 file_magic_cmd=$lt_cv_file_magic_cmd
1972 deplibs_check_method=$lt_cv_deplibs_check_method
1974 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1975 echo "configure:1976: checking for object suffix" >&5
1976 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1980 echo 'int i = 1;' > conftest.$ac_ext
1981 if { (eval echo configure:1982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1982 for ac_file in conftest.*; do
1985 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1989 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1994 echo "$ac_t""$ac_cv_objext" 1>&6
1995 OBJEXT=$ac_cv_objext
1996 ac_objext=$ac_cv_objext
2000 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2001 echo "configure:2002: checking for executable suffix" >&5
2002 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2009 echo 'int main () { return 0; }' > conftest.$ac_ext
2011 if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2012 for file in conftest.*; do
2014 *.$ac_ext | *.c | *.o | *.obj) ;;
2015 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2019 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2022 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2027 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2028 echo "$ac_t""${ac_cv_exeext}" 1>&6
2031 if test $host != $build; then
2032 ac_tool_prefix=${host_alias}-
2040 # Check for command to grab the raw symbol name followed by C symbol from nm.
2041 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2042 echo "configure:2043: checking command to parse $NM output" >&5
2043 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2047 # These are sane defaults that work on at least a few old systems.
2048 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2050 # Character class describing NM global symbol codes.
2051 symcode='[BCDEGRST]'
2053 # Regexp to match symbols that can be accessed directly from C.
2054 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2056 # Transform the above into a raw symbol and a C symbol.
2057 symxfrm='\1 \2\3 \3'
2059 # Transform an extracted symbol line into a proper C declaration
2060 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2062 # Transform an extracted symbol line into symbol name and symbol address
2063 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'"
2065 # Define system-specific variables.
2070 cygwin* | mingw* | pw32*)
2071 symcode='[ABCDGISTW]'
2073 hpux*) # Its linker distinguishes data from code symbols
2074 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2075 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'"
2078 symcode='[BCDEGRST]'
2088 # Handle CRLF in mingw tool chain
2092 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2096 # If we're using GNU nm, then use its standard symbol codes.
2097 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2098 symcode='[ABCDGISTW]'
2101 # Try without a prefix undercore, then with it.
2102 for ac_symprfx in "" "_"; do
2104 # Write the raw and C identifiers.
2105 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2107 # Check to see that the pipe works correctly.
2110 cat > conftest.$ac_ext <<EOF
2115 void nm_test_func(){}
2119 int main(){nm_test_var='a';nm_test_func();return(0);}
2122 if { (eval echo configure:2123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2123 # Now try to grab the symbols.
2125 if { (eval echo configure:2126: \"$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
2126 # Try sorting and uniquifying the output.
2127 if sort "$nlist" | uniq > "$nlist"T; then
2128 mv -f "$nlist"T "$nlist"
2133 # Make sure that we snagged all the symbols we need.
2134 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2135 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2136 cat <<EOF > conftest.$ac_ext
2142 # Now generate the symbol file.
2143 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2145 cat <<EOF >> conftest.$ac_ext
2146 #if defined (__STDC__) && __STDC__
2147 # define lt_ptr void *
2149 # define lt_ptr char *
2153 /* The mapping between symbol names and symbols. */
2158 lt_preloaded_symbols[] =
2161 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2162 cat <<\EOF >> conftest.$ac_ext
2170 # Now try linking the two files.
2171 mv conftest.$ac_objext conftstm.$ac_objext
2173 save_CFLAGS="$CFLAGS"
2174 LIBS="conftstm.$ac_objext"
2175 CFLAGS="$CFLAGS$no_builtin_flag"
2176 if { (eval echo configure:2177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2180 CFLAGS="$save_CFLAGS"
2182 echo "cannot find nm_test_func in $nlist" >&5
2185 echo "cannot find nm_test_var in $nlist" >&5
2188 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2191 echo "$progname: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2194 rm -f conftest* conftst*
2196 # Do not use the global_symbol_pipe unless it works.
2197 if test "$pipe_works" = yes; then
2200 lt_cv_sys_global_symbol_pipe=
2206 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2207 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2208 global_symbol_to_cdecl=
2209 global_symbol_to_c_name_address=
2211 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2212 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2214 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2216 echo "$ac_t""failed" 1>&6
2218 echo "$ac_t""ok" 1>&6
2221 for ac_hdr in dlfcn.h
2223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2225 echo "configure:2226: checking for $ac_hdr" >&5
2226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2235 { (eval echo configure:2236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2237 if test -z "$ac_err"; then
2239 eval "ac_cv_header_$ac_safe=yes"
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2245 eval "ac_cv_header_$ac_safe=no"
2249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2250 echo "$ac_t""yes" 1>&6
2251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2252 cat >> confdefs.h <<EOF
2253 #define $ac_tr_hdr 1
2257 echo "$ac_t""no" 1>&6
2265 # Only perform the check for file, if the check method requires it
2266 case $deplibs_check_method in
2268 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2269 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2270 echo "configure:2271: checking for ${ac_tool_prefix}file" >&5
2271 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2276 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2279 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2282 ac_save_MAGIC_CMD="$MAGIC_CMD"
2283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2284 ac_dummy="/usr/bin:$PATH"
2285 for ac_dir in $ac_dummy; do
2286 test -z "$ac_dir" && ac_dir=.
2287 if test -f $ac_dir/${ac_tool_prefix}file; then
2288 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2289 if test -n "$file_magic_test_file"; then
2290 case $deplibs_check_method in
2292 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2294 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2295 egrep "$file_magic_regex" > /dev/null; then
2300 *** Warning: the command libtool uses to detect shared libraries,
2301 *** $file_magic_cmd, produces output that libtool cannot recognize.
2302 *** The result is that libtool may fail to recognize shared libraries
2303 *** as such. This will affect the creation of libtool libraries that
2304 *** depend on shared libraries, but programs linked with such libtool
2305 *** libraries will work regardless of this problem. Nevertheless, you
2306 *** may want to report the problem to your system manager and/or to
2307 *** bug-libtool@gnu.org
2317 MAGIC_CMD="$ac_save_MAGIC_CMD"
2322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2323 if test -n "$MAGIC_CMD"; then
2324 echo "$ac_t""$MAGIC_CMD" 1>&6
2326 echo "$ac_t""no" 1>&6
2329 if test -z "$lt_cv_path_MAGIC_CMD"; then
2330 if test -n "$ac_tool_prefix"; then
2331 echo $ac_n "checking for file""... $ac_c" 1>&6
2332 echo "configure:2333: checking for file" >&5
2333 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2341 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2344 ac_save_MAGIC_CMD="$MAGIC_CMD"
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2346 ac_dummy="/usr/bin:$PATH"
2347 for ac_dir in $ac_dummy; do
2348 test -z "$ac_dir" && ac_dir=.
2349 if test -f $ac_dir/file; then
2350 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2351 if test -n "$file_magic_test_file"; then
2352 case $deplibs_check_method in
2354 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2356 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2357 egrep "$file_magic_regex" > /dev/null; then
2362 *** Warning: the command libtool uses to detect shared libraries,
2363 *** $file_magic_cmd, produces output that libtool cannot recognize.
2364 *** The result is that libtool may fail to recognize shared libraries
2365 *** as such. This will affect the creation of libtool libraries that
2366 *** depend on shared libraries, but programs linked with such libtool
2367 *** libraries will work regardless of this problem. Nevertheless, you
2368 *** may want to report the problem to your system manager and/or to
2369 *** bug-libtool@gnu.org
2379 MAGIC_CMD="$ac_save_MAGIC_CMD"
2384 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2385 if test -n "$MAGIC_CMD"; then
2386 echo "$ac_t""$MAGIC_CMD" 1>&6
2388 echo "$ac_t""no" 1>&6
2400 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2401 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2403 echo "configure:2404: checking for $ac_word" >&5
2404 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2407 if test -n "$RANLIB"; then
2408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2412 for ac_dir in $ac_dummy; do
2413 test -z "$ac_dir" && ac_dir=.
2414 if test -f $ac_dir/$ac_word; then
2415 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2422 RANLIB="$ac_cv_prog_RANLIB"
2423 if test -n "$RANLIB"; then
2424 echo "$ac_t""$RANLIB" 1>&6
2426 echo "$ac_t""no" 1>&6
2430 if test -z "$ac_cv_prog_RANLIB"; then
2431 if test -n "$ac_tool_prefix"; then
2432 # Extract the first word of "ranlib", so it can be a program name with args.
2433 set dummy ranlib; ac_word=$2
2434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2435 echo "configure:2436: checking for $ac_word" >&5
2436 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 if test -n "$RANLIB"; then
2440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2444 for ac_dir in $ac_dummy; do
2445 test -z "$ac_dir" && ac_dir=.
2446 if test -f $ac_dir/$ac_word; then
2447 ac_cv_prog_RANLIB="ranlib"
2452 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2455 RANLIB="$ac_cv_prog_RANLIB"
2456 if test -n "$RANLIB"; then
2457 echo "$ac_t""$RANLIB" 1>&6
2459 echo "$ac_t""no" 1>&6
2467 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2468 set dummy ${ac_tool_prefix}strip; ac_word=$2
2469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2470 echo "configure:2471: checking for $ac_word" >&5
2471 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 if test -n "$STRIP"; then
2475 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2479 for ac_dir in $ac_dummy; do
2480 test -z "$ac_dir" && ac_dir=.
2481 if test -f $ac_dir/$ac_word; then
2482 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2489 STRIP="$ac_cv_prog_STRIP"
2490 if test -n "$STRIP"; then
2491 echo "$ac_t""$STRIP" 1>&6
2493 echo "$ac_t""no" 1>&6
2497 if test -z "$ac_cv_prog_STRIP"; then
2498 if test -n "$ac_tool_prefix"; then
2499 # Extract the first word of "strip", so it can be a program name with args.
2500 set dummy strip; ac_word=$2
2501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2502 echo "configure:2503: checking for $ac_word" >&5
2503 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2506 if test -n "$STRIP"; then
2507 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2511 for ac_dir in $ac_dummy; do
2512 test -z "$ac_dir" && ac_dir=.
2513 if test -f $ac_dir/$ac_word; then
2514 ac_cv_prog_STRIP="strip"
2519 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2522 STRIP="$ac_cv_prog_STRIP"
2523 if test -n "$STRIP"; then
2524 echo "$ac_t""$STRIP" 1>&6
2526 echo "$ac_t""no" 1>&6
2538 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2539 if test "${enable_libtool_lock+set}" = set; then
2540 enableval="$enable_libtool_lock"
2544 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2546 # Some flags need to be propagated to the compiler or linker for good
2550 # Find out which ABI we are using.
2551 echo '#line 2552 "configure"' > conftest.$ac_ext
2552 if { (eval echo configure:2553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2553 case `/usr/bin/file conftest.$ac_objext` in
2569 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2570 SAVE_CFLAGS="$CFLAGS"
2571 CFLAGS="$CFLAGS -belf"
2572 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2573 echo "configure:2574: checking whether the C compiler needs -belf" >&5
2574 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2583 cross_compiling=$ac_cv_prog_cc_cross
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2593 if { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2595 lt_cv_cc_needs_belf=yes
2597 echo "configure: failed program was:" >&5
2598 cat conftest.$ac_ext >&5
2600 lt_cv_cc_needs_belf=no
2604 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2605 ac_cpp='$CPP $CPPFLAGS'
2606 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2607 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2608 cross_compiling=$ac_cv_prog_cc_cross
2612 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2613 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2614 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2615 CFLAGS="$SAVE_CFLAGS"
2622 # Sed substitution that helps us do robust quoting. It backslashifies
2623 # metacharacters that are still active within double-quoted strings.
2624 Xsed='sed -e s/^X//'
2625 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2627 # Same as above, but do not quote variable references.
2628 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2630 # Sed substitution to delay expansion of an escaped shell variable in a
2631 # double_quote_subst'ed string.
2632 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2638 default_ofile=libtool
2639 can_build_shared=yes
2641 # All known linkers require a `.a' archive for static linking (except M$VC,
2642 # which needs '.lib').
2644 ltmain="$ac_aux_dir/ltmain.sh"
2645 ofile="$default_ofile"
2646 with_gnu_ld="$lt_cv_prog_gnu_ld"
2647 need_locks="$enable_libtool_lock"
2650 old_CFLAGS="$CFLAGS"
2652 # Set sane defaults for various variables
2653 test -z "$AR" && AR=ar
2654 test -z "$AR_FLAGS" && AR_FLAGS=cru
2655 test -z "$AS" && AS=as
2656 test -z "$CC" && CC=cc
2657 test -z "$DLLTOOL" && DLLTOOL=dlltool
2658 test -z "$LD" && LD=ld
2659 test -z "$LN_S" && LN_S="ln -s"
2660 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2661 test -z "$NM" && NM=nm
2662 test -z "$OBJDUMP" && OBJDUMP=objdump
2663 test -z "$RANLIB" && RANLIB=:
2664 test -z "$STRIP" && STRIP=:
2665 test -z "$ac_objext" && ac_objext=o
2667 if test x"$host" != x"$build"; then
2668 ac_tool_prefix=${host_alias}-
2673 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2676 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2681 # AIX sometimes has problems with the GCC collect2 program. For some
2682 # reason, if we set the COLLECT_NAMES environment variable, the problems
2683 # vanish in a puff of smoke.
2684 if test "X${COLLECT_NAMES+set}" != Xset; then
2686 export COLLECT_NAMES
2691 # Determine commands to create old-style static archives.
2692 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2693 old_postinstall_cmds='chmod 644 $oldlib'
2694 old_postuninstall_cmds=
2696 if test -n "$RANLIB"; then
2699 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2702 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2705 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2708 # Allow CC to be a program name with arguments.
2712 ## FIXME: this should be a separate macro
2714 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2715 echo "configure:2716: checking for objdir" >&5
2716 rm -f .libs 2>/dev/null
2717 mkdir .libs 2>/dev/null
2718 if test -d .libs; then
2721 # MS-DOS does not allow filenames that begin with a dot.
2724 rmdir .libs 2>/dev/null
2725 echo "$ac_t""$objdir" 1>&6
2730 ## FIXME: this should be a separate macro
2732 # Check whether --with-pic or --without-pic was given.
2733 if test "${with_pic+set}" = set; then
2740 test -z "$pic_mode" && pic_mode=default
2742 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2743 # in isolation, and that seeing it set (from the cache) indicates that
2744 # the associated values are set (in the cache) correctly too.
2745 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2746 echo "configure:2747: checking for $compiler option to produce PIC" >&5
2747 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2751 lt_cv_prog_cc_shlib=
2753 lt_cv_prog_cc_static=
2754 lt_cv_prog_cc_no_builtin=
2755 lt_cv_prog_cc_can_build_shared=$can_build_shared
2757 if test "$GCC" = yes; then
2758 lt_cv_prog_cc_wl='-Wl,'
2759 lt_cv_prog_cc_static='-static'
2763 # Below there is a dirty hack to force normal static linking with -ldl
2764 # The problem is because libdl dynamically linked with both libc and
2765 # libC (AIX C++ library), which obviously doesn't included in libraries
2766 # list by gcc. This cause undefined symbols with -static flags.
2767 # This hack allows C programs to be linked with "-static -ldl", but
2768 # not sure about C++ programs.
2769 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2772 # FIXME: we need at least 68020 code to build shared libraries, but
2773 # adding the `-m68020' flag to GCC prevents building anything better,
2775 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2777 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2778 # PIC is the default for these OSes.
2780 darwin* | rhapsody*)
2781 # PIC is the default on this platform
2782 # Common symbols not allowed in MH_DYLIB files
2783 lt_cv_prog_cc_pic='-fno-common'
2785 cygwin* | mingw* | pw32* | os2*)
2786 # This hack is so that the source file can tell whether it is being
2787 # built for inclusion in a dll (and should export symbols for example).
2788 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2791 if test -d /usr/nec; then
2792 lt_cv_prog_cc_pic=-Kconform_pic
2796 lt_cv_prog_cc_pic='-fPIC'
2800 # PORTME Check for PIC flags for the system compiler.
2802 aix3* | aix4* | aix5*)
2803 lt_cv_prog_cc_wl='-Wl,'
2804 # All AIX code is PIC.
2805 if test "$host_cpu" = ia64; then
2806 # AIX 5 now supports IA64 processor
2807 lt_cv_prog_cc_static='-Bstatic'
2809 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2813 hpux9* | hpux10* | hpux11*)
2814 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2815 lt_cv_prog_cc_wl='-Wl,'
2816 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2817 lt_cv_prog_cc_pic='+Z'
2821 lt_cv_prog_cc_wl='-Wl,'
2822 lt_cv_prog_cc_static='-non_shared'
2823 # PIC (with -KPIC) is the default.
2826 cygwin* | mingw* | pw32* | os2*)
2827 # This hack is so that the source file can tell whether it is being
2828 # built for inclusion in a dll (and should export symbols for example).
2829 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2833 lt_cv_prog_cc_pic='-KPIC'
2834 lt_cv_prog_cc_static='-Bstatic'
2837 osf3* | osf4* | osf5*)
2838 # All OSF/1 code is PIC.
2839 lt_cv_prog_cc_wl='-Wl,'
2840 lt_cv_prog_cc_static='-non_shared'
2844 lt_cv_prog_cc_pic='-Kpic'
2845 lt_cv_prog_cc_static='-dn'
2846 lt_cv_prog_cc_shlib='-belf'
2850 lt_cv_prog_cc_pic='-KPIC'
2851 lt_cv_prog_cc_static='-Bstatic'
2852 lt_cv_prog_cc_wl='-Wl,'
2856 lt_cv_prog_cc_pic='-PIC'
2857 lt_cv_prog_cc_static='-Bstatic'
2858 lt_cv_prog_cc_wl='-Qoption ld '
2861 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2862 lt_cv_prog_cc_pic='-KPIC'
2863 lt_cv_prog_cc_static='-Bstatic'
2864 if test "x$host_vendor" = xsni; then
2865 lt_cv_prog_cc_wl='-LD'
2867 lt_cv_prog_cc_wl='-Wl,'
2872 lt_cv_prog_cc_pic='-pic'
2873 lt_cv_prog_cc_static='-Bstatic'
2877 if test -d /usr/nec ;then
2878 lt_cv_prog_cc_pic='-Kconform_pic'
2879 lt_cv_prog_cc_static='-Bstatic'
2884 lt_cv_prog_cc_can_build_shared=no
2891 if test -z "$lt_cv_prog_cc_pic"; then
2892 echo "$ac_t""none" 1>&6
2894 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2896 # Check to make sure the pic_flag actually works.
2897 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2898 echo "configure:2899: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2899 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 save_CFLAGS="$CFLAGS"
2903 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2904 cat > conftest.$ac_ext <<EOF
2905 #line 2906 "configure"
2906 #include "confdefs.h"
2912 if { (eval echo configure:2913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2915 hpux9* | hpux10* | hpux11*)
2916 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2917 # they create non-PIC objects. So, if there were any warnings, we
2918 # assume that PIC is not supported.
2919 if test -s conftest.err; then
2920 lt_cv_prog_cc_pic_works=no
2922 lt_cv_prog_cc_pic_works=yes
2926 lt_cv_prog_cc_pic_works=yes
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2934 lt_cv_prog_cc_pic_works=no
2938 CFLAGS="$save_CFLAGS"
2943 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2945 lt_cv_prog_cc_can_build_shared=no
2947 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2950 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2955 # Check for any special shared library compilation flags.
2956 if test -n "$lt_cv_prog_cc_shlib"; then
2957 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2958 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2960 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2961 lt_cv_prog_cc_can_build_shared=no
2965 ## FIXME: this should be a separate macro
2967 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2968 echo "configure:2969: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2969 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2972 lt_cv_prog_cc_static_works=no
2973 save_LDFLAGS="$LDFLAGS"
2974 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2983 if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2985 lt_cv_prog_cc_static_works=yes
2987 echo "configure: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2991 LDFLAGS="$save_LDFLAGS"
2996 # Belt *and* braces to stop my trousers falling down:
2997 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2998 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
3000 pic_flag="$lt_cv_prog_cc_pic"
3001 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3002 wl="$lt_cv_prog_cc_wl"
3003 link_static_flag="$lt_cv_prog_cc_static"
3004 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3005 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3010 ## FIXME: this should be a separate macro
3012 # Check to see if options -o and -c are simultaneously supported by compiler
3013 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
3014 echo "configure:3015: checking if $compiler supports -c -o file.$ac_objext" >&5
3015 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3019 $rm -r conftest 2>/dev/null
3022 echo "int some_variable = 0;" > conftest.$ac_ext
3024 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3025 # that will create temporary files in the current directory regardless of
3026 # the output directory. Thus, making CWD read-only will cause this test
3027 # to fail, enabling locking or at least warning the user not to do parallel
3030 save_CFLAGS="$CFLAGS"
3031 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3033 if { (eval echo configure:3034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3034 # The compiler can only warn and ignore the option if not recognized
3035 # So say no if there are warnings
3036 if test -s out/conftest.err; then
3037 lt_cv_compiler_c_o=no
3039 lt_cv_compiler_c_o=yes
3042 # Append any errors to the config.log.
3043 cat out/conftest.err 1>&5
3044 lt_cv_compiler_c_o=no
3046 CFLAGS="$save_CFLAGS"
3052 $rm -r conftest 2>/dev/null
3056 compiler_c_o=$lt_cv_compiler_c_o
3057 echo "$ac_t""$compiler_c_o" 1>&6
3059 if test x"$compiler_c_o" = x"yes"; then
3060 # Check to see if we can write to a .lo
3061 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3062 echo "configure:3063: checking if $compiler supports -c -o file.lo" >&5
3063 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3067 lt_cv_compiler_o_lo=no
3068 save_CFLAGS="$CFLAGS"
3069 CFLAGS="$CFLAGS -c -o conftest.lo"
3070 save_objext="$ac_objext"
3072 cat > conftest.$ac_ext <<EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3077 int some_variable = 0;
3080 if { (eval echo configure:3081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3082 # The compiler can only warn and ignore the option if not recognized
3083 # So say no if there are warnings
3084 if test -s conftest.err; then
3085 lt_cv_compiler_o_lo=no
3087 lt_cv_compiler_o_lo=yes
3091 echo "configure: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3095 ac_objext="$save_objext"
3096 CFLAGS="$save_CFLAGS"
3100 compiler_o_lo=$lt_cv_compiler_o_lo
3101 echo "$ac_t""$compiler_o_lo" 1>&6
3108 ## FIXME: this should be a separate macro
3110 # Check to see if we can do hard links to lock some files if needed
3111 hard_links="nottested"
3112 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3113 # do not overwrite the value of need_locks provided by the user
3114 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3115 echo "configure:3116: checking if we can lock with hard links" >&5
3118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3120 ln conftest.a conftest.b 2>&5 || hard_links=no
3121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3122 echo "$ac_t""$hard_links" 1>&6
3123 if test "$hard_links" = no; then
3124 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3133 ## FIXME: this should be a separate macro
3135 if test "$GCC" = yes; then
3136 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3137 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3138 echo "configure:3139: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3139 echo "int some_variable = 0;" > conftest.$ac_ext
3140 save_CFLAGS="$CFLAGS"
3141 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3142 compiler_rtti_exceptions=no
3143 cat > conftest.$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3148 int some_variable = 0;
3151 if { (eval echo configure:3152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3153 # The compiler can only warn and ignore the option if not recognized
3154 # So say no if there are warnings
3155 if test -s conftest.err; then
3156 compiler_rtti_exceptions=no
3158 compiler_rtti_exceptions=yes
3162 echo "configure: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3166 CFLAGS="$save_CFLAGS"
3167 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3169 if test "$compiler_rtti_exceptions" = "yes"; then
3170 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3172 no_builtin_flag=' -fno-builtin'
3178 ## FIXME: this should be a separate macro
3180 # See if the linker supports building shared libraries.
3181 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3182 echo "configure:3183: checking whether the linker ($LD) supports shared libraries" >&5
3184 allow_undefined_flag=
3186 need_lib_prefix=unknown
3187 need_version=unknown
3188 # when you set need_version to no, make sure it does not cause -set_version
3189 # flags to be left without arguments
3191 archive_expsym_cmds=
3192 old_archive_from_new_cmds=
3193 old_archive_from_expsyms_cmds=
3194 export_dynamic_flag_spec=
3195 whole_archive_flag_spec=
3196 thread_safe_flag_spec=
3197 hardcode_into_libs=no
3198 hardcode_libdir_flag_spec=
3199 hardcode_libdir_separator=
3202 hardcode_shlibpath_var=unsupported
3204 link_all_deplibs=unknown
3205 always_export_symbols=no
3206 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3207 # include_expsyms should be a list of space-separated symbols to be *always*
3208 # included in the symbol list
3210 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3211 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3212 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3213 # as well as any symbol that contains `d'.
3214 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3215 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3216 # platforms (ab)use it in PIC code, but their linkers get confused if
3217 # the symbol is explicitly referenced. Since portable code cannot
3218 # rely on this symbol name, it's probably fine to never include it in
3219 # preloaded symbol tables.
3220 extract_expsyms_cmds=
3223 cygwin* | mingw* | pw32*)
3224 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3225 # When not using gcc, we currently assume that we are using
3226 # Microsoft Visual C++.
3227 if test "$GCC" != yes; then
3237 if test "$with_gnu_ld" = yes; then
3238 # If archive_cmds runs LD, not CC, wlarc should be empty
3241 # See if GNU ld supports shared libraries.
3243 aix3* | aix4* | aix5*)
3244 # On AIX, the GNU linker is very broken
3245 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3249 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3250 *** to be unable to reliably create shared libraries on AIX.
3251 *** Therefore, libtool is disabling shared libraries support. If you
3252 *** really care for shared libraries, you may want to modify your PATH
3253 *** so that a non-GNU linker is found, and then restart.
3259 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)'
3260 hardcode_libdir_flag_spec='-L$libdir'
3261 hardcode_minus_L=yes
3263 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3264 # that the semantics of dynamic libraries on AmigaOS, at least up
3265 # to version 4, is to share data among multiple programs linked
3266 # with the same dynamic library. Since this doesn't match the
3267 # behavior of shared libraries on other platforms, we can use
3273 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3274 allow_undefined_flag=unsupported
3275 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3276 # support --undefined. This deserves some investigation. FIXME
3277 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3283 cygwin* | mingw* | pw32*)
3284 # hardcode_libdir_flag_spec is actually meaningless, as there is
3285 # no search path for DLLs.
3286 hardcode_libdir_flag_spec='-L$libdir'
3287 allow_undefined_flag=unsupported
3288 always_export_symbols=yes
3290 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3291 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3292 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3293 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3294 else $CC -o impgen impgen.c ; fi)~
3295 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3297 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3299 # cygwin and mingw dlls have different entry points and sets of symbols
3301 # FIXME: what about values for MSVC?
3302 dll_entry=__cygwin_dll_entry@12
3303 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3307 dll_entry=_DllMainCRTStartup@12
3308 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3312 # mingw and cygwin differ, and it's simplest to just exclude the union
3313 # of the two symbol sets.
3314 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3316 # recent cygwin and mingw systems supply a stub DllMain which the user
3317 # can override, but on older systems we have to supply one (in ltdll.c)
3318 if test "x$lt_cv_need_dllmain" = "xyes"; then
3319 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3320 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~
3321 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3327 # Extract the symbol export list from an `--export-all' def file,
3328 # then regenerate the def file from the symbol export list, so that
3329 # the compiled dll only exports the symbol export list.
3330 # Be careful not to strip the DATA tag left be newer dlltools.
3331 export_symbols_cmds="$ltdll_cmds"'
3332 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3333 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3335 # If the export-symbols file already is a .def file (1st line
3336 # is EXPORTS), use it as is.
3337 # If DATA tags from a recent dlltool are present, honour them!
3338 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3339 cp $export_symbols $output_objdir/$soname-def;
3341 echo EXPORTS > $output_objdir/$soname-def;
3343 cat $export_symbols | while read symbol; do
3346 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3347 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3349 _lt_hint=`expr 1 + \$_lt_hint`;
3353 $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~
3354 $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~
3355 $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~
3356 $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~
3357 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3362 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3365 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3366 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3371 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3375 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3376 *** create shared libraries on Solaris systems. Therefore, libtool
3377 *** is disabling shared libraries support. We urge you to upgrade GNU
3378 *** binutils to release 2.9.1 or newer. Another option is to modify
3379 *** your PATH or compiler configuration so that the native linker is
3380 *** used, and then restart.
3383 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3385 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3392 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3395 hardcode_shlibpath_var=no
3399 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3401 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3408 if test "$ld_shlibs" = yes; then
3409 runpath_var=LD_RUN_PATH
3410 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3411 export_dynamic_flag_spec='${wl}--export-dynamic'
3413 cygwin* | mingw* | pw32*)
3414 # dlltool doesn't understand --whole-archive et. al.
3415 whole_archive_flag_spec=
3418 # ancient GNU ld didn't support --whole-archive et. al.
3419 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3420 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3422 whole_archive_flag_spec=
3428 # PORTME fill in a description of your system's linker (not GNU ld)
3431 allow_undefined_flag=unsupported
3432 always_export_symbols=yes
3433 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'
3434 # Note: this linker hardcodes the directories in LIBPATH if there
3435 # are no directories specified by -L.
3436 hardcode_minus_L=yes
3437 if test "$GCC" = yes && test -z "$link_static_flag"; then
3438 # Neither direct hardcoding nor static linking is supported with a
3440 hardcode_direct=unsupported
3445 if test "$host_cpu" = ia64; then
3446 # On IA64, the linker does run time linking by default, so we don't
3447 # have to do anything special.
3448 aix_use_runtimelinking=no
3449 exp_sym_flag='-Bexport'
3452 aix_use_runtimelinking=no
3454 # Test if we are trying to use run time linking or normal
3455 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3456 # need to do runtime linking.
3457 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3458 for ld_flag in $LDFLAGS; do
3459 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3460 aix_use_runtimelinking=yes
3466 exp_sym_flag='-bexport'
3467 no_entry_flag='-bnoentry'
3470 # When large executables or shared objects are built, AIX ld can
3471 # have problems creating the table of contents. If linking a library
3472 # or program results in "error TOC overflow" add -mminimal-toc to
3473 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3474 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3478 hardcode_libdir_separator=':'
3479 if test "$GCC" = yes; then
3480 case $host_os in aix4.[012]|aix4.[012].*)
3481 collect2name=`${CC} -print-prog-name=collect2`
3482 if test -f "$collect2name" && \
3483 strings "$collect2name" | grep resolve_lib_name >/dev/null
3485 # We have reworked collect2
3488 # We have old collect2
3489 hardcode_direct=unsupported
3490 # It fails to find uninstalled libraries when the uninstalled
3491 # path is not listed in the libpath. Setting hardcode_minus_L
3492 # to unsupported forces relinking
3493 hardcode_minus_L=yes
3494 hardcode_libdir_flag_spec='-L$libdir'
3495 hardcode_libdir_separator=
3499 shared_flag='-shared'
3502 if test "$host_cpu" = ia64; then
3503 shared_flag='${wl}-G'
3505 if test "$aix_use_runtimelinking" = yes; then
3506 shared_flag='${wl}-G'
3508 shared_flag='${wl}-bM:SRE'
3513 # It seems that -bexpall can do strange things, so it is better to
3514 # generate a list of symbols to export.
3515 always_export_symbols=yes
3516 if test "$aix_use_runtimelinking" = yes; then
3517 # Warning - without using the other runtime loading flags (-brtl),
3518 # -berok will link without error, but may produce a broken library.
3519 allow_undefined_flag='-berok'
3520 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3521 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"
3523 if test "$host_cpu" = ia64; then
3524 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3525 allow_undefined_flag="-z nodefs"
3526 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"
3528 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3529 # Warning - without using the other run time loading flags,
3530 # -berok will link without error, but may produce a broken library.
3531 allow_undefined_flag='${wl}-berok'
3532 # This is a bit strange, but is similar to how AIX traditionally builds
3533 # it's shared libraries.
3534 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'
3540 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)'
3541 hardcode_libdir_flag_spec='-L$libdir'
3542 hardcode_minus_L=yes
3543 # see comment about different semantics on the GNU ld section
3547 cygwin* | mingw* | pw32*)
3548 # When not using gcc, we currently assume that we are using
3549 # Microsoft Visual C++.
3550 # hardcode_libdir_flag_spec is actually meaningless, as there is
3551 # no search path for DLLs.
3552 hardcode_libdir_flag_spec=' '
3553 allow_undefined_flag=unsupported
3554 # Tell ltmain to make .lib files, not .a files.
3556 # FIXME: Setting linknames here is a bad hack.
3557 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3558 # The linker will automatically build a .lib file if we build a DLL.
3559 old_archive_from_new_cmds='true'
3560 # FIXME: Should let the user specify the lib program.
3561 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3562 fix_srcfile_path='`cygpath -w "$srcfile"`'
3565 darwin* | rhapsody*)
3567 rhapsody* | darwin1.[012])
3568 allow_undefined_flag='-undefined suppress'
3571 allow_undefined_flag='-flat_namespace -undefined suppress'
3574 # FIXME: Relying on posixy $() will cause problems for
3575 # cross-compilation, but unfortunately the echo tests do not
3576 # yet detect zsh echo's removal of \ escapes.
3577 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'
3578 # We need to add '_' to the symbols in $export_symbols first
3579 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3581 hardcode_shlibpath_var=no
3582 whole_archive_flag_spec='-all_load $convenience'
3589 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3590 # support. Future versions do this automatically, but an explicit c++rt0.o
3591 # does not break anything, and helps significantly (at the cost of a little
3594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3595 hardcode_libdir_flag_spec='-R$libdir'
3597 hardcode_shlibpath_var=no
3600 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3604 hardcode_minus_L=yes
3605 hardcode_shlibpath_var=no
3608 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3610 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3611 hardcode_libdir_flag_spec='-R$libdir'
3613 hardcode_shlibpath_var=no
3616 hpux9* | hpux10* | hpux11*)
3618 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' ;;
3619 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3621 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3622 hardcode_libdir_separator=:
3624 hardcode_minus_L=yes # Not in the search PATH, but as the default
3625 # location of the library.
3626 export_dynamic_flag_spec='${wl}-E'
3630 if test "$GCC" = yes; then
3631 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'
3633 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'
3635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3636 hardcode_libdir_separator=:
3637 link_all_deplibs=yes
3641 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3644 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3646 hardcode_libdir_flag_spec='-R$libdir'
3648 hardcode_shlibpath_var=no
3652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3655 hardcode_libdir_separator=:
3656 hardcode_shlibpath_var=no
3661 hardcode_shlibpath_var=no
3662 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3665 export_dynamic_flag_spec='${wl}-E'
3668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3670 hardcode_libdir_flag_spec='-R$libdir'
3673 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3681 hardcode_libdir_flag_spec='-L$libdir'
3682 hardcode_minus_L=yes
3683 allow_undefined_flag=unsupported
3684 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'
3685 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3689 if test "$GCC" = yes; then
3690 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3691 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'
3693 allow_undefined_flag=' -expect_unresolved \*'
3694 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'
3696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3697 hardcode_libdir_separator=:
3700 osf4* | osf5*) # as osf3* with the addition of -msym flag
3701 if test "$GCC" = yes; then
3702 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3703 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'
3704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3706 allow_undefined_flag=' -expect_unresolved \*'
3707 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'
3708 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3709 $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'
3711 #Both c and cxx compiler support -rpath directly
3712 hardcode_libdir_flag_spec='-rpath $libdir'
3714 hardcode_libdir_separator=:
3718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3719 hardcode_shlibpath_var=no
3720 runpath_var=LD_RUN_PATH
3721 hardcode_runpath_var=yes
3722 export_dynamic_flag_spec='${wl}-Bexport'
3726 # gcc --version < 3.0 without binutils cannot create self contained
3727 # shared libraries reliably, requiring libgcc.a to resolve some of
3728 # the object symbols generated in some cases. Libraries that use
3729 # assert need libgcc.a to resolve __eprintf, for example. Linking
3730 # a copy of libgcc.a into every shared library to guarantee resolving
3731 # such symbols causes other problems: According to Tim Van Holder
3732 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3733 # (to the application) exception stack for one thing.
3734 no_undefined_flag=' -z defs'
3735 if test "$GCC" = yes; then
3736 case `$CC --version 2>/dev/null` in
3740 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3741 *** create self contained shared libraries on Solaris systems, without
3742 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3743 *** -no-undefined support, which will at least allow you to build shared
3744 *** libraries. However, you may find that when you link such libraries
3745 *** into an application without using GCC, you have to manually add
3746 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3747 *** upgrade to a newer version of GCC. Another option is to rebuild your
3748 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3755 # $CC -shared without GNU ld will not create a library from C++
3756 # object files and a static libstdc++, better avoid it by now
3757 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3758 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3759 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3760 hardcode_libdir_flag_spec='-R$libdir'
3761 hardcode_shlibpath_var=no
3763 solaris2.[0-5] | solaris2.[0-5].*) ;;
3764 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3765 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3767 link_all_deplibs=yes
3771 if test "x$host_vendor" = xsequent; then
3772 # Use $CC to link under sequent, because it throws in some extra .o
3773 # files that make .init and .fini sections work.
3774 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3776 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3778 hardcode_libdir_flag_spec='-L$libdir'
3780 hardcode_minus_L=yes
3781 hardcode_shlibpath_var=no
3785 if test "x$host_vendor" = xsno; then
3786 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
3787 hardcode_direct=yes # is this really true???
3789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3790 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3792 runpath_var='LD_RUN_PATH'
3793 hardcode_shlibpath_var=no
3797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3798 hardcode_shlibpath_var=no
3799 export_dynamic_flag_spec='-Bexport'
3803 no_undefined_flag=' -z text'
3804 # $CC -shared without GNU ld will not create a library from C++
3805 # object files and a static libstdc++, better avoid it by now
3806 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3807 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3808 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3809 hardcode_libdir_flag_spec=
3810 hardcode_shlibpath_var=no
3811 runpath_var='LD_RUN_PATH'
3815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3816 hardcode_libdir_flag_spec='-L$libdir'
3817 hardcode_shlibpath_var=no
3821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3822 hardcode_libdir_flag_spec='-L$libdir'
3823 hardcode_shlibpath_var=no
3827 if test -d /usr/nec; then
3828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3829 hardcode_shlibpath_var=no
3830 runpath_var=LD_RUN_PATH
3831 hardcode_runpath_var=yes
3837 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3840 hardcode_shlibpath_var=no
3841 hardcode_runpath_var=yes
3842 runpath_var=LD_RUN_PATH
3845 sysv5uw7* | unixware7*)
3846 no_undefined_flag='${wl}-z ${wl}text'
3847 if test "$GCC" = yes; then
3848 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3850 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3852 runpath_var='LD_RUN_PATH'
3853 hardcode_shlibpath_var=no
3861 echo "$ac_t""$ld_shlibs" 1>&6
3862 test "$ld_shlibs" = no && can_build_shared=no
3866 ## FIXME: this should be a separate macro
3868 # Check hardcoding attributes.
3869 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3870 echo "configure:3871: checking how to hardcode library paths into programs" >&5
3872 if test -n "$hardcode_libdir_flag_spec" || \
3873 test -n "$runpath_var"; then
3875 # We can hardcode non-existant directories.
3876 if test "$hardcode_direct" != no &&
3877 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3878 # have to relink, otherwise we might link with an installed library
3879 # when we should be linking with a yet-to-be-installed one
3880 ## test "$hardcode_shlibpath_var" != no &&
3881 test "$hardcode_minus_L" != no; then
3882 # Linking always hardcodes the temporary library directory.
3883 hardcode_action=relink
3885 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3886 hardcode_action=immediate
3889 # We cannot hardcode anything, or else we can only hardcode existing
3891 hardcode_action=unsupported
3893 echo "$ac_t""$hardcode_action" 1>&6
3897 ## FIXME: this should be a separate macro
3901 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3902 echo "configure:3903: checking whether stripping libraries is possible" >&5
3903 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3904 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3905 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3906 echo "$ac_t""yes" 1>&6
3908 echo "$ac_t""no" 1>&6
3913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3914 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3916 ## FIXME: this should be a separate macro
3918 # PORTME Fill in your ld.so characteristics
3919 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3920 echo "configure:3921: checking dynamic linker characteristics" >&5
3922 libname_spec='lib$name'
3929 shlibpath_overrides_runpath=unknown
3931 dynamic_linker="$host_os ld.so"
3932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3933 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3938 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3939 shlibpath_var=LIBPATH
3941 # AIX has no versioning support, so we append a major version to the name.
3942 soname_spec='${libname}${release}.so$major'
3947 if test "$host_cpu" = ia64; then
3948 # AIX 5 supports IA64
3949 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3950 shlibpath_var=LD_LIBRARY_PATH
3952 # With GCC up to 2.95.x, collect2 would create an import file
3953 # for dependence libraries. The import file would start with
3954 # the line `#! .'. This would cause the generated library to
3955 # depend on `.', always an invalid library. This was fixed in
3956 # development snapshots of GCC prior to 3.0.
3958 aix4 | aix4.[01] | aix4.[01].*)
3959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3961 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3968 # AIX (on Power*) has no versioning support, so currently we can
3969 # not hardcode correct soname into executable. Probably we can
3970 # add versioning support to collect2, so additional links can
3971 # be useful in future.
3972 if test "$aix_use_runtimelinking" = yes; then
3973 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3974 # instead of lib<name>.a to let people know that these are not
3975 # typical AIX shared libraries.
3976 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3978 # We preserve .a as extension for shared libraries through AIX4.2
3979 # and later when we are not doing run time linking.
3980 library_names_spec='${libname}${release}.a $libname.a'
3981 soname_spec='${libname}${release}.so$major'
3983 shlibpath_var=LIBPATH
3988 library_names_spec='$libname.ixlibrary $libname.a'
3989 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3990 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'
3994 library_names_spec='${libname}.so'
3995 dynamic_linker="$host_os ld.so"
3996 shlibpath_var=LIBRARY_PATH
4002 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4003 soname_spec='${libname}${release}.so$major'
4004 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4005 shlibpath_var=LD_LIBRARY_PATH
4006 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4007 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4008 export_dynamic_flag_spec=-rdynamic
4009 # the default ld.so.conf also contains /usr/contrib/lib and
4010 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4011 # libtool to hard-code these into programs
4014 cygwin* | mingw* | pw32*)
4015 version_type=windows
4018 case $GCC,$host_os in
4020 library_names_spec='$libname.dll.a'
4021 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4022 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4023 dldir=$destdir/`dirname \$dlpath`~
4024 test -d \$dldir || mkdir -p \$dldir~
4025 $install_prog .libs/$dlname \$dldir/$dlname'
4026 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4027 dlpath=$dir/\$dldll~
4031 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4035 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4038 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4041 dynamic_linker='Win32 ld.exe'
4042 # FIXME: first we should search . and the directory the executable is in
4046 darwin* | rhapsody*)
4047 dynamic_linker="$host_os dyld"
4051 # FIXME: Relying on posixy $() will cause problems for
4052 # cross-compilation, but unfortunately the echo tests do not
4053 # yet detect zsh echo's removal of \ escapes.
4054 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)'
4055 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4056 shlibpath_overrides_runpath=yes
4057 shlibpath_var=DYLD_LIBRARY_PATH
4065 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4066 version_type=freebsd-$objformat
4067 case $version_type in
4069 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4074 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4078 shlibpath_var=LD_LIBRARY_PATH
4081 shlibpath_overrides_runpath=yes
4084 shlibpath_overrides_runpath=no
4085 hardcode_into_libs=yes
4094 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4095 soname_spec='${libname}${release}.so$major'
4096 shlibpath_var=LD_LIBRARY_PATH
4097 hardcode_into_libs=yes
4100 hpux9* | hpux10* | hpux11*)
4101 # Give a soname corresponding to the major version so that dld.sl refuses to
4102 # link against other versions.
4103 dynamic_linker="$host_os dld.sl"
4107 shlibpath_var=SHLIB_PATH
4108 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4109 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4110 soname_spec='${libname}${release}.sl$major'
4111 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4112 postinstall_cmds='chmod 555 $lib'
4119 soname_spec='${libname}${release}.so$major'
4120 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4126 case $LD in # libtool.m4 will add one of these switches to LD
4127 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4128 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4129 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4130 *) libsuff= shlibsuff= libmagic=never-match;;
4134 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4135 shlibpath_overrides_runpath=no
4136 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4137 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4140 # No shared lib support for Linux oldld, aout, or coff.
4141 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4145 # This must be Linux ELF.
4150 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4151 soname_spec='${libname}${release}.so$major'
4152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4153 shlibpath_var=LD_LIBRARY_PATH
4154 shlibpath_overrides_runpath=no
4155 # This implies no fast_install, which is unacceptable.
4156 # Some rework will be needed to allow for fast_install
4157 # before this can be enabled.
4158 hardcode_into_libs=yes
4160 # We used to test for /lib/ld.so.1 and disable shared libraries on
4161 # powerpc, because MkLinux only supported shared libraries with the
4162 # GNU dynamic linker. Since this was broken with cross compilers,
4163 # most powerpc-linux boxes support dynamic linking these days and
4164 # people can always --disable-shared, the test was removed, and we
4165 # assume the GNU/Linux dynamic linker is in use.
4166 dynamic_linker='GNU/Linux ld.so'
4173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4174 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4176 dynamic_linker='NetBSD (a.out) ld.so'
4178 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4179 soname_spec='${libname}${release}.so$major'
4180 dynamic_linker='NetBSD ld.elf_so'
4182 shlibpath_var=LD_LIBRARY_PATH
4183 shlibpath_overrides_runpath=yes
4184 hardcode_into_libs=yes
4189 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4190 shlibpath_var=LD_LIBRARY_PATH
4191 shlibpath_overrides_runpath=yes
4198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4200 openbsd2.[89] | openbsd2.[89].*)
4201 shlibpath_overrides_runpath=no
4204 shlibpath_overrides_runpath=yes
4208 shlibpath_overrides_runpath=yes
4210 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4212 shlibpath_var=LD_LIBRARY_PATH
4216 libname_spec='$name'
4218 library_names_spec='$libname.dll $libname.a'
4219 dynamic_linker='OS/2 ld.exe'
4220 shlibpath_var=LIBPATH
4223 osf3* | osf4* | osf5*)
4226 soname_spec='${libname}${release}.so'
4227 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4228 shlibpath_var=LD_LIBRARY_PATH
4229 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4230 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4235 soname_spec='${libname}${release}.so$major'
4236 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4237 shlibpath_var=LD_LIBRARY_PATH
4244 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4245 soname_spec='${libname}${release}.so$major'
4246 shlibpath_var=LD_LIBRARY_PATH
4247 shlibpath_overrides_runpath=yes
4248 hardcode_into_libs=yes
4249 # ldd complains unless libraries are executable
4250 postinstall_cmds='chmod +x $lib'
4255 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4256 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4257 shlibpath_var=LD_LIBRARY_PATH
4258 shlibpath_overrides_runpath=yes
4259 if test "$with_gnu_ld" = yes; then
4265 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4267 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4268 soname_spec='${libname}${release}.so$major'
4269 shlibpath_var=LD_LIBRARY_PATH
4270 case $host_vendor in
4272 shlibpath_overrides_runpath=no
4277 shlibpath_overrides_runpath=no
4278 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4285 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4286 soname_spec='${libname}${release}.so$major'
4287 shlibpath_var=LD_LIBRARY_PATH
4294 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4295 soname_spec='${libname}${release}.so$major'
4296 shlibpath_var=LD_LIBRARY_PATH
4300 if test -d /usr/nec ;then
4302 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4303 soname_spec='$libname.so.$major'
4304 shlibpath_var=LD_LIBRARY_PATH
4312 echo "$ac_t""$dynamic_linker" 1>&6
4313 test "$dynamic_linker" = no && can_build_shared=no
4317 ## FIXME: this should be a separate macro
4319 # Report the final consequences.
4320 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4321 echo "configure:4322: checking if libtool supports shared libraries" >&5
4322 echo "$ac_t""$can_build_shared" 1>&6
4326 ## FIXME: this should be a separate macro
4328 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4329 echo "configure:4330: checking whether to build shared libraries" >&5
4330 test "$can_build_shared" = "no" && enable_shared=no
4332 # On AIX, shared libraries and static libraries use the same namespace, and
4333 # are all built from PIC.
4336 test "$enable_shared" = yes && enable_static=no
4337 if test -n "$RANLIB"; then
4338 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4339 postinstall_cmds='$RANLIB $lib'
4344 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4345 test "$enable_shared" = yes && enable_static=no
4349 echo "$ac_t""$enable_shared" 1>&6
4353 ## FIXME: this should be a separate macro
4355 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4356 echo "configure:4357: checking whether to build static libraries" >&5
4357 # Make sure either enable_shared or enable_static is yes.
4358 test "$enable_shared" = yes || enable_static=yes
4359 echo "$ac_t""$enable_static" 1>&6
4363 if test "$hardcode_action" = relink; then
4364 # Fast installation is not supported
4365 enable_fast_install=no
4366 elif test "$shlibpath_overrides_runpath" = yes ||
4367 test "$enable_shared" = no; then
4368 # Fast installation is not necessary
4369 enable_fast_install=needless
4372 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4373 if test "$GCC" = yes; then
4374 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4377 if test "x$enable_dlopen" != xyes; then
4378 enable_dlopen=unknown
4379 enable_dlopen_self=unknown
4380 enable_dlopen_self_static=unknown
4387 lt_cv_dlopen="load_add_on"
4389 lt_cv_dlopen_self=yes
4392 cygwin* | mingw* | pw32*)
4393 lt_cv_dlopen="LoadLibrary"
4398 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4399 echo "configure:4400: checking for shl_load" >&5
4400 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4403 cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4406 /* System header to define __stub macros and hopefully few prototypes,
4407 which can conflict with char shl_load(); below. */
4409 /* Override any gcc2 internal prototype to avoid an error. */
4410 /* We use char because int might match the return type of a gcc2
4411 builtin and then its argument prototype would still apply. */
4416 /* The GNU C library defines this for functions which it implements
4417 to always fail with ENOSYS. Some functions are actually named
4418 something starting with __ and the normal name is an alias. */
4419 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4427 if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4429 eval "ac_cv_func_shl_load=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 eval "ac_cv_func_shl_load=no"
4439 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4441 lt_cv_dlopen="shl_load"
4443 echo "$ac_t""no" 1>&6
4444 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4445 echo "configure:4446: checking for shl_load in -ldld" >&5
4446 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 ac_save_LIBS="$LIBS"
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 /* Override any gcc2 internal prototype to avoid an error. */
4456 /* We use char because int might match the return type of a gcc2
4457 builtin and then its argument prototype would still apply. */
4464 if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4466 eval "ac_cv_lib_$ac_lib_var=yes"
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4471 eval "ac_cv_lib_$ac_lib_var=no"
4474 LIBS="$ac_save_LIBS"
4477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4479 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4481 echo "$ac_t""no" 1>&6
4482 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4483 echo "configure:4484: checking for dlopen" >&5
4484 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4487 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4490 /* System header to define __stub macros and hopefully few prototypes,
4491 which can conflict with char dlopen(); below. */
4493 /* Override any gcc2 internal prototype to avoid an error. */
4494 /* We use char because int might match the return type of a gcc2
4495 builtin and then its argument prototype would still apply. */
4500 /* The GNU C library defines this for functions which it implements
4501 to always fail with ENOSYS. Some functions are actually named
4502 something starting with __ and the normal name is an alias. */
4503 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4511 if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4513 eval "ac_cv_func_dlopen=yes"
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4518 eval "ac_cv_func_dlopen=no"
4523 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4524 echo "$ac_t""yes" 1>&6
4525 lt_cv_dlopen="dlopen"
4527 echo "$ac_t""no" 1>&6
4528 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4529 echo "configure:4530: checking for dlopen in -ldl" >&5
4530 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4534 ac_save_LIBS="$LIBS"
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4539 /* Override any gcc2 internal prototype to avoid an error. */
4540 /* We use char because int might match the return type of a gcc2
4541 builtin and then its argument prototype would still apply. */
4548 if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4550 eval "ac_cv_lib_$ac_lib_var=yes"
4552 echo "configure: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4555 eval "ac_cv_lib_$ac_lib_var=no"
4558 LIBS="$ac_save_LIBS"
4561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4562 echo "$ac_t""yes" 1>&6
4563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4565 echo "$ac_t""no" 1>&6
4566 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4567 echo "configure:4568: checking for dlopen in -lsvld" >&5
4568 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4572 ac_save_LIBS="$LIBS"
4574 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4577 /* Override any gcc2 internal prototype to avoid an error. */
4578 /* We use char because int might match the return type of a gcc2
4579 builtin and then its argument prototype would still apply. */
4586 if { (eval echo configure:4587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4588 eval "ac_cv_lib_$ac_lib_var=yes"
4590 echo "configure: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4593 eval "ac_cv_lib_$ac_lib_var=no"
4596 LIBS="$ac_save_LIBS"
4599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4600 echo "$ac_t""yes" 1>&6
4601 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4603 echo "$ac_t""no" 1>&6
4604 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4605 echo "configure:4606: checking for dld_link in -ldld" >&5
4606 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4608 echo $ac_n "(cached) $ac_c" 1>&6
4610 ac_save_LIBS="$LIBS"
4612 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4615 /* Override any gcc2 internal prototype to avoid an error. */
4616 /* We use char because int might match the return type of a gcc2
4617 builtin and then its argument prototype would still apply. */
4624 if { (eval echo configure:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4626 eval "ac_cv_lib_$ac_lib_var=yes"
4628 echo "configure: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4631 eval "ac_cv_lib_$ac_lib_var=no"
4634 LIBS="$ac_save_LIBS"
4637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4638 echo "$ac_t""yes" 1>&6
4639 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4641 echo "$ac_t""no" 1>&6
4662 if test "x$lt_cv_dlopen" != xno; then
4668 case $lt_cv_dlopen in
4670 save_CPPFLAGS="$CPPFLAGS"
4671 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4673 save_LDFLAGS="$LDFLAGS"
4674 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4677 LIBS="$lt_cv_dlopen_libs $LIBS"
4679 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4680 echo "configure:4681: checking whether a program can dlopen itself" >&5
4681 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4682 echo $ac_n "(cached) $ac_c" 1>&6
4684 if test "$cross_compiling" = yes; then :
4685 lt_cv_dlopen_self=cross
4687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4688 lt_status=$lt_dlunknown
4689 cat > conftest.$ac_ext <<EOF
4690 #line 4691 "configure"
4691 #include "confdefs.h"
4700 # define LT_DLGLOBAL RTLD_GLOBAL
4703 # define LT_DLGLOBAL DL_GLOBAL
4705 # define LT_DLGLOBAL 0
4709 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4710 find out it does not work in some platform. */
4711 #ifndef LT_DLLAZY_OR_NOW
4713 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4716 # define LT_DLLAZY_OR_NOW DL_LAZY
4719 # define LT_DLLAZY_OR_NOW RTLD_NOW
4722 # define LT_DLLAZY_OR_NOW DL_NOW
4724 # define LT_DLLAZY_OR_NOW 0
4732 extern "C" void exit (int);
4735 void fnord() { int i=42;}
4738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4739 int status = $lt_dlunknown;
4743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4744 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4745 /* dlclose (self); */
4751 if { (eval echo configure:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4752 (./conftest; exit; ) 2>/dev/null
4755 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4756 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4757 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4760 # compilation failed
4761 lt_cv_dlopen_self=no
4769 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4771 if test "x$lt_cv_dlopen_self" = xyes; then
4772 LDFLAGS="$LDFLAGS $link_static_flag"
4773 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4774 echo "configure:4775: checking whether a statically linked program can dlopen itself" >&5
4775 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 if test "$cross_compiling" = yes; then :
4779 lt_cv_dlopen_self_static=cross
4781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4782 lt_status=$lt_dlunknown
4783 cat > conftest.$ac_ext <<EOF
4784 #line 4785 "configure"
4785 #include "confdefs.h"
4794 # define LT_DLGLOBAL RTLD_GLOBAL
4797 # define LT_DLGLOBAL DL_GLOBAL
4799 # define LT_DLGLOBAL 0
4803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4804 find out it does not work in some platform. */
4805 #ifndef LT_DLLAZY_OR_NOW
4807 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4810 # define LT_DLLAZY_OR_NOW DL_LAZY
4813 # define LT_DLLAZY_OR_NOW RTLD_NOW
4816 # define LT_DLLAZY_OR_NOW DL_NOW
4818 # define LT_DLLAZY_OR_NOW 0
4826 extern "C" void exit (int);
4829 void fnord() { int i=42;}
4832 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4833 int status = $lt_dlunknown;
4837 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4838 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4839 /* dlclose (self); */
4845 if { (eval echo configure:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4846 (./conftest; exit; ) 2>/dev/null
4849 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4850 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4851 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4854 # compilation failed
4855 lt_cv_dlopen_self_static=no
4863 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4866 CPPFLAGS="$save_CPPFLAGS"
4867 LDFLAGS="$save_LDFLAGS"
4872 case $lt_cv_dlopen_self in
4873 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4874 *) enable_dlopen_self=unknown ;;
4877 case $lt_cv_dlopen_self_static in
4878 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4879 *) enable_dlopen_self_static=unknown ;;
4884 ## FIXME: this should be a separate macro
4886 if test "$enable_shared" = yes && test "$GCC" = yes; then
4887 case $archive_cmds in
4889 # FIXME: we may have to deal with multi-command sequences.
4892 # Test whether the compiler implicitly links with -lc since on some
4893 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4894 # to ld, don't add -lc before -lgcc.
4895 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4896 echo "configure:4897: checking whether -lc should be explicitly linked in" >&5
4897 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4898 echo $ac_n "(cached) $ac_c" 1>&6
4901 echo 'static int dummy;' > conftest.$ac_ext
4903 if { (eval echo configure:4904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4906 libobjs=conftest.$ac_objext
4908 wl=$lt_cv_prog_cc_wl
4914 save_allow_undefined_flag=$allow_undefined_flag
4915 allow_undefined_flag=
4916 if { (eval echo configure:4917: \"$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; }
4918 lt_cv_archive_cmds_need_lc=no
4920 lt_cv_archive_cmds_need_lc=yes
4922 allow_undefined_flag=$save_allow_undefined_flag
4924 cat conftest.err 1>&5
4928 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4932 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4936 ## FIXME: this should be a separate macro
4938 # The second clause should only fire when bootstrapping the
4939 # libtool distribution, otherwise you forgot to ship ltmain.sh
4940 # with your package, and you will get complaints that there are
4941 # no rules to generate ltmain.sh.
4942 if test -f "$ltmain"; then
4945 # If there is no Makefile yet, we rely on a make rule to execute
4946 # `config.status --recheck' to rerun these tests and create the
4947 # libtool script then.
4948 test -f Makefile && make "$ltmain"
4951 if test -f "$ltmain"; then
4952 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4955 echo creating $ofile
4957 # Now quote all the things that may contain metacharacters while being
4958 # careful not to overquote the AC_SUBSTed values. We take copies of the
4959 # variables and quote the copies for generation of the libtool script.
4960 for var in echo old_CC old_CFLAGS \
4961 AR AR_FLAGS CC LD LN_S NM SHELL \
4962 reload_flag reload_cmds wl \
4963 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4964 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4965 library_names_spec soname_spec \
4966 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4967 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4968 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4969 old_striplib striplib file_magic_cmd export_symbols_cmds \
4970 deplibs_check_method allow_undefined_flag no_undefined_flag \
4971 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4972 global_symbol_to_c_name_address \
4973 hardcode_libdir_flag_spec hardcode_libdir_separator \
4974 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4975 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4978 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4979 old_postinstall_cmds | old_postuninstall_cmds | \
4980 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4981 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4982 postinstall_cmds | postuninstall_cmds | \
4983 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4984 # Double-quote double-evaled strings.
4985 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4988 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4993 cat <<__EOF__ > "${ofile}T"
4996 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4997 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4998 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5000 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5001 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5003 # This program is free software; you can redistribute it and/or modify
5004 # it under the terms of the GNU General Public License as published by
5005 # the Free Software Foundation; either version 2 of the License, or
5006 # (at your option) any later version.
5008 # This program is distributed in the hope that it will be useful, but
5009 # WITHOUT ANY WARRANTY; without even the implied warranty of
5010 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5011 # General Public License for more details.
5013 # You should have received a copy of the GNU General Public License
5014 # along with this program; if not, write to the Free Software
5015 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5017 # As a special exception to the GNU General Public License, if you
5018 # distribute this file as part of a program that contains a
5019 # configuration script generated by Autoconf, you may include it under
5020 # the same distribution terms that you use for the rest of that program.
5022 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5023 Xsed="sed -e s/^X//"
5025 # The HP-UX ksh and POSIX shell print the target directory to stdout
5027 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5029 # ### BEGIN LIBTOOL CONFIG
5031 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5033 # Shell to use when invoking shell scripts.
5036 # Whether or not to build shared libraries.
5037 build_libtool_libs=$enable_shared
5039 # Whether or not to build static libraries.
5040 build_old_libs=$enable_static
5042 # Whether or not to add -lc for building shared libraries.
5043 build_libtool_need_lc=$need_lc
5045 # Whether or not to optimize for fast installation.
5046 fast_install=$enable_fast_install
5049 host_alias=$host_alias
5052 # An echo program that does not interpret backslashes.
5057 AR_FLAGS=$lt_AR_FLAGS
5059 # The default C compiler.
5062 # Is the compiler the GNU C compiler?
5065 # The linker used to build libraries.
5068 # Whether we need hard or soft links.
5071 # A BSD-compatible nm program.
5074 # A symbol stripping program
5077 # Used to examine libraries when file_magic_cmd begins "file"
5078 MAGIC_CMD=$MAGIC_CMD
5080 # Used on cygwin: DLL creation program.
5083 # Used on cygwin: object dumper.
5086 # Used on cygwin: assembler.
5089 # The name of the directory that contains temporary libtool files.
5092 # How to create reloadable object files.
5093 reload_flag=$lt_reload_flag
5094 reload_cmds=$lt_reload_cmds
5096 # How to pass a linker flag through the compiler.
5099 # Object file suffix (normally "o").
5102 # Old archive suffix (normally "a").
5105 # Executable file suffix (normally "").
5108 # Additional compiler flags for building library objects.
5109 pic_flag=$lt_pic_flag
5112 # Does compiler simultaneously support -c and -o options?
5113 compiler_c_o=$lt_compiler_c_o
5115 # Can we write directly to a .lo ?
5116 compiler_o_lo=$lt_compiler_o_lo
5118 # Must we lock files when doing compilation ?
5119 need_locks=$lt_need_locks
5121 # Do we need the lib prefix for modules?
5122 need_lib_prefix=$need_lib_prefix
5124 # Do we need a version for libraries?
5125 need_version=$need_version
5127 # Whether dlopen is supported.
5128 dlopen_support=$enable_dlopen
5130 # Whether dlopen of programs is supported.
5131 dlopen_self=$enable_dlopen_self
5133 # Whether dlopen of statically linked programs is supported.
5134 dlopen_self_static=$enable_dlopen_self_static
5136 # Compiler flag to prevent dynamic linking.
5137 link_static_flag=$lt_link_static_flag
5139 # Compiler flag to turn off builtin functions.
5140 no_builtin_flag=$lt_no_builtin_flag
5142 # Compiler flag to allow reflexive dlopens.
5143 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5145 # Compiler flag to generate shared objects directly from archives.
5146 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5148 # Compiler flag to generate thread-safe objects.
5149 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5151 # Library versioning type.
5152 version_type=$version_type
5154 # Format of library name prefix.
5155 libname_spec=$lt_libname_spec
5157 # List of archive names. First name is the real one, the rest are links.
5158 # The last name is the one that the linker finds with -lNAME.
5159 library_names_spec=$lt_library_names_spec
5161 # The coded name of the library, if different from the real name.
5162 soname_spec=$lt_soname_spec
5164 # Commands used to build and install an old-style archive.
5166 old_archive_cmds=$lt_old_archive_cmds
5167 old_postinstall_cmds=$lt_old_postinstall_cmds
5168 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5170 # Create an old-style archive from a shared archive.
5171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5173 # Create a temporary old-style archive to link instead of a shared archive.
5174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5176 # Commands used to build and install a shared archive.
5177 archive_cmds=$lt_archive_cmds
5178 archive_expsym_cmds=$lt_archive_expsym_cmds
5179 postinstall_cmds=$lt_postinstall_cmds
5180 postuninstall_cmds=$lt_postuninstall_cmds
5182 # Commands to strip libraries.
5183 old_striplib=$lt_old_striplib
5184 striplib=$lt_striplib
5186 # Method to check whether dependent libraries are shared objects.
5187 deplibs_check_method=$lt_deplibs_check_method
5189 # Command to use when deplibs_check_method == file_magic.
5190 file_magic_cmd=$lt_file_magic_cmd
5192 # Flag that allows shared libraries with undefined symbols to be built.
5193 allow_undefined_flag=$lt_allow_undefined_flag
5195 # Flag that forces no undefined symbols.
5196 no_undefined_flag=$lt_no_undefined_flag
5198 # Commands used to finish a libtool library installation in a directory.
5199 finish_cmds=$lt_finish_cmds
5201 # Same as above, but a single script fragment to be evaled but not shown.
5202 finish_eval=$lt_finish_eval
5204 # Take the output of nm and produce a listing of raw symbols and C names.
5205 global_symbol_pipe=$lt_global_symbol_pipe
5207 # Transform the output of nm in a proper C declaration
5208 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5210 # Transform the output of nm in a C name address pair
5211 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5213 # This is the shared library runtime path variable.
5214 runpath_var=$runpath_var
5216 # This is the shared library path variable.
5217 shlibpath_var=$shlibpath_var
5219 # Is shlibpath searched before the hard-coded library search path?
5220 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5222 # How to hardcode a shared library path into an executable.
5223 hardcode_action=$hardcode_action
5225 # Whether we should hardcode library paths into libraries.
5226 hardcode_into_libs=$hardcode_into_libs
5228 # Flag to hardcode \$libdir into a binary during linking.
5229 # This must work even if \$libdir does not exist.
5230 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5232 # Whether we need a single -rpath flag with a separated argument.
5233 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5235 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5237 hardcode_direct=$hardcode_direct
5239 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5241 hardcode_minus_L=$hardcode_minus_L
5243 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5244 # the resulting binary.
5245 hardcode_shlibpath_var=$hardcode_shlibpath_var
5247 # Variables whose values should be saved in libtool wrapper scripts and
5248 # restored at relink time.
5249 variables_saved_for_relink="$variables_saved_for_relink"
5251 # Whether libtool must link a program against all its dependency libraries.
5252 link_all_deplibs=$link_all_deplibs
5254 # Compile-time system search path for libraries
5255 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5257 # Run-time system search path for libraries
5258 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5260 # Fix the shell variable \$srcfile for the compiler.
5261 fix_srcfile_path="$fix_srcfile_path"
5263 # Set to yes if exported symbols are required.
5264 always_export_symbols=$always_export_symbols
5266 # The commands to list exported symbols.
5267 export_symbols_cmds=$lt_export_symbols_cmds
5269 # The commands to extract the exported symbol list from a shared archive.
5270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5272 # Symbols that should not be listed in the preloaded symbols.
5273 exclude_expsyms=$lt_exclude_expsyms
5275 # Symbols that must always be exported.
5276 include_expsyms=$lt_include_expsyms
5278 # ### END LIBTOOL CONFIG
5284 cat <<\EOF >> "${ofile}T"
5286 # AIX sometimes has problems with the GCC collect2 program. For some
5287 # reason, if we set the COLLECT_NAMES environment variable, the problems
5288 # vanish in a puff of smoke.
5289 if test "X${COLLECT_NAMES+set}" != Xset; then
5291 export COLLECT_NAMES
5298 cygwin* | mingw* | pw32* | os2*)
5299 cat <<'EOF' >> "${ofile}T"
5300 # This is a source program that is used to create dlls on Windows
5301 # Don't remove nor modify the starting and closing comments
5302 # /* ltdll.c starts here */
5303 # #define WIN32_LEAN_AND_MEAN
5304 # #include <windows.h>
5305 # #undef WIN32_LEAN_AND_MEAN
5306 # #include <stdio.h>
5308 # #ifndef __CYGWIN__
5309 # # ifdef __CYGWIN32__
5310 # # define __CYGWIN__ __CYGWIN32__
5314 # #ifdef __cplusplus
5317 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5318 # #ifdef __cplusplus
5323 # #include <cygwin/cygwin_dll.h>
5324 # DECLARE_CYGWIN_DLL( DllMain );
5326 # HINSTANCE __hDllInstance_base;
5329 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5331 # __hDllInstance_base = hInst;
5334 # /* ltdll.c ends here */
5335 # This is a source program that is used to create import libraries
5336 # on Windows for dlls which lack them. Don't remove nor modify the
5337 # starting and closing comments
5338 # /* impgen.c starts here */
5339 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5341 # This file is part of GNU libtool.
5343 # This program is free software; you can redistribute it and/or modify
5344 # it under the terms of the GNU General Public License as published by
5345 # the Free Software Foundation; either version 2 of the License, or
5346 # (at your option) any later version.
5348 # This program is distributed in the hope that it will be useful,
5349 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5350 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5351 # GNU General Public License for more details.
5353 # You should have received a copy of the GNU General Public License
5354 # along with this program; if not, write to the Free Software
5355 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5358 # #include <stdio.h> /* for printf() */
5359 # #include <unistd.h> /* for open(), lseek(), read() */
5360 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5361 # #include <string.h> /* for strdup() */
5363 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5365 # #define O_BINARY 0
5368 # static unsigned int
5369 # pe_get16 (fd, offset)
5373 # unsigned char b[2];
5374 # lseek (fd, offset, SEEK_SET);
5376 # return b[0] + (b[1]<<8);
5379 # static unsigned int
5380 # pe_get32 (fd, offset)
5384 # unsigned char b[4];
5385 # lseek (fd, offset, SEEK_SET);
5387 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5390 # static unsigned int
5394 # unsigned char *b = ptr;
5395 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5404 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5405 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5406 # unsigned long name_rvas, nexp;
5407 # unsigned char *expdata, *erva;
5408 # char *filename, *dll_name;
5410 # filename = argv[1];
5412 # dll = open(filename, O_RDONLY|O_BINARY);
5416 # dll_name = filename;
5418 # for (i=0; filename[i]; i++)
5419 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5420 # dll_name = filename + i +1;
5422 # pe_header_offset = pe_get32 (dll, 0x3c);
5423 # opthdr_ofs = pe_header_offset + 4 + 20;
5424 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5426 # if (num_entries < 1) /* no exports */
5429 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5430 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5431 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5432 # secptr = (pe_header_offset + 4 + 20 +
5433 # pe_get16 (dll, pe_header_offset + 4 + 16));
5436 # for (i = 0; i < nsections; i++)
5439 # unsigned long secptr1 = secptr + 40 * i;
5440 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5441 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5442 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5443 # lseek(dll, secptr1, SEEK_SET);
5444 # read(dll, sname, 8);
5445 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5447 # expptr = fptr + (export_rva - vaddr);
5448 # if (export_rva + export_size > vaddr + vsize)
5449 # export_size = vsize - (export_rva - vaddr);
5454 # expdata = (unsigned char*)malloc(export_size);
5455 # lseek (dll, expptr, SEEK_SET);
5456 # read (dll, expdata, export_size);
5457 # erva = expdata - export_rva;
5459 # nexp = pe_as32 (expdata+24);
5460 # name_rvas = pe_as32 (expdata+32);
5462 # printf ("EXPORTS\n");
5463 # for (i = 0; i<nexp; i++)
5465 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5466 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5471 # /* impgen.c ends here */
5477 # We use sed instead of cat because bash on DJGPP gets confused if
5478 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5479 # text mode, it properly converts lines to CR/LF. This bash problem
5480 # is reportedly fixed, but why not run on old versions too?
5481 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5483 mv -f "${ofile}T" "$ofile" || \
5484 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5493 # Check whether --with-system-libtool or --without-system-libtool was given.
5494 if test "${with_system_libtool+set}" = set; then
5495 withval="$with_system_libtool"
5496 # Extract the first word of "libtool", so it can be a program name with args.
5497 set dummy libtool; ac_word=$2
5498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5499 echo "configure:5500: checking for $ac_word" >&5
5500 if eval "test \"`echo '$''{'ac_cv_path_LIBTOOL'+set}'`\" = set"; then
5501 echo $ac_n "(cached) $ac_c" 1>&6
5505 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
5508 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a dos path.
5511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5512 ac_dummy="$PATH:/usr/local/bin"
5513 for ac_dir in $ac_dummy; do
5514 test -z "$ac_dir" && ac_dir=.
5515 if test -f $ac_dir/$ac_word; then
5516 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
5524 LIBTOOL="$ac_cv_path_LIBTOOL"
5525 if test -n "$LIBTOOL"; then
5526 echo "$ac_t""$LIBTOOL" 1>&6
5528 echo "$ac_t""no" 1>&6
5533 LIBTOOL="`pwd`/libtool"
5538 # This can be used to rebuild libtool when needed
5539 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5541 # Prevent multiple expansion
5550 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
5551 if test "${enable_strict_dependencies+set}" = set; then
5552 enableval="$enable_strict_dependencies"
5557 logdir='${localstatedir}/log/radius'
5558 echo $ac_n "checking logdir""... $ac_c" 1>&6
5559 echo "configure:5560: checking logdir" >&5
5560 # Check whether --with-logdir or --without-logdir was given.
5561 if test "${with_logdir+set}" = set; then
5562 withval="$with_logdir"
5565 { echo "configure: error: Need logdir" 1>&2; exit 1; }
5577 echo "$ac_t""$logdir" 1>&6
5579 radacctdir='${logdir}/radacct'
5580 echo $ac_n "checking radacctdir""... $ac_c" 1>&6
5581 echo "configure:5582: checking radacctdir" >&5
5582 # Check whether --with-radacctdir or --without-radacctdir was given.
5583 if test "${with_radacctdir+set}" = set; then
5584 withval="$with_radacctdir"
5587 { echo "configure: error: Need radacctdir" 1>&2; exit 1; }
5592 radacctdir="$withval"
5599 echo "$ac_t""$radacctdir" 1>&6
5601 raddbdir='${sysconfdir}/raddb'
5602 echo $ac_n "checking raddbdir""... $ac_c" 1>&6
5603 echo "configure:5604: checking raddbdir" >&5
5604 # Check whether --with-raddbdir or --without-raddbdir was given.
5605 if test "${with_raddbdir+set}" = set; then
5606 withval="$with_raddbdir"
5609 { echo "configure: error: Need raddbdir" 1>&2; exit 1; }
5621 echo "$ac_t""$raddbdir" 1>&6
5624 # Check whether --with-ascend-binary or --without-ascend-binary was given.
5625 if test "${with_ascend_binary+set}" = set; then
5626 withval="$with_ascend_binary"
5636 if test "X$ASCEND_BINARY" = "Xyes"; then
5637 cat >> confdefs.h <<\EOF
5638 #define ASCEND_BINARY 1
5644 # Check whether --with-threads or --without-threads was given.
5645 if test "${with_threads+set}" = set; then
5646 withval="$with_threads"
5658 # Check whether --with-snmp or --without-snmp was given.
5659 if test "${with_snmp+set}" = set; then
5660 withval="$with_snmp"
5671 rad_enable_largefiles=no
5672 # Check whether --with-large-files or --without-large-files was given.
5673 if test "${with_large_files+set}" = set; then
5674 withval="$with_large_files"
5677 rad_enable_largefiles=yes
5689 # Check whether --with-static_modules or --without-static_modules was given.
5690 if test "${with_static_modules+set}" = set; then
5691 withval="$with_static_modules"
5693 for i in $withval; do
5694 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5700 # Check whether --enable-developer or --disable-developer was given.
5701 if test "${enable_developer+set}" = set; then
5702 enableval="$enable_developer"
5703 case "$enableval" in
5714 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
5719 # Check whether --with-experimental-modules or --without-experimental-modules was given.
5720 if test "${with_experimental_modules+set}" = set; then
5721 withval="$with_experimental_modules"
5732 # Check whether --with-openssl-includes or --without-openssl-includes was given.
5733 if test "${with_openssl_includes+set}" = set; then
5734 withval="$with_openssl_includes"
5736 *) OPENSSL_INCLUDE="$withval"
5744 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
5745 if test "${with_openssl_libraries+set}" = set; then
5746 withval="$with_openssl_libraries"
5748 *) OPENSSL_LIBS="$withval"
5758 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
5759 if test "${with_rlm_FOO_lib_dir+set}" = set; then
5760 withval="$with_rlm_FOO_lib_dir"
5769 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
5770 if test "${with_rlm_FOO_include_dir+set}" = set; then
5771 withval="$with_rlm_FOO_include_dir"
5782 # Check whether --with-udpfromto or --without-udpfromto was given.
5783 if test "${with_udpfromto+set}" = set; then
5784 withval="$with_udpfromto"
5796 if test "x$WITH_UDPFROMTO" = "xyes"; then
5797 cat >> confdefs.h <<\EOF
5798 #define WITH_UDPFROMTO 1
5804 CHECKRAD=checkrad.pl
5805 # Extract the first word of "perl", so it can be a program name with args.
5806 set dummy perl; ac_word=$2
5807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5808 echo "configure:5809: checking for $ac_word" >&5
5809 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
5810 echo $ac_n "(cached) $ac_c" 1>&6
5814 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5817 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
5820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5822 for ac_dir in $ac_dummy; do
5823 test -z "$ac_dir" && ac_dir=.
5824 if test -f $ac_dir/$ac_word; then
5825 ac_cv_path_PERL="$ac_dir/$ac_word"
5830 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5834 PERL="$ac_cv_path_PERL"
5835 if test -n "$PERL"; then
5836 echo "$ac_t""$PERL" 1>&6
5838 echo "$ac_t""no" 1>&6
5841 if test "x$ac_cv_path_PERL" = "x"; then
5842 echo "configure: warning: perl not found - Simultaneous-Use and checkrad.pl may not work" 1>&2
5844 # Extract the first word of "snmpget", so it can be a program name with args.
5845 set dummy snmpget; ac_word=$2
5846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5847 echo "configure:5848: checking for $ac_word" >&5
5848 if eval "test \"`echo '$''{'ac_cv_path_SNMPGET'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5853 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5856 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a dos path.
5859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5861 for ac_dir in $ac_dummy; do
5862 test -z "$ac_dir" && ac_dir=.
5863 if test -f $ac_dir/$ac_word; then
5864 ac_cv_path_SNMPGET="$ac_dir/$ac_word"
5872 SNMPGET="$ac_cv_path_SNMPGET"
5873 if test -n "$SNMPGET"; then
5874 echo "$ac_t""$SNMPGET" 1>&6
5876 echo "$ac_t""no" 1>&6
5879 if test "x$ac_cv_path_SNMPGET" = "x"; then
5880 echo "configure: warning: snmpget not found - Simultaneous-Use and checkrad.pl may not work" 1>&2
5883 # Extract the first word of "snmpwalk", so it can be a program name with args.
5884 set dummy snmpwalk; ac_word=$2
5885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5886 echo "configure:5887: checking for $ac_word" >&5
5887 if eval "test \"`echo '$''{'ac_cv_path_SNMPWALK'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5892 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5895 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a dos path.
5898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5900 for ac_dir in $ac_dummy; do
5901 test -z "$ac_dir" && ac_dir=.
5902 if test -f $ac_dir/$ac_word; then
5903 ac_cv_path_SNMPWALK="$ac_dir/$ac_word"
5911 SNMPWALK="$ac_cv_path_SNMPWALK"
5912 if test -n "$SNMPWALK"; then
5913 echo "$ac_t""$SNMPWALK" 1>&6
5915 echo "$ac_t""no" 1>&6
5918 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5919 echo "configure: warning: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" 1>&2
5922 # Extract the first word of "rusers", so it can be a program name with args.
5923 set dummy rusers; ac_word=$2
5924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5925 echo "configure:5926: checking for $ac_word" >&5
5926 if eval "test \"`echo '$''{'ac_cv_path_RUSERS'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5931 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5934 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a dos path.
5937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5939 for ac_dir in $ac_dummy; do
5940 test -z "$ac_dir" && ac_dir=.
5941 if test -f $ac_dir/$ac_word; then
5942 ac_cv_path_RUSERS="$ac_dir/$ac_word"
5947 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5951 RUSERS="$ac_cv_path_RUSERS"
5952 if test -n "$RUSERS"; then
5953 echo "$ac_t""$RUSERS" 1>&6
5955 echo "$ac_t""no" 1>&6
5959 missing_dir=`cd $ac_aux_dir && pwd`
5960 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
5961 echo "configure:5962: checking for working aclocal" >&5
5962 # Run test in a subshell; some versions of sh will print an error if
5963 # an executable is not found, even if stderr is redirected.
5964 # Redirect stdin to placate older versions of autoconf. Sigh.
5965 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
5967 echo "$ac_t""found" 1>&6
5969 ACLOCAL="$missing_dir/missing aclocal"
5970 echo "$ac_t""missing" 1>&6
5973 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
5974 echo "configure:5975: checking for working autoconf" >&5
5975 # Run test in a subshell; some versions of sh will print an error if
5976 # an executable is not found, even if stderr is redirected.
5977 # Redirect stdin to placate older versions of autoconf. Sigh.
5978 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
5980 echo "$ac_t""found" 1>&6
5982 AUTOCONF="$missing_dir/missing autoconf"
5983 echo "$ac_t""missing" 1>&6
5986 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
5987 echo "configure:5988: checking for working autoheader" >&5
5988 # Run test in a subshell; some versions of sh will print an error if
5989 # an executable is not found, even if stderr is redirected.
5990 # Redirect stdin to placate older versions of autoconf. Sigh.
5991 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
5992 AUTOHEADER=autoheader
5993 echo "$ac_t""found" 1>&6
5995 AUTOHEADER="$missing_dir/missing autoheader"
5996 echo "$ac_t""missing" 1>&6
6000 # Extract the first word of "locate", so it can be a program name with args.
6001 set dummy locate; ac_word=$2
6002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6003 echo "configure:6004: checking for $ac_word" >&5
6004 if eval "test \"`echo '$''{'ac_cv_path_LOCATE'+set}'`\" = set"; then
6005 echo $ac_n "(cached) $ac_c" 1>&6
6009 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
6012 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a dos path.
6015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6017 for ac_dir in $ac_dummy; do
6018 test -z "$ac_dir" && ac_dir=.
6019 if test -f $ac_dir/$ac_word; then
6020 ac_cv_path_LOCATE="$ac_dir/$ac_word"
6028 LOCATE="$ac_cv_path_LOCATE"
6029 if test -n "$LOCATE"; then
6030 echo "$ac_t""$LOCATE" 1>&6
6032 echo "$ac_t""no" 1>&6
6035 # Extract the first word of "dirname", so it can be a program name with args.
6036 set dummy dirname; ac_word=$2
6037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6038 echo "configure:6039: checking for $ac_word" >&5
6039 if eval "test \"`echo '$''{'ac_cv_path_DIRNAME'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6044 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6047 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a dos path.
6050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6052 for ac_dir in $ac_dummy; do
6053 test -z "$ac_dir" && ac_dir=.
6054 if test -f $ac_dir/$ac_word; then
6055 ac_cv_path_DIRNAME="$ac_dir/$ac_word"
6063 DIRNAME="$ac_cv_path_DIRNAME"
6064 if test -n "$DIRNAME"; then
6065 echo "$ac_t""$DIRNAME" 1>&6
6067 echo "$ac_t""no" 1>&6
6070 # Extract the first word of "grep", so it can be a program name with args.
6071 set dummy grep; ac_word=$2
6072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6073 echo "configure:6074: checking for $ac_word" >&5
6074 if eval "test \"`echo '$''{'ac_cv_path_GREP'+set}'`\" = set"; then
6075 echo $ac_n "(cached) $ac_c" 1>&6
6079 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6082 ac_cv_path_GREP="$GREP" # Let the user override the test with a dos path.
6085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6087 for ac_dir in $ac_dummy; do
6088 test -z "$ac_dir" && ac_dir=.
6089 if test -f $ac_dir/$ac_word; then
6090 ac_cv_path_GREP="$ac_dir/$ac_word"
6098 GREP="$ac_cv_path_GREP"
6099 if test -n "$GREP"; then
6100 echo "$ac_t""$GREP" 1>&6
6102 echo "$ac_t""no" 1>&6
6108 if test "x$WITH_THREADS" = "xyes"; then
6109 if test $ac_cv_prog_suncc = "yes"; then
6110 CFLAGS="$CFLAGS -mt"
6113 for ac_hdr in pthread.h
6115 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6117 echo "configure:6118: checking for $ac_hdr" >&5
6118 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6119 echo $ac_n "(cached) $ac_c" 1>&6
6121 cat > conftest.$ac_ext <<EOF
6122 #line 6123 "configure"
6123 #include "confdefs.h"
6126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6127 { (eval echo configure:6128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6129 if test -z "$ac_err"; then
6131 eval "ac_cv_header_$ac_safe=yes"
6134 echo "configure: failed program was:" >&5
6135 cat conftest.$ac_ext >&5
6137 eval "ac_cv_header_$ac_safe=no"
6141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6142 echo "$ac_t""yes" 1>&6
6143 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6144 cat >> confdefs.h <<EOF
6145 #define $ac_tr_hdr 1
6149 echo "$ac_t""no" 1>&6
6155 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
6156 echo "configure:6157: checking for pthread_create in -lpthread" >&5
6157 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
6158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6
6161 ac_save_LIBS="$LIBS"
6162 LIBS="-lpthread $LIBS"
6163 cat > conftest.$ac_ext <<EOF
6164 #line 6165 "configure"
6165 #include "confdefs.h"
6166 /* Override any gcc2 internal prototype to avoid an error. */
6167 /* We use char because int might match the return type of a gcc2
6168 builtin and then its argument prototype would still apply. */
6169 char pthread_create();
6175 if { (eval echo configure:6176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6177 eval "ac_cv_lib_$ac_lib_var=yes"
6179 echo "configure: failed program was:" >&5
6180 cat conftest.$ac_ext >&5
6182 eval "ac_cv_lib_$ac_lib_var=no"
6185 LIBS="$ac_save_LIBS"
6188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6189 echo "$ac_t""yes" 1>&6
6190 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
6191 LIBS="$LIBS -lpthread"
6193 echo "$ac_t""no" 1>&6
6194 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
6195 echo "configure:6196: checking for pthread_create in -lc_r" >&5
6196 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
6197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6200 ac_save_LIBS="$LIBS"
6202 cat > conftest.$ac_ext <<EOF
6203 #line 6204 "configure"
6204 #include "confdefs.h"
6205 /* Override any gcc2 internal prototype to avoid an error. */
6206 /* We use char because int might match the return type of a gcc2
6207 builtin and then its argument prototype would still apply. */
6208 char pthread_create();
6214 if { (eval echo configure:6215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6216 eval "ac_cv_lib_$ac_lib_var=yes"
6218 echo "configure: failed program was:" >&5
6219 cat conftest.$ac_ext >&5
6221 eval "ac_cv_lib_$ac_lib_var=no"
6224 LIBS="$ac_save_LIBS"
6227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6228 echo "$ac_t""yes" 1>&6
6229 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
6231 echo "$ac_t""no" 1>&6
6241 if test "x$WITH_THREADS" != "xyes"; then
6243 ac_cv_header_pthread_h="no"
6248 echo $ac_n "checking for library containing sem_init""... $ac_c" 1>&6
6249 echo "configure:6250: checking for library containing sem_init" >&5
6250 if eval "test \"`echo '$''{'ac_cv_search_sem_init'+set}'`\" = set"; then
6251 echo $ac_n "(cached) $ac_c" 1>&6
6253 ac_func_search_save_LIBS="$LIBS"
6254 ac_cv_search_sem_init="no"
6255 cat > conftest.$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 /* Override any gcc2 internal prototype to avoid an error. */
6259 /* We use char because int might match the return type of a gcc2
6260 builtin and then its argument prototype would still apply. */
6267 if { (eval echo configure:6268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6269 ac_cv_search_sem_init="none required"
6271 echo "configure: failed program was:" >&5
6272 cat conftest.$ac_ext >&5
6275 test "$ac_cv_search_sem_init" = "no" && for i in pthread sem posix4 rt; do
6276 LIBS="-l$i $ac_func_search_save_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. */
6289 if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6291 ac_cv_search_sem_init="-l$i"
6294 echo "configure: failed program was:" >&5
6295 cat conftest.$ac_ext >&5
6299 LIBS="$ac_func_search_save_LIBS"
6302 echo "$ac_t""$ac_cv_search_sem_init" 1>&6
6303 if test "$ac_cv_search_sem_init" != "no"; then
6304 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
6307 { 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; }
6312 echo $ac_n "checking for getsockname in -lsocket""... $ac_c" 1>&6
6313 echo "configure:6314: checking for getsockname in -lsocket" >&5
6314 ac_lib_var=`echo socket'_'getsockname | sed 'y%./+-%__p_%'`
6315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6316 echo $ac_n "(cached) $ac_c" 1>&6
6318 ac_save_LIBS="$LIBS"
6319 LIBS="-lsocket $LIBS"
6320 cat > conftest.$ac_ext <<EOF
6321 #line 6322 "configure"
6322 #include "confdefs.h"
6323 /* Override any gcc2 internal prototype to avoid an error. */
6324 /* We use char because int might match the return type of a gcc2
6325 builtin and then its argument prototype would still apply. */
6332 if { (eval echo configure:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6334 eval "ac_cv_lib_$ac_lib_var=yes"
6336 echo "configure: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6339 eval "ac_cv_lib_$ac_lib_var=no"
6342 LIBS="$ac_save_LIBS"
6345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6346 echo "$ac_t""yes" 1>&6
6347 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6348 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6349 cat >> confdefs.h <<EOF
6350 #define $ac_tr_lib 1
6353 LIBS="-lsocket $LIBS"
6356 echo "$ac_t""no" 1>&6
6360 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
6361 echo "configure:6362: checking for inet_aton in -lresolv" >&5
6362 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
6363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6364 echo $ac_n "(cached) $ac_c" 1>&6
6366 ac_save_LIBS="$LIBS"
6367 LIBS="-lresolv $LIBS"
6368 cat > conftest.$ac_ext <<EOF
6369 #line 6370 "configure"
6370 #include "confdefs.h"
6371 /* Override any gcc2 internal prototype to avoid an error. */
6372 /* We use char because int might match the return type of a gcc2
6373 builtin and then its argument prototype would still apply. */
6380 if { (eval echo configure:6381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6382 eval "ac_cv_lib_$ac_lib_var=yes"
6384 echo "configure: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6387 eval "ac_cv_lib_$ac_lib_var=no"
6390 LIBS="$ac_save_LIBS"
6393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6394 echo "$ac_t""yes" 1>&6
6395 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6396 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6397 cat >> confdefs.h <<EOF
6398 #define $ac_tr_lib 1
6401 LIBS="-lresolv $LIBS"
6404 echo "$ac_t""no" 1>&6
6408 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
6409 echo "configure:6410: checking for inet_ntoa in -lnsl" >&5
6410 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
6411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6412 echo $ac_n "(cached) $ac_c" 1>&6
6414 ac_save_LIBS="$LIBS"
6416 cat > conftest.$ac_ext <<EOF
6417 #line 6418 "configure"
6418 #include "confdefs.h"
6419 /* Override any gcc2 internal prototype to avoid an error. */
6420 /* We use char because int might match the return type of a gcc2
6421 builtin and then its argument prototype would still apply. */
6428 if { (eval echo configure:6429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6430 eval "ac_cv_lib_$ac_lib_var=yes"
6432 echo "configure: failed program was:" >&5
6433 cat conftest.$ac_ext >&5
6435 eval "ac_cv_lib_$ac_lib_var=no"
6438 LIBS="$ac_save_LIBS"
6441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6442 echo "$ac_t""yes" 1>&6
6443 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6444 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6445 cat >> confdefs.h <<EOF
6446 #define $ac_tr_lib 1
6452 echo "$ac_t""no" 1>&6
6459 CFLAGS="$CFLAGS -D_ALL_SOURCE"
6464 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6467 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6468 echo "configure:6469: checking for $ac_hdr that defines DIR" >&5
6469 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6470 echo $ac_n "(cached) $ac_c" 1>&6
6472 cat > conftest.$ac_ext <<EOF
6473 #line 6474 "configure"
6474 #include "confdefs.h"
6475 #include <sys/types.h>
6481 if { (eval echo configure:6482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6483 eval "ac_cv_header_dirent_$ac_safe=yes"
6485 echo "configure: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6488 eval "ac_cv_header_dirent_$ac_safe=no"
6492 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6493 echo "$ac_t""yes" 1>&6
6494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6495 cat >> confdefs.h <<EOF
6496 #define $ac_tr_hdr 1
6498 ac_header_dirent=$ac_hdr; break
6500 echo "$ac_t""no" 1>&6
6503 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6504 if test $ac_header_dirent = dirent.h; then
6505 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6506 echo "configure:6507: checking for opendir in -ldir" >&5
6507 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6511 ac_save_LIBS="$LIBS"
6513 cat > conftest.$ac_ext <<EOF
6514 #line 6515 "configure"
6515 #include "confdefs.h"
6516 /* Override any gcc2 internal prototype to avoid an error. */
6517 /* We use char because int might match the return type of a gcc2
6518 builtin and then its argument prototype would still apply. */
6525 if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6527 eval "ac_cv_lib_$ac_lib_var=yes"
6529 echo "configure: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6532 eval "ac_cv_lib_$ac_lib_var=no"
6535 LIBS="$ac_save_LIBS"
6538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6539 echo "$ac_t""yes" 1>&6
6542 echo "$ac_t""no" 1>&6
6546 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6547 echo "configure:6548: checking for opendir in -lx" >&5
6548 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6550 echo $ac_n "(cached) $ac_c" 1>&6
6552 ac_save_LIBS="$LIBS"
6554 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6557 /* Override any gcc2 internal prototype to avoid an error. */
6558 /* We use char because int might match the return type of a gcc2
6559 builtin and then its argument prototype would still apply. */
6566 if { (eval echo configure:6567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6568 eval "ac_cv_lib_$ac_lib_var=yes"
6570 echo "configure: failed program was:" >&5
6571 cat conftest.$ac_ext >&5
6573 eval "ac_cv_lib_$ac_lib_var=no"
6576 LIBS="$ac_save_LIBS"
6579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6580 echo "$ac_t""yes" 1>&6
6583 echo "$ac_t""no" 1>&6
6588 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6589 echo "configure:6590: checking for ANSI C header files" >&5
6590 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6591 echo $ac_n "(cached) $ac_c" 1>&6
6593 cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6602 { (eval echo configure:6603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6604 if test -z "$ac_err"; then
6606 ac_cv_header_stdc=yes
6609 echo "configure: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6612 ac_cv_header_stdc=no
6616 if test $ac_cv_header_stdc = yes; then
6617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6618 cat > conftest.$ac_ext <<EOF
6619 #line 6620 "configure"
6620 #include "confdefs.h"
6623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6624 egrep "memchr" >/dev/null 2>&1; then
6628 ac_cv_header_stdc=no
6634 if test $ac_cv_header_stdc = yes; then
6635 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6636 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6642 egrep "free" >/dev/null 2>&1; then
6646 ac_cv_header_stdc=no
6652 if test $ac_cv_header_stdc = yes; then
6653 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6654 if test "$cross_compiling" = yes; then
6657 cat > conftest.$ac_ext <<EOF
6658 #line 6659 "configure"
6659 #include "confdefs.h"
6661 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6662 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6664 int main () { int i; for (i = 0; i < 256; i++)
6665 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6669 if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6673 echo "configure: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6676 ac_cv_header_stdc=no
6684 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6685 if test $ac_cv_header_stdc = yes; then
6686 cat >> confdefs.h <<\EOF
6687 #define STDC_HEADERS 1
6692 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
6693 echo "configure:6694: checking whether time.h and sys/time.h may both be included" >&5
6694 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
6695 echo $ac_n "(cached) $ac_c" 1>&6
6697 cat > conftest.$ac_ext <<EOF
6698 #line 6699 "configure"
6699 #include "confdefs.h"
6700 #include <sys/types.h>
6701 #include <sys/time.h>
6707 if { (eval echo configure:6708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6709 ac_cv_header_time=yes
6711 echo "configure: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6714 ac_cv_header_time=no
6719 echo "$ac_t""$ac_cv_header_time" 1>&6
6720 if test $ac_cv_header_time = yes; then
6721 cat >> confdefs.h <<\EOF
6722 #define TIME_WITH_SYS_TIME 1
6727 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6728 echo "configure:6729: checking for sys/wait.h that is POSIX.1 compatible" >&5
6729 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6730 echo $ac_n "(cached) $ac_c" 1>&6
6732 cat > conftest.$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6735 #include <sys/types.h>
6736 #include <sys/wait.h>
6738 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6741 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6746 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6749 if { (eval echo configure:6750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6751 ac_cv_header_sys_wait_h=yes
6753 echo "configure: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6756 ac_cv_header_sys_wait_h=no
6761 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6762 if test $ac_cv_header_sys_wait_h = yes; then
6763 cat >> confdefs.h <<\EOF
6764 #define HAVE_SYS_WAIT_H 1
6801 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6802 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6803 echo "configure:6804: checking for $ac_hdr" >&5
6804 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6805 echo $ac_n "(cached) $ac_c" 1>&6
6807 cat > conftest.$ac_ext <<EOF
6808 #line 6809 "configure"
6809 #include "confdefs.h"
6812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6813 { (eval echo configure:6814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6815 if test -z "$ac_err"; then
6817 eval "ac_cv_header_$ac_safe=yes"
6820 echo "configure: failed program was:" >&5
6821 cat conftest.$ac_ext >&5
6823 eval "ac_cv_header_$ac_safe=no"
6827 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6828 echo "$ac_t""yes" 1>&6
6829 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6830 cat >> confdefs.h <<EOF
6831 #define $ac_tr_hdr 1
6835 echo "$ac_t""no" 1>&6
6841 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
6842 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
6843 echo "configure:6844: checking for regex.h" >&5
6844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6845 echo $ac_n "(cached) $ac_c" 1>&6
6847 cat > conftest.$ac_ext <<EOF
6848 #line 6849 "configure"
6849 #include "confdefs.h"
6852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853 { (eval echo configure:6854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6855 if test -z "$ac_err"; then
6857 eval "ac_cv_header_$ac_safe=yes"
6860 echo "configure: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6863 eval "ac_cv_header_$ac_safe=no"
6867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6868 echo "$ac_t""yes" 1>&6
6869 cat >> confdefs.h <<\EOF
6870 #define HAVE_REGEX_H 1
6874 echo "$ac_t""no" 1>&6
6877 if test "x$ac_cv_header_regex_h" = "xyes"; then
6880 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6890 egrep "yes" >/dev/null 2>&1; then
6892 cat >> confdefs.h <<\EOF
6893 #define HAVE_REG_EXTENDED 1
6903 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6905 cat >> confdefs.h <<\EOF
6911 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6913 cat >> confdefs.h <<\EOF
6919 smart_try_dir="$OPENSSL_INCLUDE"
6920 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
6923 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
6924 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
6925 echo "configure:6926: checking for openssl/ssl.h" >&5
6930 old_CFLAGS="$CFLAGS"
6931 cat > conftest.$ac_ext <<EOF
6932 #line 6933 "configure"
6933 #include "confdefs.h"
6935 #include <openssl/ssl.h>
6940 if { (eval echo configure:6941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6944 echo "configure: failed program was:" >&5
6945 cat conftest.$ac_ext >&5
6951 if test "x$smart_include" = "x"; then
6954 if test "x$LOCATE" != "x"; then
6958 for x in `${LOCATE} $file 2>/dev/null`; do
6959 base=`echo $x | sed "s%/${file}%%"`
6960 if test "x$x" = "x$base"; then
6964 dir=`${DIRNAME} $x 2>/dev/null`
6965 exclude=`echo ${dir} | ${GREP} /home`
6966 if test "x$exclude" != "x"; then
6970 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
6971 if test "x$already" = "x"; then
6977 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
6980 for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
6981 CFLAGS="$old_CFLAGS -I$try"
6983 cat > conftest.$ac_ext <<EOF
6984 #line 6985 "configure"
6985 #include "confdefs.h"
6987 #include <openssl/ssl.h>
6992 if { (eval echo configure:6993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6994 smart_include="-I$try"
6996 echo "configure: failed program was:" >&5
6997 cat conftest.$ac_ext >&5
7003 if test "x$smart_include" != "x"; then
7007 CFLAGS="$old_CFLAGS"
7010 if test "x$smart_include" != "x"; then
7011 echo "$ac_t""yes" 1>&6
7012 eval "ac_cv_header_$ac_safe=yes"
7013 CFLAGS="$old_CFLAGS $smart_include"
7014 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
7016 echo "$ac_t""no" 1>&6
7019 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
7020 cat >> confdefs.h <<\EOF
7021 #define HAVE_OPENSSL_SSL_H 1
7024 old_CPPFLAGS="$CPPFLAGS"
7025 if test "x$OPENSSL_INCLUDE" != "x"; then
7026 CPPFLAGS="-I$OPENSSL_INCLUDE $CPPFLAGS"
7035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7037 echo "configure:7038: checking for $ac_hdr" >&5
7038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7039 echo $ac_n "(cached) $ac_c" 1>&6
7041 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7047 { (eval echo configure:7048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7049 if test -z "$ac_err"; then
7051 eval "ac_cv_header_$ac_safe=yes"
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7057 eval "ac_cv_header_$ac_safe=no"
7061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7062 echo "$ac_t""yes" 1>&6
7063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7064 cat >> confdefs.h <<EOF
7065 #define $ac_tr_hdr 1
7069 echo "$ac_t""no" 1>&6
7073 CPPFLAGS="$old_CPPFLAGS"
7075 echo $ac_n "checking for OpenSSL version >= 0.9.7""... $ac_c" 1>&6
7076 echo "configure:7077: checking for OpenSSL version >= 0.9.7" >&5
7077 old_CPPFLAGS=$CPPFLAGS
7078 if test "x$OPENSSL_INCLUDE" != "x"; then
7079 CPPFLAGS="-I$OPENSSL_INCLUDE"
7081 cat > conftest.$ac_ext <<EOF
7082 #line 7083 "configure"
7083 #include "confdefs.h"
7084 #include <openssl/crypto.h>
7085 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
7090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7091 egrep "yes" >/dev/null 2>&1; then
7097 if test "x$goodssl" != "xyes"; then
7098 echo "$ac_t""no" 1>&6
7102 echo "$ac_t""yes" 1>&6
7104 # Look for the OpenSSL libraries.
7105 smart_try_dir=$OPENSSL_LIBS
7108 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
7109 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
7110 echo $ac_n "checking for DH_new in -lcrypto""... $ac_c" 1>&6
7111 echo "configure:7112: checking for DH_new in -lcrypto" >&5
7117 LIBS="$LIBS -lcrypto"
7118 cat > conftest.$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7121 extern char DH_new();
7126 if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7128 smart_lib="-lcrypto"
7130 echo "configure: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7135 if test "x$smart_lib" = "x"; then
7138 if test "x$LOCATE" != "x"; then
7140 file=libcrypto${libltdl_cv_shlibext}
7142 for x in `${LOCATE} $file 2>/dev/null`; do
7143 base=`echo $x | sed "s%/${file}%%"`
7144 if test "x$x" = "x$base"; then
7148 dir=`${DIRNAME} $x 2>/dev/null`
7149 exclude=`echo ${dir} | ${GREP} /home`
7150 if test "x$exclude" != "x"; then
7154 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7155 if test "x$already" = "x"; then
7161 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7165 if test "x$LOCATE" != "x"; then
7169 for x in `${LOCATE} $file 2>/dev/null`; do
7170 base=`echo $x | sed "s%/${file}%%"`
7171 if test "x$x" = "x$base"; then
7175 dir=`${DIRNAME} $x 2>/dev/null`
7176 exclude=`echo ${dir} | ${GREP} /home`
7177 if test "x$exclude" != "x"; then
7181 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7182 if test "x$already" = "x"; then
7188 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7191 for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
7192 LIBS="$old_LIBS -L$try -lcrypto"
7194 cat > conftest.$ac_ext <<EOF
7195 #line 7196 "configure"
7196 #include "confdefs.h"
7197 extern char DH_new();
7202 if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7204 smart_lib="-L$try -lcrypto"
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7210 if test "x$smart_lib" != "x"; then
7217 if test "x$smart_lib" != "x"; then
7218 echo "$ac_t""yes" 1>&6
7219 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7220 LIBS="$old_LIBS $smart_lib"
7221 SMART_LIBS="$SMART_LIBS $smart_lib"
7223 echo "$ac_t""no" 1>&6
7226 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
7229 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
7230 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
7231 echo $ac_n "checking for SSL_new in -lssl""... $ac_c" 1>&6
7232 echo "configure:7233: checking for SSL_new in -lssl" >&5
7239 cat > conftest.$ac_ext <<EOF
7240 #line 7241 "configure"
7241 #include "confdefs.h"
7242 extern char SSL_new();
7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7251 echo "configure: failed program was:" >&5
7252 cat conftest.$ac_ext >&5
7256 if test "x$smart_lib" = "x"; then
7259 if test "x$LOCATE" != "x"; then
7261 file=libssl${libltdl_cv_shlibext}
7263 for x in `${LOCATE} $file 2>/dev/null`; do
7264 base=`echo $x | sed "s%/${file}%%"`
7265 if test "x$x" = "x$base"; then
7269 dir=`${DIRNAME} $x 2>/dev/null`
7270 exclude=`echo ${dir} | ${GREP} /home`
7271 if test "x$exclude" != "x"; then
7275 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7276 if test "x$already" = "x"; then
7282 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7286 if test "x$LOCATE" != "x"; then
7290 for x in `${LOCATE} $file 2>/dev/null`; do
7291 base=`echo $x | sed "s%/${file}%%"`
7292 if test "x$x" = "x$base"; then
7296 dir=`${DIRNAME} $x 2>/dev/null`
7297 exclude=`echo ${dir} | ${GREP} /home`
7298 if test "x$exclude" != "x"; then
7302 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7303 if test "x$already" = "x"; then
7309 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7312 for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
7313 LIBS="$old_LIBS -L$try -lssl"
7315 cat > conftest.$ac_ext <<EOF
7316 #line 7317 "configure"
7317 #include "confdefs.h"
7318 extern char SSL_new();
7323 if { (eval echo configure:7324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7325 smart_lib="-L$try -lssl"
7327 echo "configure: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7331 if test "x$smart_lib" != "x"; then
7338 if test "x$smart_lib" != "x"; then
7339 echo "$ac_t""yes" 1>&6
7340 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7341 LIBS="$old_LIBS $smart_lib"
7342 SMART_LIBS="$SMART_LIBS $smart_lib"
7344 echo "$ac_t""no" 1>&6
7347 if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
7351 export OPENSSL_INCLUDE OPENSSL_LIBS
7354 CPPFLAGS=$old_CPPFLAGS
7358 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7359 echo "configure:7360: checking for off_t" >&5
7360 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7361 echo $ac_n "(cached) $ac_c" 1>&6
7363 cat > conftest.$ac_ext <<EOF
7364 #line 7365 "configure"
7365 #include "confdefs.h"
7366 #include <sys/types.h>
7372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7373 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7375 ac_cv_type_off_t=yes
7383 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7384 if test $ac_cv_type_off_t = no; then
7385 cat >> confdefs.h <<\EOF
7391 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7392 echo "configure:7393: checking for pid_t" >&5
7393 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7394 echo $ac_n "(cached) $ac_c" 1>&6
7396 cat > conftest.$ac_ext <<EOF
7397 #line 7398 "configure"
7398 #include "confdefs.h"
7399 #include <sys/types.h>
7405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7406 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7408 ac_cv_type_pid_t=yes
7416 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7417 if test $ac_cv_type_pid_t = no; then
7418 cat >> confdefs.h <<\EOF
7424 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7425 echo "configure:7426: checking for size_t" >&5
7426 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7427 echo $ac_n "(cached) $ac_c" 1>&6
7429 cat > conftest.$ac_ext <<EOF
7430 #line 7431 "configure"
7431 #include "confdefs.h"
7432 #include <sys/types.h>
7438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7439 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7441 ac_cv_type_size_t=yes
7444 ac_cv_type_size_t=no
7449 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7450 if test $ac_cv_type_size_t = no; then
7451 cat >> confdefs.h <<\EOF
7452 #define size_t unsigned
7457 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7458 echo "configure:7459: checking for uid_t in sys/types.h" >&5
7459 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7460 echo $ac_n "(cached) $ac_c" 1>&6
7462 cat > conftest.$ac_ext <<EOF
7463 #line 7464 "configure"
7464 #include "confdefs.h"
7465 #include <sys/types.h>
7467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7468 egrep "uid_t" >/dev/null 2>&1; then
7470 ac_cv_type_uid_t=yes
7479 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7480 if test $ac_cv_type_uid_t = no; then
7481 cat >> confdefs.h <<\EOF
7485 cat >> confdefs.h <<\EOF
7493 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
7494 echo "configure:7495: checking for socklen_t" >&5
7495 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
7496 echo $ac_n "(cached) $ac_c" 1>&6
7498 ac_cv_type_socklen_t=no
7499 cat > conftest.$ac_ext <<EOF
7500 #line 7501 "configure"
7501 #include "confdefs.h"
7502 #ifdef HAVE_SYS_TYPES_H
7503 #include <sys/types.h>
7505 #ifdef HAVE_SYS_SOCKET_H
7506 #include <sys/socket.h>
7513 if { (eval echo configure:7514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7515 ac_cv_type_socklen_t=yes
7517 echo "configure: failed program was:" >&5
7518 cat conftest.$ac_ext >&5
7525 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
7527 if test "$ac_cv_type_socklen_t" != "yes"; then
7528 cat >> confdefs.h <<\EOF
7529 #define socklen_t int
7536 echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
7537 echo "configure:7538: checking for uint8_t" >&5
7538 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
7539 echo $ac_n "(cached) $ac_c" 1>&6
7541 ac_cv_type_uint8_t=no
7542 cat > conftest.$ac_ext <<EOF
7543 #line 7544 "configure"
7544 #include "confdefs.h"
7545 #ifdef HAVE_INTTYPES_H
7546 #include <inttypes.h>
7548 #ifdef HAVE_STDINT_H
7556 if { (eval echo configure:7557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7558 ac_cv_type_uint8_t=yes
7560 echo "configure: failed program was:" >&5
7561 cat conftest.$ac_ext >&5
7568 echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
7570 if test "$ac_cv_type_uint8_t" != "yes"; then
7571 cat >> confdefs.h <<\EOF
7572 #define uint8_t unsigned char
7579 echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
7580 echo "configure:7581: checking for uint16_t" >&5
7581 if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
7582 echo $ac_n "(cached) $ac_c" 1>&6
7584 ac_cv_type_uint16_t=no
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588 #ifdef HAVE_INTTYPES_H
7589 #include <inttypes.h>
7591 #ifdef HAVE_STDINT_H
7599 if { (eval echo configure:7600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7601 ac_cv_type_uint16_t=yes
7603 echo "configure: failed program was:" >&5
7604 cat conftest.$ac_ext >&5
7611 echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
7613 if test "$ac_cv_type_uint16_t" != "yes"; then
7614 cat >> confdefs.h <<\EOF
7615 #define uint16_t unsigned short
7622 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
7623 echo "configure:7624: checking for uint32_t" >&5
7624 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7627 ac_cv_type_uint32_t=no
7628 cat > conftest.$ac_ext <<EOF
7629 #line 7630 "configure"
7630 #include "confdefs.h"
7631 #ifdef HAVE_INTTYPES_H
7632 #include <inttypes.h>
7634 #ifdef HAVE_STDINT_H
7642 if { (eval echo configure:7643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7644 ac_cv_type_uint32_t=yes
7646 echo "configure: failed program was:" >&5
7647 cat conftest.$ac_ext >&5
7654 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
7656 if test "$ac_cv_type_uint32_t" != "yes"; then
7657 cat >> confdefs.h <<\EOF
7658 #define uint32_t unsigned int
7690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7691 echo "configure:7692: checking for $ac_func" >&5
7692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7693 echo $ac_n "(cached) $ac_c" 1>&6
7695 cat > conftest.$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7698 /* System header to define __stub macros and hopefully few prototypes,
7699 which can conflict with char $ac_func(); below. */
7701 /* Override any gcc2 internal prototype to avoid an error. */
7702 /* We use char because int might match the return type of a gcc2
7703 builtin and then its argument prototype would still apply. */
7708 /* The GNU C library defines this for functions which it implements
7709 to always fail with ENOSYS. Some functions are actually named
7710 something starting with __ and the normal name is an alias. */
7711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7719 if { (eval echo configure:7720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7721 eval "ac_cv_func_$ac_func=yes"
7723 echo "configure: failed program was:" >&5
7724 cat conftest.$ac_ext >&5
7726 eval "ac_cv_func_$ac_func=no"
7731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7732 echo "$ac_t""yes" 1>&6
7733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7734 cat >> confdefs.h <<EOF
7735 #define $ac_tr_func 1
7739 echo "$ac_t""no" 1>&6
7754 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
7755 echo "configure:7756: checking whether $ac_func must be declared" >&5
7756 if eval "test \"`echo '$''{'radius_cv_decl_needed_$ac_func'+set}'`\" = set"; then
7757 echo $ac_n "(cached) $ac_c" 1>&6
7759 cat > conftest.$ac_ext <<EOF
7760 #line 7761 "configure"
7761 #include "confdefs.h"
7765 #ifdef HAVE_UNISTD_H
7774 #ifdef HAVE_RESOURCE_H
7775 #include <resource.h>
7777 #ifdef HAVE_GETOPT_H
7780 #ifdef HAVE_MALLOC_H
7789 #ifdef HAVE_SYS_SELECT_H
7790 #include <sys/select.h>
7798 #ifdef HAVE_SYSLOG_H
7801 #ifdef HAVE_INTTYPES_H
7802 #include <inttypes.h>
7804 #ifdef HAVE_STDINT_H
7807 #ifdef HAVE_ARPA_INET_H
7808 #include <arpa/inet.h>
7812 char *(*pfn) = (char *(*)) $ac_func
7815 if { (eval echo configure:7816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7817 eval "radius_cv_decl_needed_$ac_func=no"
7819 echo "configure: failed program was:" >&5
7820 cat conftest.$ac_ext >&5
7822 eval "radius_cv_decl_needed_$ac_func=yes"
7827 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
7828 echo "$ac_t""yes" 1>&6
7829 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7830 cat >> confdefs.h <<EOF
7831 #define $radius_tr_decl 1
7835 echo "$ac_t""no" 1>&6
7841 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
7842 echo "configure:7843: checking return type of signal handlers" >&5
7843 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
7844 echo $ac_n "(cached) $ac_c" 1>&6
7846 cat > conftest.$ac_ext <<EOF
7847 #line 7848 "configure"
7848 #include "confdefs.h"
7849 #include <sys/types.h>
7855 extern "C" void (*signal (int, void (*)(int)))(int);
7857 void (*signal ()) ();
7864 if { (eval echo configure:7865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7866 ac_cv_type_signal=void
7868 echo "configure: failed program was:" >&5
7869 cat conftest.$ac_ext >&5
7871 ac_cv_type_signal=int
7876 echo "$ac_t""$ac_cv_type_signal" 1>&6
7877 cat >> confdefs.h <<EOF
7878 #define RETSIGTYPE $ac_cv_type_signal
7883 if test "x$ac_cv_header_utmpx_h" = "xyes"
7886 echo $ac_n "checking for ut_xtime in struct utmpx""... $ac_c" 1>&6
7887 echo "configure:7888: checking for ut_xtime in struct utmpx" >&5
7890 cat > conftest.$ac_ext <<EOF
7891 #line 7892 "configure"
7892 #include "confdefs.h"
7896 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7900 int foo = offsetof(struct utmpx, ut_xtime)
7903 if { (eval echo configure:7904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7907 echo "configure: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7914 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7915 if test "x$has_element" != "x"; then
7916 echo "$ac_t""yes" 1>&6
7917 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7919 echo "$ac_t""no" 1>&6
7920 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7923 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
7925 cat >> confdefs.h <<\EOF
7926 #define ut_xtime ut_tv.tv_sec
7933 echo $ac_n "checking for ipi_addr in struct in_pktinfo""... $ac_c" 1>&6
7934 echo "configure:7935: checking for ipi_addr in struct in_pktinfo" >&5
7937 cat > conftest.$ac_ext <<EOF
7938 #line 7939 "configure"
7939 #include "confdefs.h"
7941 #include <netinet/in.h>
7943 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7947 int foo = offsetof(struct in_pktinfo, ipi_addr)
7950 if { (eval echo configure:7951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7954 echo "configure: failed program was:" >&5
7955 cat conftest.$ac_ext >&5
7961 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7962 if test "x$has_element" != "x"; then
7963 echo "$ac_t""yes" 1>&6
7964 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7966 echo "$ac_t""no" 1>&6
7967 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7970 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
7972 cat >> confdefs.h <<\EOF
7973 #define HAVE_IP_PKTINFO 1
7979 echo $ac_n "checking for working const""... $ac_c" 1>&6
7980 echo "configure:7981: checking for working const" >&5
7981 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7984 cat > conftest.$ac_ext <<EOF
7985 #line 7986 "configure"
7986 #include "confdefs.h"
7990 /* Ultrix mips cc rejects this. */
7991 typedef int charset[2]; const charset x;
7992 /* SunOS 4.1.1 cc rejects this. */
7993 char const *const *ccp;
7995 /* NEC SVR4.0.2 mips cc rejects this. */
7996 struct point {int x, y;};
7997 static struct point const zero = {0,0};
7998 /* AIX XL C 1.02.0.0 rejects this.
7999 It does not let you subtract one const X* pointer from another in an arm
8000 of an if-expression whose if-part is not a constant expression */
8001 const char *g = "string";
8002 ccp = &g + (g ? g-g : 0);
8003 /* HPUX 7.0 cc rejects these. */
8006 ccp = (char const *const *) p;
8007 { /* SCO 3.2v4 cc rejects this. */
8009 char const *s = 0 ? (char *) 0 : (char const *) 0;
8013 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8015 const int *foo = &x[0];
8018 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8019 typedef const int *iptr;
8023 { /* AIX XL C 1.02.0.0 rejects this saying
8024 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8025 struct s { int j; const int *ap[3]; };
8026 struct s *b; b->j = 5;
8028 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8034 if { (eval echo configure:8035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8038 echo "configure: failed program was:" >&5
8039 cat conftest.$ac_ext >&5
8046 echo "$ac_t""$ac_cv_c_const" 1>&6
8047 if test $ac_cv_c_const = no; then
8048 cat >> confdefs.h <<\EOF
8055 echo $ac_n "checking type of OS""... $ac_c" 1>&6
8056 echo "configure:8057: checking type of OS" >&5
8058 echo "$ac_t""$OS" 1>&6
8059 if test "$OS" = "OS/2"; then
8066 if test "x$GCC" = "xyes"; then
8067 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
8070 echo $ac_n "checking for developer gcc flags""... $ac_c" 1>&6
8071 echo "configure:8072: checking for developer gcc flags" >&5
8072 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
8073 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
8074 CFLAGS="$CFLAGS $devflags"
8076 echo "$ac_t""yes. Using $devflags" 1>&6
8079 CFLAGS="$CFLAGS -DNDEBUG"
8081 echo "$ac_t""no." 1>&6
8085 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8086 echo "configure:8087: checking for crypt in -lcrypt" >&5
8087 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8089 echo $ac_n "(cached) $ac_c" 1>&6
8091 ac_save_LIBS="$LIBS"
8092 LIBS="-lcrypt $LIBS"
8093 cat > conftest.$ac_ext <<EOF
8094 #line 8095 "configure"
8095 #include "confdefs.h"
8096 /* Override any gcc2 internal prototype to avoid an error. */
8097 /* We use char because int might match the return type of a gcc2
8098 builtin and then its argument prototype would still apply. */
8105 if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8107 eval "ac_cv_lib_$ac_lib_var=yes"
8109 echo "configure: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8112 eval "ac_cv_lib_$ac_lib_var=no"
8115 LIBS="$ac_save_LIBS"
8118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8119 echo "$ac_t""yes" 1>&6
8123 echo "$ac_t""no" 1>&6
8126 if test "$CRYPTLIB" != ""; then
8127 cat >> confdefs.h <<\EOF
8128 #define HAVE_CRYPT 1
8132 echo $ac_n "checking for crypt""... $ac_c" 1>&6
8133 echo "configure:8134: checking for crypt" >&5
8134 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
8135 echo $ac_n "(cached) $ac_c" 1>&6
8137 cat > conftest.$ac_ext <<EOF
8138 #line 8139 "configure"
8139 #include "confdefs.h"
8140 /* System header to define __stub macros and hopefully few prototypes,
8141 which can conflict with char crypt(); below. */
8143 /* Override any gcc2 internal prototype to avoid an error. */
8144 /* We use char because int might match the return type of a gcc2
8145 builtin and then its argument prototype would still apply. */
8150 /* The GNU C library defines this for functions which it implements
8151 to always fail with ENOSYS. Some functions are actually named
8152 something starting with __ and the normal name is an alias. */
8153 #if defined (__stub_crypt) || defined (__stub___crypt)
8161 if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8163 eval "ac_cv_func_crypt=yes"
8165 echo "configure: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8168 eval "ac_cv_func_crypt=no"
8173 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
8174 echo "$ac_t""yes" 1>&6
8175 cat >> confdefs.h <<\EOF
8176 #define HAVE_CRYPT 1
8180 echo "$ac_t""no" 1>&6
8185 echo $ac_n "checking for setkey in -lcipher""... $ac_c" 1>&6
8186 echo "configure:8187: checking for setkey in -lcipher" >&5
8187 ac_lib_var=`echo cipher'_'setkey | sed 'y%./+-%__p_%'`
8188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8189 echo $ac_n "(cached) $ac_c" 1>&6
8191 ac_save_LIBS="$LIBS"
8192 LIBS="-lcipher $LIBS"
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 /* Override any gcc2 internal prototype to avoid an error. */
8197 /* We use char because int might match the return type of a gcc2
8198 builtin and then its argument prototype would still apply. */
8205 if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8207 eval "ac_cv_lib_$ac_lib_var=yes"
8209 echo "configure: failed program was:" >&5
8210 cat conftest.$ac_ext >&5
8212 eval "ac_cv_lib_$ac_lib_var=no"
8215 LIBS="$ac_save_LIBS"
8218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8219 echo "$ac_t""yes" 1>&6
8220 CRYPTLIB="${CRYPTLIB} -lcipher"
8223 echo "$ac_t""no" 1>&6
8228 if test "x$WITH_SNMP" = "xyes"; then
8233 echo $ac_n "checking for asn1.h,snmp.h,snmp_impl.h""... $ac_c" 1>&6
8234 echo "configure:8235: checking for asn1.h,snmp.h,snmp_impl.h" >&5
8236 cat > conftest.$ac_ext <<EOF
8237 #line 8238 "configure"
8238 #include "confdefs.h"
8240 #ifdef HAVE_SYS_TYPES_H
8241 #include <sys/types.h>
8243 #ifdef HAVE_STDINT_H
8252 #ifdef HAVE_UNISTD_H
8255 #include <ucd-snmp/asn1.h>
8256 #include <ucd-snmp/snmp.h>
8257 #include <ucd-snmp/snmp_impl.h>
8262 if { (eval echo configure:8263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8264 SNMP_INCLUDE="";ucdsnmp=yes
8266 echo "configure: failed program was:" >&5
8267 cat conftest.$ac_ext >&5
8273 if test "x$ucdsnmp" = "x"; then
8274 old_CFLAGS="$CFLAGS"
8275 for try in /usr/include /usr/local/include $snmp_include_dir; do
8276 CFLAGS="$old_CFLAGS -I$try"
8277 cat > conftest.$ac_ext <<EOF
8278 #line 8279 "configure"
8279 #include "confdefs.h"
8281 #ifdef HAVE_SYS_TYPES_H
8282 #include <sys/types.h>
8284 #ifdef HAVE_STDINT_H
8293 #ifdef HAVE_UNISTD_H
8296 #include <ucd-snmp/asn1.h>
8297 #include <ucd-snmp/snmp.h>
8298 #include <ucd-snmp/snmp_impl.h>
8303 if { (eval echo configure:8304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8305 SNMP_INCLUDE="-I$try";ucdsnmp=yes
8307 echo "configure: failed program was:" >&5
8308 cat conftest.$ac_ext >&5
8313 if test "x$ucdsnmp" != "x"; then
8317 CFLAGS="$old_CFLAGS"
8320 if test "x$ucdsnmp" = "x"; then
8321 old_CFLAGS="$CFLAGS"
8322 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
8323 CFLAGS="$old_CFLAGS -I$try"
8324 cat > conftest.$ac_ext <<EOF
8325 #line 8326 "configure"
8326 #include "confdefs.h"
8328 #ifdef HAVE_SYS_TYPES_H
8329 #include <sys/types.h>
8331 #ifdef HAVE_STDINT_H
8340 #ifdef HAVE_UNISTD_H
8345 #include <snmp_impl.h>
8350 if { (eval echo configure:8351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8352 SNMP_INCLUDE="";ucdsnmp=no
8354 echo "configure: failed program was:" >&5
8355 cat conftest.$ac_ext >&5
8360 if test "x$ucdsnmp" != "x"; then
8364 CFLAGS="$old_CFLAGS"
8367 if test "x$ucdsnmp" = "x"; then
8368 old_CFLAGS="$CFLAGS"
8369 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
8370 CFLAGS="$old_CFLAGS -I$try"
8371 cat > conftest.$ac_ext <<EOF
8372 #line 8373 "configure"
8373 #include "confdefs.h"
8375 #ifdef HAVE_SYS_TYPES_H
8376 #include <sys/types.h>
8378 #ifdef HAVE_STDINT_H
8387 #ifdef HAVE_UNISTD_H
8392 #include <snmp_impl.h>
8397 if { (eval echo configure:8398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8399 SNMP_INCLUDE="-I$try";ucdsnmp=no
8401 echo "configure: failed program was:" >&5
8402 cat conftest.$ac_ext >&5
8407 if test "x$ucdsnmp" != "x"; then
8411 CFLAGS="$old_CFLAGS"
8414 if test "x$ucdsnmp" = "x"; then
8415 echo "$ac_t""no" 1>&6
8417 if test "x$ucdsnmp" = "xyes"; then
8418 echo "$ac_t""(ucd-snmp)yes" 1>&6
8419 cat >> confdefs.h <<\EOF
8420 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
8424 echo "$ac_t""yes" 1>&6
8425 cat >> confdefs.h <<\EOF
8426 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
8430 echo $ac_n "checking for snmp_build_var_op in -lsnmp""... $ac_c" 1>&6
8431 echo "configure:8432: checking for snmp_build_var_op in -lsnmp" >&5
8434 LIBS="$old_LIBS -lsnmp"
8435 cat > conftest.$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8438 extern char snmp_build_var_op();
8443 if { (eval echo configure:8444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8447 echo "configure: failed program was:" >&5
8448 cat conftest.$ac_ext >&5
8454 if test "x$SNMP_LIBS" = "x"; then
8455 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
8456 LIBS="$old_LIBS -L$try -lsnmp"
8457 cat > conftest.$ac_ext <<EOF
8458 #line 8459 "configure"
8459 #include "confdefs.h"
8460 extern char snmp_build_var_op();
8465 if { (eval echo configure:8466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8467 SNMP_LIBS="-L$try -lsnmp"
8469 echo "configure: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8475 if test "x$SNMP_LIBS" != "x"; then
8478 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
8479 cat > conftest.$ac_ext <<EOF
8480 #line 8481 "configure"
8481 #include "confdefs.h"
8482 extern char snmp_build_var_op();
8487 if { (eval echo configure:8488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8489 SNMP_LIBS="-L$try -lsnmp -lcrypto"
8491 echo "configure: failed program was:" >&5
8492 cat conftest.$ac_ext >&5
8497 if test "x$SNMP_LIBS" != "x"; then
8504 CFLAGS="$old_CFLAGS"
8505 if test "x$SNMP_LIBS" = "x"; then
8506 echo "$ac_t""no" 1>&6
8509 echo "$ac_t""yes" 1>&6
8510 cat >> confdefs.h <<\EOF
8514 cat >> confdefs.h <<\EOF
8515 #define HAVE_LIBSNMP 1
8523 gethostbyaddrrstyle=""
8524 echo $ac_n "checking gethostbyaddr_r() syntax""... $ac_c" 1>&6
8525 echo "configure:8526: checking gethostbyaddr_r() syntax" >&5
8528 cat >> confdefs.h <<\EOF
8529 #define GETHOSTBYADDRRSTYLE BSDSTYLE
8532 gethostbyaddrrstyle=BSD
8533 echo "configure: warning: FreeBSD overridden to BSD-style" 1>&2
8536 if test "x$gethostbyaddrrstyle" = "x"; then
8537 cat > conftest.$ac_ext <<EOF
8538 #line 8539 "configure"
8539 #include "confdefs.h"
8545 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
8548 if { (eval echo configure:8549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8551 cat >> confdefs.h <<\EOF
8552 #define GETHOSTBYADDRRSTYLE GNUSTYLE
8555 gethostbyaddrrstyle=GNU
8558 echo "configure: failed program was:" >&5
8559 cat conftest.$ac_ext >&5
8563 if test "x$gethostbyaddrrstyle" = "x"; then
8564 cat > conftest.$ac_ext <<EOF
8565 #line 8566 "configure"
8566 #include "confdefs.h"
8572 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
8575 if { (eval echo configure:8576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8578 cat >> confdefs.h <<\EOF
8579 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
8582 gethostbyaddrrstyle=SYSV
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8590 if test "x$gethostbyaddrrstyle" = "x"; then
8591 cat > conftest.$ac_ext <<EOF
8592 #line 8593 "configure"
8593 #include "confdefs.h"
8599 gethostbyaddr(NULL, 0, 0)
8602 if { (eval echo configure:8603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8605 cat >> confdefs.h <<\EOF
8606 #define GETHOSTBYADDRRSTYLE BSDSTYLE
8609 gethostbyaddrrstyle=BSD
8612 echo "configure: failed program was:" >&5
8613 cat conftest.$ac_ext >&5
8618 if test "x$gethostbyaddrrstyle" = "x"; then
8619 echo "$ac_t""none! It must not exist, here." 1>&6
8621 echo "$ac_t""${gethostbyaddrrstyle}-style" 1>&6
8624 if test "x$gethostbyaddrrstyle" = "xBSD"; then
8625 echo "configure: warning: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " 1>&2
8628 gethostbynamerstyle=""
8629 echo $ac_n "checking gethostbyname_r() syntax""... $ac_c" 1>&6
8630 echo "configure:8631: checking gethostbyname_r() syntax" >&5
8631 cat > conftest.$ac_ext <<EOF
8632 #line 8633 "configure"
8633 #include "confdefs.h"
8639 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
8642 if { (eval echo configure:8643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8645 cat >> confdefs.h <<\EOF
8646 #define GETHOSTBYNAMERSTYLE GNUSTYLE
8649 gethostbynamerstyle=GNU
8652 echo "configure: failed program was:" >&5
8653 cat conftest.$ac_ext >&5
8656 if test "x$gethostbynamerstyle" = "x"; then
8657 cat > conftest.$ac_ext <<EOF
8658 #line 8659 "configure"
8659 #include "confdefs.h"
8665 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
8668 if { (eval echo configure:8669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8671 cat >> confdefs.h <<\EOF
8672 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
8675 gethostbynamerstyle=SYSV
8678 echo "configure: failed program was:" >&5
8679 cat conftest.$ac_ext >&5
8683 if test "x$gethostbynamerstyle" = "x"; then
8684 cat > conftest.$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8695 if { (eval echo configure:8696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8698 cat >> confdefs.h <<\EOF
8699 #define GETHOSTBYNAMERSTYLE BSDSTYLE
8702 gethostbynamerstyle=BSD
8705 echo "configure: failed program was:" >&5
8706 cat conftest.$ac_ext >&5
8711 if test "x$gethostbynamerstyle" = "x"; then
8712 echo "$ac_t""none! It must not exist, here." 1>&6
8714 echo "$ac_t""${gethostbynamerstyle}-style" 1>&6
8717 if test "x$gethostbynamerstyle" = "xBSD"; then
8718 echo "configure: warning: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " 1>&2
8722 echo $ac_n "checking ctime_r() syntax""... $ac_c" 1>&6
8723 echo "configure:8724: checking ctime_r() syntax" >&5
8724 cat > conftest.$ac_ext <<EOF
8725 #line 8726 "configure"
8726 #include "confdefs.h"
8731 ctime_r(NULL, NULL, 0)
8734 if { (eval echo configure:8735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8737 cat >> confdefs.h <<\EOF
8738 #define CTIMERSTYLE SOLARISSTYLE
8741 ctimerstyle="SOLARIS"
8744 echo "configure: failed program was:" >&5
8745 cat conftest.$ac_ext >&5
8748 if test "x$ctimerstyle" = "x"; then
8749 cat > conftest.$ac_ext <<EOF
8750 #line 8751 "configure"
8751 #include "confdefs.h"
8759 if { (eval echo configure:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8762 cat >> confdefs.h <<\EOF
8763 #define CTIMERSTYLE POSIXSTYLE
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8775 if test "x$ctimerstyle" = "x"; then
8776 echo "$ac_t""none! It must not exist, here." 1>&6
8778 echo "$ac_t""${ctimerstyle}-style" 1>&6
8782 if test x"$rad_enable_largefiles" = xyes ; then
8783 echo $ac_n "checking for largefile linkage""... $ac_c" 1>&6
8784 echo "configure:8785: checking for largefile linkage" >&5
8787 echo "$ac_t""no" 1>&6
8788 { echo "configure: error: AIX before 4.2 does not support large files" 1>&2; exit 1; }
8791 echo "$ac_t""ok" 1>&6
8792 LFS_CFLAGS="-D_LARGE_FILES"
8797 echo "$ac_t""ok" 1>&6
8798 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8803 echo "$ac_t""no" 1>&6
8804 { echo "configure: error: Large files not supported on this platform" 1>&2; exit 1; }
8807 echo "$ac_t""maybe" 1>&6
8808 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8811 cat >> confdefs.h <<\EOF
8812 #define _GNU_SOURCE 1
8817 echo "$ac_t""ok" 1>&6
8818 # Extract the first word of "getconf", so it can be a program name with args.
8819 set dummy getconf; ac_word=$2
8820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8821 echo "configure:8822: checking for $ac_word" >&5
8822 if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then
8823 echo $ac_n "(cached) $ac_c" 1>&6
8827 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
8830 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a dos path.
8833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8835 for ac_dir in $ac_dummy; do
8836 test -z "$ac_dir" && ac_dir=.
8837 if test -f $ac_dir/$ac_word; then
8838 ac_cv_path_GETCONF="$ac_dir/$ac_word"
8846 GETCONF="$ac_cv_path_GETCONF"
8847 if test -n "$GETCONF"; then
8848 echo "$ac_t""$GETCONF" 1>&6
8850 echo "$ac_t""no" 1>&6
8853 if test -z "$GETCONF" ; then
8854 { echo "configure: error: getconf required to configure large file support" 1>&2; exit 1; }
8856 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
8857 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
8858 LFS_LIBS=`$GETCONF LFS_LIBS`
8861 echo "$ac_t""maybe" 1>&6
8862 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8877 echo "$ac_t""top_builddir=$top_builddir" 1>&6
8881 if test "x$INCLTDL" != "x";then
8882 INCLTDL='-I${top_builddir}/''libltdl'
8888 if test "x$EXPERIMENTAL" = "xyes"; then
8889 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
8890 mysubdirs=`echo $bar`
8892 for bar in `cat src/modules/stable`; do
8893 if test -f src/modules/$bar/configure; then
8894 mysubdirs="$mysubdirs src/modules/$bar"
8900 if test "x$EXPERIMENTAL" = "xyes"; then
8901 for foo in `ls -1 src/modules | grep rlm_`; do
8902 MODULES="$MODULES $foo"
8905 for foo in `cat src/modules/stable`; do
8906 MODULES="$MODULES $foo"
8910 subdirs="'libltdl' $mysubdirs"
8918 USE_SHARED_LIBS=$enable_shared
8920 USE_STATIC_LIBS=$enable_static
8929 cat > confcache <<\EOF
8930 # This file is a shell script that caches the results of configure
8931 # tests run on this system so they can be shared between configure
8932 # scripts and configure runs. It is not useful on other systems.
8933 # If it contains results you don't want to keep, you may remove or edit it.
8935 # By default, configure uses ./config.cache as the cache file,
8936 # creating it if it does not exist already. You can give configure
8937 # the --cache-file=FILE option to use a different cache file; that is
8938 # what configure does when it calls configure scripts in
8939 # subdirectories, so they share the cache.
8940 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8941 # config.status only pays attention to the cache file if you give it the
8942 # --recheck option to rerun configure.
8945 # The following way of writing the cache mishandles newlines in values,
8946 # but we know of no workaround that is simple, portable, and efficient.
8947 # So, don't put newlines in cache variables' values.
8948 # Ultrix sh set writes to stderr and can't be redirected directly,
8949 # and sets the high bit in the cache file unless we assign to the vars.
8951 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8953 # `set' does not quote correctly, so add quotes (double-quote substitution
8954 # turns \\\\ into \\, and sed turns \\ into \).
8956 -e "s/'/'\\\\''/g" \
8957 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8960 # `set' quotes correctly as required by POSIX, so do not add quotes.
8961 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8964 if cmp -s $cache_file confcache; then
8967 if test -w $cache_file; then
8968 echo "updating cache $cache_file"
8969 cat confcache > $cache_file
8971 echo "not updating unwritable cache $cache_file"
8976 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8978 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8979 # Let make expand exec_prefix.
8980 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8982 # Any assignment to VPATH causes Sun make to only execute
8983 # the first set of double-colon rules, so remove it if not needed.
8984 # If there is a colon in the path, we need to keep it.
8985 if test "x$srcdir" = x.; then
8986 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8989 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8991 DEFS=-DHAVE_CONFIG_H
8993 # Without the "./", some shells look in PATH for config.status.
8994 : ${CONFIG_STATUS=./config.status}
8996 echo creating $CONFIG_STATUS
8997 rm -f $CONFIG_STATUS
8998 cat > $CONFIG_STATUS <<EOF
9000 # Generated automatically by configure.
9001 # Run this file to recreate the current configuration.
9002 # This directory was configured as follows,
9003 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9005 # $0 $ac_configure_args
9007 # Compiler output produced by configure, useful for debugging
9008 # configure, is in ./config.log if it exists.
9010 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9013 case "\$ac_option" in
9014 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9015 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9016 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9017 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9018 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9020 -help | --help | --hel | --he | --h)
9021 echo "\$ac_cs_usage"; exit 0 ;;
9022 *) echo "\$ac_cs_usage"; exit 1 ;;
9026 ac_given_srcdir=$srcdir
9028 trap 'rm -fr `echo "\
9030 ./src/include/build-radpaths-h \
9031 ./src/main/Makefile \
9032 ./src/main/checkrad.pl \
9033 ./src/main/radlast \
9034 ./src/main/radtest \
9035 ./scripts/rc.radiusd \
9036 ./scripts/radwatch \
9037 ./scripts/check-radiusd-config \
9038 ./scripts/radiusd.cron.daily \
9039 ./scripts/radiusd.cron.monthly \
9040 ./scripts/cryptpasswd \
9041 ./raddb/dictionary \
9042 ./raddb/radiusd.conf
9043 src/include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9045 cat >> $CONFIG_STATUS <<EOF
9047 # Protect against being on the right side of a sed subst in config.status.
9048 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9049 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9053 s%@CFLAGS@%$CFLAGS%g
9054 s%@CPPFLAGS@%$CPPFLAGS%g
9055 s%@CXXFLAGS@%$CXXFLAGS%g
9056 s%@FFLAGS@%$FFLAGS%g
9058 s%@LDFLAGS@%$LDFLAGS%g
9060 s%@exec_prefix@%$exec_prefix%g
9061 s%@prefix@%$prefix%g
9062 s%@program_transform_name@%$program_transform_name%g
9063 s%@bindir@%$bindir%g
9064 s%@sbindir@%$sbindir%g
9065 s%@libexecdir@%$libexecdir%g
9066 s%@datadir@%$datadir%g
9067 s%@sysconfdir@%$sysconfdir%g
9068 s%@sharedstatedir@%$sharedstatedir%g
9069 s%@localstatedir@%$localstatedir%g
9070 s%@libdir@%$libdir%g
9071 s%@includedir@%$includedir%g
9072 s%@oldincludedir@%$oldincludedir%g
9073 s%@infodir@%$infodir%g
9074 s%@mandir@%$mandir%g
9077 s%@RANLIB@%$RANLIB%g
9078 s%@abs_top_builddir@%$abs_top_builddir%g
9081 s%@subdirs@%$subdirs%g
9082 s%@LIBLTDLPATH@%$LIBLTDLPATH%g
9083 s%@LIBTOOL@%$LIBTOOL%g
9085 s%@host_alias@%$host_alias%g
9086 s%@host_cpu@%$host_cpu%g
9087 s%@host_vendor@%$host_vendor%g
9088 s%@host_os@%$host_os%g
9090 s%@build_alias@%$build_alias%g
9091 s%@build_cpu@%$build_cpu%g
9092 s%@build_vendor@%$build_vendor%g
9093 s%@build_os@%$build_os%g
9095 s%@OBJEXT@%$OBJEXT%g
9096 s%@EXEEXT@%$EXEEXT%g
9099 s%@logdir@%$logdir%g
9100 s%@radacctdir@%$radacctdir%g
9101 s%@raddbdir@%$raddbdir%g
9102 s%@OPENSSL_INCLUDE@%$OPENSSL_INCLUDE%g
9103 s%@OPENSSL_LIBS@%$OPENSSL_LIBS%g
9105 s%@SNMPGET@%$SNMPGET%g
9106 s%@SNMPWALK@%$SNMPWALK%g
9107 s%@RUSERS@%$RUSERS%g
9108 s%@ACLOCAL@%$ACLOCAL%g
9109 s%@AUTOCONF@%$AUTOCONF%g
9110 s%@AUTOHEADER@%$AUTOHEADER%g
9111 s%@LOCATE@%$LOCATE%g
9112 s%@DIRNAME@%$DIRNAME%g
9115 s%@REGEX_EXTENDED@%$REGEX_EXTENDED%g
9116 s%@LIBPREFIX@%$LIBPREFIX%g
9117 s%@CRYPTLIB@%$CRYPTLIB%g
9118 s%@SNMP_LIBS@%$SNMP_LIBS%g
9119 s%@SNMP_INCLUDE@%$SNMP_INCLUDE%g
9120 s%@GETCONF@%$GETCONF%g
9121 s%@LFS_CFLAGS@%$LFS_CFLAGS%g
9122 s%@LFS_LDFLAGS@%$LFS_LDFLAGS%g
9123 s%@LFS_LIBS@%$LFS_LIBS%g
9124 s%@HOSTINFO@%$HOSTINFO%g
9125 s%@LIBLTDL@%$LIBLTDL%g
9126 s%@INCLTDL@%$INCLTDL%g
9127 s%@MODULES@%$MODULES%g
9128 s%@INSTALLSTRIP@%$INSTALLSTRIP%g
9129 s%@USE_SHARED_LIBS@%$USE_SHARED_LIBS%g
9130 s%@USE_STATIC_LIBS@%$USE_STATIC_LIBS%g
9131 s%@STATIC_MODULES@%$STATIC_MODULES%g
9132 s%@RADIUSD_MAJOR_VERSION@%$RADIUSD_MAJOR_VERSION%g
9133 s%@RADIUSD_MINOR_VERSION@%$RADIUSD_MINOR_VERSION%g
9134 s%@RADIUSD_VERSION@%$RADIUSD_VERSION%g
9139 cat >> $CONFIG_STATUS <<\EOF
9141 # Split the substitutions into bite-sized pieces for seds with
9142 # small command number limits, like on Digital OSF/1 and HP-UX.
9143 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9144 ac_file=1 # Number of current file.
9145 ac_beg=1 # First line for current file.
9146 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9149 while $ac_more_lines; do
9150 if test $ac_beg -gt 1; then
9151 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9153 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9155 if test ! -s conftest.s$ac_file; then
9157 rm -f conftest.s$ac_file
9159 if test -z "$ac_sed_cmds"; then
9160 ac_sed_cmds="sed -f conftest.s$ac_file"
9162 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9164 ac_file=`expr $ac_file + 1`
9166 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9169 if test -z "$ac_sed_cmds"; then
9174 cat >> $CONFIG_STATUS <<EOF
9176 CONFIG_FILES=\${CONFIG_FILES-"\
9178 ./src/include/build-radpaths-h \
9179 ./src/main/Makefile \
9180 ./src/main/checkrad.pl \
9181 ./src/main/radlast \
9182 ./src/main/radtest \
9183 ./scripts/rc.radiusd \
9184 ./scripts/radwatch \
9185 ./scripts/check-radiusd-config \
9186 ./scripts/radiusd.cron.daily \
9187 ./scripts/radiusd.cron.monthly \
9188 ./scripts/cryptpasswd \
9189 ./raddb/dictionary \
9190 ./raddb/radiusd.conf
9193 cat >> $CONFIG_STATUS <<\EOF
9194 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9195 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9197 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9198 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9199 *) ac_file_in="${ac_file}.in" ;;
9202 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9204 # Remove last slash and all that follows it. Not all systems have dirname.
9205 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9206 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9207 # The file is in a subdirectory.
9208 test ! -d "$ac_dir" && mkdir "$ac_dir"
9209 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9210 # A "../" for each directory in $ac_dir_suffix.
9211 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9213 ac_dir_suffix= ac_dots=
9216 case "$ac_given_srcdir" in
9218 if test -z "$ac_dots"; then top_srcdir=.
9219 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9220 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9222 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9223 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9227 echo creating "$ac_file"
9229 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9231 *Makefile*) ac_comsub="1i\\
9232 # $configure_input" ;;
9236 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9238 s%@configure_input@%$configure_input%g
9239 s%@srcdir@%$srcdir%g
9240 s%@top_srcdir@%$top_srcdir%g
9241 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9245 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9246 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9248 # ac_d sets the value in "#define NAME VALUE" lines.
9249 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9250 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9253 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9254 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9255 ac_uB='\([ ]\)%\1#\2define\3'
9258 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9259 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9260 ac_eB='$%\1#\2define\3'
9264 if test "${CONFIG_HEADERS+set}" != set; then
9266 cat >> $CONFIG_STATUS <<EOF
9267 CONFIG_HEADERS="src/include/autoconf.h"
9269 cat >> $CONFIG_STATUS <<\EOF
9271 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9272 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9274 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9275 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9276 *) ac_file_in="${ac_file}.in" ;;
9279 echo creating $ac_file
9281 rm -f conftest.frag conftest.in conftest.out
9282 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9283 cat $ac_file_inputs > conftest.in
9287 # Transform confdefs.h into a sed script conftest.vals that substitutes
9288 # the proper values into config.h.in to produce config.h. And first:
9289 # Protect against being on the right side of a sed subst in config.status.
9290 # Protect against being in an unquoted here document in config.status.
9292 cat > conftest.hdr <<\EOF
9295 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9299 sed -n -f conftest.hdr confdefs.h > conftest.vals
9302 # This sed command replaces #undef with comments. This is necessary, for
9303 # example, in the case of _POSIX_SOURCE, which is predefined and required
9304 # on some systems where configure will not decide to define it.
9305 cat >> conftest.vals <<\EOF
9306 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9309 # Break up conftest.vals because some shells have a limit on
9310 # the size of here documents, and old seds have small limits too.
9315 ac_lines=`grep -c . conftest.vals`
9316 # grep -c gives empty output for an empty file on some AIX systems.
9317 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9318 # Write a limited-size here document to conftest.frag.
9319 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9320 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9322 sed -f conftest.frag conftest.in > conftest.out
9324 mv conftest.out conftest.in
9326 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9328 mv conftest.tail conftest.vals
9332 cat >> $CONFIG_STATUS <<\EOF
9333 rm -f conftest.frag conftest.h
9334 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9335 cat conftest.in >> conftest.h
9337 if cmp -s $ac_file conftest.h 2>/dev/null; then
9338 echo "$ac_file is unchanged"
9341 # Remove last slash and all that follows it. Not all systems have dirname.
9342 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9343 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9344 # The file is in a subdirectory.
9345 test ! -d "$ac_dir" && mkdir "$ac_dir"
9348 mv conftest.h $ac_file
9353 cat >> $CONFIG_STATUS <<EOF
9356 cat >> $CONFIG_STATUS <<\EOF
9360 chmod +x $CONFIG_STATUS
9361 rm -fr confdefs* $ac_clean_files
9362 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9364 if test "$no_recursion" != yes; then
9366 # Remove --cache-file and --srcdir arguments so they do not pile up.
9367 ac_sub_configure_args=
9369 for ac_arg in $ac_configure_args; do
9370 if test -n "$ac_prev"; then
9375 -cache-file | --cache-file | --cache-fil | --cache-fi \
9376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9377 ac_prev=cache_file ;;
9378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9385 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9389 for ac_config_dir in 'libltdl' $mysubdirs; do
9391 # Do not complain, so a configure script can configure whichever
9392 # parts of a large source tree are present.
9393 if test ! -d $srcdir/$ac_config_dir; then
9397 echo configuring in $ac_config_dir
9402 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9404 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9412 # A "../" for each directory in /$ac_config_dir.
9413 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9416 .) # No --srcdir option. We are building in place.
9417 ac_sub_srcdir=$srcdir ;;
9418 /*) # Absolute path.
9419 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9421 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9424 # Check for guested configure; otherwise get Cygnus style configure.
9425 if test -f $ac_sub_srcdir/configure; then
9426 ac_sub_configure=$ac_sub_srcdir/configure
9427 elif test -f $ac_sub_srcdir/configure.in; then
9428 ac_sub_configure=$ac_configure
9430 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9434 # The recursion is here.
9435 if test -n "$ac_sub_configure"; then
9437 # Make the cache file name correct relative to the subdirectory.
9438 case "$cache_file" in
9439 /*) ac_sub_cache_file=$cache_file ;;
9441 ac_sub_cache_file="$ac_dots$cache_file" ;;
9444 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9445 # The eval makes quoting arguments work.
9446 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9449 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
9462 echo timestamp > src/include/stamp-h
9463 (cd ./src/include && /bin/sh ./build-radpaths-h)
9464 (cd ./src/main && chmod +x checkrad.pl radlast radtest)
9465 (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd)