3 # from OpenLDAP: pkg/ldap/configure.in,v 1.408.2.4 2002/04/15 16:06:32 kurt Exp
5 # Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved."
14 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-kbind enable LDAPv2+ Kerberos IV bind (deprecated) [no]"
43 --enable-ipv6 enable IPv6 support [auto]"
45 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
47 --enable-rewrite enable rewrite [no]"
49 --enable-x-compile enable cross compiling [no]"
51 --with-cyrus-sasl with Cyrus SASL support [auto]"
53 --with-fetch with fetch URL support [auto]"
55 --with-kerberos with Kerberos support [auto]"
57 --with-readline with readline support [auto]"
59 --with-threads with threads [auto]"
61 --with-tls with TLS/SSL support [auto]"
63 --with-yielding-select with implicitly yielding select [auto]"
66 SLAPD (Standalone LDAP Daemon) Options:"
68 --enable-slapd enable building slapd [yes]"
70 --enable-aci enable per-object ACIs (experimental) [no]"
72 --enable-cleartext enable cleartext passwords [yes]"
74 --enable-crypt enable crypt(3) passwords [no]"
76 --enable-dynamic enable linking built binaries with dynamic libs [no]"
78 --enable-kpasswd enable Kerberos password verification [no]"
80 --enable-lmpasswd enable LAN Manager passwords [no]"
82 --enable-spasswd enable (Cyrus) SASL password verification [no]"
84 --enable-modules enable dynamic module support [no]"
86 --enable-phonetic enable phonetic/soundex [no]"
88 --enable-rlookups enable reverse lookups [no]"
90 --enable-slp enable SLPv2 support [no]"
92 --enable-wrappers enable tcp wrapper support [no]"
94 --enable-bdb enable Berkeley DB backend [yes]"
96 --with-bdb-module module type [static]"
98 --enable-dnssrv enable dnssrv backend [no]"
100 --with-dnssrv-module module type [static]"
102 --enable-ldap enable ldap backend [no]"
104 --with-ldap-module module type [static]"
106 --enable-ldbm enable ldbm backend [no]"
108 --with-ldbm-api with LDBM API [auto]"
110 --with-ldbm-module module type [static]"
112 --with-ldbm-type use LDBM type [auto]"
114 --enable-meta enable metadirectory backend [no]"
116 --with-meta-module module type [static]"
118 --enable-monitor enable monitor backend [no]"
120 --with-monitor-module module type [static]"
122 --enable-null enable null backend [no]"
124 --with-null-module module type [static]"
126 --enable-passwd enable passwd backend [no]"
128 --with-passwd-module module type [static]"
130 --enable-perl enable perl backend [no]"
132 --with-perl-module module type [static]"
134 --enable-shell enable shell backend [no]"
136 --with-shell-module module type [static]"
138 --enable-sql enable sql backend [no]"
140 --with-sql-module module type [static]"
143 SLURPD (Replication Daemon) Options:"
145 --enable-slurpd enable building slurpd [auto]"
148 Library Generation & Linking Options"
150 --enable-static[=PKGS] build static libraries [default=yes]"
152 --enable-shared[=PKGS] build shared libraries [default=yes]"
154 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
156 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
158 # Find the correct PATH separator. Usually this is `:', but
159 # DJGPP uses `;' like DOS.
160 if test "X${PATH_SEPARATOR+set}" != Xset; then
161 UNAME=${UNAME-`uname 2>/dev/null`}
163 *-DOS) lt_cv_sys_path_separator=';' ;;
164 *) lt_cv_sys_path_separator=':' ;;
166 PATH_SEPARATOR=$lt_cv_sys_path_separator
170 # Check that we are running under the correct shell.
171 SHELL=${CONFIG_SHELL-/bin/sh}
175 # Remove one level of quotation (which was required for Make).
176 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
181 if test "X$1" = X--no-reexec; then
182 # Discard the --no-reexec flag, and continue.
184 elif test "X$1" = X--fallback-echo; then
185 # Avoid inline document here, it may be left over
187 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
188 # Yippee, $echo works!
191 # Restart under the correct shell.
192 exec $SHELL "$0" --no-reexec ${1+"$@"}
195 if test "X$1" = X--fallback-echo; then
196 # used as fallback echo
204 # The HP-UX ksh and POSIX shell print the target directory to stdout
206 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
208 if test -z "$ECHO"; then
209 if test "X${echo_test_string+set}" != Xset; then
210 # find a string as large as possible, as long as the shell can cope with it
211 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
212 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
213 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
214 echo_test_string="`eval $cmd`" &&
215 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
222 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
223 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
224 test "X$echo_testing_string" = "X$echo_test_string"; then
227 # The Solaris, AIX, and Digital Unix default echo programs unquote
228 # backslashes. This makes it impossible to quote backslashes using
229 # echo "$something" | sed 's/\\/\\\\/g'
231 # So, first we look for a working echo in the user's PATH.
233 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
234 for dir in $PATH /usr/ucb; do
235 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
236 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
237 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
238 test "X$echo_testing_string" = "X$echo_test_string"; then
245 if test "X$echo" = Xecho; then
246 # We didn't find a better echo, so look for alternatives.
247 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
248 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
249 test "X$echo_testing_string" = "X$echo_test_string"; then
250 # This shell has a builtin print -r that does the trick.
252 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
253 test "X$CONFIG_SHELL" != X/bin/ksh; then
254 # If we have ksh, try running configure again with it.
255 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
256 export ORIGINAL_CONFIG_SHELL
257 CONFIG_SHELL=/bin/ksh
259 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
263 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
264 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
265 test "X$echo_testing_string" = "X$echo_test_string"; then
268 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
269 test "X$echo_testing_string" = 'X\t' &&
270 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
271 test "X$echo_testing_string" = "X$echo_test_string"; then
272 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
274 SHELL="$CONFIG_SHELL"
276 echo="$CONFIG_SHELL $0 --fallback-echo"
277 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
278 test "X$echo_testing_string" = 'X\t' &&
279 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
280 test "X$echo_testing_string" = "X$echo_test_string"; then
281 echo="$CONFIG_SHELL $0 --fallback-echo"
283 # maybe with a smaller string...
286 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
287 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
294 if test "$prev" != 'sed 50q "$0"'; then
295 echo_test_string=`eval $prev`
296 export echo_test_string
297 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
299 # Oops. We lost completely, so just stick with echo.
308 # Copy echo and quote the copy suitably for passing to libtool from
309 # the Makefile, instead of quoting the original, which is used later.
311 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
312 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
317 --disable-libtool-lock avoid locking (might break parallel builds)"
319 --with-pic try to use only PIC/non-PIC objects [default=use both]"
322 See INSTALL file for further details."
324 # Initialize some variables set by options.
325 # The variables have the same names as the options, with
326 # dashes changed to underlines.
328 cache_file=./config.cache
337 program_transform_name=s,x,x,
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
358 # Initialize some other variables.
361 SHELL=${CONFIG_SHELL-/bin/sh}
362 # Maximum number of lines to put in a shell here document.
369 # If the previous option needs an argument, assign it.
370 if test -n "$ac_prev"; then
371 eval "$ac_prev=\$ac_option"
377 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
381 # Accept the important Cygnus configure options, so we can diagnose typos.
385 -bindir | --bindir | --bindi | --bind | --bin | --bi)
387 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
388 bindir="$ac_optarg" ;;
390 -build | --build | --buil | --bui | --bu)
392 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
393 build="$ac_optarg" ;;
395 -cache-file | --cache-file | --cache-fil | --cache-fi \
396 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
397 ac_prev=cache_file ;;
398 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
399 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
400 cache_file="$ac_optarg" ;;
402 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
404 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
406 datadir="$ac_optarg" ;;
408 -disable-* | --disable-*)
409 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
412 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
414 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
415 eval "enable_${ac_feature}=no" ;;
417 -enable-* | --enable-*)
418 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
421 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
423 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
428 eval "enable_${ac_feature}='$ac_optarg'" ;;
430 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
431 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
432 | --exec | --exe | --ex)
433 ac_prev=exec_prefix ;;
434 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
435 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
436 | --exec=* | --exe=* | --ex=*)
437 exec_prefix="$ac_optarg" ;;
439 -gas | --gas | --ga | --g)
440 # Obsolete; use --with-gas.
443 -help | --help | --hel | --he)
444 # Omit some internal or obsolete options to make the list less imposing.
445 # This message is too long to be a string in the A/UX 3.1 sh.
447 Usage: configure [options] [host]
448 Options: [defaults in brackets after descriptions]
450 --cache-file=FILE cache test results in FILE
451 --help print this message
452 --no-create do not create output files
453 --quiet, --silent do not print \`checking...' messages
454 --version print the version of autoconf that created configure
455 Directory and file names:
456 --prefix=PREFIX install architecture-independent files in PREFIX
458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
460 --bindir=DIR user executables in DIR [EPREFIX/bin]
461 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
462 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
463 --datadir=DIR read-only architecture-independent data in DIR
465 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
466 --sharedstatedir=DIR modifiable architecture-independent data in DIR
468 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
469 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
470 --includedir=DIR C header files in DIR [PREFIX/include]
471 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
472 --infodir=DIR info documentation in DIR [PREFIX/info]
473 --mandir=DIR man documentation in DIR [PREFIX/man]
474 --srcdir=DIR find the sources in DIR [configure dir or ..]
475 --program-prefix=PREFIX prepend PREFIX to installed program names
476 --program-suffix=SUFFIX append SUFFIX to installed program names
477 --program-transform-name=PROGRAM
478 run sed PROGRAM on installed program names
482 --build=BUILD configure for building on BUILD [BUILD=HOST]
483 --host=HOST configure for HOST [guessed]
484 --target=TARGET configure for TARGET [TARGET=HOST]
485 Features and packages:
486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
490 --x-includes=DIR X include files are in DIR
491 --x-libraries=DIR X library files are in DIR
493 if test -n "$ac_help"; then
494 echo "--enable and --with options recognized:$ac_help"
498 -host | --host | --hos | --ho)
500 -host=* | --host=* | --hos=* | --ho=*)
503 -includedir | --includedir | --includedi | --included | --include \
504 | --includ | --inclu | --incl | --inc)
505 ac_prev=includedir ;;
506 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
507 | --includ=* | --inclu=* | --incl=* | --inc=*)
508 includedir="$ac_optarg" ;;
510 -infodir | --infodir | --infodi | --infod | --info | --inf)
512 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
513 infodir="$ac_optarg" ;;
515 -libdir | --libdir | --libdi | --libd)
517 -libdir=* | --libdir=* | --libdi=* | --libd=*)
518 libdir="$ac_optarg" ;;
520 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
521 | --libexe | --libex | --libe)
522 ac_prev=libexecdir ;;
523 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
524 | --libexe=* | --libex=* | --libe=*)
525 libexecdir="$ac_optarg" ;;
527 -localstatedir | --localstatedir | --localstatedi | --localstated \
528 | --localstate | --localstat | --localsta | --localst \
529 | --locals | --local | --loca | --loc | --lo)
530 ac_prev=localstatedir ;;
531 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
532 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
533 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
534 localstatedir="$ac_optarg" ;;
536 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
538 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
539 mandir="$ac_optarg" ;;
542 # Obsolete; use --without-fp.
545 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
549 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
550 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
553 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
554 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
555 | --oldin | --oldi | --old | --ol | --o)
556 ac_prev=oldincludedir ;;
557 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
558 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
559 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
560 oldincludedir="$ac_optarg" ;;
562 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
564 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
565 prefix="$ac_optarg" ;;
567 -program-prefix | --program-prefix | --program-prefi | --program-pref \
568 | --program-pre | --program-pr | --program-p)
569 ac_prev=program_prefix ;;
570 -program-prefix=* | --program-prefix=* | --program-prefi=* \
571 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
572 program_prefix="$ac_optarg" ;;
574 -program-suffix | --program-suffix | --program-suffi | --program-suff \
575 | --program-suf | --program-su | --program-s)
576 ac_prev=program_suffix ;;
577 -program-suffix=* | --program-suffix=* | --program-suffi=* \
578 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
579 program_suffix="$ac_optarg" ;;
581 -program-transform-name | --program-transform-name \
582 | --program-transform-nam | --program-transform-na \
583 | --program-transform-n | --program-transform- \
584 | --program-transform | --program-transfor \
585 | --program-transfo | --program-transf \
586 | --program-trans | --program-tran \
587 | --progr-tra | --program-tr | --program-t)
588 ac_prev=program_transform_name ;;
589 -program-transform-name=* | --program-transform-name=* \
590 | --program-transform-nam=* | --program-transform-na=* \
591 | --program-transform-n=* | --program-transform-=* \
592 | --program-transform=* | --program-transfor=* \
593 | --program-transfo=* | --program-transf=* \
594 | --program-trans=* | --program-tran=* \
595 | --progr-tra=* | --program-tr=* | --program-t=*)
596 program_transform_name="$ac_optarg" ;;
598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
599 | -silent | --silent | --silen | --sile | --sil)
602 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
604 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
606 sbindir="$ac_optarg" ;;
608 -sharedstatedir | --sharedstatedir | --sharedstatedi \
609 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
610 | --sharedst | --shareds | --shared | --share | --shar \
612 ac_prev=sharedstatedir ;;
613 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
614 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
615 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
617 sharedstatedir="$ac_optarg" ;;
619 -site | --site | --sit)
621 -site=* | --site=* | --sit=*)
624 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
626 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
627 srcdir="$ac_optarg" ;;
629 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
630 | --syscon | --sysco | --sysc | --sys | --sy)
631 ac_prev=sysconfdir ;;
632 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
633 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
634 sysconfdir="$ac_optarg" ;;
636 -target | --target | --targe | --targ | --tar | --ta | --t)
638 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
639 target="$ac_optarg" ;;
641 -v | -verbose | --verbose | --verbos | --verbo | --verb)
644 -version | --version | --versio | --versi | --vers)
645 echo "configure generated by autoconf version 2.13.1"
649 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
650 # Reject names that are not valid shell variable names.
651 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
652 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
654 ac_package=`echo $ac_package| sed 's/-/_/g'`
659 eval "with_${ac_package}='$ac_optarg'" ;;
661 -without-* | --without-*)
662 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
663 # Reject names that are not valid shell variable names.
664 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
665 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
667 ac_package=`echo $ac_package| sed 's/-/_/g'`
668 eval "with_${ac_package}=no" ;;
671 # Obsolete; use --with-x.
674 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
675 | --x-incl | --x-inc | --x-in | --x-i)
676 ac_prev=x_includes ;;
677 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
678 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
679 x_includes="$ac_optarg" ;;
681 -x-libraries | --x-libraries | --x-librarie | --x-librari \
682 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
683 ac_prev=x_libraries ;;
684 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
685 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
686 x_libraries="$ac_optarg" ;;
688 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
692 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
693 echo "configure: warning: $ac_option: invalid host type" 1>&2
695 if test "x$nonopt" != xNONE; then
696 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
704 if test -n "$ac_prev"; then
705 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
708 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
710 # File descriptor usage:
713 # 2 errors and warnings
714 # 3 some systems may open it to /dev/tty
715 # 4 used on the Kubota Titan
716 # 6 checking for... messages and results
717 # 5 compiler messages saved in config.log
718 if test "$silent" = yes; then
726 This file contains any messages produced by compilers while
727 running configure, to aid debugging if configure makes a mistake.
730 # Strip out --no-create and --no-recursion so they do not pile up.
731 # Also quote any args containing shell metacharacters.
736 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
737 | --no-cr | --no-c) ;;
738 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
739 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
740 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
741 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
742 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
747 # Only set these to C if already set. These must not be set unconditionally
748 # because not all systems understand e.g. LANG=C (notably SCO).
749 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
750 # Non-C LC_CTYPE values break the ctype check.
751 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
752 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
753 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
754 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
756 # confdefs.h avoids OS command line length limits that DEFS can exceed.
757 rm -rf conftest* confdefs.h
758 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
761 # A filename unique to this package, relative to the directory that
762 # configure is in, which we can look for to find out if srcdir is correct.
763 ac_unique_file=build/version.sh
765 # Find the source files, if location was not specified.
766 if test -z "$srcdir"; then
767 ac_srcdir_defaulted=yes
768 # Try the directory containing this script, then its parent.
770 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
771 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
773 if test ! -r $srcdir/$ac_unique_file; then
777 ac_srcdir_defaulted=no
779 if test ! -r $srcdir/$ac_unique_file; then
780 if test "$ac_srcdir_defaulted" = yes; then
781 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
783 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
786 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
788 # Prefer explicitly selected file to automatically selected ones.
789 if test -z "$CONFIG_SITE"; then
790 if test "x$prefix" != xNONE; then
791 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
793 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
796 for ac_site_file in $CONFIG_SITE; do
797 if test -r "$ac_site_file"; then
798 echo "loading site script $ac_site_file"
805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
806 ac_cpp='$CPP $CPPFLAGS'
807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
809 cross_compiling=$ac_cv_prog_cc_cross
813 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
814 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
815 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
822 ac_n= ac_c='\c' ac_t=
826 # set unset (borrowed from autoconf 2.49c)
827 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
833 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
836 for ac_dir in build $srcdir/build; do
837 if test -f $ac_dir/install-sh; then
839 ac_install_sh="$ac_aux_dir/install-sh -c"
841 elif test -f $ac_dir/install.sh; then
843 ac_install_sh="$ac_aux_dir/install.sh -c"
845 elif test -f $ac_dir/shtool; then
847 ac_install_sh="$ac_aux_dir/shtool install -c"
851 if test -z "$ac_aux_dir"; then
852 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
854 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
855 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
856 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
858 eval `$ac_aux_dir/version.sh`
859 if test -z "$OL_STRING"; then
860 { echo "configure: error: could not determine version" 1>&2; exit 1; }
863 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
864 ac_cv_shtool="$ac_aux_dir/shtool"
866 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
869 SHTOOL="$ac_cv_shtool"
871 TB=`$SHTOOL echo -e %B`
872 TN=`$SHTOOL echo -e %b`
874 echo "Configuring $TB$OL_STRING$TN ..."
877 echo $ac_n "checking host system type""... $ac_c" 1>&6
878 echo "configure:879: checking host system type" >&5
879 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
881 # Make sure we can run config.sub.
882 if $ac_config_sub sun4 >/dev/null 2>&1; then :
883 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
886 ac_cv_host_alias=$host
887 case "$ac_cv_host_alias" in
891 if ac_cv_host_alias=`$ac_config_guess`; then :
892 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
894 *) ac_cv_host_alias=$nonopt ;;
898 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
899 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
900 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
901 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
903 echo $ac_n "(cached) $ac_c" 1>&6
906 echo "$ac_t""$ac_cv_host" 1>&6
909 host_alias=$ac_cv_host_alias
910 host_cpu=$ac_cv_host_cpu
911 host_vendor=$ac_cv_host_vendor
912 host_os=$ac_cv_host_os
918 echo $ac_n "checking target system type""... $ac_c" 1>&6
919 echo "configure:920: checking target system type" >&5
920 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
922 # Make sure we can run config.sub.
923 if $ac_config_sub sun4 >/dev/null 2>&1; then :
924 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
927 ac_cv_target_alias=$target
928 case "$ac_cv_target_alias" in
932 ac_cv_target_alias=$host_alias ;;
934 *) ac_cv_target_alias=$nonopt ;;
938 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
939 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
940 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
941 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
943 echo $ac_n "(cached) $ac_c" 1>&6
946 echo "$ac_t""$ac_cv_target" 1>&6
949 target_alias=$ac_cv_target_alias
950 target_cpu=$ac_cv_target_cpu
951 target_vendor=$ac_cv_target_vendor
952 target_os=$ac_cv_target_os
958 echo $ac_n "checking build system type""... $ac_c" 1>&6
959 echo "configure:960: checking build system type" >&5
960 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
962 # Make sure we can run config.sub.
963 if $ac_config_sub sun4 >/dev/null 2>&1; then :
964 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
967 ac_cv_build_alias=$build
968 case "$ac_cv_build_alias" in
972 ac_cv_build_alias=$host_alias ;;
974 *) ac_cv_build_alias=$nonopt ;;
978 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
979 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
980 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
981 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
983 echo $ac_n "(cached) $ac_c" 1>&6
986 echo "$ac_t""$ac_cv_build" 1>&6
989 build_alias=$ac_cv_build_alias
990 build_cpu=$ac_cv_build_cpu
991 build_vendor=$ac_cv_build_vendor
992 build_os=$ac_cv_build_os
998 # Do some error checking and defaulting for the host and target type.
1000 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1003 # 1. You are not allowed to specify --host, --target, and nonopt at the
1005 # 2. Host defaults to nonopt.
1006 # 3. If nonopt is not specified, then host defaults to the current host,
1007 # as determined by config.guess.
1008 # 4. Target and build default to nonopt.
1009 # 5. If nonopt is not specified, then target and build default to host.
1011 # The aliases save the names the user supplied, while $host etc.
1012 # will get canonicalized.
1013 case $host---$target---$nonopt in
1014 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1015 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1018 test "$host_alias" != "$target_alias" &&
1019 test "$program_prefix$program_suffix$program_transform_name" = \
1021 program_prefix=${target_alias}-
1024 # Find a good install program. We prefer a C program (faster),
1025 # so one script is as good as another. But avoid the broken or
1026 # incompatible versions:
1027 # SysV /etc/install, /usr/sbin/install
1028 # SunOS /usr/etc/install
1029 # IRIX /sbin/install
1031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1034 # ./install, which can be erroneously created by make from ./install.sh.
1035 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1036 echo "configure:1037: checking for a BSD compatible install" >&5
1037 if test -z "$INSTALL"; then
1038 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1042 for ac_dir in $PATH; do
1043 # Account for people who put trailing slashes in PATH elements.
1045 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1047 # OSF1 and SCO ODT 3.0 have their own names for install.
1048 # Don't use installbsd from OSF since it installs stuff as root
1050 for ac_prog in ginstall scoinst install; do
1051 if test -f $ac_dir/$ac_prog; then
1052 if test $ac_prog = install &&
1053 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1054 # AIX install. It has an incompatible calling convention.
1056 elif test $ac_prog = install &&
1057 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1058 # program-specific install script used by HP pwplus--don't use.
1061 ac_cv_path_install="$ac_dir/$ac_prog -c"
1072 if test "${ac_cv_path_install+set}" = set; then
1073 INSTALL="$ac_cv_path_install"
1075 # As a last resort, use the slow shell script. We don't cache a
1076 # path for INSTALL within a source directory, because that will
1077 # break other packages using the cache if that directory is
1078 # removed, or if the path is relative.
1079 INSTALL="$ac_install_sh"
1082 echo "$ac_t""$INSTALL" 1>&6
1084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1085 # It thinks the first close brace ends the variable substitution.
1086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1092 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether build environment is sane" >&5
1096 echo timestamp > conftestfile
1097 # Do `set' in a subshell so we don't clobber the current shell's
1098 # arguments. Must try -L first in case configure is actually a
1099 # symlink; some systems play weird games with the mod time of symlinks
1100 # (eg FreeBSD returns the mod time of the symlink's containing
1103 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1104 if test "$*" = "X"; then
1106 set X `ls -t $srcdir/configure conftestfile`
1108 if test "$*" != "X $srcdir/configure conftestfile" \
1109 && test "$*" != "X conftestfile $srcdir/configure"; then
1111 # If neither matched, then we have a broken ls. This can happen
1112 # if, for instance, CONFIG_SHELL is bash and it inherits a
1113 # broken ls alias from the environment. This has actually
1114 # happened. Such a system could not be considered "sane".
1115 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1116 alias in your environment" 1>&2; exit 1; }
1119 test "$2" = conftestfile
1125 { echo "configure: error: newly created file is older than distributed files!
1126 Check your system clock" 1>&2; exit 1; }
1129 echo "$ac_t""yes" 1>&6
1130 if test "$program_transform_name" = s,x,x,; then
1131 program_transform_name=
1133 # Double any \ or $. echo might interpret backslashes.
1134 cat <<\EOF_SED > conftestsed
1135 s,\\,\\\\,g; s,\$,$$,g
1137 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1140 test "$program_prefix" != NONE &&
1141 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1142 # Use a double $ so make ignores it.
1143 test "$program_suffix" != NONE &&
1144 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1146 # sed with no file args requires a program.
1147 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1149 for ac_prog in mawk gawk nawk awk
1151 # Extract the first word of "$ac_prog", so it can be a program name with args.
1152 set dummy $ac_prog; ac_word=$2
1153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1154 echo "configure:1155: checking for $ac_word" >&5
1155 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1158 if test -n "$AWK"; then
1159 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1163 for ac_dir in $ac_dummy; do
1164 test -z "$ac_dir" && ac_dir=.
1165 if test -f $ac_dir/$ac_word; then
1166 ac_cv_prog_AWK="$ac_prog"
1173 AWK="$ac_cv_prog_AWK"
1174 if test -n "$AWK"; then
1175 echo "$ac_t""$AWK" 1>&6
1177 echo "$ac_t""no" 1>&6
1180 test -n "$AWK" && break
1183 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether ${MAKE-make} sets \${MAKE}" >&5
1185 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1186 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 cat > conftestmake <<\EOF
1191 @echo 'ac_maketemp="${MAKE}"'
1193 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1194 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1195 if test -n "$ac_maketemp"; then
1196 eval ac_cv_prog_make_${ac_make}_set=yes
1198 eval ac_cv_prog_make_${ac_make}_set=no
1202 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1203 echo "$ac_t""yes" 1>&6
1206 echo "$ac_t""no" 1>&6
1207 SET_MAKE="MAKE=${MAKE-make}"
1216 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1217 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1222 missing_dir=`cd $ac_aux_dir && pwd`
1223 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1224 echo "configure:1225: checking for working aclocal" >&5
1225 # Run test in a subshell; some versions of sh will print an error if
1226 # an executable is not found, even if stderr is redirected.
1227 # Redirect stdin to placate older versions of autoconf. Sigh.
1228 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1230 echo "$ac_t""found" 1>&6
1232 ACLOCAL="$missing_dir/missing aclocal"
1233 echo "$ac_t""missing" 1>&6
1236 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1237 echo "configure:1238: checking for working autoconf" >&5
1238 # Run test in a subshell; some versions of sh will print an error if
1239 # an executable is not found, even if stderr is redirected.
1240 # Redirect stdin to placate older versions of autoconf. Sigh.
1241 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1243 echo "$ac_t""found" 1>&6
1245 AUTOCONF="$missing_dir/missing autoconf"
1246 echo "$ac_t""missing" 1>&6
1249 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1250 echo "configure:1251: checking for working automake" >&5
1251 # Run test in a subshell; some versions of sh will print an error if
1252 # an executable is not found, even if stderr is redirected.
1253 # Redirect stdin to placate older versions of autoconf. Sigh.
1254 if (automake --version) < /dev/null > /dev/null 2>&1; then
1256 echo "$ac_t""found" 1>&6
1258 AUTOMAKE="$missing_dir/missing automake"
1259 echo "$ac_t""missing" 1>&6
1262 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1263 echo "configure:1264: checking for working autoheader" >&5
1264 # Run test in a subshell; some versions of sh will print an error if
1265 # an executable is not found, even if stderr is redirected.
1266 # Redirect stdin to placate older versions of autoconf. Sigh.
1267 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1268 AUTOHEADER=autoheader
1269 echo "$ac_t""found" 1>&6
1271 AUTOHEADER="$missing_dir/missing autoheader"
1272 echo "$ac_t""missing" 1>&6
1275 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1276 echo "configure:1277: checking for working makeinfo" >&5
1277 # Run test in a subshell; some versions of sh will print an error if
1278 # an executable is not found, even if stderr is redirected.
1279 # Redirect stdin to placate older versions of autoconf. Sigh.
1280 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1282 echo "$ac_t""found" 1>&6
1284 MAKEINFO="$missing_dir/missing makeinfo"
1285 echo "$ac_t""missing" 1>&6
1288 install_sh="$missing_dir/install-sh"
1289 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1291 for ac_prog in gnutar gtar tar
1293 # Extract the first word of "$ac_prog", so it can be a program name with args.
1294 set dummy $ac_prog; ac_word=$2
1295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1296 echo "configure:1297: checking for $ac_word" >&5
1297 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 if test -n "$AMTAR"; then
1301 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1305 for ac_dir in $ac_dummy; do
1306 test -z "$ac_dir" && ac_dir=.
1307 if test -f $ac_dir/$ac_word; then
1308 ac_cv_prog_AMTAR="$ac_prog"
1315 AMTAR="$ac_cv_prog_AMTAR"
1316 if test -n "$AMTAR"; then
1317 echo "$ac_t""$AMTAR" 1>&6
1319 echo "$ac_t""no" 1>&6
1322 test -n "$AMTAR" && break
1327 if test -n "$AMTAR"; then
1328 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1333 cat >> confdefs.h <<EOF
1334 #define OPENLDAP_PACKAGE "$PACKAGE"
1337 cat >> confdefs.h <<EOF
1338 #define OPENLDAP_VERSION "$VERSION"
1342 cat >> confdefs.h <<EOF
1343 #define LDAP_VENDOR_VERSION $OL_API_INC
1346 cat >> confdefs.h <<EOF
1347 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1350 cat >> confdefs.h <<EOF
1351 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1354 cat >> confdefs.h <<EOF
1355 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1359 OPENLDAP_LIBVERSION=$OL_API_LIB
1363 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1364 echo "configure:1365: checking configure arguments" >&5
1369 ldap_subdir="/openldap"
1371 # Check whether --with-subdir or --without-subdir was given.
1372 if test "${with_subdir+set}" = set; then
1373 withval="$with_subdir"
1380 ldap_subdir="$withval"
1383 ldap_subdir="/$withval"
1390 # OpenLDAP --enable-debug
1391 # Check whether --enable-debug or --disable-debug was given.
1392 if test "${enable_debug+set}" = set; then
1393 enableval="$enable_debug"
1396 for ol_val in auto yes no ; do
1397 if test "$enableval" = "$ol_val" ; then
1401 if test "$ol_arg" = "invalid" ; then
1402 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1404 ol_enable_debug="$ol_arg"
1407 ol_enable_debug="yes"
1409 # end --enable-debug
1410 # OpenLDAP --enable-syslog
1411 # Check whether --enable-syslog or --disable-syslog was given.
1412 if test "${enable_syslog+set}" = set; then
1413 enableval="$enable_syslog"
1416 for ol_val in auto yes no ; do
1417 if test "$enableval" = "$ol_val" ; then
1421 if test "$ol_arg" = "invalid" ; then
1422 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1424 ol_enable_syslog="$ol_arg"
1427 ol_enable_syslog="auto"
1429 # end --enable-syslog
1430 # OpenLDAP --enable-proctitle
1431 # Check whether --enable-proctitle or --disable-proctitle was given.
1432 if test "${enable_proctitle+set}" = set; then
1433 enableval="$enable_proctitle"
1436 for ol_val in auto yes no ; do
1437 if test "$enableval" = "$ol_val" ; then
1441 if test "$ol_arg" = "invalid" ; then
1442 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1444 ol_enable_proctitle="$ol_arg"
1447 ol_enable_proctitle="yes"
1449 # end --enable-proctitle
1450 # OpenLDAP --enable-cache
1451 # Check whether --enable-cache or --disable-cache was given.
1452 if test "${enable_cache+set}" = set; then
1453 enableval="$enable_cache"
1456 for ol_val in auto yes no ; do
1457 if test "$enableval" = "$ol_val" ; then
1461 if test "$ol_arg" = "invalid" ; then
1462 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1464 ol_enable_cache="$ol_arg"
1467 ol_enable_cache="no"
1469 # end --enable-cache
1470 # OpenLDAP --enable-referrals
1471 # Check whether --enable-referrals or --disable-referrals was given.
1472 if test "${enable_referrals+set}" = set; then
1473 enableval="$enable_referrals"
1476 for ol_val in auto yes no ; do
1477 if test "$enableval" = "$ol_val" ; then
1481 if test "$ol_arg" = "invalid" ; then
1482 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1484 ol_enable_referrals="$ol_arg"
1487 ol_enable_referrals="no"
1489 # end --enable-referrals
1490 # OpenLDAP --enable-kbind
1491 # Check whether --enable-kbind or --disable-kbind was given.
1492 if test "${enable_kbind+set}" = set; then
1493 enableval="$enable_kbind"
1496 for ol_val in auto yes no ; do
1497 if test "$enableval" = "$ol_val" ; then
1501 if test "$ol_arg" = "invalid" ; then
1502 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1504 ol_enable_kbind="$ol_arg"
1507 ol_enable_kbind="no"
1509 # end --enable-kbind
1510 # OpenLDAP --enable-ipv6
1511 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1512 if test "${enable_ipv6+set}" = set; then
1513 enableval="$enable_ipv6"
1516 for ol_val in auto yes no ; do
1517 if test "$enableval" = "$ol_val" ; then
1521 if test "$ol_arg" = "invalid" ; then
1522 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1524 ol_enable_ipv6="$ol_arg"
1527 ol_enable_ipv6="auto"
1530 # OpenLDAP --enable-local
1531 # Check whether --enable-local or --disable-local was given.
1532 if test "${enable_local+set}" = set; then
1533 enableval="$enable_local"
1536 for ol_val in auto yes no ; do
1537 if test "$enableval" = "$ol_val" ; then
1541 if test "$ol_arg" = "invalid" ; then
1542 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1544 ol_enable_local="$ol_arg"
1547 ol_enable_local="auto"
1549 # end --enable-local
1550 # OpenLDAP --enable-rewrite
1551 # Check whether --enable-rewrite or --disable-rewrite was given.
1552 if test "${enable_rewrite+set}" = set; then
1553 enableval="$enable_rewrite"
1556 for ol_val in auto yes no ; do
1557 if test "$enableval" = "$ol_val" ; then
1561 if test "$ol_arg" = "invalid" ; then
1562 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1564 ol_enable_rewrite="$ol_arg"
1567 ol_enable_rewrite="no"
1569 # end --enable-rewrite
1570 # OpenLDAP --enable-x_compile
1571 # Check whether --enable-x_compile or --disable-x_compile was given.
1572 if test "${enable_x_compile+set}" = set; then
1573 enableval="$enable_x_compile"
1576 for ol_val in yes no ; do
1577 if test "$enableval" = "$ol_val" ; then
1581 if test "$ol_arg" = "invalid" ; then
1582 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1584 ol_enable_x_compile="$ol_arg"
1587 ol_enable_x_compile="no"
1589 # end --enable-x_compile
1592 # OpenLDAP --with-cyrus_sasl
1593 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1594 if test "${with_cyrus_sasl+set}" = set; then
1595 withval="$with_cyrus_sasl"
1598 for ol_val in auto yes no ; do
1599 if test "$withval" = "$ol_val" ; then
1603 if test "$ol_arg" = "invalid" ; then
1604 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1606 ol_with_cyrus_sasl="$ol_arg"
1609 ol_with_cyrus_sasl="auto"
1611 # end --with-cyrus_sasl
1613 # OpenLDAP --with-fetch
1614 # Check whether --with-fetch or --without-fetch was given.
1615 if test "${with_fetch+set}" = set; then
1616 withval="$with_fetch"
1619 for ol_val in auto yes no ; do
1620 if test "$withval" = "$ol_val" ; then
1624 if test "$ol_arg" = "invalid" ; then
1625 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1627 ol_with_fetch="$ol_arg"
1630 ol_with_fetch="auto"
1634 # OpenLDAP --with-kerberos
1635 # Check whether --with-kerberos or --without-kerberos was given.
1636 if test "${with_kerberos+set}" = set; then
1637 withval="$with_kerberos"
1640 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1641 if test "$withval" = "$ol_val" ; then
1645 if test "$ol_arg" = "invalid" ; then
1646 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1648 ol_with_kerberos="$ol_arg"
1651 ol_with_kerberos="auto"
1653 # end --with-kerberos
1655 # OpenLDAP --with-readline
1656 # Check whether --with-readline or --without-readline was given.
1657 if test "${with_readline+set}" = set; then
1658 withval="$with_readline"
1661 for ol_val in auto yes no ; do
1662 if test "$withval" = "$ol_val" ; then
1666 if test "$ol_arg" = "invalid" ; then
1667 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1669 ol_with_readline="$ol_arg"
1672 ol_with_readline="auto"
1674 # end --with-readline
1676 # OpenLDAP --with-threads
1677 # Check whether --with-threads or --without-threads was given.
1678 if test "${with_threads+set}" = set; then
1679 withval="$with_threads"
1682 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1683 if test "$withval" = "$ol_val" ; then
1687 if test "$ol_arg" = "invalid" ; then
1688 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1690 ol_with_threads="$ol_arg"
1693 ol_with_threads="auto"
1695 # end --with-threads
1697 # OpenLDAP --with-tls
1698 # Check whether --with-tls or --without-tls was given.
1699 if test "${with_tls+set}" = set; then
1703 for ol_val in auto ssleay openssl yes no ; do
1704 if test "$withval" = "$ol_val" ; then
1708 if test "$ol_arg" = "invalid" ; then
1709 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1711 ol_with_tls="$ol_arg"
1718 # OpenLDAP --with-yielding_select
1719 # Check whether --with-yielding_select or --without-yielding_select was given.
1720 if test "${with_yielding_select+set}" = set; then
1721 withval="$with_yielding_select"
1724 for ol_val in auto yes no manual ; do
1725 if test "$withval" = "$ol_val" ; then
1729 if test "$ol_arg" = "invalid" ; then
1730 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1732 ol_with_yielding_select="$ol_arg"
1735 ol_with_yielding_select="auto"
1737 # end --with-yielding_select
1741 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1742 if test "${with_xxslapdoptions+set}" = set; then
1743 withval="$with_xxslapdoptions"
1747 # OpenLDAP --enable-slapd
1748 # Check whether --enable-slapd or --disable-slapd was given.
1749 if test "${enable_slapd+set}" = set; then
1750 enableval="$enable_slapd"
1753 for ol_val in auto yes no ; do
1754 if test "$enableval" = "$ol_val" ; then
1758 if test "$ol_arg" = "invalid" ; then
1759 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1761 ol_enable_slapd="$ol_arg"
1764 ol_enable_slapd="yes"
1766 # end --enable-slapd
1767 # OpenLDAP --enable-aci
1768 # Check whether --enable-aci or --disable-aci was given.
1769 if test "${enable_aci+set}" = set; then
1770 enableval="$enable_aci"
1773 for ol_val in auto yes no ; do
1774 if test "$enableval" = "$ol_val" ; then
1778 if test "$ol_arg" = "invalid" ; then
1779 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1781 ol_enable_aci="$ol_arg"
1787 # OpenLDAP --enable-cleartext
1788 # Check whether --enable-cleartext or --disable-cleartext was given.
1789 if test "${enable_cleartext+set}" = set; then
1790 enableval="$enable_cleartext"
1793 for ol_val in auto yes no ; do
1794 if test "$enableval" = "$ol_val" ; then
1798 if test "$ol_arg" = "invalid" ; then
1799 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1801 ol_enable_cleartext="$ol_arg"
1804 ol_enable_cleartext="yes"
1806 # end --enable-cleartext
1807 # OpenLDAP --enable-crypt
1808 # Check whether --enable-crypt or --disable-crypt was given.
1809 if test "${enable_crypt+set}" = set; then
1810 enableval="$enable_crypt"
1813 for ol_val in auto yes no ; do
1814 if test "$enableval" = "$ol_val" ; then
1818 if test "$ol_arg" = "invalid" ; then
1819 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1821 ol_enable_crypt="$ol_arg"
1824 ol_enable_crypt="no"
1826 # end --enable-crypt
1827 # OpenLDAP --enable-dynamic
1828 # Check whether --enable-dynamic or --disable-dynamic was given.
1829 if test "${enable_dynamic+set}" = set; then
1830 enableval="$enable_dynamic"
1833 for ol_val in auto yes no ; do
1834 if test "$enableval" = "$ol_val" ; then
1838 if test "$ol_arg" = "invalid" ; then
1839 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1841 ol_enable_dynamic="$ol_arg"
1844 ol_enable_dynamic="no"
1846 # end --enable-dynamic
1847 # OpenLDAP --enable-kpasswd
1848 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1849 if test "${enable_kpasswd+set}" = set; then
1850 enableval="$enable_kpasswd"
1853 for ol_val in auto yes no ; do
1854 if test "$enableval" = "$ol_val" ; then
1858 if test "$ol_arg" = "invalid" ; then
1859 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1861 ol_enable_kpasswd="$ol_arg"
1864 ol_enable_kpasswd="no"
1866 # end --enable-kpasswd
1867 # OpenLDAP --enable-lmpasswd
1868 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1869 if test "${enable_lmpasswd+set}" = set; then
1870 enableval="$enable_lmpasswd"
1873 for ol_val in auto yes no ; do
1874 if test "$enableval" = "$ol_val" ; then
1878 if test "$ol_arg" = "invalid" ; then
1879 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1881 ol_enable_lmpasswd="$ol_arg"
1884 ol_enable_lmpasswd="no"
1886 # end --enable-lmpasswd
1887 # OpenLDAP --enable-spasswd
1888 # Check whether --enable-spasswd or --disable-spasswd was given.
1889 if test "${enable_spasswd+set}" = set; then
1890 enableval="$enable_spasswd"
1893 for ol_val in auto yes no ; do
1894 if test "$enableval" = "$ol_val" ; then
1898 if test "$ol_arg" = "invalid" ; then
1899 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1901 ol_enable_spasswd="$ol_arg"
1904 ol_enable_spasswd="no"
1906 # end --enable-spasswd
1907 # OpenLDAP --enable-modules
1908 # Check whether --enable-modules or --disable-modules was given.
1909 if test "${enable_modules+set}" = set; then
1910 enableval="$enable_modules"
1913 for ol_val in auto yes no ; do
1914 if test "$enableval" = "$ol_val" ; then
1918 if test "$ol_arg" = "invalid" ; then
1919 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1921 ol_enable_modules="$ol_arg"
1924 ol_enable_modules="no"
1926 # end --enable-modules
1927 # OpenLDAP --enable-phonetic
1928 # Check whether --enable-phonetic or --disable-phonetic was given.
1929 if test "${enable_phonetic+set}" = set; then
1930 enableval="$enable_phonetic"
1933 for ol_val in auto yes no ; do
1934 if test "$enableval" = "$ol_val" ; then
1938 if test "$ol_arg" = "invalid" ; then
1939 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1941 ol_enable_phonetic="$ol_arg"
1944 ol_enable_phonetic="no"
1946 # end --enable-phonetic
1947 # OpenLDAP --enable-rlookups
1948 # Check whether --enable-rlookups or --disable-rlookups was given.
1949 if test "${enable_rlookups+set}" = set; then
1950 enableval="$enable_rlookups"
1953 for ol_val in auto yes no ; do
1954 if test "$enableval" = "$ol_val" ; then
1958 if test "$ol_arg" = "invalid" ; then
1959 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1961 ol_enable_rlookups="$ol_arg"
1964 ol_enable_rlookups="no"
1966 # end --enable-rlookups
1967 # OpenLDAP --enable-slp
1968 # Check whether --enable-slp or --disable-slp was given.
1969 if test "${enable_slp+set}" = set; then
1970 enableval="$enable_slp"
1973 for ol_val in auto yes no ; do
1974 if test "$enableval" = "$ol_val" ; then
1978 if test "$ol_arg" = "invalid" ; then
1979 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1981 ol_enable_slp="$ol_arg"
1987 # OpenLDAP --enable-wrappers
1988 # Check whether --enable-wrappers or --disable-wrappers was given.
1989 if test "${enable_wrappers+set}" = set; then
1990 enableval="$enable_wrappers"
1993 for ol_val in auto yes no ; do
1994 if test "$enableval" = "$ol_val" ; then
1998 if test "$ol_arg" = "invalid" ; then
1999 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
2001 ol_enable_wrappers="$ol_arg"
2004 ol_enable_wrappers="no"
2006 # end --enable-wrappers
2008 # OpenLDAP --enable-bdb
2009 # Check whether --enable-bdb or --disable-bdb was given.
2010 if test "${enable_bdb+set}" = set; then
2011 enableval="$enable_bdb"
2014 for ol_val in auto yes no ; do
2015 if test "$enableval" = "$ol_val" ; then
2019 if test "$ol_arg" = "invalid" ; then
2020 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2022 ol_enable_bdb="$ol_arg"
2028 # OpenLDAP --with-bdb_module
2029 # Check whether --with-bdb_module or --without-bdb_module was given.
2030 if test "${with_bdb_module+set}" = set; then
2031 withval="$with_bdb_module"
2034 for ol_val in static dynamic ; do
2035 if test "$withval" = "$ol_val" ; then
2039 if test "$ol_arg" = "invalid" ; then
2040 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2042 ol_with_bdb_module="$ol_arg"
2045 ol_with_bdb_module="static"
2047 # end --with-bdb_module
2049 # OpenLDAP --enable-dnssrv
2050 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2051 if test "${enable_dnssrv+set}" = set; then
2052 enableval="$enable_dnssrv"
2055 for ol_val in auto yes no ; do
2056 if test "$enableval" = "$ol_val" ; then
2060 if test "$ol_arg" = "invalid" ; then
2061 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2063 ol_enable_dnssrv="$ol_arg"
2066 ol_enable_dnssrv="no"
2068 # end --enable-dnssrv
2069 # OpenLDAP --with-dnssrv_module
2070 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2071 if test "${with_dnssrv_module+set}" = set; then
2072 withval="$with_dnssrv_module"
2075 for ol_val in static dynamic ; do
2076 if test "$withval" = "$ol_val" ; then
2080 if test "$ol_arg" = "invalid" ; then
2081 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2083 ol_with_dnssrv_module="$ol_arg"
2086 ol_with_dnssrv_module="static"
2088 # end --with-dnssrv_module
2090 # OpenLDAP --enable-ldap
2091 # Check whether --enable-ldap or --disable-ldap was given.
2092 if test "${enable_ldap+set}" = set; then
2093 enableval="$enable_ldap"
2096 for ol_val in auto yes no ; do
2097 if test "$enableval" = "$ol_val" ; then
2101 if test "$ol_arg" = "invalid" ; then
2102 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2104 ol_enable_ldap="$ol_arg"
2110 # OpenLDAP --with-ldap_module
2111 # Check whether --with-ldap_module or --without-ldap_module was given.
2112 if test "${with_ldap_module+set}" = set; then
2113 withval="$with_ldap_module"
2116 for ol_val in static dynamic ; do
2117 if test "$withval" = "$ol_val" ; then
2121 if test "$ol_arg" = "invalid" ; then
2122 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2124 ol_with_ldap_module="$ol_arg"
2127 ol_with_ldap_module="static"
2129 # end --with-ldap_module
2131 # OpenLDAP --enable-ldbm
2132 # Check whether --enable-ldbm or --disable-ldbm was given.
2133 if test "${enable_ldbm+set}" = set; then
2134 enableval="$enable_ldbm"
2137 for ol_val in auto yes no ; do
2138 if test "$enableval" = "$ol_val" ; then
2142 if test "$ol_arg" = "invalid" ; then
2143 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2145 ol_enable_ldbm="$ol_arg"
2151 # OpenLDAP --with-ldbm_api
2152 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2153 if test "${with_ldbm_api+set}" = set; then
2154 withval="$with_ldbm_api"
2157 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2158 if test "$withval" = "$ol_val" ; then
2162 if test "$ol_arg" = "invalid" ; then
2163 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2165 ol_with_ldbm_api="$ol_arg"
2168 ol_with_ldbm_api="auto"
2170 # end --with-ldbm_api
2172 # OpenLDAP --with-ldbm_module
2173 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2174 if test "${with_ldbm_module+set}" = set; then
2175 withval="$with_ldbm_module"
2178 for ol_val in static dynamic ; do
2179 if test "$withval" = "$ol_val" ; then
2183 if test "$ol_arg" = "invalid" ; then
2184 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2186 ol_with_ldbm_module="$ol_arg"
2189 ol_with_ldbm_module="static"
2191 # end --with-ldbm_module
2193 # OpenLDAP --with-ldbm_type
2194 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2195 if test "${with_ldbm_type+set}" = set; then
2196 withval="$with_ldbm_type"
2199 for ol_val in auto btree hash ; do
2200 if test "$withval" = "$ol_val" ; then
2204 if test "$ol_arg" = "invalid" ; then
2205 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2207 ol_with_ldbm_type="$ol_arg"
2210 ol_with_ldbm_type="auto"
2212 # end --with-ldbm_type
2214 # OpenLDAP --enable-meta
2215 # Check whether --enable-meta or --disable-meta was given.
2216 if test "${enable_meta+set}" = set; then
2217 enableval="$enable_meta"
2220 for ol_val in auto yes no ; do
2221 if test "$enableval" = "$ol_val" ; then
2225 if test "$ol_arg" = "invalid" ; then
2226 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2228 ol_enable_meta="$ol_arg"
2234 # OpenLDAP --with-meta_module
2235 # Check whether --with-meta_module or --without-meta_module was given.
2236 if test "${with_meta_module+set}" = set; then
2237 withval="$with_meta_module"
2240 for ol_val in static dynamic ; do
2241 if test "$withval" = "$ol_val" ; then
2245 if test "$ol_arg" = "invalid" ; then
2246 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2248 ol_with_meta_module="$ol_arg"
2251 ol_with_meta_module="static"
2253 # end --with-meta_module
2255 # OpenLDAP --enable-monitor
2256 # Check whether --enable-monitor or --disable-monitor was given.
2257 if test "${enable_monitor+set}" = set; then
2258 enableval="$enable_monitor"
2261 for ol_val in auto yes no ; do
2262 if test "$enableval" = "$ol_val" ; then
2266 if test "$ol_arg" = "invalid" ; then
2267 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2269 ol_enable_monitor="$ol_arg"
2272 ol_enable_monitor="no"
2274 # end --enable-monitor
2275 # OpenLDAP --with-monitor_module
2276 # Check whether --with-monitor_module or --without-monitor_module was given.
2277 if test "${with_monitor_module+set}" = set; then
2278 withval="$with_monitor_module"
2281 for ol_val in static dynamic ; do
2282 if test "$withval" = "$ol_val" ; then
2286 if test "$ol_arg" = "invalid" ; then
2287 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2289 ol_with_monitor_module="$ol_arg"
2292 ol_with_monitor_module="static"
2294 # end --with-monitor_module
2296 # OpenLDAP --enable-null
2297 # Check whether --enable-null or --disable-null was given.
2298 if test "${enable_null+set}" = set; then
2299 enableval="$enable_null"
2302 for ol_val in auto yes no ; do
2303 if test "$enableval" = "$ol_val" ; then
2307 if test "$ol_arg" = "invalid" ; then
2308 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2310 ol_enable_null="$ol_arg"
2316 # OpenLDAP --with-null_module
2317 # Check whether --with-null_module or --without-null_module was given.
2318 if test "${with_null_module+set}" = set; then
2319 withval="$with_null_module"
2322 for ol_val in static dynamic ; do
2323 if test "$withval" = "$ol_val" ; then
2327 if test "$ol_arg" = "invalid" ; then
2328 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2330 ol_with_null_module="$ol_arg"
2333 ol_with_null_module="static"
2335 # end --with-null_module
2337 # OpenLDAP --enable-passwd
2338 # Check whether --enable-passwd or --disable-passwd was given.
2339 if test "${enable_passwd+set}" = set; then
2340 enableval="$enable_passwd"
2343 for ol_val in auto yes no ; do
2344 if test "$enableval" = "$ol_val" ; then
2348 if test "$ol_arg" = "invalid" ; then
2349 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2351 ol_enable_passwd="$ol_arg"
2354 ol_enable_passwd="no"
2356 # end --enable-passwd
2357 # OpenLDAP --with-passwd_module
2358 # Check whether --with-passwd_module or --without-passwd_module was given.
2359 if test "${with_passwd_module+set}" = set; then
2360 withval="$with_passwd_module"
2363 for ol_val in static dynamic ; do
2364 if test "$withval" = "$ol_val" ; then
2368 if test "$ol_arg" = "invalid" ; then
2369 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2371 ol_with_passwd_module="$ol_arg"
2374 ol_with_passwd_module="static"
2376 # end --with-passwd_module
2378 # OpenLDAP --enable-perl
2379 # Check whether --enable-perl or --disable-perl was given.
2380 if test "${enable_perl+set}" = set; then
2381 enableval="$enable_perl"
2384 for ol_val in auto yes no ; do
2385 if test "$enableval" = "$ol_val" ; then
2389 if test "$ol_arg" = "invalid" ; then
2390 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2392 ol_enable_perl="$ol_arg"
2398 # OpenLDAP --with-perl_module
2399 # Check whether --with-perl_module or --without-perl_module was given.
2400 if test "${with_perl_module+set}" = set; then
2401 withval="$with_perl_module"
2404 for ol_val in static dynamic ; do
2405 if test "$withval" = "$ol_val" ; then
2409 if test "$ol_arg" = "invalid" ; then
2410 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2412 ol_with_perl_module="$ol_arg"
2415 ol_with_perl_module="static"
2417 # end --with-perl_module
2419 # OpenLDAP --enable-shell
2420 # Check whether --enable-shell or --disable-shell was given.
2421 if test "${enable_shell+set}" = set; then
2422 enableval="$enable_shell"
2425 for ol_val in auto yes no ; do
2426 if test "$enableval" = "$ol_val" ; then
2430 if test "$ol_arg" = "invalid" ; then
2431 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2433 ol_enable_shell="$ol_arg"
2436 ol_enable_shell="no"
2438 # end --enable-shell
2439 # OpenLDAP --with-shell_module
2440 # Check whether --with-shell_module or --without-shell_module was given.
2441 if test "${with_shell_module+set}" = set; then
2442 withval="$with_shell_module"
2445 for ol_val in static dynamic ; do
2446 if test "$withval" = "$ol_val" ; then
2450 if test "$ol_arg" = "invalid" ; then
2451 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2453 ol_with_shell_module="$ol_arg"
2456 ol_with_shell_module="static"
2458 # end --with-shell_module
2460 # OpenLDAP --enable-sql
2461 # Check whether --enable-sql or --disable-sql was given.
2462 if test "${enable_sql+set}" = set; then
2463 enableval="$enable_sql"
2466 for ol_val in auto yes no ; do
2467 if test "$enableval" = "$ol_val" ; then
2471 if test "$ol_arg" = "invalid" ; then
2472 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2474 ol_enable_sql="$ol_arg"
2480 # OpenLDAP --with-sql_module
2481 # Check whether --with-sql_module or --without-sql_module was given.
2482 if test "${with_sql_module+set}" = set; then
2483 withval="$with_sql_module"
2486 for ol_val in static dynamic ; do
2487 if test "$withval" = "$ol_val" ; then
2491 if test "$ol_arg" = "invalid" ; then
2492 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2494 ol_with_sql_module="$ol_arg"
2497 ol_with_sql_module="static"
2499 # end --with-sql_module
2502 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2503 if test "${with_xxslurpdoptions+set}" = set; then
2504 withval="$with_xxslurpdoptions"
2508 # OpenLDAP --enable-slurpd
2509 # Check whether --enable-slurpd or --disable-slurpd was given.
2510 if test "${enable_slurpd+set}" = set; then
2511 enableval="$enable_slurpd"
2514 for ol_val in auto yes no ; do
2515 if test "$enableval" = "$ol_val" ; then
2519 if test "$ol_arg" = "invalid" ; then
2520 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2522 ol_enable_slurpd="$ol_arg"
2525 ol_enable_slurpd="auto"
2527 # end --enable-slurpd
2529 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2530 if test "${with_xxliboptions+set}" = set; then
2531 withval="$with_xxliboptions"
2535 # Check whether --enable-static or --disable-static was given.
2536 if test "${enable_static+set}" = set; then
2537 enableval="$enable_static"
2538 p=${PACKAGE-default}
2540 yes) enable_static=yes ;;
2541 no) enable_static=no ;;
2544 # Look at the argument we got. We use all the common list separators.
2545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2546 for pkg in $enableval; do
2547 if test "X$pkg" = "X$p"; then
2558 # Check whether --enable-shared or --disable-shared was given.
2559 if test "${enable_shared+set}" = set; then
2560 enableval="$enable_shared"
2561 p=${PACKAGE-default}
2563 yes) enable_shared=yes ;;
2564 no) enable_shared=no ;;
2567 # Look at the argument we got. We use all the common list separators.
2568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2569 for pkg in $enableval; do
2570 if test "X$pkg" = "X$p"; then
2584 if test $ol_enable_slapd = no ; then
2585 if test $ol_enable_bdb = yes ; then
2586 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2588 if test $ol_enable_dnssrv = yes ; then
2589 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2591 if test $ol_enable_ldap = yes ; then
2592 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2594 if test $ol_enable_ldbm = yes ; then
2595 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2597 if test $ol_enable_meta = yes ; then
2598 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2600 if test $ol_enable_monitor = yes ; then
2601 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2603 if test $ol_enable_null = yes ; then
2604 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2606 if test $ol_enable_passwd = yes ; then
2607 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2609 if test $ol_enable_perl = yes ; then
2610 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2612 if test $ol_enable_shell = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2615 if test $ol_enable_sql = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2618 if test $ol_enable_modules = yes ; then
2619 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2621 if test $ol_enable_wrappers = yes ; then
2622 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2624 if test $ol_enable_phonetic = yes ; then
2625 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2627 if test $ol_enable_rlookups = yes ; then
2628 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2630 if test $ol_enable_aci = yes ; then
2631 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2633 if test $ol_with_ldbm_api != auto ; then
2634 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2636 if test $ol_with_ldbm_type != auto ; then
2637 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2639 if test $ol_with_bdb_module != static ; then
2640 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2642 if test $ol_with_dnssrv_module != static ; then
2643 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2645 if test $ol_with_ldap_module != static ; then
2646 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2648 if test $ol_with_ldbm_module != static ; then
2649 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2651 if test $ol_with_meta_module != static ; then
2652 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2654 if test $ol_with_monitor_module != static ; then
2655 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2657 if test $ol_with_null_module != static ; then
2658 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2660 if test $ol_with_passwd_module != static ; then
2661 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2663 if test $ol_with_perl_module != static ; then
2664 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2666 if test $ol_with_shell_module != static ; then
2667 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2669 if test $ol_with_sql_module != static ; then
2670 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2672 if test $ol_enable_slurpd = yes ; then
2673 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2675 if test $ol_enable_rewrite = yes ; then
2676 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2679 # force settings to no
2685 ol_enable_monitor=no
2692 ol_enable_modules=no
2693 ol_enable_phonetic=no
2694 ol_enable_rlookups=no
2696 ol_enable_wrappers=no
2697 ol_enable_dynamic=no
2700 ol_with_ldbm_type=no
2702 ol_with_bdb_module=static
2703 ol_with_dnssrv_module=static
2704 ol_with_ldap_module=static
2705 ol_with_ldbm_module=static
2706 ol_with_meta_module=static
2707 ol_with_monitor_module=static
2708 ol_with_null_module=static
2709 ol_with_passwd_module=static
2710 ol_with_perl_module=static
2711 ol_with_shell_module=static
2712 ol_with_sql_module=static
2716 ol_enable_rewrite=no
2718 elif test $ol_enable_ldbm = no ; then
2720 if test $ol_with_ldbm_api != auto ; then
2721 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2724 if test $ol_with_ldbm_type != auto ; then
2725 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2728 if test $ol_with_ldbm_module != static ; then
2729 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2732 if test $ol_enable_modules != yes -a \
2733 $ol_enable_bdb = no -a \
2734 $ol_enable_dnssrv = no -a \
2735 $ol_enable_ldap = no -a \
2736 $ol_enable_meta = no -a \
2737 $ol_enable_monitor = no -a \
2738 $ol_enable_null = no -a \
2739 $ol_enable_passwd = no -a \
2740 $ol_enable_perl = no -a \
2741 $ol_enable_shell = no -a \
2742 $ol_enable_sql = no ; then
2744 if test $ol_enable_slapd = yes ; then
2745 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2747 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2753 ol_with_ldbm_type=no
2754 ol_with_ldbm_module=static
2756 if test $ol_enable_bdb != no ; then
2757 ol_with_ldbm_api=berkeley
2761 if test $ol_with_ldbm_api = gdbm -a \
2762 $ol_with_ldbm_type = btree ; then
2763 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2765 if test $ol_with_ldbm_api = mdbm -a \
2766 $ol_with_ldbm_type = btree ; then
2767 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2769 if test $ol_with_ldbm_api = ndbm -a \
2770 $ol_with_ldbm_type = btree ; then
2771 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2774 if test $ol_enable_bdb = yes ; then
2775 if test $ol_with_ldbm_api = auto ; then
2776 ol_with_ldbm_api=berkeley
2777 elif test $ol_with_ldbm_api != berkeley ; then
2778 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2781 elif test $ol_enable_bdb = auto ; then
2782 if test $ol_with_ldbm_api != berkeley \
2783 -o $ol_with_ldbm_api != auto ; then
2784 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2790 if test $ol_enable_slurpd = yes ; then
2791 if test $ol_with_threads = no ; then
2792 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2796 if test $ol_enable_lmpasswd = yes ; then
2797 if test $ol_with_tls = no ; then
2798 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2802 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2803 if test $ol_with_kerberos = no ; then
2804 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2805 elif test $ol_with_kerberos = auto ; then
2806 ol_with_kerberos=yes
2809 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2810 if test $ol_with_kerberos = auto ; then
2812 elif test $ol_with_kerberos != no ; then
2813 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2818 if test $ol_enable_spasswd = yes ; then
2819 if test $ol_with_cyrus_sasl = no ; then
2820 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2822 ol_with_cyrus_sasl=yes
2825 echo "$ac_t""done" 1>&6
2854 BUILD_BDB_DYNAMIC=static
2855 BUILD_DNSSRV_DYNAMIC=static
2856 BUILD_LDAP_DYNAMIC=static
2857 BUILD_LDBM_DYNAMIC=static
2858 BUILD_META_DYNAMIC=static
2859 BUILD_MONITOR_DYNAMIC=static
2860 BUILD_NULL_DYNAMIC=static
2861 BUILD_PASSWD_DYNAMIC=static
2862 BUILD_PERL_DYNAMIC=static
2863 BUILD_SHELL_DYNAMIC=static
2864 BUILD_SQL_DYNAMIC=static
2866 SLAPD_MODULES_LDFLAGS=
2867 SLAPD_MODULES_CPPFLAGS=
2870 SLAPD_STATIC_BACKENDS=
2871 SLAPD_DYNAMIC_BACKENDS=
2893 # Find a good install program. We prefer a C program (faster),
2894 # so one script is as good as another. But avoid the broken or
2895 # incompatible versions:
2896 # SysV /etc/install, /usr/sbin/install
2897 # SunOS /usr/etc/install
2898 # IRIX /sbin/install
2900 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2901 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2902 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2903 # ./install, which can be erroneously created by make from ./install.sh.
2904 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2905 echo "configure:2906: checking for a BSD compatible install" >&5
2906 if test -z "$INSTALL"; then
2907 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2911 for ac_dir in $PATH; do
2912 # Account for people who put trailing slashes in PATH elements.
2914 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2916 # OSF1 and SCO ODT 3.0 have their own names for install.
2917 # Don't use installbsd from OSF since it installs stuff as root
2919 for ac_prog in ginstall scoinst install; do
2920 if test -f $ac_dir/$ac_prog; then
2921 if test $ac_prog = install &&
2922 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2923 # AIX install. It has an incompatible calling convention.
2925 elif test $ac_prog = install &&
2926 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2927 # program-specific install script used by HP pwplus--don't use.
2930 ac_cv_path_install="$ac_dir/$ac_prog -c"
2941 if test "${ac_cv_path_install+set}" = set; then
2942 INSTALL="$ac_cv_path_install"
2944 # As a last resort, use the slow shell script. We don't cache a
2945 # path for INSTALL within a source directory, because that will
2946 # break other packages using the cache if that directory is
2947 # removed, or if the path is relative.
2948 INSTALL="$ac_install_sh"
2951 echo "$ac_t""$INSTALL" 1>&6
2953 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2954 # It thinks the first close brace ends the variable substitution.
2955 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2957 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2959 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2962 cat >> confdefs.h <<\EOF
2963 #define HAVE_MKVERSION 1
2971 *-*-aix*) if test -z "$CC" ; then
2972 case "$ol_with_threads" in
2973 auto | yes | posix) ol_aix_threads=yes ;;
2979 if test $ol_aix_threads = yes ; then
2980 if test -z "${CC}" ; then
2981 for ac_prog in cc_r xlc_r cc
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2986 echo "configure:2987: checking for $ac_word" >&5
2987 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2995 for ac_dir in $ac_dummy; do
2996 test -z "$ac_dir" && ac_dir=.
2997 if test -f $ac_dir/$ac_word; then
2998 ac_cv_prog_CC="$ac_prog"
3006 if test -n "$CC"; then
3007 echo "$ac_t""$CC" 1>&6
3009 echo "$ac_t""no" 1>&6
3012 test -n "$CC" && break
3016 if test "$CC" = cc ; then
3017 if test $ol_with_threads != auto ; then
3018 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3020 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3026 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3027 ol_with_threads=posix
3028 ol_cv_pthread_create=yes
3032 if test -z "${CC}"; then
3035 # Extract the first word of "$ac_prog", so it can be a program name with args.
3036 set dummy $ac_prog; ac_word=$2
3037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3038 echo "configure:3039: checking for $ac_word" >&5
3039 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3040 echo $ac_n "(cached) $ac_c" 1>&6
3042 if test -n "$CC"; then
3043 ac_cv_prog_CC="$CC" # Let the user override the test.
3045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3047 for ac_dir in $ac_dummy; do
3048 test -z "$ac_dir" && ac_dir=.
3049 if test -f $ac_dir/$ac_word; then
3050 ac_cv_prog_CC="$ac_prog"
3058 if test -n "$CC"; then
3059 echo "$ac_t""$CC" 1>&6
3061 echo "$ac_t""no" 1>&6
3064 test -n "$CC" && break
3070 for ac_prog in ar gar
3072 # Extract the first word of "$ac_prog", so it can be a program name with args.
3073 set dummy $ac_prog; ac_word=$2
3074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3075 echo "configure:3076: checking for $ac_word" >&5
3076 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 if test -n "$AR"; then
3080 ac_cv_prog_AR="$AR" # Let the user override the test.
3082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3084 for ac_dir in $ac_dummy; do
3085 test -z "$ac_dir" && ac_dir=.
3086 if test -f $ac_dir/$ac_word; then
3087 ac_cv_prog_AR="$ac_prog"
3095 if test -n "$AR"; then
3096 echo "$ac_t""$AR" 1>&6
3098 echo "$ac_t""no" 1>&6
3101 test -n "$AR" && break
3103 test -n "$AR" || AR="ar"
3108 # Find the correct PATH separator. Usually this is `:', but
3109 # DJGPP uses `;' like DOS.
3110 if test "X${PATH_SEPARATOR+set}" != Xset; then
3111 UNAME=${UNAME-`uname 2>/dev/null`}
3113 *-DOS) lt_cv_sys_path_separator=';' ;;
3114 *) lt_cv_sys_path_separator=':' ;;
3116 PATH_SEPARATOR=$lt_cv_sys_path_separator
3119 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3120 echo "configure:3121: checking for Cygwin environment" >&5
3121 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 cat > conftest.$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3131 #define __CYGWIN__ __CYGWIN32__
3136 if { (eval echo configure:3137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3140 echo "configure: failed program was:" >&5
3141 cat conftest.$ac_ext >&5
3148 echo "$ac_t""$ac_cv_cygwin" 1>&6
3150 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3151 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3152 echo "configure:3153: checking for mingw32 environment" >&5
3153 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3164 if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3176 echo "$ac_t""$ac_cv_mingw32" 1>&6
3178 test "$ac_cv_mingw32" = yes && MINGW32=yes
3179 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3180 echo "configure:3181: checking for EMX OS/2 environment" >&5
3181 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3182 echo $ac_n "(cached) $ac_c" 1>&6
3184 cat > conftest.$ac_ext <<EOF
3185 #line 3186 "configure"
3186 #include "confdefs.h"
3192 if { (eval echo configure:3193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3196 echo "configure: failed program was:" >&5
3197 cat conftest.$ac_ext >&5
3204 echo "$ac_t""$ac_cv_emxos2" 1>&6
3206 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3207 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3208 echo "configure:3209: checking how to run the C preprocessor" >&5
3209 # On Suns, sometimes $CPP names a directory.
3210 if test -n "$CPP" && test -d "$CPP"; then
3213 if test -z "$CPP"; then
3214 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 # This must be in double quotes, not single quotes, because CPP may get
3218 # substituted into the Makefile and "${CC-cc}" will confuse make.
3220 # On the NeXT, cc -E runs the code through the compiler's parser,
3221 # not just through cpp.
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3229 { (eval echo configure:3230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3231 if test -z "$ac_err"; then
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3238 CPP="${CC-cc} -E -traditional-cpp"
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3246 { (eval echo configure:3247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3248 if test -z "$ac_err"; then
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3255 CPP="${CC-cc} -nologo -E"
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3263 { (eval echo configure:3264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3265 if test -z "$ac_err"; then
3269 echo "configure: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3279 ac_cv_prog_CPP="$CPP"
3281 CPP="$ac_cv_prog_CPP"
3283 ac_cv_prog_CPP="$CPP"
3285 echo "$ac_t""$CPP" 1>&6
3287 # Check whether --enable-fast-install or --disable-fast-install was given.
3288 if test "${enable_fast_install+set}" = set; then
3289 enableval="$enable_fast_install"
3290 p=${PACKAGE-default}
3292 yes) enable_fast_install=yes ;;
3293 no) enable_fast_install=no ;;
3295 enable_fast_install=no
3296 # Look at the argument we got. We use all the common list separators.
3297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3298 for pkg in $enableval; do
3299 if test "X$pkg" = "X$p"; then
3300 enable_fast_install=yes
3307 enable_fast_install=yes
3310 # Extract the first word of "gcc", so it can be a program name with args.
3311 set dummy gcc; ac_word=$2
3312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3313 echo "configure:3314: checking for $ac_word" >&5
3314 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3317 if test -n "$CC"; then
3318 ac_cv_prog_CC="$CC" # Let the user override the test.
3320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3322 for ac_dir in $ac_dummy; do
3323 test -z "$ac_dir" && ac_dir=.
3324 if test -f $ac_dir/$ac_word; then
3333 if test -n "$CC"; then
3334 echo "$ac_t""$CC" 1>&6
3336 echo "$ac_t""no" 1>&6
3339 if test -z "$CC"; then
3340 # Extract the first word of "cc", so it can be a program name with args.
3341 set dummy cc; ac_word=$2
3342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3343 echo "configure:3344: checking for $ac_word" >&5
3344 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3347 if test -n "$CC"; then
3348 ac_cv_prog_CC="$CC" # Let the user override the test.
3350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3353 for ac_dir in $ac_dummy; do
3354 test -z "$ac_dir" && ac_dir=.
3355 if test -f $ac_dir/$ac_word; then
3356 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3357 ac_prog_rejected=yes
3365 if test $ac_prog_rejected = yes; then
3366 # We found a bogon in the path, so make sure we never use it.
3367 set dummy $ac_cv_prog_CC
3369 if test $# -gt 0; then
3370 # We chose a different compiler from the bogus one.
3371 # However, it has the same basename, so the bogon will be chosen
3372 # first if we set CC to just the basename; use the full file name.
3374 set dummy "$ac_dir/$ac_word" "$@"
3382 if test -n "$CC"; then
3383 echo "$ac_t""$CC" 1>&6
3385 echo "$ac_t""no" 1>&6
3388 if test -z "$CC"; then
3389 case "`uname -s`" in
3390 *win32* | *WIN32* | *CYGWIN*)
3391 # Extract the first word of "cl", so it can be a program name with args.
3392 set dummy cl; ac_word=$2
3393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3394 echo "configure:3395: checking for $ac_word" >&5
3395 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3403 for ac_dir in $ac_dummy; do
3404 test -z "$ac_dir" && ac_dir=.
3405 if test -f $ac_dir/$ac_word; then
3414 if test -n "$CC"; then
3415 echo "$ac_t""$CC" 1>&6
3417 echo "$ac_t""no" 1>&6
3422 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3425 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3426 echo "configure:3427: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3429 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3430 ac_cpp='$CPP $CPPFLAGS'
3431 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3432 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3433 cross_compiling=$ac_cv_prog_cc_cross
3435 cat > conftest.$ac_ext << EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3442 if { (eval echo configure:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3443 ac_cv_prog_cc_works=yes
3444 # If we can't run a trivial program, we are probably using a cross compiler.
3445 if (./conftest; exit) 2>/dev/null; then
3446 ac_cv_prog_cc_cross=no
3448 ac_cv_prog_cc_cross=yes
3451 echo "configure: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3453 ac_cv_prog_cc_works=no
3457 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3460 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3461 cross_compiling=$ac_cv_prog_cc_cross
3463 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3464 if test $ac_cv_prog_cc_works = no; then
3465 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3467 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3468 echo "configure:3469: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3469 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3470 cross_compiling=$ac_cv_prog_cc_cross
3472 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3473 echo "configure:3474: checking whether we are using GNU C" >&5
3474 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3475 echo $ac_n "(cached) $ac_c" 1>&6
3477 cat > conftest.c <<EOF
3482 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3489 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3491 if test $ac_cv_prog_gcc = yes; then
3497 ac_test_CFLAGS="${CFLAGS+set}"
3498 ac_save_CFLAGS="$CFLAGS"
3500 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3501 echo "configure:3502: checking whether ${CC-cc} accepts -g" >&5
3502 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 echo 'void f(){}' > conftest.c
3506 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3515 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3516 if test "$ac_test_CFLAGS" = set; then
3517 CFLAGS="$ac_save_CFLAGS"
3518 elif test $ac_cv_prog_cc_g = yes; then
3519 if test "$GCC" = yes; then
3525 if test "$GCC" = yes; then
3532 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3533 if test "${with_gnu_ld+set}" = set; then
3534 withval="$with_gnu_ld"
3535 test "$withval" = no || with_gnu_ld=yes
3541 if test "$GCC" = yes; then
3542 # Check if gcc -print-prog-name=ld gives a path.
3543 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3544 echo "configure:3545: checking for ld used by GCC" >&5
3547 # gcc leaves a trailing carriage return which upsets mingw
3548 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3550 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3553 # Accept absolute paths.
3554 [\\/]* | [A-Za-z]:[\\/]*)
3555 re_direlt='/[^/][^/]*/\.\./'
3556 # Canonicalize the path of ld
3557 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3558 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3559 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3561 test -z "$LD" && LD="$ac_prog"
3564 # If it fails, then pretend we aren't using GCC.
3568 # If it is relative, then search for the first ld in PATH.
3572 elif test "$with_gnu_ld" = yes; then
3573 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3574 echo "configure:3575: checking for GNU ld" >&5
3576 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3577 echo "configure:3578: checking for non-GNU ld" >&5
3579 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 if test -z "$LD"; then
3583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3584 for ac_dir in $PATH; do
3585 test -z "$ac_dir" && ac_dir=.
3586 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3587 lt_cv_path_LD="$ac_dir/$ac_prog"
3588 # Check to see if the program is GNU ld. I'd rather use --version,
3589 # but apparently some GNU ld's only accept -v.
3590 # Break only if it was the GNU/non-GNU ld that we prefer.
3591 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3592 test "$with_gnu_ld" != no && break
3594 test "$with_gnu_ld" != yes && break
3600 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3605 if test -n "$LD"; then
3606 echo "$ac_t""$LD" 1>&6
3608 echo "$ac_t""no" 1>&6
3610 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3611 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3612 echo "configure:3613: checking if the linker ($LD) is GNU ld" >&5
3613 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3616 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3617 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3618 lt_cv_prog_gnu_ld=yes
3620 lt_cv_prog_gnu_ld=no
3624 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3625 with_gnu_ld=$lt_cv_prog_gnu_ld
3628 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3629 echo "configure:3630: checking for $LD option to reload object files" >&5
3630 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 lt_cv_ld_reload_flag='-r'
3636 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3637 reload_flag=$lt_cv_ld_reload_flag
3638 test -n "$reload_flag" && reload_flag=" $reload_flag"
3640 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3641 echo "configure:3642: checking for BSD-compatible nm" >&5
3642 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 if test -n "$NM"; then
3646 # Let the user override the test.
3649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3650 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3651 test -z "$ac_dir" && ac_dir=.
3652 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3653 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3654 # Check to see if the nm accepts a BSD-compat flag.
3655 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3656 # nm: unknown option "B" ignored
3657 # Tru64's nm complains that /dev/null is an invalid object file
3658 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3659 lt_cv_path_NM="$tmp_nm -B"
3661 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3662 lt_cv_path_NM="$tmp_nm -p"
3665 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3666 continue # so that we can try to find one that supports BSD flags
3671 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3676 echo "$ac_t""$NM" 1>&6
3678 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3679 echo "configure:3680: checking whether ln -s works" >&5
3680 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3684 if ln -s X conftestdata 2>/dev/null
3687 ac_cv_prog_LN_S="ln -s"
3692 LN_S="$ac_cv_prog_LN_S"
3693 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3694 echo "$ac_t""yes" 1>&6
3696 echo "$ac_t""no" 1>&6
3699 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3700 echo "configure:3701: checking how to recognise dependant libraries" >&5
3701 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 lt_cv_file_magic_cmd='$MAGIC_CMD'
3705 lt_cv_file_magic_test_file=
3706 lt_cv_deplibs_check_method='unknown'
3707 # Need to set the preceding variable on all platforms that support
3708 # interlibrary dependencies.
3709 # 'none' -- dependencies not supported.
3710 # `unknown' -- same as none, but documents that we really don't know.
3711 # 'pass_all' -- all dependencies passed with no checks.
3712 # 'test_compile' -- check by making test program.
3713 # 'file_magic [[regex]]' -- check by looking for files in library path
3714 # which responds to the $file_magic_cmd with a given egrep regex.
3715 # If you have `file' or equivalent on your system and you're not sure
3716 # whether `pass_all' will *always* work, you probably want this one.
3720 lt_cv_deplibs_check_method=pass_all
3724 lt_cv_deplibs_check_method=pass_all
3728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3729 lt_cv_file_magic_cmd='/usr/bin/file -L'
3730 lt_cv_file_magic_test_file=/shlib/libc.so
3733 cygwin* | mingw* | pw32*)
3734 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3735 lt_cv_file_magic_cmd='$OBJDUMP -f'
3738 darwin* | rhapsody*)
3739 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3740 lt_cv_file_magic_cmd='/usr/bin/file -L'
3742 rhapsody* | darwin1.[012])
3743 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3746 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3752 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3755 # Not sure whether the presence of OpenBSD here was a mistake.
3756 # Let's accept both of them until this is cleared up.
3757 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3758 lt_cv_file_magic_cmd=/usr/bin/file
3759 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3763 lt_cv_deplibs_check_method=pass_all
3768 lt_cv_deplibs_check_method=pass_all
3772 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3773 lt_cv_file_magic_cmd=/usr/bin/file
3774 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3780 # this will be overridden with pass_all, but let us keep it just in case
3781 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3785 *-32|*"-32 ") libmagic=32-bit;;
3786 *-n32|*"-n32 ") libmagic=N32;;
3787 *-64|*"-64 ") libmagic=64-bit;;
3788 *) libmagic=never-match;;
3790 # this will be overridden with pass_all, but let us keep it just in case
3791 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3794 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3795 lt_cv_deplibs_check_method=pass_all
3798 # This must be Linux ELF.
3801 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3802 lt_cv_deplibs_check_method=pass_all ;;
3804 # glibc up to 2.1.1 does not perform some relocations on ARM
3805 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3807 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3811 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3812 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3814 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3820 lt_cv_file_magic_cmd=/usr/bin/file
3821 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3825 lt_cv_file_magic_cmd=/usr/bin/file
3826 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3830 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3834 osf3* | osf4* | osf5*)
3835 # this will be overridden with pass_all, but let us keep it just in case
3836 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3837 lt_cv_file_magic_test_file=/shlib/libc.so
3838 lt_cv_deplibs_check_method=pass_all
3842 lt_cv_deplibs_check_method=pass_all
3846 lt_cv_deplibs_check_method=pass_all
3847 lt_cv_file_magic_test_file=/lib/libc.so
3850 sysv5uw[78]* | sysv4*uw2*)
3851 lt_cv_deplibs_check_method=pass_all
3854 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3855 case $host_vendor in
3857 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]'
3858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3861 lt_cv_deplibs_check_method=pass_all
3864 lt_cv_file_magic_cmd='/bin/file'
3865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3868 lt_cv_file_magic_cmd='/bin/file'
3869 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3870 lt_cv_file_magic_test_file=/lib/libc.so
3878 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3879 file_magic_cmd=$lt_cv_file_magic_cmd
3880 deplibs_check_method=$lt_cv_deplibs_check_method
3882 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3883 echo "configure:3884: checking for object suffix" >&5
3884 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3885 echo $ac_n "(cached) $ac_c" 1>&6
3888 echo 'int i = 1;' > conftest.$ac_ext
3889 if { (eval echo configure:3890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3890 for ac_file in conftest.*; do
3893 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3897 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3902 echo "$ac_t""$ac_cv_objext" 1>&6
3903 OBJEXT=$ac_cv_objext
3904 ac_objext=$ac_cv_objext
3909 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3910 echo "configure:3911: checking for executable suffix" >&5
3911 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3918 echo 'int main () { return 0; }' > conftest.$ac_ext
3920 if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3921 for file in conftest.*; do
3923 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3924 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3928 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3931 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3936 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3937 echo "$ac_t""${ac_cv_exeext}" 1>&6
3940 if test $host != $build; then
3941 ac_tool_prefix=${host_alias}-
3949 # Check for command to grab the raw symbol name followed by C symbol from nm.
3950 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3951 echo "configure:3952: checking command to parse $NM output" >&5
3952 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3956 # These are sane defaults that work on at least a few old systems.
3957 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3959 # Character class describing NM global symbol codes.
3960 symcode='[BCDEGRST]'
3962 # Regexp to match symbols that can be accessed directly from C.
3963 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3965 # Transform the above into a raw symbol and a C symbol.
3966 symxfrm='\1 \2\3 \3'
3968 # Transform an extracted symbol line into a proper C declaration
3969 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3971 # Transform an extracted symbol line into symbol name and symbol address
3972 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'"
3974 # Define system-specific variables.
3979 cygwin* | mingw* | pw32*)
3980 symcode='[ABCDGISTW]'
3982 hpux*) # Its linker distinguishes data from code symbols
3983 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3984 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'"
3987 symcode='[BCDEGRST]'
3997 # Handle CRLF in mingw tool chain
4001 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4005 # If we're using GNU nm, then use its standard symbol codes.
4006 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4007 symcode='[ABCDGISTW]'
4010 # Try without a prefix undercore, then with it.
4011 for ac_symprfx in "" "_"; do
4013 # Write the raw and C identifiers.
4014 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4016 # Check to see that the pipe works correctly.
4019 cat > conftest.$ac_ext <<EOF
4024 void nm_test_func(){}
4028 int main(){nm_test_var='a';nm_test_func();return(0);}
4031 if { (eval echo configure:4032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4032 # Now try to grab the symbols.
4034 if { (eval echo configure:4035: \"$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
4035 # Try sorting and uniquifying the output.
4036 if sort "$nlist" | uniq > "$nlist"T; then
4037 mv -f "$nlist"T "$nlist"
4042 # Make sure that we snagged all the symbols we need.
4043 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4044 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4045 cat <<EOF > conftest.$ac_ext
4051 # Now generate the symbol file.
4052 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4054 cat <<EOF >> conftest.$ac_ext
4055 #if defined (__STDC__) && __STDC__
4056 # define lt_ptr void *
4058 # define lt_ptr char *
4062 /* The mapping between symbol names and symbols. */
4067 lt_preloaded_symbols[] =
4070 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4071 cat <<\EOF >> conftest.$ac_ext
4079 # Now try linking the two files.
4080 mv conftest.$ac_objext conftstm.$ac_objext
4082 save_CFLAGS="$CFLAGS"
4083 LIBS="conftstm.$ac_objext"
4084 CFLAGS="$CFLAGS$no_builtin_flag"
4085 if { (eval echo configure:4086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4089 CFLAGS="$save_CFLAGS"
4091 echo "cannot find nm_test_func in $nlist" >&5
4094 echo "cannot find nm_test_var in $nlist" >&5
4097 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4100 echo "$progname: failed program was:" >&5
4101 cat conftest.$ac_ext >&5
4103 rm -f conftest* conftst*
4105 # Do not use the global_symbol_pipe unless it works.
4106 if test "$pipe_works" = yes; then
4109 lt_cv_sys_global_symbol_pipe=
4115 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4116 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4117 global_symbol_to_cdecl=
4118 global_symbol_to_c_name_address=
4120 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4121 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4123 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4125 echo "$ac_t""failed" 1>&6
4127 echo "$ac_t""ok" 1>&6
4130 for ac_hdr in dlfcn.h
4132 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4134 echo "configure:4135: checking for $ac_hdr" >&5
4135 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4138 cat > conftest.$ac_ext <<EOF
4139 #line 4140 "configure"
4140 #include "confdefs.h"
4143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4144 { (eval echo configure:4145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4146 if test -z "$ac_err"; then
4148 eval "ac_cv_header_$ac_safe=yes"
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4154 eval "ac_cv_header_$ac_safe=no"
4158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4159 echo "$ac_t""yes" 1>&6
4160 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4161 cat >> confdefs.h <<EOF
4162 #define $ac_tr_hdr 1
4166 echo "$ac_t""no" 1>&6
4174 # Only perform the check for file, if the check method requires it
4175 case $deplibs_check_method in
4177 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4178 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4179 echo "configure:4180: checking for ${ac_tool_prefix}file" >&5
4180 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4185 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4191 ac_save_MAGIC_CMD="$MAGIC_CMD"
4192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4193 ac_dummy="/usr/bin:$PATH"
4194 for ac_dir in $ac_dummy; do
4195 test -z "$ac_dir" && ac_dir=.
4196 if test -f $ac_dir/${ac_tool_prefix}file; then
4197 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4198 if test -n "$file_magic_test_file"; then
4199 case $deplibs_check_method in
4201 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4203 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4204 egrep "$file_magic_regex" > /dev/null; then
4209 *** Warning: the command libtool uses to detect shared libraries,
4210 *** $file_magic_cmd, produces output that libtool cannot recognize.
4211 *** The result is that libtool may fail to recognize shared libraries
4212 *** as such. This will affect the creation of libtool libraries that
4213 *** depend on shared libraries, but programs linked with such libtool
4214 *** libraries will work regardless of this problem. Nevertheless, you
4215 *** may want to report the problem to your system manager and/or to
4216 *** bug-libtool@gnu.org
4226 MAGIC_CMD="$ac_save_MAGIC_CMD"
4231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4232 if test -n "$MAGIC_CMD"; then
4233 echo "$ac_t""$MAGIC_CMD" 1>&6
4235 echo "$ac_t""no" 1>&6
4238 if test -z "$lt_cv_path_MAGIC_CMD"; then
4239 if test -n "$ac_tool_prefix"; then
4240 echo $ac_n "checking for file""... $ac_c" 1>&6
4241 echo "configure:4242: checking for file" >&5
4242 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4247 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4250 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4253 ac_save_MAGIC_CMD="$MAGIC_CMD"
4254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4255 ac_dummy="/usr/bin:$PATH"
4256 for ac_dir in $ac_dummy; do
4257 test -z "$ac_dir" && ac_dir=.
4258 if test -f $ac_dir/file; then
4259 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4260 if test -n "$file_magic_test_file"; then
4261 case $deplibs_check_method in
4263 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4265 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4266 egrep "$file_magic_regex" > /dev/null; then
4271 *** Warning: the command libtool uses to detect shared libraries,
4272 *** $file_magic_cmd, produces output that libtool cannot recognize.
4273 *** The result is that libtool may fail to recognize shared libraries
4274 *** as such. This will affect the creation of libtool libraries that
4275 *** depend on shared libraries, but programs linked with such libtool
4276 *** libraries will work regardless of this problem. Nevertheless, you
4277 *** may want to report the problem to your system manager and/or to
4278 *** bug-libtool@gnu.org
4288 MAGIC_CMD="$ac_save_MAGIC_CMD"
4293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4294 if test -n "$MAGIC_CMD"; then
4295 echo "$ac_t""$MAGIC_CMD" 1>&6
4297 echo "$ac_t""no" 1>&6
4309 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4310 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4312 echo "configure:4313: checking for $ac_word" >&5
4313 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4316 if test -n "$RANLIB"; then
4317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4321 for ac_dir in $ac_dummy; do
4322 test -z "$ac_dir" && ac_dir=.
4323 if test -f $ac_dir/$ac_word; then
4324 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4331 RANLIB="$ac_cv_prog_RANLIB"
4332 if test -n "$RANLIB"; then
4333 echo "$ac_t""$RANLIB" 1>&6
4335 echo "$ac_t""no" 1>&6
4339 if test -z "$ac_cv_prog_RANLIB"; then
4340 if test -n "$ac_tool_prefix"; then
4341 # Extract the first word of "ranlib", so it can be a program name with args.
4342 set dummy ranlib; ac_word=$2
4343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4344 echo "configure:4345: checking for $ac_word" >&5
4345 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4348 if test -n "$RANLIB"; then
4349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4353 for ac_dir in $ac_dummy; do
4354 test -z "$ac_dir" && ac_dir=.
4355 if test -f $ac_dir/$ac_word; then
4356 ac_cv_prog_RANLIB="ranlib"
4361 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4364 RANLIB="$ac_cv_prog_RANLIB"
4365 if test -n "$RANLIB"; then
4366 echo "$ac_t""$RANLIB" 1>&6
4368 echo "$ac_t""no" 1>&6
4376 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4377 set dummy ${ac_tool_prefix}strip; ac_word=$2
4378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4379 echo "configure:4380: checking for $ac_word" >&5
4380 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4383 if test -n "$STRIP"; then
4384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4388 for ac_dir in $ac_dummy; do
4389 test -z "$ac_dir" && ac_dir=.
4390 if test -f $ac_dir/$ac_word; then
4391 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4398 STRIP="$ac_cv_prog_STRIP"
4399 if test -n "$STRIP"; then
4400 echo "$ac_t""$STRIP" 1>&6
4402 echo "$ac_t""no" 1>&6
4406 if test -z "$ac_cv_prog_STRIP"; then
4407 if test -n "$ac_tool_prefix"; then
4408 # Extract the first word of "strip", so it can be a program name with args.
4409 set dummy strip; ac_word=$2
4410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4411 echo "configure:4412: checking for $ac_word" >&5
4412 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4415 if test -n "$STRIP"; then
4416 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4420 for ac_dir in $ac_dummy; do
4421 test -z "$ac_dir" && ac_dir=.
4422 if test -f $ac_dir/$ac_word; then
4423 ac_cv_prog_STRIP="strip"
4428 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4431 STRIP="$ac_cv_prog_STRIP"
4432 if test -n "$STRIP"; then
4433 echo "$ac_t""$STRIP" 1>&6
4435 echo "$ac_t""no" 1>&6
4445 enable_win32_dll=yes
4447 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4448 if test "${enable_libtool_lock+set}" = set; then
4449 enableval="$enable_libtool_lock"
4453 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4455 # Some flags need to be propagated to the compiler or linker for good
4459 # Find out which ABI we are using.
4460 echo '#line 4461 "configure"' > conftest.$ac_ext
4461 if { (eval echo configure:4462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4462 case `/usr/bin/file conftest.$ac_objext` in
4478 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4479 SAVE_CFLAGS="$CFLAGS"
4480 CFLAGS="$CFLAGS -belf"
4481 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4482 echo "configure:4483: checking whether the C compiler needs -belf" >&5
4483 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4488 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4489 ac_cpp='$CPP $CPPFLAGS'
4490 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4491 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4492 cross_compiling=$ac_cv_prog_cc_cross
4494 cat > conftest.$ac_ext <<EOF
4495 #line 4496 "configure"
4496 #include "confdefs.h"
4502 if { (eval echo configure:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4504 lt_cv_cc_needs_belf=yes
4506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4509 lt_cv_cc_needs_belf=no
4513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4514 ac_cpp='$CPP $CPPFLAGS'
4515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4517 cross_compiling=$ac_cv_prog_cc_cross
4521 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4522 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4523 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4524 CFLAGS="$SAVE_CFLAGS"
4528 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4529 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4530 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4532 echo "configure:4533: checking for $ac_word" >&5
4533 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 if test -n "$DLLTOOL"; then
4537 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4541 for ac_dir in $ac_dummy; do
4542 test -z "$ac_dir" && ac_dir=.
4543 if test -f $ac_dir/$ac_word; then
4544 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4551 DLLTOOL="$ac_cv_prog_DLLTOOL"
4552 if test -n "$DLLTOOL"; then
4553 echo "$ac_t""$DLLTOOL" 1>&6
4555 echo "$ac_t""no" 1>&6
4559 if test -z "$ac_cv_prog_DLLTOOL"; then
4560 if test -n "$ac_tool_prefix"; then
4561 # Extract the first word of "dlltool", so it can be a program name with args.
4562 set dummy dlltool; ac_word=$2
4563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4564 echo "configure:4565: checking for $ac_word" >&5
4565 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4568 if test -n "$DLLTOOL"; then
4569 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4573 for ac_dir in $ac_dummy; do
4574 test -z "$ac_dir" && ac_dir=.
4575 if test -f $ac_dir/$ac_word; then
4576 ac_cv_prog_DLLTOOL="dlltool"
4581 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4584 DLLTOOL="$ac_cv_prog_DLLTOOL"
4585 if test -n "$DLLTOOL"; then
4586 echo "$ac_t""$DLLTOOL" 1>&6
4588 echo "$ac_t""no" 1>&6
4596 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4597 set dummy ${ac_tool_prefix}as; ac_word=$2
4598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4599 echo "configure:4600: checking for $ac_word" >&5
4600 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4603 if test -n "$AS"; then
4604 ac_cv_prog_AS="$AS" # Let the user override the test.
4606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4608 for ac_dir in $ac_dummy; do
4609 test -z "$ac_dir" && ac_dir=.
4610 if test -f $ac_dir/$ac_word; then
4611 ac_cv_prog_AS="${ac_tool_prefix}as"
4619 if test -n "$AS"; then
4620 echo "$ac_t""$AS" 1>&6
4622 echo "$ac_t""no" 1>&6
4626 if test -z "$ac_cv_prog_AS"; then
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "as", so it can be a program name with args.
4629 set dummy as; ac_word=$2
4630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4631 echo "configure:4632: checking for $ac_word" >&5
4632 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4633 echo $ac_n "(cached) $ac_c" 1>&6
4635 if test -n "$AS"; then
4636 ac_cv_prog_AS="$AS" # Let the user override the test.
4638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4640 for ac_dir in $ac_dummy; do
4641 test -z "$ac_dir" && ac_dir=.
4642 if test -f $ac_dir/$ac_word; then
4648 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4652 if test -n "$AS"; then
4653 echo "$ac_t""$AS" 1>&6
4655 echo "$ac_t""no" 1>&6
4663 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4664 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4666 echo "configure:4667: checking for $ac_word" >&5
4667 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4670 if test -n "$OBJDUMP"; then
4671 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4675 for ac_dir in $ac_dummy; do
4676 test -z "$ac_dir" && ac_dir=.
4677 if test -f $ac_dir/$ac_word; then
4678 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4685 OBJDUMP="$ac_cv_prog_OBJDUMP"
4686 if test -n "$OBJDUMP"; then
4687 echo "$ac_t""$OBJDUMP" 1>&6
4689 echo "$ac_t""no" 1>&6
4693 if test -z "$ac_cv_prog_OBJDUMP"; then
4694 if test -n "$ac_tool_prefix"; then
4695 # Extract the first word of "objdump", so it can be a program name with args.
4696 set dummy objdump; ac_word=$2
4697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4698 echo "configure:4699: checking for $ac_word" >&5
4699 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 if test -n "$OBJDUMP"; then
4703 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4707 for ac_dir in $ac_dummy; do
4708 test -z "$ac_dir" && ac_dir=.
4709 if test -f $ac_dir/$ac_word; then
4710 ac_cv_prog_OBJDUMP="objdump"
4715 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4718 OBJDUMP="$ac_cv_prog_OBJDUMP"
4719 if test -n "$OBJDUMP"; then
4720 echo "$ac_t""$OBJDUMP" 1>&6
4722 echo "$ac_t""no" 1>&6
4731 # recent cygwin and mingw systems supply a stub DllMain which the user
4732 # can override, but on older systems we have to supply one
4733 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4734 echo "configure:4735: checking if libtool should supply DllMain function" >&5
4735 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4743 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4749 lt_cv_need_dllmain=no
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4754 lt_cv_need_dllmain=yes
4759 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4762 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4763 # old mingw systems require "-dll" to link a DLL, while more recent ones
4765 SAVE_CFLAGS="$CFLAGS"
4766 CFLAGS="$CFLAGS -mdll"
4767 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4768 echo "configure:4769: checking how to link DLLs" >&5
4769 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4772 cat > conftest.$ac_ext <<EOF
4773 #line 4774 "configure"
4774 #include "confdefs.h"
4780 if { (eval echo configure:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4782 lt_cv_cc_dll_switch=-mdll
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4787 lt_cv_cc_dll_switch=-dll
4792 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4793 CFLAGS="$SAVE_CFLAGS" ;;
4794 *-*-cygwin* | *-*-pw32*)
4795 # cygwin systems need to pass --dll to the linker, and not link
4796 # crt.o which will require a WinMain@16 definition.
4797 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4803 # Sed substitution that helps us do robust quoting. It backslashifies
4804 # metacharacters that are still active within double-quoted strings.
4805 Xsed='sed -e s/^X//'
4806 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4808 # Same as above, but do not quote variable references.
4809 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4811 # Sed substitution to delay expansion of an escaped shell variable in a
4812 # double_quote_subst'ed string.
4813 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4819 default_ofile=libtool
4820 can_build_shared=yes
4822 # All known linkers require a `.a' archive for static linking (except M$VC,
4823 # which needs '.lib').
4825 ltmain="$ac_aux_dir/ltmain.sh"
4826 ofile="$default_ofile"
4827 with_gnu_ld="$lt_cv_prog_gnu_ld"
4828 need_locks="$enable_libtool_lock"
4831 old_CFLAGS="$CFLAGS"
4833 # Set sane defaults for various variables
4834 test -z "$AR" && AR=ar
4835 test -z "$AR_FLAGS" && AR_FLAGS=cru
4836 test -z "$AS" && AS=as
4837 test -z "$CC" && CC=cc
4838 test -z "$DLLTOOL" && DLLTOOL=dlltool
4839 test -z "$LD" && LD=ld
4840 test -z "$LN_S" && LN_S="ln -s"
4841 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4842 test -z "$NM" && NM=nm
4843 test -z "$OBJDUMP" && OBJDUMP=objdump
4844 test -z "$RANLIB" && RANLIB=:
4845 test -z "$STRIP" && STRIP=:
4846 test -z "$ac_objext" && ac_objext=o
4848 if test x"$host" != x"$build"; then
4849 ac_tool_prefix=${host_alias}-
4854 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4857 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4862 # AIX sometimes has problems with the GCC collect2 program. For some
4863 # reason, if we set the COLLECT_NAMES environment variable, the problems
4864 # vanish in a puff of smoke.
4865 if test "X${COLLECT_NAMES+set}" != Xset; then
4867 export COLLECT_NAMES
4872 # Determine commands to create old-style static archives.
4873 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4874 old_postinstall_cmds='chmod 644 $oldlib'
4875 old_postuninstall_cmds=
4877 if test -n "$RANLIB"; then
4880 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4883 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4886 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4889 # Allow CC to be a program name with arguments.
4893 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4894 echo "configure:4895: checking for objdir" >&5
4895 rm -f .libs 2>/dev/null
4896 mkdir .libs 2>/dev/null
4897 if test -d .libs; then
4900 # MS-DOS does not allow filenames that begin with a dot.
4903 rmdir .libs 2>/dev/null
4904 echo "$ac_t""$objdir" 1>&6
4907 # Check whether --with-pic or --without-pic was given.
4908 if test "${with_pic+set}" = set; then
4915 test -z "$pic_mode" && pic_mode=default
4917 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4918 # in isolation, and that seeing it set (from the cache) indicates that
4919 # the associated values are set (in the cache) correctly too.
4920 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4921 echo "configure:4922: checking for $compiler option to produce PIC" >&5
4922 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4926 lt_cv_prog_cc_shlib=
4928 lt_cv_prog_cc_static=
4929 lt_cv_prog_cc_no_builtin=
4930 lt_cv_prog_cc_can_build_shared=$can_build_shared
4932 if test "$GCC" = yes; then
4933 lt_cv_prog_cc_wl='-Wl,'
4934 lt_cv_prog_cc_static='-static'
4938 # Below there is a dirty hack to force normal static linking with -ldl
4939 # The problem is because libdl dynamically linked with both libc and
4940 # libC (AIX C++ library), which obviously doesn't included in libraries
4941 # list by gcc. This cause undefined symbols with -static flags.
4942 # This hack allows C programs to be linked with "-static -ldl", but
4943 # not sure about C++ programs.
4944 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4947 # FIXME: we need at least 68020 code to build shared libraries, but
4948 # adding the `-m68020' flag to GCC prevents building anything better,
4950 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4952 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4953 # PIC is the default for these OSes.
4955 darwin* | rhapsody*)
4956 # PIC is the default on this platform
4957 # Common symbols not allowed in MH_DYLIB files
4958 lt_cv_prog_cc_pic='-fno-common'
4960 cygwin* | mingw* | pw32* | os2*)
4961 # This hack is so that the source file can tell whether it is being
4962 # built for inclusion in a dll (and should export symbols for example).
4963 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4966 if test -d /usr/nec; then
4967 lt_cv_prog_cc_pic=-Kconform_pic
4971 lt_cv_prog_cc_pic='-fPIC'
4975 # PORTME Check for PIC flags for the system compiler.
4977 aix3* | aix4* | aix5*)
4978 lt_cv_prog_cc_wl='-Wl,'
4979 # All AIX code is PIC.
4980 if test "$host_cpu" = ia64; then
4981 # AIX 5 now supports IA64 processor
4982 lt_cv_prog_cc_static='-Bstatic'
4984 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4988 hpux9* | hpux10* | hpux11*)
4989 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4990 lt_cv_prog_cc_wl='-Wl,'
4991 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4992 lt_cv_prog_cc_pic='+Z'
4996 lt_cv_prog_cc_wl='-Wl,'
4997 lt_cv_prog_cc_static='-non_shared'
4998 # PIC (with -KPIC) is the default.
5001 cygwin* | mingw* | pw32* | os2*)
5002 # This hack is so that the source file can tell whether it is being
5003 # built for inclusion in a dll (and should export symbols for example).
5004 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5008 lt_cv_prog_cc_pic='-KPIC'
5009 lt_cv_prog_cc_static='-Bstatic'
5012 osf3* | osf4* | osf5*)
5013 # All OSF/1 code is PIC.
5014 lt_cv_prog_cc_wl='-Wl,'
5015 lt_cv_prog_cc_static='-non_shared'
5019 lt_cv_prog_cc_pic='-Kpic'
5020 lt_cv_prog_cc_static='-dn'
5021 lt_cv_prog_cc_shlib='-belf'
5025 lt_cv_prog_cc_pic='-KPIC'
5026 lt_cv_prog_cc_static='-Bstatic'
5027 lt_cv_prog_cc_wl='-Wl,'
5031 lt_cv_prog_cc_pic='-PIC'
5032 lt_cv_prog_cc_static='-Bstatic'
5033 lt_cv_prog_cc_wl='-Qoption ld '
5036 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5037 lt_cv_prog_cc_pic='-KPIC'
5038 lt_cv_prog_cc_static='-Bstatic'
5039 if test "x$host_vendor" = xsni; then
5040 lt_cv_prog_cc_wl='-LD'
5042 lt_cv_prog_cc_wl='-Wl,'
5047 lt_cv_prog_cc_pic='-pic'
5048 lt_cv_prog_cc_static='-Bstatic'
5052 if test -d /usr/nec ;then
5053 lt_cv_prog_cc_pic='-Kconform_pic'
5054 lt_cv_prog_cc_static='-Bstatic'
5059 lt_cv_prog_cc_can_build_shared=no
5066 if test -z "$lt_cv_prog_cc_pic"; then
5067 echo "$ac_t""none" 1>&6
5069 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5071 # Check to make sure the pic_flag actually works.
5072 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5073 echo "configure:5074: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5074 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5075 echo $ac_n "(cached) $ac_c" 1>&6
5077 save_CFLAGS="$CFLAGS"
5078 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5079 cat > conftest.$ac_ext <<EOF
5080 #line 5081 "configure"
5081 #include "confdefs.h"
5087 if { (eval echo configure:5088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5090 hpux9* | hpux10* | hpux11*)
5091 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5092 # they create non-PIC objects. So, if there were any warnings, we
5093 # assume that PIC is not supported.
5094 if test -s conftest.err; then
5095 lt_cv_prog_cc_pic_works=no
5097 lt_cv_prog_cc_pic_works=yes
5101 lt_cv_prog_cc_pic_works=yes
5106 echo "configure: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5109 lt_cv_prog_cc_pic_works=no
5113 CFLAGS="$save_CFLAGS"
5118 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5120 lt_cv_prog_cc_can_build_shared=no
5122 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5125 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5128 # Check for any special shared library compilation flags.
5129 if test -n "$lt_cv_prog_cc_shlib"; then
5130 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5131 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5133 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5134 lt_cv_prog_cc_can_build_shared=no
5138 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5139 echo "configure:5140: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5140 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5141 echo $ac_n "(cached) $ac_c" 1>&6
5143 lt_cv_prog_cc_static_works=no
5144 save_LDFLAGS="$LDFLAGS"
5145 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5146 cat > conftest.$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5154 if { (eval echo configure:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5156 lt_cv_prog_cc_static_works=yes
5158 echo "configure: failed program was:" >&5
5159 cat conftest.$ac_ext >&5
5162 LDFLAGS="$save_LDFLAGS"
5167 # Belt *and* braces to stop my trousers falling down:
5168 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5169 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5171 pic_flag="$lt_cv_prog_cc_pic"
5172 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5173 wl="$lt_cv_prog_cc_wl"
5174 link_static_flag="$lt_cv_prog_cc_static"
5175 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5176 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5179 # Check to see if options -o and -c are simultaneously supported by compiler
5180 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5181 echo "configure:5182: checking if $compiler supports -c -o file.$ac_objext" >&5
5182 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5186 $rm -r conftest 2>/dev/null
5189 echo "int some_variable = 0;" > conftest.$ac_ext
5191 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5192 # that will create temporary files in the current directory regardless of
5193 # the output directory. Thus, making CWD read-only will cause this test
5194 # to fail, enabling locking or at least warning the user not to do parallel
5197 save_CFLAGS="$CFLAGS"
5198 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5200 if { (eval echo configure:5201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5201 # The compiler can only warn and ignore the option if not recognized
5202 # So say no if there are warnings
5203 if test -s out/conftest.err; then
5204 lt_cv_compiler_c_o=no
5206 lt_cv_compiler_c_o=yes
5209 # Append any errors to the config.log.
5210 cat out/conftest.err 1>&5
5211 lt_cv_compiler_c_o=no
5213 CFLAGS="$save_CFLAGS"
5219 $rm -r conftest 2>/dev/null
5223 compiler_c_o=$lt_cv_compiler_c_o
5224 echo "$ac_t""$compiler_c_o" 1>&6
5226 if test x"$compiler_c_o" = x"yes"; then
5227 # Check to see if we can write to a .lo
5228 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5229 echo "configure:5230: checking if $compiler supports -c -o file.lo" >&5
5230 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5234 lt_cv_compiler_o_lo=no
5235 save_CFLAGS="$CFLAGS"
5236 CFLAGS="$CFLAGS -c -o conftest.lo"
5237 save_objext="$ac_objext"
5239 cat > conftest.$ac_ext <<EOF
5240 #line 5241 "configure"
5241 #include "confdefs.h"
5244 int some_variable = 0;
5247 if { (eval echo configure:5248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5249 # The compiler can only warn and ignore the option if not recognized
5250 # So say no if there are warnings
5251 if test -s conftest.err; then
5252 lt_cv_compiler_o_lo=no
5254 lt_cv_compiler_o_lo=yes
5258 echo "configure: failed program was:" >&5
5259 cat conftest.$ac_ext >&5
5262 ac_objext="$save_objext"
5263 CFLAGS="$save_CFLAGS"
5267 compiler_o_lo=$lt_cv_compiler_o_lo
5268 echo "$ac_t""$compiler_o_lo" 1>&6
5273 # Check to see if we can do hard links to lock some files if needed
5274 hard_links="nottested"
5275 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5276 # do not overwrite the value of need_locks provided by the user
5277 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5278 echo "configure:5279: checking if we can lock with hard links" >&5
5281 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5283 ln conftest.a conftest.b 2>&5 || hard_links=no
5284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5285 echo "$ac_t""$hard_links" 1>&6
5286 if test "$hard_links" = no; then
5287 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5294 if test "$GCC" = yes; then
5295 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5296 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5297 echo "configure:5298: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5298 echo "int some_variable = 0;" > conftest.$ac_ext
5299 save_CFLAGS="$CFLAGS"
5300 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5301 compiler_rtti_exceptions=no
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5307 int some_variable = 0;
5310 if { (eval echo configure:5311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5312 # The compiler can only warn and ignore the option if not recognized
5313 # So say no if there are warnings
5314 if test -s conftest.err; then
5315 compiler_rtti_exceptions=no
5317 compiler_rtti_exceptions=yes
5321 echo "configure: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5325 CFLAGS="$save_CFLAGS"
5326 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5328 if test "$compiler_rtti_exceptions" = "yes"; then
5329 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5331 no_builtin_flag=' -fno-builtin'
5335 # See if the linker supports building shared libraries.
5336 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5337 echo "configure:5338: checking whether the linker ($LD) supports shared libraries" >&5
5339 allow_undefined_flag=
5341 need_lib_prefix=unknown
5342 need_version=unknown
5343 # when you set need_version to no, make sure it does not cause -set_version
5344 # flags to be left without arguments
5346 archive_expsym_cmds=
5347 old_archive_from_new_cmds=
5348 old_archive_from_expsyms_cmds=
5349 export_dynamic_flag_spec=
5350 whole_archive_flag_spec=
5351 thread_safe_flag_spec=
5352 hardcode_into_libs=no
5353 hardcode_libdir_flag_spec=
5354 hardcode_libdir_separator=
5357 hardcode_shlibpath_var=unsupported
5359 link_all_deplibs=unknown
5360 always_export_symbols=no
5361 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5362 # include_expsyms should be a list of space-separated symbols to be *always*
5363 # included in the symbol list
5365 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5366 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5367 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5368 # as well as any symbol that contains `d'.
5369 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5370 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5371 # platforms (ab)use it in PIC code, but their linkers get confused if
5372 # the symbol is explicitly referenced. Since portable code cannot
5373 # rely on this symbol name, it's probably fine to never include it in
5374 # preloaded symbol tables.
5375 extract_expsyms_cmds=
5378 cygwin* | mingw* | pw32*)
5379 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5380 # When not using gcc, we currently assume that we are using
5381 # Microsoft Visual C++.
5382 if test "$GCC" != yes; then
5392 if test "$with_gnu_ld" = yes; then
5393 # If archive_cmds runs LD, not CC, wlarc should be empty
5396 # See if GNU ld supports shared libraries.
5398 aix3* | aix4* | aix5*)
5399 # On AIX, the GNU linker is very broken
5400 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5404 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5405 *** to be unable to reliably create shared libraries on AIX.
5406 *** Therefore, libtool is disabling shared libraries support. If you
5407 *** really care for shared libraries, you may want to modify your PATH
5408 *** so that a non-GNU linker is found, and then restart.
5414 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)'
5415 hardcode_libdir_flag_spec='-L$libdir'
5416 hardcode_minus_L=yes
5418 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5419 # that the semantics of dynamic libraries on AmigaOS, at least up
5420 # to version 4, is to share data among multiple programs linked
5421 # with the same dynamic library. Since this doesn't match the
5422 # behavior of shared libraries on other platforms, we can use
5428 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5429 allow_undefined_flag=unsupported
5430 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5431 # support --undefined. This deserves some investigation. FIXME
5432 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5438 cygwin* | mingw* | pw32*)
5439 # hardcode_libdir_flag_spec is actually meaningless, as there is
5440 # no search path for DLLs.
5441 hardcode_libdir_flag_spec='-L$libdir'
5442 allow_undefined_flag=unsupported
5443 always_export_symbols=yes
5445 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5446 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5447 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5448 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5449 else $CC -o impgen impgen.c ; fi)~
5450 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5452 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5454 # cygwin and mingw dlls have different entry points and sets of symbols
5456 # FIXME: what about values for MSVC?
5457 dll_entry=__cygwin_dll_entry@12
5458 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5462 dll_entry=_DllMainCRTStartup@12
5463 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5467 # mingw and cygwin differ, and it's simplest to just exclude the union
5468 # of the two symbol sets.
5469 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5471 # recent cygwin and mingw systems supply a stub DllMain which the user
5472 # can override, but on older systems we have to supply one (in ltdll.c)
5473 if test "x$lt_cv_need_dllmain" = "xyes"; then
5474 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5475 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~
5476 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5482 # Extract the symbol export list from an `--export-all' def file,
5483 # then regenerate the def file from the symbol export list, so that
5484 # the compiled dll only exports the symbol export list.
5485 # Be careful not to strip the DATA tag left be newer dlltools.
5486 export_symbols_cmds="$ltdll_cmds"'
5487 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5488 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5490 # If the export-symbols file already is a .def file (1st line
5491 # is EXPORTS), use it as is.
5492 # If DATA tags from a recent dlltool are present, honour them!
5493 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5494 cp $export_symbols $output_objdir/$soname-def;
5496 echo EXPORTS > $output_objdir/$soname-def;
5498 cat $export_symbols | while read symbol; do
5501 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5502 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5504 _lt_hint=`expr 1 + \$_lt_hint`;
5508 $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~
5509 $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~
5510 $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~
5511 $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~
5512 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5517 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5520 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5521 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5526 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5530 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5531 *** create shared libraries on Solaris systems. Therefore, libtool
5532 *** is disabling shared libraries support. We urge you to upgrade GNU
5533 *** binutils to release 2.9.1 or newer. Another option is to modify
5534 *** your PATH or compiler configuration so that the native linker is
5535 *** used, and then restart.
5538 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5540 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5547 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5550 hardcode_shlibpath_var=no
5554 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5556 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5563 if test "$ld_shlibs" = yes; then
5564 runpath_var=LD_RUN_PATH
5565 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5566 export_dynamic_flag_spec='${wl}--export-dynamic'
5568 cygwin* | mingw* | pw32*)
5569 # dlltool doesn't understand --whole-archive et. al.
5570 whole_archive_flag_spec=
5573 # ancient GNU ld didn't support --whole-archive et. al.
5574 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5575 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5577 whole_archive_flag_spec=
5583 # PORTME fill in a description of your system's linker (not GNU ld)
5586 allow_undefined_flag=unsupported
5587 always_export_symbols=yes
5588 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'
5589 # Note: this linker hardcodes the directories in LIBPATH if there
5590 # are no directories specified by -L.
5591 hardcode_minus_L=yes
5592 if test "$GCC" = yes && test -z "$link_static_flag"; then
5593 # Neither direct hardcoding nor static linking is supported with a
5595 hardcode_direct=unsupported
5600 if test "$host_cpu" = ia64; then
5601 # On IA64, the linker does run time linking by default, so we don't
5602 # have to do anything special.
5603 aix_use_runtimelinking=no
5604 exp_sym_flag='-Bexport'
5607 aix_use_runtimelinking=no
5609 # Test if we are trying to use run time linking or normal
5610 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5611 # need to do runtime linking.
5612 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5613 for ld_flag in $LDFLAGS; do
5614 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5615 aix_use_runtimelinking=yes
5621 exp_sym_flag='-bexport'
5622 no_entry_flag='-bnoentry'
5625 # When large executables or shared objects are built, AIX ld can
5626 # have problems creating the table of contents. If linking a library
5627 # or program results in "error TOC overflow" add -mminimal-toc to
5628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5633 hardcode_libdir_separator=':'
5634 if test "$GCC" = yes; then
5635 case $host_os in aix4.[012]|aix4.[012].*)
5636 collect2name=`${CC} -print-prog-name=collect2`
5637 if test -f "$collect2name" && \
5638 strings "$collect2name" | grep resolve_lib_name >/dev/null
5640 # We have reworked collect2
5643 # We have old collect2
5644 hardcode_direct=unsupported
5645 # It fails to find uninstalled libraries when the uninstalled
5646 # path is not listed in the libpath. Setting hardcode_minus_L
5647 # to unsupported forces relinking
5648 hardcode_minus_L=yes
5649 hardcode_libdir_flag_spec='-L$libdir'
5650 hardcode_libdir_separator=
5654 shared_flag='-shared'
5657 if test "$host_cpu" = ia64; then
5658 shared_flag='${wl}-G'
5660 if test "$aix_use_runtimelinking" = yes; then
5661 shared_flag='${wl}-G'
5663 shared_flag='${wl}-bM:SRE'
5668 # It seems that -bexpall can do strange things, so it is better to
5669 # generate a list of symbols to export.
5670 always_export_symbols=yes
5671 if test "$aix_use_runtimelinking" = yes; then
5672 # Warning - without using the other runtime loading flags (-brtl),
5673 # -berok will link without error, but may produce a broken library.
5674 allow_undefined_flag='-berok'
5675 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5676 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"
5678 if test "$host_cpu" = ia64; then
5679 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5680 allow_undefined_flag="-z nodefs"
5681 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"
5683 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5684 # Warning - without using the other run time loading flags,
5685 # -berok will link without error, but may produce a broken library.
5686 allow_undefined_flag='${wl}-berok'
5687 # This is a bit strange, but is similar to how AIX traditionally builds
5688 # it's shared libraries.
5689 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'
5695 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)'
5696 hardcode_libdir_flag_spec='-L$libdir'
5697 hardcode_minus_L=yes
5698 # see comment about different semantics on the GNU ld section
5702 cygwin* | mingw* | pw32*)
5703 # When not using gcc, we currently assume that we are using
5704 # Microsoft Visual C++.
5705 # hardcode_libdir_flag_spec is actually meaningless, as there is
5706 # no search path for DLLs.
5707 hardcode_libdir_flag_spec=' '
5708 allow_undefined_flag=unsupported
5709 # Tell ltmain to make .lib files, not .a files.
5711 # FIXME: Setting linknames here is a bad hack.
5712 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5713 # The linker will automatically build a .lib file if we build a DLL.
5714 old_archive_from_new_cmds='true'
5715 # FIXME: Should let the user specify the lib program.
5716 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5717 fix_srcfile_path='`cygpath -w "$srcfile"`'
5720 darwin* | rhapsody*)
5722 rhapsody* | darwin1.[012])
5723 allow_undefined_flag='-undefined suppress'
5726 allow_undefined_flag='-flat_namespace -undefined suppress'
5729 # FIXME: Relying on posixy $() will cause problems for
5730 # cross-compilation, but unfortunately the echo tests do not
5731 # yet detect zsh echo's removal of \ escapes.
5732 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'
5733 # We need to add '_' to the symbols in $export_symbols first
5734 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5736 hardcode_shlibpath_var=no
5737 whole_archive_flag_spec='-all_load $convenience'
5744 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5745 # support. Future versions do this automatically, but an explicit c++rt0.o
5746 # does not break anything, and helps significantly (at the cost of a little
5749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5750 hardcode_libdir_flag_spec='-R$libdir'
5752 hardcode_shlibpath_var=no
5755 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5759 hardcode_minus_L=yes
5760 hardcode_shlibpath_var=no
5763 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5765 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5766 hardcode_libdir_flag_spec='-R$libdir'
5768 hardcode_shlibpath_var=no
5771 hpux9* | hpux10* | hpux11*)
5773 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' ;;
5774 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5777 hardcode_libdir_separator=:
5779 hardcode_minus_L=yes # Not in the search PATH, but as the default
5780 # location of the library.
5781 export_dynamic_flag_spec='${wl}-E'
5785 if test "$GCC" = yes; then
5786 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'
5788 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'
5790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5791 hardcode_libdir_separator=:
5792 link_all_deplibs=yes
5796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5799 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5801 hardcode_libdir_flag_spec='-R$libdir'
5803 hardcode_shlibpath_var=no
5807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5810 hardcode_libdir_separator=:
5811 hardcode_shlibpath_var=no
5816 hardcode_shlibpath_var=no
5817 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5820 export_dynamic_flag_spec='${wl}-E'
5823 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5825 hardcode_libdir_flag_spec='-R$libdir'
5828 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5836 hardcode_libdir_flag_spec='-L$libdir'
5837 hardcode_minus_L=yes
5838 allow_undefined_flag=unsupported
5839 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'
5840 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5844 if test "$GCC" = yes; then
5845 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5846 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'
5848 allow_undefined_flag=' -expect_unresolved \*'
5849 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'
5851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5852 hardcode_libdir_separator=:
5855 osf4* | osf5*) # as osf3* with the addition of -msym flag
5856 if test "$GCC" = yes; then
5857 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5858 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'
5859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5861 allow_undefined_flag=' -expect_unresolved \*'
5862 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'
5863 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5864 $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'
5866 #Both c and cxx compiler support -rpath directly
5867 hardcode_libdir_flag_spec='-rpath $libdir'
5869 hardcode_libdir_separator=:
5873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5874 hardcode_shlibpath_var=no
5875 runpath_var=LD_RUN_PATH
5876 hardcode_runpath_var=yes
5877 export_dynamic_flag_spec='${wl}-Bexport'
5881 # gcc --version < 3.0 without binutils cannot create self contained
5882 # shared libraries reliably, requiring libgcc.a to resolve some of
5883 # the object symbols generated in some cases. Libraries that use
5884 # assert need libgcc.a to resolve __eprintf, for example. Linking
5885 # a copy of libgcc.a into every shared library to guarantee resolving
5886 # such symbols causes other problems: According to Tim Van Holder
5887 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5888 # (to the application) exception stack for one thing.
5889 no_undefined_flag=' -z defs'
5890 if test "$GCC" = yes; then
5891 case `$CC --version 2>/dev/null` in
5895 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5896 *** create self contained shared libraries on Solaris systems, without
5897 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5898 *** -no-undefined support, which will at least allow you to build shared
5899 *** libraries. However, you may find that when you link such libraries
5900 *** into an application without using GCC, you have to manually add
5901 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5902 *** upgrade to a newer version of GCC. Another option is to rebuild your
5903 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5910 # $CC -shared without GNU ld will not create a library from C++
5911 # object files and a static libstdc++, better avoid it by now
5912 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5913 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5914 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5915 hardcode_libdir_flag_spec='-R$libdir'
5916 hardcode_shlibpath_var=no
5918 solaris2.[0-5] | solaris2.[0-5].*) ;;
5919 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5920 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5922 link_all_deplibs=yes
5926 if test "x$host_vendor" = xsequent; then
5927 # Use $CC to link under sequent, because it throws in some extra .o
5928 # files that make .init and .fini sections work.
5929 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5931 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5933 hardcode_libdir_flag_spec='-L$libdir'
5935 hardcode_minus_L=yes
5936 hardcode_shlibpath_var=no
5940 if test "x$host_vendor" = xsno; then
5941 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5942 hardcode_direct=yes # is this really true???
5944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5945 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5947 runpath_var='LD_RUN_PATH'
5948 hardcode_shlibpath_var=no
5952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5953 hardcode_shlibpath_var=no
5954 export_dynamic_flag_spec='-Bexport'
5958 no_undefined_flag=' -z text'
5959 # $CC -shared without GNU ld will not create a library from C++
5960 # object files and a static libstdc++, better avoid it by now
5961 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5962 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5963 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5964 hardcode_libdir_flag_spec=
5965 hardcode_shlibpath_var=no
5966 runpath_var='LD_RUN_PATH'
5970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5971 hardcode_libdir_flag_spec='-L$libdir'
5972 hardcode_shlibpath_var=no
5976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5977 hardcode_libdir_flag_spec='-L$libdir'
5978 hardcode_shlibpath_var=no
5982 if test -d /usr/nec; then
5983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5984 hardcode_shlibpath_var=no
5985 runpath_var=LD_RUN_PATH
5986 hardcode_runpath_var=yes
5992 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5995 hardcode_shlibpath_var=no
5996 hardcode_runpath_var=yes
5997 runpath_var=LD_RUN_PATH
6000 sysv5uw7* | unixware7*)
6001 no_undefined_flag='${wl}-z ${wl}text'
6002 if test "$GCC" = yes; then
6003 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6005 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6007 runpath_var='LD_RUN_PATH'
6008 hardcode_shlibpath_var=no
6016 echo "$ac_t""$ld_shlibs" 1>&6
6017 test "$ld_shlibs" = no && can_build_shared=no
6019 # Check hardcoding attributes.
6020 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6021 echo "configure:6022: checking how to hardcode library paths into programs" >&5
6023 if test -n "$hardcode_libdir_flag_spec" || \
6024 test -n "$runpath_var"; then
6026 # We can hardcode non-existant directories.
6027 if test "$hardcode_direct" != no &&
6028 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6029 # have to relink, otherwise we might link with an installed library
6030 # when we should be linking with a yet-to-be-installed one
6031 ## test "$hardcode_shlibpath_var" != no &&
6032 test "$hardcode_minus_L" != no; then
6033 # Linking always hardcodes the temporary library directory.
6034 hardcode_action=relink
6036 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6037 hardcode_action=immediate
6040 # We cannot hardcode anything, or else we can only hardcode existing
6042 hardcode_action=unsupported
6044 echo "$ac_t""$hardcode_action" 1>&6
6048 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6049 echo "configure:6050: checking whether stripping libraries is possible" >&5
6050 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6051 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6052 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6053 echo "$ac_t""yes" 1>&6
6055 echo "$ac_t""no" 1>&6
6058 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6059 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6061 # PORTME Fill in your ld.so characteristics
6062 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6063 echo "configure:6064: checking dynamic linker characteristics" >&5
6065 libname_spec='lib$name'
6072 shlibpath_overrides_runpath=unknown
6074 dynamic_linker="$host_os ld.so"
6075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6076 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6081 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6082 shlibpath_var=LIBPATH
6084 # AIX has no versioning support, so we append a major version to the name.
6085 soname_spec='${libname}${release}.so$major'
6090 if test "$host_cpu" = ia64; then
6091 # AIX 5 supports IA64
6092 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6093 shlibpath_var=LD_LIBRARY_PATH
6095 # With GCC up to 2.95.x, collect2 would create an import file
6096 # for dependence libraries. The import file would start with
6097 # the line `#! .'. This would cause the generated library to
6098 # depend on `.', always an invalid library. This was fixed in
6099 # development snapshots of GCC prior to 3.0.
6101 aix4 | aix4.[01] | aix4.[01].*)
6102 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6104 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6111 # AIX (on Power*) has no versioning support, so currently we can
6112 # not hardcode correct soname into executable. Probably we can
6113 # add versioning support to collect2, so additional links can
6114 # be useful in future.
6115 if test "$aix_use_runtimelinking" = yes; then
6116 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6117 # instead of lib<name>.a to let people know that these are not
6118 # typical AIX shared libraries.
6119 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6121 # We preserve .a as extension for shared libraries through AIX4.2
6122 # and later when we are not doing run time linking.
6123 library_names_spec='${libname}${release}.a $libname.a'
6124 soname_spec='${libname}${release}.so$major'
6126 shlibpath_var=LIBPATH
6131 library_names_spec='$libname.ixlibrary $libname.a'
6132 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6133 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'
6137 library_names_spec='${libname}.so'
6138 dynamic_linker="$host_os ld.so"
6139 shlibpath_var=LIBRARY_PATH
6145 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6146 soname_spec='${libname}${release}.so$major'
6147 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6148 shlibpath_var=LD_LIBRARY_PATH
6149 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6150 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6151 export_dynamic_flag_spec=-rdynamic
6152 # the default ld.so.conf also contains /usr/contrib/lib and
6153 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6154 # libtool to hard-code these into programs
6157 cygwin* | mingw* | pw32*)
6158 version_type=windows
6161 case $GCC,$host_os in
6163 library_names_spec='$libname.dll.a'
6164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6165 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6166 dldir=$destdir/`dirname \$dlpath`~
6167 test -d \$dldir || mkdir -p \$dldir~
6168 $install_prog .libs/$dlname \$dldir/$dlname'
6169 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6170 dlpath=$dir/\$dldll~
6174 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6175 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6178 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6181 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6184 dynamic_linker='Win32 ld.exe'
6185 # FIXME: first we should search . and the directory the executable is in
6189 darwin* | rhapsody*)
6190 dynamic_linker="$host_os dyld"
6194 # FIXME: Relying on posixy $() will cause problems for
6195 # cross-compilation, but unfortunately the echo tests do not
6196 # yet detect zsh echo's removal of \ escapes.
6197 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)'
6198 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6199 shlibpath_overrides_runpath=yes
6200 shlibpath_var=DYLD_LIBRARY_PATH
6208 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6209 version_type=freebsd-$objformat
6210 case $version_type in
6212 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6217 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6221 shlibpath_var=LD_LIBRARY_PATH
6224 shlibpath_overrides_runpath=yes
6227 shlibpath_overrides_runpath=no
6228 hardcode_into_libs=yes
6237 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6238 soname_spec='${libname}${release}.so$major'
6239 shlibpath_var=LD_LIBRARY_PATH
6240 hardcode_into_libs=yes
6243 hpux9* | hpux10* | hpux11*)
6244 # Give a soname corresponding to the major version so that dld.sl refuses to
6245 # link against other versions.
6246 dynamic_linker="$host_os dld.sl"
6250 shlibpath_var=SHLIB_PATH
6251 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6252 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6253 soname_spec='${libname}${release}.sl$major'
6254 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6255 postinstall_cmds='chmod 555 $lib'
6262 soname_spec='${libname}${release}.so$major'
6263 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6269 case $LD in # libtool.m4 will add one of these switches to LD
6270 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6271 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6272 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6273 *) libsuff= shlibsuff= libmagic=never-match;;
6277 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6278 shlibpath_overrides_runpath=no
6279 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6280 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6283 # No shared lib support for Linux oldld, aout, or coff.
6284 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6288 # This must be Linux ELF.
6293 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6294 soname_spec='${libname}${release}.so$major'
6295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6296 shlibpath_var=LD_LIBRARY_PATH
6297 shlibpath_overrides_runpath=no
6298 # This implies no fast_install, which is unacceptable.
6299 # Some rework will be needed to allow for fast_install
6300 # before this can be enabled.
6301 hardcode_into_libs=yes
6303 # We used to test for /lib/ld.so.1 and disable shared libraries on
6304 # powerpc, because MkLinux only supported shared libraries with the
6305 # GNU dynamic linker. Since this was broken with cross compilers,
6306 # most powerpc-linux boxes support dynamic linking these days and
6307 # people can always --disable-shared, the test was removed, and we
6308 # assume the GNU/Linux dynamic linker is in use.
6309 dynamic_linker='GNU/Linux ld.so'
6316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6317 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6319 dynamic_linker='NetBSD (a.out) ld.so'
6321 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6322 soname_spec='${libname}${release}.so$major'
6323 dynamic_linker='NetBSD ld.elf_so'
6325 shlibpath_var=LD_LIBRARY_PATH
6326 shlibpath_overrides_runpath=yes
6327 hardcode_into_libs=yes
6332 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6333 shlibpath_var=LD_LIBRARY_PATH
6334 shlibpath_overrides_runpath=yes
6341 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6343 openbsd2.[89] | openbsd2.[89].*)
6344 shlibpath_overrides_runpath=no
6347 shlibpath_overrides_runpath=yes
6351 shlibpath_overrides_runpath=yes
6353 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6355 shlibpath_var=LD_LIBRARY_PATH
6359 libname_spec='$name'
6361 library_names_spec='$libname.dll $libname.a'
6362 dynamic_linker='OS/2 ld.exe'
6363 shlibpath_var=LIBPATH
6366 osf3* | osf4* | osf5*)
6369 soname_spec='${libname}${release}.so'
6370 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6371 shlibpath_var=LD_LIBRARY_PATH
6372 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6373 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6378 soname_spec='${libname}${release}.so$major'
6379 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6380 shlibpath_var=LD_LIBRARY_PATH
6387 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6388 soname_spec='${libname}${release}.so$major'
6389 shlibpath_var=LD_LIBRARY_PATH
6390 shlibpath_overrides_runpath=yes
6391 hardcode_into_libs=yes
6392 # ldd complains unless libraries are executable
6393 postinstall_cmds='chmod +x $lib'
6398 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6399 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6400 shlibpath_var=LD_LIBRARY_PATH
6401 shlibpath_overrides_runpath=yes
6402 if test "$with_gnu_ld" = yes; then
6408 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6410 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6411 soname_spec='${libname}${release}.so$major'
6412 shlibpath_var=LD_LIBRARY_PATH
6413 case $host_vendor in
6415 shlibpath_overrides_runpath=no
6420 shlibpath_overrides_runpath=no
6421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6428 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6429 soname_spec='${libname}${release}.so$major'
6430 shlibpath_var=LD_LIBRARY_PATH
6437 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6438 soname_spec='${libname}${release}.so$major'
6439 shlibpath_var=LD_LIBRARY_PATH
6443 if test -d /usr/nec ;then
6445 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6446 soname_spec='$libname.so.$major'
6447 shlibpath_var=LD_LIBRARY_PATH
6455 echo "$ac_t""$dynamic_linker" 1>&6
6456 test "$dynamic_linker" = no && can_build_shared=no
6458 # Report the final consequences.
6459 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6460 echo "configure:6461: checking if libtool supports shared libraries" >&5
6461 echo "$ac_t""$can_build_shared" 1>&6
6463 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6464 echo "configure:6465: checking whether to build shared libraries" >&5
6465 test "$can_build_shared" = "no" && enable_shared=no
6467 # On AIX, shared libraries and static libraries use the same namespace, and
6468 # are all built from PIC.
6471 test "$enable_shared" = yes && enable_static=no
6472 if test -n "$RANLIB"; then
6473 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6474 postinstall_cmds='$RANLIB $lib'
6479 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6480 test "$enable_shared" = yes && enable_static=no
6484 echo "$ac_t""$enable_shared" 1>&6
6486 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6487 echo "configure:6488: checking whether to build static libraries" >&5
6488 # Make sure either enable_shared or enable_static is yes.
6489 test "$enable_shared" = yes || enable_static=yes
6490 echo "$ac_t""$enable_static" 1>&6
6492 if test "$hardcode_action" = relink; then
6493 # Fast installation is not supported
6494 enable_fast_install=no
6495 elif test "$shlibpath_overrides_runpath" = yes ||
6496 test "$enable_shared" = no; then
6497 # Fast installation is not necessary
6498 enable_fast_install=needless
6501 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6502 if test "$GCC" = yes; then
6503 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6506 if test "x$enable_dlopen" != xyes; then
6507 enable_dlopen=unknown
6508 enable_dlopen_self=unknown
6509 enable_dlopen_self_static=unknown
6516 lt_cv_dlopen="load_add_on"
6518 lt_cv_dlopen_self=yes
6521 cygwin* | mingw* | pw32*)
6522 lt_cv_dlopen="LoadLibrary"
6527 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6528 echo "configure:6529: checking for shl_load" >&5
6529 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6530 echo $ac_n "(cached) $ac_c" 1>&6
6532 cat > conftest.$ac_ext <<EOF
6533 #line 6534 "configure"
6534 #include "confdefs.h"
6535 /* System header to define __stub macros and hopefully few prototypes,
6536 which can conflict with char shl_load(); below. */
6538 /* Override any gcc2 internal prototype to avoid an error. */
6539 /* We use char because int might match the return type of a gcc2
6540 builtin and then its argument prototype would still apply. */
6546 /* The GNU C library defines this for functions which it implements
6547 to always fail with ENOSYS. Some functions are actually named
6548 something starting with __ and the normal name is an alias. */
6549 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6557 if { (eval echo configure:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6559 eval "ac_cv_func_shl_load=yes"
6561 echo "configure: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6564 eval "ac_cv_func_shl_load=no"
6569 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6570 echo "$ac_t""yes" 1>&6
6571 lt_cv_dlopen="shl_load"
6573 echo "$ac_t""no" 1>&6
6574 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6575 echo "configure:6576: checking for shl_load in -ldld" >&5
6576 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6577 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6578 echo $ac_n "(cached) $ac_c" 1>&6
6580 ac_save_LIBS="$LIBS"
6582 cat > conftest.$ac_ext <<EOF
6583 #line 6584 "configure"
6584 #include "confdefs.h"
6585 /* Override any gcc2 internal prototype to avoid an error. */
6586 /* We use char because int might match the return type of a gcc2
6587 builtin and then its argument prototype would still apply. */
6594 if { (eval echo configure:6595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6596 eval "ac_cv_lib_$ac_lib_var=yes"
6598 echo "configure: failed program was:" >&5
6599 cat conftest.$ac_ext >&5
6601 eval "ac_cv_lib_$ac_lib_var=no"
6604 LIBS="$ac_save_LIBS"
6607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6608 echo "$ac_t""yes" 1>&6
6609 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6611 echo "$ac_t""no" 1>&6
6612 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6613 echo "configure:6614: checking for dlopen" >&5
6614 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6615 echo $ac_n "(cached) $ac_c" 1>&6
6617 cat > conftest.$ac_ext <<EOF
6618 #line 6619 "configure"
6619 #include "confdefs.h"
6620 /* System header to define __stub macros and hopefully few prototypes,
6621 which can conflict with char dlopen(); below. */
6623 /* Override any gcc2 internal prototype to avoid an error. */
6624 /* We use char because int might match the return type of a gcc2
6625 builtin and then its argument prototype would still apply. */
6631 /* The GNU C library defines this for functions which it implements
6632 to always fail with ENOSYS. Some functions are actually named
6633 something starting with __ and the normal name is an alias. */
6634 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6642 if { (eval echo configure:6643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6644 eval "ac_cv_func_dlopen=yes"
6646 echo "configure: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6649 eval "ac_cv_func_dlopen=no"
6654 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6655 echo "$ac_t""yes" 1>&6
6656 lt_cv_dlopen="dlopen"
6658 echo "$ac_t""no" 1>&6
6659 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6660 echo "configure:6661: checking for dlopen in -ldl" >&5
6661 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6662 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6663 echo $ac_n "(cached) $ac_c" 1>&6
6665 ac_save_LIBS="$LIBS"
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6670 /* Override any gcc2 internal prototype to avoid an error. */
6671 /* We use char because int might match the return type of a gcc2
6672 builtin and then its argument prototype would still apply. */
6679 if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6681 eval "ac_cv_lib_$ac_lib_var=yes"
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6686 eval "ac_cv_lib_$ac_lib_var=no"
6689 LIBS="$ac_save_LIBS"
6692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6693 echo "$ac_t""yes" 1>&6
6694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6696 echo "$ac_t""no" 1>&6
6697 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6698 echo "configure:6699: checking for dlopen in -lsvld" >&5
6699 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6700 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6701 echo $ac_n "(cached) $ac_c" 1>&6
6703 ac_save_LIBS="$LIBS"
6705 cat > conftest.$ac_ext <<EOF
6706 #line 6707 "configure"
6707 #include "confdefs.h"
6708 /* Override any gcc2 internal prototype to avoid an error. */
6709 /* We use char because int might match the return type of a gcc2
6710 builtin and then its argument prototype would still apply. */
6717 if { (eval echo configure:6718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6719 eval "ac_cv_lib_$ac_lib_var=yes"
6721 echo "configure: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6724 eval "ac_cv_lib_$ac_lib_var=no"
6727 LIBS="$ac_save_LIBS"
6730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6731 echo "$ac_t""yes" 1>&6
6732 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6734 echo "$ac_t""no" 1>&6
6735 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6736 echo "configure:6737: checking for dld_link in -ldld" >&5
6737 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6738 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6739 echo $ac_n "(cached) $ac_c" 1>&6
6741 ac_save_LIBS="$LIBS"
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6746 /* Override any gcc2 internal prototype to avoid an error. */
6747 /* We use char because int might match the return type of a gcc2
6748 builtin and then its argument prototype would still apply. */
6755 if { (eval echo configure:6756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6757 eval "ac_cv_lib_$ac_lib_var=yes"
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6762 eval "ac_cv_lib_$ac_lib_var=no"
6765 LIBS="$ac_save_LIBS"
6768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6769 echo "$ac_t""yes" 1>&6
6770 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6772 echo "$ac_t""no" 1>&6
6793 if test "x$lt_cv_dlopen" != xno; then
6799 case $lt_cv_dlopen in
6801 save_CPPFLAGS="$CPPFLAGS"
6802 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6804 save_LDFLAGS="$LDFLAGS"
6805 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6808 LIBS="$lt_cv_dlopen_libs $LIBS"
6810 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6811 echo "configure:6812: checking whether a program can dlopen itself" >&5
6812 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6813 echo $ac_n "(cached) $ac_c" 1>&6
6815 if test "$cross_compiling" = yes; then :
6816 lt_cv_dlopen_self=cross
6818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6819 lt_status=$lt_dlunknown
6820 cat > conftest.$ac_ext <<EOF
6821 #line 6822 "configure"
6822 #include "confdefs.h"
6831 # define LT_DLGLOBAL RTLD_GLOBAL
6834 # define LT_DLGLOBAL DL_GLOBAL
6836 # define LT_DLGLOBAL 0
6840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6841 find out it does not work in some platform. */
6842 #ifndef LT_DLLAZY_OR_NOW
6844 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6847 # define LT_DLLAZY_OR_NOW DL_LAZY
6850 # define LT_DLLAZY_OR_NOW RTLD_NOW
6853 # define LT_DLLAZY_OR_NOW DL_NOW
6855 # define LT_DLLAZY_OR_NOW 0
6863 extern "C" void exit (int);
6866 void fnord() { int i=42;}
6869 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6870 int status = $lt_dlunknown;
6874 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6875 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6876 /* dlclose (self); */
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6883 (./conftest; exit; ) 2>/dev/null
6886 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6887 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6888 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6891 # compilation failed
6892 lt_cv_dlopen_self=no
6900 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6902 if test "x$lt_cv_dlopen_self" = xyes; then
6903 LDFLAGS="$LDFLAGS $link_static_flag"
6904 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6905 echo "configure:6906: checking whether a statically linked program can dlopen itself" >&5
6906 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6907 echo $ac_n "(cached) $ac_c" 1>&6
6909 if test "$cross_compiling" = yes; then :
6910 lt_cv_dlopen_self_static=cross
6912 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6913 lt_status=$lt_dlunknown
6914 cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6925 # define LT_DLGLOBAL RTLD_GLOBAL
6928 # define LT_DLGLOBAL DL_GLOBAL
6930 # define LT_DLGLOBAL 0
6934 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6935 find out it does not work in some platform. */
6936 #ifndef LT_DLLAZY_OR_NOW
6938 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6941 # define LT_DLLAZY_OR_NOW DL_LAZY
6944 # define LT_DLLAZY_OR_NOW RTLD_NOW
6947 # define LT_DLLAZY_OR_NOW DL_NOW
6949 # define LT_DLLAZY_OR_NOW 0
6957 extern "C" void exit (int);
6960 void fnord() { int i=42;}
6963 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6964 int status = $lt_dlunknown;
6968 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6969 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6970 /* dlclose (self); */
6976 if { (eval echo configure:6977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6977 (./conftest; exit; ) 2>/dev/null
6980 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6981 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6982 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6985 # compilation failed
6986 lt_cv_dlopen_self_static=no
6994 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6997 CPPFLAGS="$save_CPPFLAGS"
6998 LDFLAGS="$save_LDFLAGS"
7003 case $lt_cv_dlopen_self in
7004 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7005 *) enable_dlopen_self=unknown ;;
7008 case $lt_cv_dlopen_self_static in
7009 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7010 *) enable_dlopen_self_static=unknown ;;
7015 if test "$enable_shared" = yes && test "$GCC" = yes; then
7016 case $archive_cmds in
7018 # FIXME: we may have to deal with multi-command sequences.
7021 # Test whether the compiler implicitly links with -lc since on some
7022 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7023 # to ld, don't add -lc before -lgcc.
7024 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7025 echo "configure:7026: checking whether -lc should be explicitly linked in" >&5
7026 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7027 echo $ac_n "(cached) $ac_c" 1>&6
7030 echo 'static int dummy;' > conftest.$ac_ext
7032 if { (eval echo configure:7033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7035 libobjs=conftest.$ac_objext
7037 wl=$lt_cv_prog_cc_wl
7043 save_allow_undefined_flag=$allow_undefined_flag
7044 allow_undefined_flag=
7045 if { (eval echo configure:7046: \"$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; }
7047 lt_cv_archive_cmds_need_lc=no
7049 lt_cv_archive_cmds_need_lc=yes
7051 allow_undefined_flag=$save_allow_undefined_flag
7053 cat conftest.err 1>&5
7057 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7061 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7063 # The second clause should only fire when bootstrapping the
7064 # libtool distribution, otherwise you forgot to ship ltmain.sh
7065 # with your package, and you will get complaints that there are
7066 # no rules to generate ltmain.sh.
7067 if test -f "$ltmain"; then
7070 # If there is no Makefile yet, we rely on a make rule to execute
7071 # `config.status --recheck' to rerun these tests and create the
7072 # libtool script then.
7073 test -f Makefile && make "$ltmain"
7076 if test -f "$ltmain"; then
7077 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7080 echo creating $ofile
7082 # Now quote all the things that may contain metacharacters while being
7083 # careful not to overquote the AC_SUBSTed values. We take copies of the
7084 # variables and quote the copies for generation of the libtool script.
7085 for var in echo old_CC old_CFLAGS \
7086 AR AR_FLAGS CC LD LN_S NM SHELL \
7087 reload_flag reload_cmds wl \
7088 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7089 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7090 library_names_spec soname_spec \
7091 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7092 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7093 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7094 old_striplib striplib file_magic_cmd export_symbols_cmds \
7095 deplibs_check_method allow_undefined_flag no_undefined_flag \
7096 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7097 global_symbol_to_c_name_address \
7098 hardcode_libdir_flag_spec hardcode_libdir_separator \
7099 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7100 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7103 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7104 old_postinstall_cmds | old_postuninstall_cmds | \
7105 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7106 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7107 postinstall_cmds | postuninstall_cmds | \
7108 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7109 # Double-quote double-evaled strings.
7110 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7118 cat <<__EOF__ > "${ofile}T"
7121 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7122 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7123 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7125 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7126 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7128 # This program is free software; you can redistribute it and/or modify
7129 # it under the terms of the GNU General Public License as published by
7130 # the Free Software Foundation; either version 2 of the License, or
7131 # (at your option) any later version.
7133 # This program is distributed in the hope that it will be useful, but
7134 # WITHOUT ANY WARRANTY; without even the implied warranty of
7135 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7136 # General Public License for more details.
7138 # You should have received a copy of the GNU General Public License
7139 # along with this program; if not, write to the Free Software
7140 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7142 # As a special exception to the GNU General Public License, if you
7143 # distribute this file as part of a program that contains a
7144 # configuration script generated by Autoconf, you may include it under
7145 # the same distribution terms that you use for the rest of that program.
7147 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7148 Xsed="sed -e s/^X//"
7150 # The HP-UX ksh and POSIX shell print the target directory to stdout
7152 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7154 # ### BEGIN LIBTOOL CONFIG
7156 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7158 # Shell to use when invoking shell scripts.
7161 # Whether or not to build shared libraries.
7162 build_libtool_libs=$enable_shared
7164 # Whether or not to build static libraries.
7165 build_old_libs=$enable_static
7167 # Whether or not to add -lc for building shared libraries.
7168 build_libtool_need_lc=$need_lc
7170 # Whether or not to optimize for fast installation.
7171 fast_install=$enable_fast_install
7174 host_alias=$host_alias
7177 # An echo program that does not interpret backslashes.
7182 AR_FLAGS=$lt_AR_FLAGS
7184 # The default C compiler.
7187 # Is the compiler the GNU C compiler?
7190 # The linker used to build libraries.
7193 # Whether we need hard or soft links.
7196 # A BSD-compatible nm program.
7199 # A symbol stripping program
7202 # Used to examine libraries when file_magic_cmd begins "file"
7203 MAGIC_CMD=$MAGIC_CMD
7205 # Used on cygwin: DLL creation program.
7208 # Used on cygwin: object dumper.
7211 # Used on cygwin: assembler.
7214 # The name of the directory that contains temporary libtool files.
7217 # How to create reloadable object files.
7218 reload_flag=$lt_reload_flag
7219 reload_cmds=$lt_reload_cmds
7221 # How to pass a linker flag through the compiler.
7224 # Object file suffix (normally "o").
7227 # Old archive suffix (normally "a").
7230 # Executable file suffix (normally "").
7233 # Additional compiler flags for building library objects.
7234 pic_flag=$lt_pic_flag
7237 # Does compiler simultaneously support -c and -o options?
7238 compiler_c_o=$lt_compiler_c_o
7240 # Can we write directly to a .lo ?
7241 compiler_o_lo=$lt_compiler_o_lo
7243 # Must we lock files when doing compilation ?
7244 need_locks=$lt_need_locks
7246 # Do we need the lib prefix for modules?
7247 need_lib_prefix=$need_lib_prefix
7249 # Do we need a version for libraries?
7250 need_version=$need_version
7252 # Whether dlopen is supported.
7253 dlopen_support=$enable_dlopen
7255 # Whether dlopen of programs is supported.
7256 dlopen_self=$enable_dlopen_self
7258 # Whether dlopen of statically linked programs is supported.
7259 dlopen_self_static=$enable_dlopen_self_static
7261 # Compiler flag to prevent dynamic linking.
7262 link_static_flag=$lt_link_static_flag
7264 # Compiler flag to turn off builtin functions.
7265 no_builtin_flag=$lt_no_builtin_flag
7267 # Compiler flag to allow reflexive dlopens.
7268 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7270 # Compiler flag to generate shared objects directly from archives.
7271 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7273 # Compiler flag to generate thread-safe objects.
7274 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7276 # Library versioning type.
7277 version_type=$version_type
7279 # Format of library name prefix.
7280 libname_spec=$lt_libname_spec
7282 # List of archive names. First name is the real one, the rest are links.
7283 # The last name is the one that the linker finds with -lNAME.
7284 library_names_spec=$lt_library_names_spec
7286 # The coded name of the library, if different from the real name.
7287 soname_spec=$lt_soname_spec
7289 # Commands used to build and install an old-style archive.
7291 old_archive_cmds=$lt_old_archive_cmds
7292 old_postinstall_cmds=$lt_old_postinstall_cmds
7293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7295 # Create an old-style archive from a shared archive.
7296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7298 # Create a temporary old-style archive to link instead of a shared archive.
7299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7301 # Commands used to build and install a shared archive.
7302 archive_cmds=$lt_archive_cmds
7303 archive_expsym_cmds=$lt_archive_expsym_cmds
7304 postinstall_cmds=$lt_postinstall_cmds
7305 postuninstall_cmds=$lt_postuninstall_cmds
7307 # Commands to strip libraries.
7308 old_striplib=$lt_old_striplib
7309 striplib=$lt_striplib
7311 # Method to check whether dependent libraries are shared objects.
7312 deplibs_check_method=$lt_deplibs_check_method
7314 # Command to use when deplibs_check_method == file_magic.
7315 file_magic_cmd=$lt_file_magic_cmd
7317 # Flag that allows shared libraries with undefined symbols to be built.
7318 allow_undefined_flag=$lt_allow_undefined_flag
7320 # Flag that forces no undefined symbols.
7321 no_undefined_flag=$lt_no_undefined_flag
7323 # Commands used to finish a libtool library installation in a directory.
7324 finish_cmds=$lt_finish_cmds
7326 # Same as above, but a single script fragment to be evaled but not shown.
7327 finish_eval=$lt_finish_eval
7329 # Take the output of nm and produce a listing of raw symbols and C names.
7330 global_symbol_pipe=$lt_global_symbol_pipe
7332 # Transform the output of nm in a proper C declaration
7333 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7335 # Transform the output of nm in a C name address pair
7336 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7338 # This is the shared library runtime path variable.
7339 runpath_var=$runpath_var
7341 # This is the shared library path variable.
7342 shlibpath_var=$shlibpath_var
7344 # Is shlibpath searched before the hard-coded library search path?
7345 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7347 # How to hardcode a shared library path into an executable.
7348 hardcode_action=$hardcode_action
7350 # Whether we should hardcode library paths into libraries.
7351 hardcode_into_libs=$hardcode_into_libs
7353 # Flag to hardcode \$libdir into a binary during linking.
7354 # This must work even if \$libdir does not exist.
7355 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7357 # Whether we need a single -rpath flag with a separated argument.
7358 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7360 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7362 hardcode_direct=$hardcode_direct
7364 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7366 hardcode_minus_L=$hardcode_minus_L
7368 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7369 # the resulting binary.
7370 hardcode_shlibpath_var=$hardcode_shlibpath_var
7372 # Variables whose values should be saved in libtool wrapper scripts and
7373 # restored at relink time.
7374 variables_saved_for_relink="$variables_saved_for_relink"
7376 # Whether libtool must link a program against all its dependency libraries.
7377 link_all_deplibs=$link_all_deplibs
7379 # Compile-time system search path for libraries
7380 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7382 # Run-time system search path for libraries
7383 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7385 # Fix the shell variable \$srcfile for the compiler.
7386 fix_srcfile_path="$fix_srcfile_path"
7388 # Set to yes if exported symbols are required.
7389 always_export_symbols=$always_export_symbols
7391 # The commands to list exported symbols.
7392 export_symbols_cmds=$lt_export_symbols_cmds
7394 # The commands to extract the exported symbol list from a shared archive.
7395 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7397 # Symbols that should not be listed in the preloaded symbols.
7398 exclude_expsyms=$lt_exclude_expsyms
7400 # Symbols that must always be exported.
7401 include_expsyms=$lt_include_expsyms
7403 # ### END LIBTOOL CONFIG
7409 cat <<\EOF >> "${ofile}T"
7411 # AIX sometimes has problems with the GCC collect2 program. For some
7412 # reason, if we set the COLLECT_NAMES environment variable, the problems
7413 # vanish in a puff of smoke.
7414 if test "X${COLLECT_NAMES+set}" != Xset; then
7416 export COLLECT_NAMES
7423 cygwin* | mingw* | pw32* | os2*)
7424 cat <<'EOF' >> "${ofile}T"
7425 # This is a source program that is used to create dlls on Windows
7426 # Don't remove nor modify the starting and closing comments
7427 # /* ltdll.c starts here */
7428 # #define WIN32_LEAN_AND_MEAN
7429 # #include <windows.h>
7430 # #undef WIN32_LEAN_AND_MEAN
7431 # #include <stdio.h>
7433 # #ifndef __CYGWIN__
7434 # # ifdef __CYGWIN32__
7435 # # define __CYGWIN__ __CYGWIN32__
7439 # #ifdef __cplusplus
7442 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7443 # #ifdef __cplusplus
7448 # #include <cygwin/cygwin_dll.h>
7449 # DECLARE_CYGWIN_DLL( DllMain );
7451 # HINSTANCE __hDllInstance_base;
7454 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7456 # __hDllInstance_base = hInst;
7459 # /* ltdll.c ends here */
7460 # This is a source program that is used to create import libraries
7461 # on Windows for dlls which lack them. Don't remove nor modify the
7462 # starting and closing comments
7463 # /* impgen.c starts here */
7464 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7466 # This file is part of GNU libtool.
7468 # This program is free software; you can redistribute it and/or modify
7469 # it under the terms of the GNU General Public License as published by
7470 # the Free Software Foundation; either version 2 of the License, or
7471 # (at your option) any later version.
7473 # This program is distributed in the hope that it will be useful,
7474 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7475 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7476 # GNU General Public License for more details.
7478 # You should have received a copy of the GNU General Public License
7479 # along with this program; if not, write to the Free Software
7480 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7483 # #include <stdio.h> /* for printf() */
7484 # #include <unistd.h> /* for open(), lseek(), read() */
7485 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7486 # #include <string.h> /* for strdup() */
7488 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7490 # #define O_BINARY 0
7493 # static unsigned int
7494 # pe_get16 (fd, offset)
7498 # unsigned char b[2];
7499 # lseek (fd, offset, SEEK_SET);
7501 # return b[0] + (b[1]<<8);
7504 # static unsigned int
7505 # pe_get32 (fd, offset)
7509 # unsigned char b[4];
7510 # lseek (fd, offset, SEEK_SET);
7512 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7515 # static unsigned int
7519 # unsigned char *b = ptr;
7520 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7529 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7530 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7531 # unsigned long name_rvas, nexp;
7532 # unsigned char *expdata, *erva;
7533 # char *filename, *dll_name;
7535 # filename = argv[1];
7537 # dll = open(filename, O_RDONLY|O_BINARY);
7541 # dll_name = filename;
7543 # for (i=0; filename[i]; i++)
7544 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7545 # dll_name = filename + i +1;
7547 # pe_header_offset = pe_get32 (dll, 0x3c);
7548 # opthdr_ofs = pe_header_offset + 4 + 20;
7549 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7551 # if (num_entries < 1) /* no exports */
7554 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7555 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7556 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7557 # secptr = (pe_header_offset + 4 + 20 +
7558 # pe_get16 (dll, pe_header_offset + 4 + 16));
7561 # for (i = 0; i < nsections; i++)
7564 # unsigned long secptr1 = secptr + 40 * i;
7565 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7566 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7567 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7568 # lseek(dll, secptr1, SEEK_SET);
7569 # read(dll, sname, 8);
7570 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7572 # expptr = fptr + (export_rva - vaddr);
7573 # if (export_rva + export_size > vaddr + vsize)
7574 # export_size = vsize - (export_rva - vaddr);
7579 # expdata = (unsigned char*)malloc(export_size);
7580 # lseek (dll, expptr, SEEK_SET);
7581 # read (dll, expdata, export_size);
7582 # erva = expdata - export_rva;
7584 # nexp = pe_as32 (expdata+24);
7585 # name_rvas = pe_as32 (expdata+32);
7587 # printf ("EXPORTS\n");
7588 # for (i = 0; i<nexp; i++)
7590 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7591 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7596 # /* impgen.c ends here */
7602 # We use sed instead of cat because bash on DJGPP gets confused if
7603 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7604 # text mode, it properly converts lines to CR/LF. This bash problem
7605 # is reportedly fixed, but why not run on old versions too?
7606 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7608 mv -f "${ofile}T" "$ofile" || \
7609 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7617 # This can be used to rebuild libtool when needed
7618 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7620 # Always use our own libtool.
7621 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7623 # Prevent multiple expansion
7627 for ac_prog in mawk gawk nawk awk
7629 # Extract the first word of "$ac_prog", so it can be a program name with args.
7630 set dummy $ac_prog; ac_word=$2
7631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7632 echo "configure:7633: checking for $ac_word" >&5
7633 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
7634 echo $ac_n "(cached) $ac_c" 1>&6
7636 if test -n "$AWK"; then
7637 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7641 for ac_dir in $ac_dummy; do
7642 test -z "$ac_dir" && ac_dir=.
7643 if test -f $ac_dir/$ac_word; then
7644 ac_cv_prog_AWK="$ac_prog"
7651 AWK="$ac_cv_prog_AWK"
7652 if test -n "$AWK"; then
7653 echo "$ac_t""$AWK" 1>&6
7655 echo "$ac_t""no" 1>&6
7658 test -n "$AWK" && break
7661 # test for ln hardlink support
7662 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7663 echo "configure:7664: checking whether ln works" >&5
7664 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7667 rm -f conftest.src conftest.dst
7668 echo "conftest" > conftest.src
7669 if ln conftest.src conftest.dst 2>/dev/null
7671 ol_cv_prog_LN_H="ln"
7673 ol_cv_prog_LN_H="cp"
7675 rm -f conftest.src conftest.dst
7678 LN_H="$ol_cv_prog_LN_H"
7679 if test "$ol_cv_prog_LN_H" = "ln"; then
7680 echo "$ac_t""yes" 1>&6
7682 echo "$ac_t""no" 1>&6
7685 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7686 echo "configure:7687: checking whether ln -s works" >&5
7687 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7688 echo $ac_n "(cached) $ac_c" 1>&6
7691 if ln -s X conftestdata 2>/dev/null
7694 ac_cv_prog_LN_S="ln -s"
7699 LN_S="$ac_cv_prog_LN_S"
7700 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7701 echo "$ac_t""yes" 1>&6
7703 echo "$ac_t""no" 1>&6
7707 # Extract the first word of "sendmail", so it can be a program name with args.
7708 set dummy sendmail; ac_word=$2
7709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7710 echo "configure:7711: checking for $ac_word" >&5
7711 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7712 echo $ac_n "(cached) $ac_c" 1>&6
7716 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7719 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7723 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7724 for ac_dir in $ac_dummy; do
7725 test -z "$ac_dir" && ac_dir=.
7726 if test -f $ac_dir/$ac_word; then
7727 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7732 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7736 SENDMAIL="$ac_cv_path_SENDMAIL"
7737 if test -n "$SENDMAIL"; then
7738 echo "$ac_t""$SENDMAIL" 1>&6
7740 echo "$ac_t""no" 1>&6
7743 # Extract the first word of "vi", so it can be a program name with args.
7744 set dummy vi; ac_word=$2
7745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7746 echo "configure:7747: checking for $ac_word" >&5
7747 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7748 echo $ac_n "(cached) $ac_c" 1>&6
7752 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7755 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7759 ac_dummy="$PATH:/usr/ucb"
7760 for ac_dir in $ac_dummy; do
7761 test -z "$ac_dir" && ac_dir=.
7762 if test -f $ac_dir/$ac_word; then
7763 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7768 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7772 EDITOR="$ac_cv_path_EDITOR"
7773 if test -n "$EDITOR"; then
7774 echo "$ac_t""$EDITOR" 1>&6
7776 echo "$ac_t""no" 1>&6
7781 if test $ol_enable_perl != no ; then
7782 # Extract the first word of "perl", so it can be a program name with args.
7783 set dummy perl; ac_word=$2
7784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7785 echo "configure:7786: checking for $ac_word" >&5
7786 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7791 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7794 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7799 for ac_dir in $ac_dummy; do
7800 test -z "$ac_dir" && ac_dir=.
7801 if test -f $ac_dir/$ac_word; then
7802 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7807 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7811 PERLBIN="$ac_cv_path_PERLBIN"
7812 if test -n "$PERLBIN"; then
7813 echo "$ac_t""$PERLBIN" 1>&6
7815 echo "$ac_t""no" 1>&6
7819 if test "no$PERLBIN" = "no" ; then
7820 if test $ol_enable_perl = yes ; then
7821 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7825 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7826 if test x"$ol_with_perl_module" = "xstatic" ; then
7827 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7829 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7835 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7836 echo "configure:7837: checking how to run the C preprocessor" >&5
7837 # On Suns, sometimes $CPP names a directory.
7838 if test -n "$CPP" && test -d "$CPP"; then
7841 if test -z "$CPP"; then
7842 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7843 echo $ac_n "(cached) $ac_c" 1>&6
7845 # This must be in double quotes, not single quotes, because CPP may get
7846 # substituted into the Makefile and "${CC-cc}" will confuse make.
7848 # On the NeXT, cc -E runs the code through the compiler's parser,
7849 # not just through cpp.
7850 cat > conftest.$ac_ext <<EOF
7851 #line 7852 "configure"
7852 #include "confdefs.h"
7856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7857 { (eval echo configure:7858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7859 if test -z "$ac_err"; then
7863 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7866 CPP="${CC-cc} -E -traditional-cpp"
7867 cat > conftest.$ac_ext <<EOF
7868 #line 7869 "configure"
7869 #include "confdefs.h"
7873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7874 { (eval echo configure:7875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7876 if test -z "$ac_err"; then
7880 echo "configure: failed program was:" >&5
7881 cat conftest.$ac_ext >&5
7883 CPP="${CC-cc} -nologo -E"
7884 cat > conftest.$ac_ext <<EOF
7885 #line 7886 "configure"
7886 #include "confdefs.h"
7890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7891 { (eval echo configure:7892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7893 if test -z "$ac_err"; then
7897 echo "configure: failed program was:" >&5
7898 cat conftest.$ac_ext >&5
7907 ac_cv_prog_CPP="$CPP"
7909 CPP="$ac_cv_prog_CPP"
7911 ac_cv_prog_CPP="$CPP"
7913 echo "$ac_t""$CPP" 1>&6
7916 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7917 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7919 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7920 echo "configure: warning: programs compiled here do run here..." 1>&2
7921 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7923 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7924 echo "configure: warning: programs compiled here do not run here..." 1>&2
7925 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7929 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7930 echo "configure:7931: checking for Cygwin environment" >&5
7931 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7932 echo $ac_n "(cached) $ac_c" 1>&6
7934 cat > conftest.$ac_ext <<EOF
7935 #line 7936 "configure"
7936 #include "confdefs.h"
7941 #define __CYGWIN__ __CYGWIN32__
7946 if { (eval echo configure:7947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7950 echo "configure: failed program was:" >&5
7951 cat conftest.$ac_ext >&5
7958 echo "$ac_t""$ac_cv_cygwin" 1>&6
7960 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7961 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7962 echo "configure:7963: checking for mingw32 environment" >&5
7963 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7964 echo $ac_n "(cached) $ac_c" 1>&6
7966 cat > conftest.$ac_ext <<EOF
7967 #line 7968 "configure"
7968 #include "confdefs.h"
7974 if { (eval echo configure:7975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7978 echo "configure: failed program was:" >&5
7979 cat conftest.$ac_ext >&5
7986 echo "$ac_t""$ac_cv_mingw32" 1>&6
7988 test "$ac_cv_mingw32" = yes && MINGW32=yes
7992 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7993 echo "configure:7994: checking for executable suffix" >&5
7994 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7995 echo $ac_n "(cached) $ac_c" 1>&6
7997 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8001 echo 'int main () { return 0; }' > conftest.$ac_ext
8003 if { (eval echo configure:8004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8004 for file in conftest.*; do
8006 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8007 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8011 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8014 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8019 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8020 echo "$ac_t""${ac_cv_exeext}" 1>&6
8023 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8024 echo "configure:8025: checking for object suffix" >&5
8025 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8026 echo $ac_n "(cached) $ac_c" 1>&6
8029 echo 'int i = 1;' > conftest.$ac_ext
8030 if { (eval echo configure:8031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8031 for ac_file in conftest.*; do
8034 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8038 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8043 echo "$ac_t""$ac_cv_objext" 1>&6
8044 OBJEXT=$ac_cv_objext
8045 ac_objext=$ac_cv_objext
8048 cat >> confdefs.h <<EOF
8049 #define EXEEXT "${EXEEXT}"
8053 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8054 echo "configure:8055: checking for be_app in -lbe" >&5
8055 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8056 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8057 echo $ac_n "(cached) $ac_c" 1>&6
8059 ac_save_LIBS="$LIBS"
8060 LIBS="-lbe -lroot -lnet $LIBS"
8061 cat > conftest.$ac_ext <<EOF
8062 #line 8063 "configure"
8063 #include "confdefs.h"
8064 /* Override any gcc2 internal prototype to avoid an error. */
8065 /* We use char because int might match the return type of a gcc2
8066 builtin and then its argument prototype would still apply. */
8073 if { (eval echo configure:8074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8075 eval "ac_cv_lib_$ac_lib_var=yes"
8077 echo "configure: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8080 eval "ac_cv_lib_$ac_lib_var=no"
8083 LIBS="$ac_save_LIBS"
8086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8087 echo "$ac_t""yes" 1>&6
8088 LIBS="$LIBS -lbe -lroot -lnet"
8090 echo "$ac_t""no" 1>&6
8098 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8099 echo "configure:8100: checking for ${CC-cc} option to accept ANSI C" >&5
8100 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8101 echo $ac_n "(cached) $ac_c" 1>&6
8103 am_cv_prog_cc_stdc=no
8105 # Don't try gcc -ansi; that turns off useful extensions and
8106 # breaks some systems' header files.
8107 # AIX -qlanglvl=ansi
8108 # Ultrix and OSF/1 -std1
8109 # HP-UX 10.20 and later -Ae
8110 # HP-UX older versions -Aa -D_HPUX_SOURCE
8111 # SVR4 -Xc -D__EXTENSIONS__
8112 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8114 CC="$ac_save_CC $ac_arg"
8115 cat > conftest.$ac_ext <<EOF
8116 #line 8117 "configure"
8117 #include "confdefs.h"
8120 #include <sys/types.h>
8121 #include <sys/stat.h>
8122 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8123 struct buf { int x; };
8124 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8125 static char *e (p, i)
8131 static char *f (char * (*g) (char **, int), char **p, ...)
8136 s = g (p, va_arg (v,int));
8140 int test (int i, double x);
8141 struct s1 {int (*f) (int a);};
8142 struct s2 {int (*f) (double a);};
8143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8149 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8153 if { (eval echo configure:8154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8155 am_cv_prog_cc_stdc="$ac_arg"; break
8157 echo "configure: failed program was:" >&5
8158 cat conftest.$ac_ext >&5
8166 if test -z "$am_cv_prog_cc_stdc"; then
8167 echo "$ac_t""none needed" 1>&6
8169 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8171 case "x$am_cv_prog_cc_stdc" in
8173 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8176 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8177 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8180 # test for make depend flag
8183 if test -z "${MKDEP}"; then
8185 if test -z "${MKDEP_FLAGS}"; then
8186 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8187 echo "configure:8188: checking for ${OL_MKDEP} depend flag" >&5
8188 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8189 echo $ac_n "(cached) $ac_c" 1>&6
8193 for flag in "-M" "-xM"; do
8194 cat > conftest.c <<EOF
8197 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8198 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8200 if test ! -f conftest."${ac_object}" ; then
8202 OL_MKDEP_FLAGS="$flag"
8211 echo "$ac_t""$ol_cv_mkdep" 1>&6
8214 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8219 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8224 if test "${ol_cv_mkdep}" = no ; then
8225 # this will soon become an error
8226 echo "configure: warning: do not know how to generate dependencies" 1>&2
8229 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8230 echo "configure:8231: checking for afopen in -ls" >&5
8231 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8232 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8233 echo $ac_n "(cached) $ac_c" 1>&6
8235 ac_save_LIBS="$LIBS"
8237 cat > conftest.$ac_ext <<EOF
8238 #line 8239 "configure"
8239 #include "confdefs.h"
8240 /* Override any gcc2 internal prototype to avoid an error. */
8241 /* We use char because int might match the return type of a gcc2
8242 builtin and then its argument prototype would still apply. */
8249 if { (eval echo configure:8250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8251 eval "ac_cv_lib_$ac_lib_var=yes"
8253 echo "configure: failed program was:" >&5
8254 cat conftest.$ac_ext >&5
8256 eval "ac_cv_lib_$ac_lib_var=no"
8259 LIBS="$ac_save_LIBS"
8262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8263 echo "$ac_t""yes" 1>&6
8266 cat >> confdefs.h <<\EOF
8267 #define HAVE_AIX_SECURITY 1
8272 echo "$ac_t""no" 1>&6
8278 if test $ol_enable_modules != no ; then
8279 for ac_hdr in ltdl.h
8281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8283 echo "configure:8284: checking for $ac_hdr" >&5
8284 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8285 echo $ac_n "(cached) $ac_c" 1>&6
8287 cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8293 { (eval echo configure:8294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8295 if test -z "$ac_err"; then
8297 eval "ac_cv_header_$ac_safe=yes"
8300 echo "configure: failed program was:" >&5
8301 cat conftest.$ac_ext >&5
8303 eval "ac_cv_header_$ac_safe=no"
8307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8308 echo "$ac_t""yes" 1>&6
8309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8310 cat >> confdefs.h <<EOF
8311 #define $ac_tr_hdr 1
8315 echo "$ac_t""no" 1>&6
8320 if test $ac_cv_header_ltdl_h = no ; then
8321 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8324 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8325 echo "configure:8326: checking for lt_dlinit in -lltdl" >&5
8326 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8327 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8328 echo $ac_n "(cached) $ac_c" 1>&6
8330 ac_save_LIBS="$LIBS"
8332 cat > conftest.$ac_ext <<EOF
8333 #line 8334 "configure"
8334 #include "confdefs.h"
8335 /* Override any gcc2 internal prototype to avoid an error. */
8336 /* We use char because int might match the return type of a gcc2
8337 builtin and then its argument prototype would still apply. */
8344 if { (eval echo configure:8345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8346 eval "ac_cv_lib_$ac_lib_var=yes"
8348 echo "configure: failed program was:" >&5
8349 cat conftest.$ac_ext >&5
8351 eval "ac_cv_lib_$ac_lib_var=no"
8354 LIBS="$ac_save_LIBS"
8357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8358 echo "$ac_t""yes" 1>&6
8361 cat >> confdefs.h <<\EOF
8362 #define HAVE_LIBLTDL 1
8367 echo "$ac_t""no" 1>&6
8371 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8372 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8376 ol_with_bdb_module=static
8377 ol_with_dnssrv_module=static
8378 ol_with_ldap_module=static
8379 ol_with_ldbm_module=static
8380 ol_with_meta_module=static
8381 ol_with_monitor_module=static
8382 ol_with_null_module=static
8383 ol_with_passwd_module=static
8384 ol_with_perl_module=static
8385 ol_with_shell_module=static
8386 ol_with_sql_module=static
8390 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8391 echo "configure:8392: checking for EBCDIC" >&5
8392 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
8396 cat > conftest.$ac_ext <<EOF
8397 #line 8398 "configure"
8398 #include "confdefs.h"
8401 #include <__ASCII__/generate_error.h>
8405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8406 { (eval echo configure:8407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8408 if test -z "$ac_err"; then
8410 ol_cv_cpp_ebcdic=yes
8413 echo "configure: failed program was:" >&5
8414 cat conftest.$ac_ext >&5
8421 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8422 if test $ol_cv_cpp_ebcdic = yes ; then
8423 cat >> confdefs.h <<\EOF
8424 #define HAVE_EBCDIC 1
8429 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8430 echo "configure:8431: checking for ANSI C header files" >&5
8431 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8432 echo $ac_n "(cached) $ac_c" 1>&6
8434 cat > conftest.$ac_ext <<EOF
8435 #line 8436 "configure"
8436 #include "confdefs.h"
8442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8443 { (eval echo configure:8444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8445 if test -z "$ac_err"; then
8447 ol_cv_header_stdc=yes
8450 echo "configure: failed program was:" >&5
8451 cat conftest.$ac_ext >&5
8453 ol_cv_header_stdc=no
8457 if test $ol_cv_header_stdc = yes; then
8458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8459 cat > conftest.$ac_ext <<EOF
8460 #line 8461 "configure"
8461 #include "confdefs.h"
8464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8465 egrep "memchr" >/dev/null 2>&1; then
8469 ol_cv_header_stdc=no
8475 if test $ol_cv_header_stdc = yes; then
8476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8477 cat > conftest.$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8483 egrep "free" >/dev/null 2>&1; then
8487 ol_cv_header_stdc=no
8493 if test $ol_cv_header_stdc = yes; then
8494 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8495 if test "$cross_compiling" = yes; then
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8503 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8504 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8506 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8507 || ('j' <= (c) && (c) <= 'r') \
8508 || ('s' <= (c) && (c) <= 'z'))
8509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8512 int main () { int i; for (i = 0; i < 256; i++)
8513 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8517 if { (eval echo configure:8518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8521 echo "configure: failed program was:" >&5
8522 cat conftest.$ac_ext >&5
8524 ol_cv_header_stdc=no
8532 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8533 if test $ol_cv_header_stdc = yes; then
8534 cat >> confdefs.h <<\EOF
8535 #define STDC_HEADERS 1
8539 ac_cv_header_stdc=disable
8542 if test $ol_cv_header_stdc != yes; then
8543 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8547 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8550 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8551 echo "configure:8552: checking for $ac_hdr that defines DIR" >&5
8552 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
8555 cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure"
8557 #include "confdefs.h"
8558 #include <sys/types.h>
8564 if { (eval echo configure:8565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8566 eval "ac_cv_header_dirent_$ac_safe=yes"
8568 echo "configure: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8571 eval "ac_cv_header_dirent_$ac_safe=no"
8575 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8576 echo "$ac_t""yes" 1>&6
8577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8578 cat >> confdefs.h <<EOF
8579 #define $ac_tr_hdr 1
8581 ac_header_dirent=$ac_hdr; break
8583 echo "$ac_t""no" 1>&6
8586 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8587 if test $ac_header_dirent = dirent.h; then
8588 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8589 echo "configure:8590: checking for opendir in -ldir" >&5
8590 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8591 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8592 echo $ac_n "(cached) $ac_c" 1>&6
8594 ac_save_LIBS="$LIBS"
8596 cat > conftest.$ac_ext <<EOF
8597 #line 8598 "configure"
8598 #include "confdefs.h"
8599 /* Override any gcc2 internal prototype to avoid an error. */
8600 /* We use char because int might match the return type of a gcc2
8601 builtin and then its argument prototype would still apply. */
8608 if { (eval echo configure:8609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8610 eval "ac_cv_lib_$ac_lib_var=yes"
8612 echo "configure: failed program was:" >&5
8613 cat conftest.$ac_ext >&5
8615 eval "ac_cv_lib_$ac_lib_var=no"
8618 LIBS="$ac_save_LIBS"
8621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8622 echo "$ac_t""yes" 1>&6
8625 echo "$ac_t""no" 1>&6
8629 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8630 echo "configure:8631: checking for opendir in -lx" >&5
8631 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8632 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8633 echo $ac_n "(cached) $ac_c" 1>&6
8635 ac_save_LIBS="$LIBS"
8637 cat > conftest.$ac_ext <<EOF
8638 #line 8639 "configure"
8639 #include "confdefs.h"
8640 /* Override any gcc2 internal prototype to avoid an error. */
8641 /* We use char because int might match the return type of a gcc2
8642 builtin and then its argument prototype would still apply. */
8649 if { (eval echo configure:8650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8651 eval "ac_cv_lib_$ac_lib_var=yes"
8653 echo "configure: failed program was:" >&5
8654 cat conftest.$ac_ext >&5
8656 eval "ac_cv_lib_$ac_lib_var=no"
8659 LIBS="$ac_save_LIBS"
8662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8663 echo "$ac_t""yes" 1>&6
8666 echo "$ac_t""no" 1>&6
8671 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8672 echo "configure:8673: checking for sys/wait.h that is POSIX.1 compatible" >&5
8673 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8674 echo $ac_n "(cached) $ac_c" 1>&6
8676 cat > conftest.$ac_ext <<EOF
8677 #line 8678 "configure"
8678 #include "confdefs.h"
8679 #include <sys/types.h>
8680 #include <sys/wait.h>
8682 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8685 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8690 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8693 if { (eval echo configure:8694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8695 ac_cv_header_sys_wait_h=yes
8697 echo "configure: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8700 ac_cv_header_sys_wait_h=no
8705 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8706 if test $ac_cv_header_sys_wait_h = yes; then
8707 cat >> confdefs.h <<\EOF
8708 #define HAVE_SYS_WAIT_H 1
8713 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8714 echo "configure:8715: checking POSIX termios" >&5
8715 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8716 echo $ac_n "(cached) $ac_c" 1>&6
8718 cat > conftest.$ac_ext <<EOF
8719 #line 8720 "configure"
8720 #include "confdefs.h"
8721 #include <sys/types.h>
8723 #include <termios.h>
8725 /* SunOS 4.0.3 has termios.h but not the library calls. */
8729 if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8731 am_cv_sys_posix_termios=yes
8733 echo "configure: failed program was:" >&5
8734 cat conftest.$ac_ext >&5
8736 am_cv_sys_posix_termios=no
8741 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8744 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8745 echo "configure:8746: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8746 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8747 echo $ac_n "(cached) $ac_c" 1>&6
8749 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8751 gwinsz_in_termios_h=no
8752 if test $am_cv_sys_posix_termios = yes; then
8753 cat > conftest.$ac_ext <<EOF
8754 #line 8755 "configure"
8755 #include "confdefs.h"
8756 #include <sys/types.h>
8757 # include <termios.h>
8763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8764 egrep "yes" >/dev/null 2>&1; then
8766 gwinsz_in_termios_h=yes
8772 if test $gwinsz_in_termios_h = no; then
8773 cat > conftest.$ac_ext <<EOF
8774 #line 8775 "configure"
8775 #include "confdefs.h"
8776 #include <sys/types.h>
8777 # include <sys/ioctl.h>
8783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8784 egrep "yes" >/dev/null 2>&1; then
8786 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8794 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8795 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8796 cat >> confdefs.h <<\EOF
8797 #define GWINSZ_IN_SYS_IOCTL 1
8802 if test $am_cv_sys_posix_termios = yes ; then
8803 cat >> confdefs.h <<\EOF
8804 #define HAVE_POSIX_TERMIOS 1
8856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8858 echo "configure:8859: checking for $ac_hdr" >&5
8859 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8860 echo $ac_n "(cached) $ac_c" 1>&6
8862 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8868 { (eval echo configure:8869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8870 if test -z "$ac_err"; then
8872 eval "ac_cv_header_$ac_safe=yes"
8875 echo "configure: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8878 eval "ac_cv_header_$ac_safe=no"
8882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8883 echo "$ac_t""yes" 1>&6
8884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8885 cat >> confdefs.h <<EOF
8886 #define $ac_tr_hdr 1
8890 echo "$ac_t""no" 1>&6
8897 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8898 echo "configure:8899: checking for dlopen" >&5
8899 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8900 echo $ac_n "(cached) $ac_c" 1>&6
8902 cat > conftest.$ac_ext <<EOF
8903 #line 8904 "configure"
8904 #include "confdefs.h"
8905 /* System header to define __stub macros and hopefully few prototypes,
8906 which can conflict with char dlopen(); below. */
8908 /* Override any gcc2 internal prototype to avoid an error. */
8909 /* We use char because int might match the return type of a gcc2
8910 builtin and then its argument prototype would still apply. */
8916 /* The GNU C library defines this for functions which it implements
8917 to always fail with ENOSYS. Some functions are actually named
8918 something starting with __ and the normal name is an alias. */
8919 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8927 if { (eval echo configure:8928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8929 eval "ac_cv_func_dlopen=yes"
8931 echo "configure: failed program was:" >&5
8932 cat conftest.$ac_ext >&5
8934 eval "ac_cv_func_dlopen=no"
8939 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8940 echo "$ac_t""yes" 1>&6
8943 echo "$ac_t""no" 1>&6
8944 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8945 echo "configure:8946: checking for dlopen in -ldl" >&5
8946 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8947 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8948 echo $ac_n "(cached) $ac_c" 1>&6
8950 ac_save_LIBS="$LIBS"
8952 cat > conftest.$ac_ext <<EOF
8953 #line 8954 "configure"
8954 #include "confdefs.h"
8955 /* Override any gcc2 internal prototype to avoid an error. */
8956 /* We use char because int might match the return type of a gcc2
8957 builtin and then its argument prototype would still apply. */
8964 if { (eval echo configure:8965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8966 eval "ac_cv_lib_$ac_lib_var=yes"
8968 echo "configure: failed program was:" >&5
8969 cat conftest.$ac_ext >&5
8971 eval "ac_cv_lib_$ac_lib_var=no"
8974 LIBS="$ac_save_LIBS"
8977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8978 echo "$ac_t""yes" 1>&6
8979 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8980 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8981 cat >> confdefs.h <<EOF
8982 #define $ac_tr_lib 1
8988 echo "$ac_t""no" 1>&6
8994 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8995 echo "configure:8996: checking for sigset in -lV3" >&5
8996 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8997 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8998 echo $ac_n "(cached) $ac_c" 1>&6
9000 ac_save_LIBS="$LIBS"
9002 cat > conftest.$ac_ext <<EOF
9003 #line 9004 "configure"
9004 #include "confdefs.h"
9005 /* Override any gcc2 internal prototype to avoid an error. */
9006 /* We use char because int might match the return type of a gcc2
9007 builtin and then its argument prototype would still apply. */
9014 if { (eval echo configure:9015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9016 eval "ac_cv_lib_$ac_lib_var=yes"
9018 echo "configure: failed program was:" >&5
9019 cat conftest.$ac_ext >&5
9021 eval "ac_cv_lib_$ac_lib_var=no"
9024 LIBS="$ac_save_LIBS"
9027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9028 echo "$ac_t""yes" 1>&6
9029 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9030 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9031 cat >> confdefs.h <<EOF
9032 #define $ac_tr_lib 1
9038 echo "$ac_t""no" 1>&6
9042 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9043 echo "configure:9044: checking for winsock" >&5
9045 for curlib in ws2_32 wsock32; do
9046 LIBS="$LIBS -l$curlib"
9047 cat > conftest.$ac_ext <<EOF
9048 #line 9049 "configure"
9049 #include "confdefs.h"
9053 char closesocket@4();
9054 char gethostname@8();
9065 if { (eval echo configure:9066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9069 echo "configure: failed program was:" >&5
9070 cat conftest.$ac_ext >&5
9076 if test $have_winsock = yes; then
9077 cat >> confdefs.h <<\EOF
9078 #define HAVE_WINSOCK 1
9081 ac_cv_func_socket=yes
9082 ac_cv_func_select=yes
9083 ac_cv_func_closesocket=yes
9084 ac_cv_func_gethostname=yes
9085 if test $curlib = ws2_32; then
9086 have_winsock=winsock2
9087 cat >> confdefs.h <<\EOF
9088 #define HAVE_WINSOCK2 1
9096 echo "$ac_t""$have_winsock" 1>&6
9099 echo $ac_n "checking for socket""... $ac_c" 1>&6
9100 echo "configure:9101: checking for socket" >&5
9101 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9102 echo $ac_n "(cached) $ac_c" 1>&6
9104 cat > conftest.$ac_ext <<EOF
9105 #line 9106 "configure"
9106 #include "confdefs.h"
9107 /* System header to define __stub macros and hopefully few prototypes,
9108 which can conflict with char socket(); below. */
9110 /* Override any gcc2 internal prototype to avoid an error. */
9111 /* We use char because int might match the return type of a gcc2
9112 builtin and then its argument prototype would still apply. */
9118 /* The GNU C library defines this for functions which it implements
9119 to always fail with ENOSYS. Some functions are actually named
9120 something starting with __ and the normal name is an alias. */
9121 #if defined (__stub_socket) || defined (__stub___socket)
9129 if { (eval echo configure:9130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9131 eval "ac_cv_func_socket=yes"
9133 echo "configure: failed program was:" >&5
9134 cat conftest.$ac_ext >&5
9136 eval "ac_cv_func_socket=no"
9141 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9142 echo "$ac_t""yes" 1>&6
9145 echo "$ac_t""no" 1>&6
9147 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9148 echo "configure:9149: checking for main in -lsocket" >&5
9149 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9150 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9151 echo $ac_n "(cached) $ac_c" 1>&6
9153 ac_save_LIBS="$LIBS"
9154 LIBS="-lsocket $LIBS"
9155 cat > conftest.$ac_ext <<EOF
9156 #line 9157 "configure"
9157 #include "confdefs.h"
9163 if { (eval echo configure:9164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9165 eval "ac_cv_lib_$ac_lib_var=yes"
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9170 eval "ac_cv_lib_$ac_lib_var=no"
9173 LIBS="$ac_save_LIBS"
9176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9177 echo "$ac_t""yes" 1>&6
9178 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9179 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9180 cat >> confdefs.h <<EOF
9181 #define $ac_tr_lib 1
9184 LIBS="-lsocket $LIBS"
9187 echo "$ac_t""no" 1>&6
9190 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9191 echo "configure:9192: checking for main in -lnet" >&5
9192 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9193 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9194 echo $ac_n "(cached) $ac_c" 1>&6
9196 ac_save_LIBS="$LIBS"
9198 cat > conftest.$ac_ext <<EOF
9199 #line 9200 "configure"
9200 #include "confdefs.h"
9206 if { (eval echo configure:9207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9208 eval "ac_cv_lib_$ac_lib_var=yes"
9210 echo "configure: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9213 eval "ac_cv_lib_$ac_lib_var=no"
9216 LIBS="$ac_save_LIBS"
9219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9220 echo "$ac_t""yes" 1>&6
9221 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9222 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9223 cat >> confdefs.h <<EOF
9224 #define $ac_tr_lib 1
9230 echo "$ac_t""no" 1>&6
9233 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9234 echo "configure:9235: checking for main in -lnsl_s" >&5
9235 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9236 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9237 echo $ac_n "(cached) $ac_c" 1>&6
9239 ac_save_LIBS="$LIBS"
9240 LIBS="-lnsl_s $LIBS"
9241 cat > conftest.$ac_ext <<EOF
9242 #line 9243 "configure"
9243 #include "confdefs.h"
9249 if { (eval echo configure:9250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9251 eval "ac_cv_lib_$ac_lib_var=yes"
9253 echo "configure: failed program was:" >&5
9254 cat conftest.$ac_ext >&5
9256 eval "ac_cv_lib_$ac_lib_var=no"
9259 LIBS="$ac_save_LIBS"
9262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9263 echo "$ac_t""yes" 1>&6
9264 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9265 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9266 cat >> confdefs.h <<EOF
9267 #define $ac_tr_lib 1
9270 LIBS="-lnsl_s $LIBS"
9273 echo "$ac_t""no" 1>&6
9276 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9277 echo "configure:9278: checking for main in -lnsl" >&5
9278 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9279 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9282 ac_save_LIBS="$LIBS"
9284 cat > conftest.$ac_ext <<EOF
9285 #line 9286 "configure"
9286 #include "confdefs.h"
9292 if { (eval echo configure:9293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9294 eval "ac_cv_lib_$ac_lib_var=yes"
9296 echo "configure: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9299 eval "ac_cv_lib_$ac_lib_var=no"
9302 LIBS="$ac_save_LIBS"
9305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9306 echo "$ac_t""yes" 1>&6
9307 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9308 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9309 cat >> confdefs.h <<EOF
9310 #define $ac_tr_lib 1
9316 echo "$ac_t""no" 1>&6
9319 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9320 echo "configure:9321: checking for socket in -linet" >&5
9321 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9322 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9323 echo $ac_n "(cached) $ac_c" 1>&6
9325 ac_save_LIBS="$LIBS"
9327 cat > conftest.$ac_ext <<EOF
9328 #line 9329 "configure"
9329 #include "confdefs.h"
9330 /* Override any gcc2 internal prototype to avoid an error. */
9331 /* We use char because int might match the return type of a gcc2
9332 builtin and then its argument prototype would still apply. */
9339 if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9341 eval "ac_cv_lib_$ac_lib_var=yes"
9343 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9346 eval "ac_cv_lib_$ac_lib_var=no"
9349 LIBS="$ac_save_LIBS"
9352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9353 echo "$ac_t""yes" 1>&6
9354 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9355 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9356 cat >> confdefs.h <<EOF
9357 #define $ac_tr_lib 1
9363 echo "$ac_t""no" 1>&6
9366 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9367 echo "configure:9368: checking for main in -lgen" >&5
9368 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9369 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9372 ac_save_LIBS="$LIBS"
9374 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9382 if { (eval echo configure:9383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9384 eval "ac_cv_lib_$ac_lib_var=yes"
9386 echo "configure: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9389 eval "ac_cv_lib_$ac_lib_var=no"
9392 LIBS="$ac_save_LIBS"
9395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9396 echo "$ac_t""yes" 1>&6
9397 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9398 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9399 cat >> confdefs.h <<EOF
9400 #define $ac_tr_lib 1
9406 echo "$ac_t""no" 1>&6
9413 echo $ac_n "checking for select""... $ac_c" 1>&6
9414 echo "configure:9415: checking for select" >&5
9415 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9416 echo $ac_n "(cached) $ac_c" 1>&6
9418 cat > conftest.$ac_ext <<EOF
9419 #line 9420 "configure"
9420 #include "confdefs.h"
9421 /* System header to define __stub macros and hopefully few prototypes,
9422 which can conflict with char select(); below. */
9424 /* Override any gcc2 internal prototype to avoid an error. */
9425 /* We use char because int might match the return type of a gcc2
9426 builtin and then its argument prototype would still apply. */
9432 /* The GNU C library defines this for functions which it implements
9433 to always fail with ENOSYS. Some functions are actually named
9434 something starting with __ and the normal name is an alias. */
9435 #if defined (__stub_select) || defined (__stub___select)
9443 if { (eval echo configure:9444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9445 eval "ac_cv_func_select=yes"
9447 echo "configure: failed program was:" >&5
9448 cat conftest.$ac_ext >&5
9450 eval "ac_cv_func_select=no"
9455 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9456 echo "$ac_t""yes" 1>&6
9459 echo "$ac_t""no" 1>&6
9460 { echo "configure: error: select() required." 1>&2; exit 1; }
9464 if test "${ac_cv_header_winsock_h}" != yes; then
9465 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9466 echo "configure:9467: checking types of arguments for select()" >&5
9467 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9468 echo $ac_n "(cached) $ac_c" 1>&6
9470 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9471 echo $ac_n "(cached) $ac_c" 1>&6
9473 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9474 echo $ac_n "(cached) $ac_c" 1>&6
9476 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9477 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9478 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9479 cat > conftest.$ac_ext <<EOF
9480 #line 9481 "configure"
9481 #include "confdefs.h"
9482 #ifdef HAVE_SYS_TYPES_H
9483 #include <sys/types.h>
9485 #ifdef HAVE_SYS_TIME_H
9486 #include <sys/time.h>
9488 #ifdef HAVE_SYS_SELECT_H
9489 #include <sys/select.h>
9491 #ifdef HAVE_SYS_SOCKET_H
9492 #include <sys/socket.h>
9494 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
9499 if { (eval echo configure:9500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9501 ac_not_found=no ; break 3
9503 echo "configure: failed program was:" >&5
9504 cat conftest.$ac_ext >&5
9518 if test "$ac_not_found" = yes; then
9519 ac_cv_func_select_arg1=int
9520 ac_cv_func_select_arg234='int *'
9521 ac_cv_func_select_arg5='struct timeval *'
9523 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9524 cat >> confdefs.h <<EOF
9525 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9528 cat >> confdefs.h <<EOF
9529 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9532 cat >> confdefs.h <<EOF
9533 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9540 for ac_hdr in regex.h
9542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9544 echo "configure:9545: checking for $ac_hdr" >&5
9545 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9546 echo $ac_n "(cached) $ac_c" 1>&6
9548 cat > conftest.$ac_ext <<EOF
9549 #line 9550 "configure"
9550 #include "confdefs.h"
9553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9554 { (eval echo configure:9555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9556 if test -z "$ac_err"; then
9558 eval "ac_cv_header_$ac_safe=yes"
9561 echo "configure: failed program was:" >&5
9562 cat conftest.$ac_ext >&5
9564 eval "ac_cv_header_$ac_safe=no"
9568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9569 echo "$ac_t""yes" 1>&6
9570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9571 cat >> confdefs.h <<EOF
9572 #define $ac_tr_hdr 1
9576 echo "$ac_t""no" 1>&6
9580 if test "$ac_cv_header_regex_h" != yes ; then
9581 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9584 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9585 echo "configure:9586: checking for library containing regfree" >&5
9586 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9587 echo $ac_n "(cached) $ac_c" 1>&6
9589 ac_func_search_save_LIBS="$LIBS"
9590 ac_cv_search_regfree="no"
9591 cat > conftest.$ac_ext <<EOF
9592 #line 9593 "configure"
9593 #include "confdefs.h"
9594 /* Override any gcc2 internal prototype to avoid an error. */
9595 /* We use char because int might match the return type of a gcc2
9596 builtin and then its argument prototype would still apply. */
9603 if { (eval echo configure:9604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9605 ac_cv_search_regfree="none required"
9607 echo "configure: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9611 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9613 cat > conftest.$ac_ext <<EOF
9614 #line 9615 "configure"
9615 #include "confdefs.h"
9616 /* Override any gcc2 internal prototype to avoid an error. */
9617 /* We use char because int might match the return type of a gcc2
9618 builtin and then its argument prototype would still apply. */
9625 if { (eval echo configure:9626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9627 ac_cv_search_regfree="-l$ac_lib"
9630 echo "configure: failed program was:" >&5
9631 cat conftest.$ac_ext >&5
9635 LIBS="$ac_func_search_save_LIBS"
9638 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9639 if test "$ac_cv_search_regfree" != "no"; then
9640 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9643 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9647 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9648 echo "configure:9649: checking for compatible POSIX regex" >&5
9649 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9650 echo $ac_n "(cached) $ac_c" 1>&6
9653 if test "$cross_compiling" = yes; then
9654 ol_cv_c_posix_regex=cross
9656 cat > conftest.$ac_ext <<EOF
9657 #line 9658 "configure"
9658 #include "confdefs.h"
9660 #include <sys/types.h>
9662 static char *pattern, *string;
9670 if(regcomp(&re, pattern, 0)) {
9674 string = "ALL MATCH";
9676 rc = regexec(&re, string, 0, (void*)0, 0);
9683 if { (eval echo configure:9684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9685 ol_cv_c_posix_regex=yes
9687 echo "configure: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
9690 ol_cv_c_posix_regex=no
9697 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9699 if test "$ol_cv_c_posix_regex" = no ; then
9700 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9705 for ac_hdr in sys/uuid.h
9707 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9709 echo "configure:9710: checking for $ac_hdr" >&5
9710 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9711 echo $ac_n "(cached) $ac_c" 1>&6
9713 cat > conftest.$ac_ext <<EOF
9714 #line 9715 "configure"
9715 #include "confdefs.h"
9718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9719 { (eval echo configure:9720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9721 if test -z "$ac_err"; then
9723 eval "ac_cv_header_$ac_safe=yes"
9726 echo "configure: failed program was:" >&5
9727 cat conftest.$ac_ext >&5
9729 eval "ac_cv_header_$ac_safe=no"
9733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9734 echo "$ac_t""yes" 1>&6
9735 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9736 cat >> confdefs.h <<EOF
9737 #define $ac_tr_hdr 1
9741 echo "$ac_t""no" 1>&6
9745 if test $ac_cv_header_sys_uuid_h = yes ; then
9748 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9749 echo "configure:9750: checking for library containing uuid_to_str" >&5
9750 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9751 echo $ac_n "(cached) $ac_c" 1>&6
9753 ac_func_search_save_LIBS="$LIBS"
9754 ac_cv_search_uuid_to_str="no"
9755 cat > conftest.$ac_ext <<EOF
9756 #line 9757 "configure"
9757 #include "confdefs.h"
9758 /* Override any gcc2 internal prototype to avoid an error. */
9759 /* We use char because int might match the return type of a gcc2
9760 builtin and then its argument prototype would still apply. */
9767 if { (eval echo configure:9768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9769 ac_cv_search_uuid_to_str="none required"
9771 echo "configure: failed program was:" >&5
9772 cat conftest.$ac_ext >&5
9775 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9777 cat > conftest.$ac_ext <<EOF
9778 #line 9779 "configure"
9779 #include "confdefs.h"
9780 /* Override any gcc2 internal prototype to avoid an error. */
9781 /* We use char because int might match the return type of a gcc2
9782 builtin and then its argument prototype would still apply. */
9789 if { (eval echo configure:9790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9791 ac_cv_search_uuid_to_str="-l$ac_lib"
9794 echo "configure: failed program was:" >&5
9795 cat conftest.$ac_ext >&5
9799 LIBS="$ac_func_search_save_LIBS"
9802 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9803 if test "$ac_cv_search_uuid_to_str" != "no"; then
9804 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9811 if test have_uuid = yes ; then
9812 cat >> confdefs.h <<\EOF
9813 #define HAVE_UUID_TO_STR 1
9817 test "$ac_cv_search_uuid_to_str" = "none required" || \
9818 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9822 if test $have_uuid = no ; then
9823 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9824 echo "configure:9825: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9826 LIBS="$LIBS -lrpcrt4"
9827 cat > conftest.$ac_ext <<EOF
9828 #line 9829 "configure"
9829 #include "confdefs.h"
9831 char UuidCreate@4();
9832 char UuidToStringA@8();
9841 if { (eval echo configure:9842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9845 echo "configure: failed program was:" >&5
9846 cat conftest.$ac_ext >&5
9851 if test $need_rpcrt = yes; then
9852 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9855 echo "$ac_t""$need_rpcrt" 1>&6
9859 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9860 echo "configure:9861: checking for res_query" >&5
9861 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9862 echo $ac_n "(cached) $ac_c" 1>&6
9864 cat > conftest.$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9867 /* System header to define __stub macros and hopefully few prototypes,
9868 which can conflict with char res_query(); below. */
9870 /* Override any gcc2 internal prototype to avoid an error. */
9871 /* We use char because int might match the return type of a gcc2
9872 builtin and then its argument prototype would still apply. */
9878 /* The GNU C library defines this for functions which it implements
9879 to always fail with ENOSYS. Some functions are actually named
9880 something starting with __ and the normal name is an alias. */
9881 #if defined (__stub_res_query) || defined (__stub___res_query)
9889 if { (eval echo configure:9890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9891 eval "ac_cv_func_res_query=yes"
9893 echo "configure: failed program was:" >&5
9894 cat conftest.$ac_ext >&5
9896 eval "ac_cv_func_res_query=no"
9901 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9902 echo "$ac_t""yes" 1>&6
9905 echo "$ac_t""no" 1>&6
9908 if test $ac_cv_func_res_query = no ; then
9909 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9910 echo "configure:9911: checking for __res_query" >&5
9911 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9912 echo $ac_n "(cached) $ac_c" 1>&6
9914 cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 /* System header to define __stub macros and hopefully few prototypes,
9918 which can conflict with char __res_query(); below. */
9920 /* Override any gcc2 internal prototype to avoid an error. */
9921 /* We use char because int might match the return type of a gcc2
9922 builtin and then its argument prototype would still apply. */
9928 /* The GNU C library defines this for functions which it implements
9929 to always fail with ENOSYS. Some functions are actually named
9930 something starting with __ and the normal name is an alias. */
9931 #if defined (__stub___res_query) || defined (__stub_____res_query)
9939 if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9941 eval "ac_cv_func___res_query=yes"
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9946 eval "ac_cv_func___res_query=no"
9951 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9952 echo "$ac_t""yes" 1>&6
9955 echo "$ac_t""no" 1>&6
9958 ac_cv_func_res_query=$ac_cv_func___res_query
9961 if test $ac_cv_func_res_query = no ; then
9962 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9963 echo "configure:9964: checking for res_query in -lbind" >&5
9964 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9965 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9966 echo $ac_n "(cached) $ac_c" 1>&6
9968 ac_save_LIBS="$LIBS"
9970 cat > conftest.$ac_ext <<EOF
9971 #line 9972 "configure"
9972 #include "confdefs.h"
9973 /* Override any gcc2 internal prototype to avoid an error. */
9974 /* We use char because int might match the return type of a gcc2
9975 builtin and then its argument prototype would still apply. */
9982 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9984 eval "ac_cv_lib_$ac_lib_var=yes"
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9989 eval "ac_cv_lib_$ac_lib_var=no"
9992 LIBS="$ac_save_LIBS"
9995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9996 echo "$ac_t""yes" 1>&6
9997 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9998 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9999 cat >> confdefs.h <<EOF
10000 #define $ac_tr_lib 1
10003 LIBS="-lbind $LIBS"
10006 echo "$ac_t""no" 1>&6
10009 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10012 if test $ac_cv_func_res_query = no ; then
10013 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10014 echo "configure:10015: checking for __res_query in -lbind" >&5
10015 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10016 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10017 echo $ac_n "(cached) $ac_c" 1>&6
10019 ac_save_LIBS="$LIBS"
10020 LIBS="-lbind $LIBS"
10021 cat > conftest.$ac_ext <<EOF
10022 #line 10023 "configure"
10023 #include "confdefs.h"
10024 /* Override any gcc2 internal prototype to avoid an error. */
10025 /* We use char because int might match the return type of a gcc2
10026 builtin and then its argument prototype would still apply. */
10027 char __res_query();
10033 if { (eval echo configure:10034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10035 eval "ac_cv_lib_$ac_lib_var=yes"
10037 echo "configure: failed program was:" >&5
10038 cat conftest.$ac_ext >&5
10040 eval "ac_cv_lib_$ac_lib_var=no"
10043 LIBS="$ac_save_LIBS"
10046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10047 echo "$ac_t""yes" 1>&6
10048 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10049 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10050 cat >> confdefs.h <<EOF
10051 #define $ac_tr_lib 1
10054 LIBS="-lbind $LIBS"
10057 echo "$ac_t""no" 1>&6
10060 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10063 if test $ac_cv_func_res_query = no ; then
10064 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10065 echo "configure:10066: checking for res_query in -lresolv" >&5
10066 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10067 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10068 echo $ac_n "(cached) $ac_c" 1>&6
10070 ac_save_LIBS="$LIBS"
10071 LIBS="-lresolv $LIBS"
10072 cat > conftest.$ac_ext <<EOF
10073 #line 10074 "configure"
10074 #include "confdefs.h"
10075 /* Override any gcc2 internal prototype to avoid an error. */
10076 /* We use char because int might match the return type of a gcc2
10077 builtin and then its argument prototype would still apply. */
10084 if { (eval echo configure:10085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10086 eval "ac_cv_lib_$ac_lib_var=yes"
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10091 eval "ac_cv_lib_$ac_lib_var=no"
10094 LIBS="$ac_save_LIBS"
10097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10098 echo "$ac_t""yes" 1>&6
10099 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10100 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10101 cat >> confdefs.h <<EOF
10102 #define $ac_tr_lib 1
10105 LIBS="-lresolv $LIBS"
10108 echo "$ac_t""no" 1>&6
10111 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10114 if test $ac_cv_func_res_query = no ; then
10115 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10116 echo "configure:10117: checking for __res_query in -lresolv" >&5
10117 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10118 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
10121 ac_save_LIBS="$LIBS"
10122 LIBS="-lresolv $LIBS"
10123 cat > conftest.$ac_ext <<EOF
10124 #line 10125 "configure"
10125 #include "confdefs.h"
10126 /* Override any gcc2 internal prototype to avoid an error. */
10127 /* We use char because int might match the return type of a gcc2
10128 builtin and then its argument prototype would still apply. */
10129 char __res_query();
10135 if { (eval echo configure:10136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10137 eval "ac_cv_lib_$ac_lib_var=yes"
10139 echo "configure: failed program was:" >&5
10140 cat conftest.$ac_ext >&5
10142 eval "ac_cv_lib_$ac_lib_var=no"
10145 LIBS="$ac_save_LIBS"
10148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10149 echo "$ac_t""yes" 1>&6
10150 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10151 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10152 cat >> confdefs.h <<EOF
10153 #define $ac_tr_lib 1
10156 LIBS="-lresolv $LIBS"
10159 echo "$ac_t""no" 1>&6
10162 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10165 if test "$ac_cv_func_res_query" = yes ; then
10166 cat >> confdefs.h <<\EOF
10167 #define HAVE_RES_QUERY 1
10171 if test $ol_enable_dnssrv != no ; then
10176 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10177 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10180 for ac_func in getaddrinfo gai_strerror inet_ntop
10182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10183 echo "configure:10184: checking for $ac_func" >&5
10184 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10185 echo $ac_n "(cached) $ac_c" 1>&6
10187 cat > conftest.$ac_ext <<EOF
10188 #line 10189 "configure"
10189 #include "confdefs.h"
10190 /* System header to define __stub macros and hopefully few prototypes,
10191 which can conflict with char $ac_func(); below. */
10192 #include <assert.h>
10193 /* Override any gcc2 internal prototype to avoid an error. */
10194 /* We use char because int might match the return type of a gcc2
10195 builtin and then its argument prototype would still apply. */
10201 /* The GNU C library defines this for functions which it implements
10202 to always fail with ENOSYS. Some functions are actually named
10203 something starting with __ and the normal name is an alias. */
10204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10212 if { (eval echo configure:10213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10214 eval "ac_cv_func_$ac_func=yes"
10216 echo "configure: failed program was:" >&5
10217 cat conftest.$ac_ext >&5
10219 eval "ac_cv_func_$ac_func=no"
10224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10225 echo "$ac_t""yes" 1>&6
10226 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10227 cat >> confdefs.h <<EOF
10228 #define $ac_tr_func 1
10232 echo "$ac_t""no" 1>&6
10238 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10239 if test $ol_enable_ipv6 = yes ; then
10240 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10242 elif test $ol_enable_ipv6 != no ; then
10243 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10244 echo "configure:10245: checking INET6_ADDRSTRLEN" >&5
10245 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10246 echo $ac_n "(cached) $ac_c" 1>&6
10249 cat > conftest.$ac_ext <<EOF
10250 #line 10251 "configure"
10251 #include "confdefs.h"
10253 # include <netinet/in.h>
10254 # ifdef INET6_ADDRSTRLEN
10255 __has_inet6_addrstrlen__;
10259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10260 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10262 ol_cv_inet6_addrstrlen=yes
10265 ol_cv_inet6_addrstrlen=no
10271 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10273 if test $ol_cv_inet6_addrstrlen = yes ; then
10275 elif test $ol_enable_ipv6 = yes ; then
10276 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10280 if test $ol_enable_local != no ; then
10281 for ac_hdr in sys/un.h
10283 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10285 echo "configure:10286: checking for $ac_hdr" >&5
10286 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10287 echo $ac_n "(cached) $ac_c" 1>&6
10289 cat > conftest.$ac_ext <<EOF
10290 #line 10291 "configure"
10291 #include "confdefs.h"
10294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10295 { (eval echo configure:10296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10297 if test -z "$ac_err"; then
10299 eval "ac_cv_header_$ac_safe=yes"
10302 echo "configure: failed program was:" >&5
10303 cat conftest.$ac_ext >&5
10305 eval "ac_cv_header_$ac_safe=no"
10309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10310 echo "$ac_t""yes" 1>&6
10311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10312 cat >> confdefs.h <<EOF
10313 #define $ac_tr_hdr 1
10317 echo "$ac_t""no" 1>&6
10322 if test $ol_enable_local = auto ; then
10323 ol_enable_local=$ac_cv_header_sys_un_h
10324 elif test $ac_cv_header_sys_un_h = no ; then
10325 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10334 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10335 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10336 -o $ol_with_kerberos = k425 ; then
10338 for ac_hdr in krb5.h
10340 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10342 echo "configure:10343: checking for $ac_hdr" >&5
10343 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10344 echo $ac_n "(cached) $ac_c" 1>&6
10346 cat > conftest.$ac_ext <<EOF
10347 #line 10348 "configure"
10348 #include "confdefs.h"
10351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10352 { (eval echo configure:10353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10354 if test -z "$ac_err"; then
10356 eval "ac_cv_header_$ac_safe=yes"
10359 echo "configure: failed program was:" >&5
10360 cat conftest.$ac_ext >&5
10362 eval "ac_cv_header_$ac_safe=no"
10366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10367 echo "$ac_t""yes" 1>&6
10368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10369 cat >> confdefs.h <<EOF
10370 #define $ac_tr_hdr 1
10374 echo "$ac_t""no" 1>&6
10379 if test $ac_cv_header_krb5_h = yes ; then
10380 for ac_hdr in heim_err.h
10382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10384 echo "configure:10385: checking for $ac_hdr" >&5
10385 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10386 echo $ac_n "(cached) $ac_c" 1>&6
10388 cat > conftest.$ac_ext <<EOF
10389 #line 10390 "configure"
10390 #include "confdefs.h"
10393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10394 { (eval echo configure:10395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10396 if test -z "$ac_err"; then
10398 eval "ac_cv_header_$ac_safe=yes"
10401 echo "configure: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10404 eval "ac_cv_header_$ac_safe=no"
10408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10409 echo "$ac_t""yes" 1>&6
10410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10411 cat >> confdefs.h <<EOF
10412 #define $ac_tr_hdr 1
10416 echo "$ac_t""no" 1>&6
10420 if test $ac_cv_header_heim_err_h = yes ; then
10426 if test $krb5_impl = mit; then
10427 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10428 echo "configure:10429: checking for main in -lk5crypto" >&5
10429 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10430 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10431 echo $ac_n "(cached) $ac_c" 1>&6
10433 ac_save_LIBS="$LIBS"
10434 LIBS="-lk5crypto $LIBS"
10435 cat > conftest.$ac_ext <<EOF
10436 #line 10437 "configure"
10437 #include "confdefs.h"
10443 if { (eval echo configure:10444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10445 eval "ac_cv_lib_$ac_lib_var=yes"
10447 echo "configure: failed program was:" >&5
10448 cat conftest.$ac_ext >&5
10450 eval "ac_cv_lib_$ac_lib_var=no"
10453 LIBS="$ac_save_LIBS"
10456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10457 echo "$ac_t""yes" 1>&6
10458 krb5crypto=k5crypto
10460 echo "$ac_t""no" 1>&6
10465 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10466 echo "configure:10467: checking for main in -lkrb5" >&5
10467 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10468 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10469 echo $ac_n "(cached) $ac_c" 1>&6
10471 ac_save_LIBS="$LIBS"
10472 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10473 cat > conftest.$ac_ext <<EOF
10474 #line 10475 "configure"
10475 #include "confdefs.h"
10481 if { (eval echo configure:10482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10483 eval "ac_cv_lib_$ac_lib_var=yes"
10485 echo "configure: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10488 eval "ac_cv_lib_$ac_lib_var=no"
10491 LIBS="$ac_save_LIBS"
10494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10495 echo "$ac_t""yes" 1>&6
10497 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10499 echo "$ac_t""no" 1>&6
10504 elif test $krb5_impl = heimdal; then
10505 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10506 echo "configure:10507: checking for main in -ldes" >&5
10507 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10508 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10509 echo $ac_n "(cached) $ac_c" 1>&6
10511 ac_save_LIBS="$LIBS"
10513 cat > conftest.$ac_ext <<EOF
10514 #line 10515 "configure"
10515 #include "confdefs.h"
10521 if { (eval echo configure:10522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10523 eval "ac_cv_lib_$ac_lib_var=yes"
10525 echo "configure: failed program was:" >&5
10526 cat conftest.$ac_ext >&5
10528 eval "ac_cv_lib_$ac_lib_var=no"
10531 LIBS="$ac_save_LIBS"
10534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10535 echo "$ac_t""yes" 1>&6
10538 echo "$ac_t""no" 1>&6
10543 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10544 echo "configure:10545: checking for main in -lkrb5" >&5
10545 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10546 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10547 echo $ac_n "(cached) $ac_c" 1>&6
10549 ac_save_LIBS="$LIBS"
10550 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10551 cat > conftest.$ac_ext <<EOF
10552 #line 10553 "configure"
10553 #include "confdefs.h"
10559 if { (eval echo configure:10560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10561 eval "ac_cv_lib_$ac_lib_var=yes"
10563 echo "configure: failed program was:" >&5
10564 cat conftest.$ac_ext >&5
10566 eval "ac_cv_lib_$ac_lib_var=no"
10569 LIBS="$ac_save_LIBS"
10572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10573 echo "$ac_t""yes" 1>&6
10575 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10577 echo "$ac_t""no" 1>&6
10582 cat >> confdefs.h <<\EOF
10583 #define HAVE_HEIMDAL_KERBEROS 1
10589 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10592 if test $have_krb5 = yes ; then
10595 cat >> confdefs.h <<\EOF
10596 #define HAVE_KRB5 1
10600 if test $ol_enable_kpasswd != no ; then
10601 ol_link_kpasswd=yes;
10604 if test $ol_with_kerberos = k5only ; then
10605 ol_with_kerberos=found
10608 elif test $ol_with_kerberos != auto ; then
10609 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10615 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10616 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10618 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10620 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10621 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10622 echo "configure:10623: checking for $ac_hdr" >&5
10623 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10624 echo $ac_n "(cached) $ac_c" 1>&6
10626 cat > conftest.$ac_ext <<EOF
10627 #line 10628 "configure"
10628 #include "confdefs.h"
10631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10632 { (eval echo configure:10633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10634 if test -z "$ac_err"; then
10636 eval "ac_cv_header_$ac_safe=yes"
10639 echo "configure: failed program was:" >&5
10640 cat conftest.$ac_ext >&5
10642 eval "ac_cv_header_$ac_safe=no"
10646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10647 echo "$ac_t""yes" 1>&6
10648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10649 cat >> confdefs.h <<EOF
10650 #define $ac_tr_hdr 1
10654 echo "$ac_t""no" 1>&6
10659 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10660 if test $krb5_impl = mit; then
10661 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10662 echo "configure:10663: checking for main in -lkrb4" >&5
10663 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10664 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10665 echo $ac_n "(cached) $ac_c" 1>&6
10667 ac_save_LIBS="$LIBS"
10668 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10669 cat > conftest.$ac_ext <<EOF
10670 #line 10671 "configure"
10671 #include "confdefs.h"
10677 if { (eval echo configure:10678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10679 eval "ac_cv_lib_$ac_lib_var=yes"
10681 echo "configure: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10684 eval "ac_cv_lib_$ac_lib_var=no"
10687 LIBS="$ac_save_LIBS"
10690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10691 echo "$ac_t""yes" 1>&6
10693 KRB4_LIBS="-lkrb4 -ldes425"
10695 echo "$ac_t""no" 1>&6
10700 elif test $krb5_impl = heimdal; then
10701 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10702 echo "configure:10703: checking for main in -lkrb4" >&5
10703 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10704 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10705 echo $ac_n "(cached) $ac_c" 1>&6
10707 ac_save_LIBS="$LIBS"
10708 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10709 cat > conftest.$ac_ext <<EOF
10710 #line 10711 "configure"
10711 #include "confdefs.h"
10717 if { (eval echo configure:10718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10719 eval "ac_cv_lib_$ac_lib_var=yes"
10721 echo "configure: failed program was:" >&5
10722 cat conftest.$ac_ext >&5
10724 eval "ac_cv_lib_$ac_lib_var=no"
10727 LIBS="$ac_save_LIBS"
10730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10731 echo "$ac_t""yes" 1>&6
10735 echo "$ac_t""no" 1>&6
10742 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10745 if test $have_k425 = yes ; then
10746 ol_with_kerberos=found
10749 cat >> confdefs.h <<\EOF
10750 #define HAVE_KRB425 1
10753 cat >> confdefs.h <<\EOF
10754 #define HAVE_KRB4 1
10758 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10759 echo "configure:10760: checking for des_debug in Kerberos libraries" >&5
10760 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10761 echo $ac_n "(cached) $ac_c" 1>&6
10765 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10766 cat > conftest.$ac_ext <<EOF
10767 #line 10768 "configure"
10768 #include "confdefs.h"
10770 #include <kerberosIV/krb.h>
10771 #include <kerberosIV/des.h>
10772 extern int des_debug;
10780 if { (eval echo configure:10781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10782 ol_cv_var_des_debug=yes
10784 echo "configure: failed program was:" >&5
10785 cat conftest.$ac_ext >&5
10787 ol_cv_var_des_debug=no
10794 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10796 if test $ol_cv_var_des_debug = yes ; then
10797 cat >> confdefs.h <<\EOF
10798 #define HAVE_DES_DEBUG 1
10808 if test $ol_link_krb5 = yes ; then
10809 ol_with_kerberos=found
10812 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10813 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10815 for ac_hdr in krb.h des.h krb-archaeology.h
10817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10819 echo "configure:10820: checking for $ac_hdr" >&5
10820 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10821 echo $ac_n "(cached) $ac_c" 1>&6
10823 cat > conftest.$ac_ext <<EOF
10824 #line 10825 "configure"
10825 #include "confdefs.h"
10828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10829 { (eval echo configure:10830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10831 if test -z "$ac_err"; then
10833 eval "ac_cv_header_$ac_safe=yes"
10836 echo "configure: failed program was:" >&5
10837 cat conftest.$ac_ext >&5
10839 eval "ac_cv_header_$ac_safe=no"
10843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10844 echo "$ac_t""yes" 1>&6
10845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10846 cat >> confdefs.h <<EOF
10847 #define $ac_tr_hdr 1
10851 echo "$ac_t""no" 1>&6
10856 if test $ac_cv_header_krb_h = yes ; then
10857 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10858 echo "configure:10859: checking for main in -lkrb" >&5
10859 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10860 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
10863 ac_save_LIBS="$LIBS"
10864 LIBS="-lkrb -ldes $LIBS"
10865 cat > conftest.$ac_ext <<EOF
10866 #line 10867 "configure"
10867 #include "confdefs.h"
10873 if { (eval echo configure:10874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10875 eval "ac_cv_lib_$ac_lib_var=yes"
10877 echo "configure: failed program was:" >&5
10878 cat conftest.$ac_ext >&5
10880 eval "ac_cv_lib_$ac_lib_var=no"
10883 LIBS="$ac_save_LIBS"
10886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10887 echo "$ac_t""yes" 1>&6
10890 echo "$ac_t""no" 1>&6
10895 if test $have_k4 = yes ; then
10896 ol_with_kerberos=found
10899 cat >> confdefs.h <<\EOF
10900 #define HAVE_KRB4 1
10904 KRB4_LIBS="-lkrb -ldes"
10906 if test $ac_cv_header_krb_archaeology_h = yes ; then
10907 cat >> confdefs.h <<\EOF
10908 #define HAVE_KTH_KERBEROS 1
10916 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10917 ol_link_kpasswd=yes
10920 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10923 elif test $ol_enable_kbind = yes ; then
10924 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10927 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10928 cat >> confdefs.h <<\EOF
10929 #define HAVE_KERBEROS 1
10933 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10934 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10938 if test $ol_with_tls != no ; then
10939 for ac_hdr in openssl/ssl.h ssl.h
10941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10943 echo "configure:10944: checking for $ac_hdr" >&5
10944 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10945 echo $ac_n "(cached) $ac_c" 1>&6
10947 cat > conftest.$ac_ext <<EOF
10948 #line 10949 "configure"
10949 #include "confdefs.h"
10952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10953 { (eval echo configure:10954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10955 if test -z "$ac_err"; then
10957 eval "ac_cv_header_$ac_safe=yes"
10960 echo "configure: failed program was:" >&5
10961 cat conftest.$ac_ext >&5
10963 eval "ac_cv_header_$ac_safe=no"
10967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10968 echo "$ac_t""yes" 1>&6
10969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10970 cat >> confdefs.h <<EOF
10971 #define $ac_tr_hdr 1
10975 echo "$ac_t""no" 1>&6
10980 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
10981 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10982 echo "configure:10983: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10983 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10985 echo $ac_n "(cached) $ac_c" 1>&6
10987 ac_save_LIBS="$LIBS"
10988 LIBS="-lssl -lcrypto $LIBS"
10989 cat > conftest.$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10992 /* Override any gcc2 internal prototype to avoid an error. */
10993 /* We use char because int might match the return type of a gcc2
10994 builtin and then its argument prototype would still apply. */
10995 char SSLeay_add_ssl_algorithms();
10998 SSLeay_add_ssl_algorithms()
11001 if { (eval echo configure:11002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11003 eval "ac_cv_lib_$ac_lib_var=yes"
11005 echo "configure: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11008 eval "ac_cv_lib_$ac_lib_var=no"
11011 LIBS="$ac_save_LIBS"
11014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11015 echo "$ac_t""yes" 1>&6
11019 echo "$ac_t""no" 1>&6
11024 if test $have_ssleay = no ; then
11025 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11026 echo "configure:11027: checking for SSL_library_init in -lssl" >&5
11027 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11028 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11029 echo $ac_n "(cached) $ac_c" 1>&6
11031 ac_save_LIBS="$LIBS"
11032 LIBS="-lssl -lcrypto $LIBS"
11033 cat > conftest.$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11036 /* Override any gcc2 internal prototype to avoid an error. */
11037 /* We use char because int might match the return type of a gcc2
11038 builtin and then its argument prototype would still apply. */
11039 char SSL_library_init();
11045 if { (eval echo configure:11046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11047 eval "ac_cv_lib_$ac_lib_var=yes"
11049 echo "configure: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11052 eval "ac_cv_lib_$ac_lib_var=no"
11055 LIBS="$ac_save_LIBS"
11058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11059 echo "$ac_t""yes" 1>&6
11063 echo "$ac_t""no" 1>&6
11069 if test $have_ssleay = no ; then
11070 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11071 echo "configure:11072: checking for ssl3_accept in -lssl" >&5
11072 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11073 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11074 echo $ac_n "(cached) $ac_c" 1>&6
11076 ac_save_LIBS="$LIBS"
11077 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11078 cat > conftest.$ac_ext <<EOF
11079 #line 11080 "configure"
11080 #include "confdefs.h"
11081 /* Override any gcc2 internal prototype to avoid an error. */
11082 /* We use char because int might match the return type of a gcc2
11083 builtin and then its argument prototype would still apply. */
11084 char ssl3_accept();
11090 if { (eval echo configure:11091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11092 eval "ac_cv_lib_$ac_lib_var=yes"
11094 echo "configure: failed program was:" >&5
11095 cat conftest.$ac_ext >&5
11097 eval "ac_cv_lib_$ac_lib_var=no"
11100 LIBS="$ac_save_LIBS"
11103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11104 echo "$ac_t""yes" 1>&6
11108 echo "$ac_t""no" 1>&6
11114 if test $have_ssleay = yes ; then
11118 cat >> confdefs.h <<\EOF
11119 #define HAVE_SSLEAY 1
11123 if test $need_rsaref = yes; then
11124 cat >> confdefs.h <<\EOF
11125 #define HAVE_RSAREF 1
11129 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11131 TLS_LIBS="-lssl -lcrypto"
11137 echo "configure: warning: TLS data protection not supported!" 1>&2
11140 if test $ol_link_tls = yes ; then
11141 cat >> confdefs.h <<\EOF
11146 elif test $ol_with_tls = auto ; then
11147 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11148 echo "configure: warning: TLS data protection not supported!" 1>&2
11150 elif test $ol_with_tls != no ; then
11151 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11154 if test $ol_enable_lmpasswd != no; then
11155 if test $ol_link_tls != yes ; then
11156 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11159 cat >> confdefs.h <<\EOF
11160 #define SLAPD_LMHASH 1
11167 gethostbyname_r gethostbyaddr_r \
11170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11171 echo "configure:11172: checking for $ac_func" >&5
11172 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11173 echo $ac_n "(cached) $ac_c" 1>&6
11175 cat > conftest.$ac_ext <<EOF
11176 #line 11177 "configure"
11177 #include "confdefs.h"
11178 /* System header to define __stub macros and hopefully few prototypes,
11179 which can conflict with char $ac_func(); below. */
11180 #include <assert.h>
11181 /* Override any gcc2 internal prototype to avoid an error. */
11182 /* We use char because int might match the return type of a gcc2
11183 builtin and then its argument prototype would still apply. */
11189 /* The GNU C library defines this for functions which it implements
11190 to always fail with ENOSYS. Some functions are actually named
11191 something starting with __ and the normal name is an alias. */
11192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11200 if { (eval echo configure:11201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11202 eval "ac_cv_func_$ac_func=yes"
11204 echo "configure: failed program was:" >&5
11205 cat conftest.$ac_ext >&5
11207 eval "ac_cv_func_$ac_func=no"
11212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11213 echo "$ac_t""yes" 1>&6
11214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11215 cat >> confdefs.h <<EOF
11216 #define $ac_tr_func 1
11220 echo "$ac_t""no" 1>&6
11225 if test "$ac_cv_func_ctime_r" = no ; then
11226 ol_cv_func_ctime_r_nargs=0
11228 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11229 echo "configure:11230: checking number of arguments of ctime_r" >&5
11230 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11231 echo $ac_n "(cached) $ac_c" 1>&6
11233 cat > conftest.$ac_ext <<EOF
11234 #line 11235 "configure"
11235 #include "confdefs.h"
11238 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11241 if { (eval echo configure:11242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11243 ol_cv_func_ctime_r_nargs3=yes
11245 echo "configure: failed program was:" >&5
11246 cat conftest.$ac_ext >&5
11248 ol_cv_func_ctime_r_nargs3=no
11252 cat > conftest.$ac_ext <<EOF
11253 #line 11254 "configure"
11254 #include "confdefs.h"
11257 time_t ti; char *buffer; ctime_r(&ti,buffer);
11260 if { (eval echo configure:11261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11262 ol_cv_func_ctime_r_nargs2=yes
11264 echo "configure: failed program was:" >&5
11265 cat conftest.$ac_ext >&5
11267 ol_cv_func_ctime_r_nargs2=no
11271 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11272 $ol_cv_func_ctime_r_nargs2 = no ; then
11274 ol_cv_func_ctime_r_nargs=3
11276 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11277 $ol_cv_func_ctime_r_nargs2 = yes ; then
11279 ol_cv_func_ctime_r_nargs=2
11282 ol_cv_func_ctime_r_nargs=0
11287 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11289 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11290 cat >> confdefs.h <<EOF
11291 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11298 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11299 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11300 echo "configure:11301: checking number of arguments of gethostbyname_r" >&5
11301 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11304 cat > conftest.$ac_ext <<EOF
11305 #line 11306 "configure"
11306 #include "confdefs.h"
11307 #include <sys/types.h>
11308 #include <sys/socket.h>
11309 #include <netinet/in.h>
11311 #define BUFSIZE (sizeof(struct hostent)+10)
11313 struct hostent hent; char buffer[BUFSIZE];
11314 int bufsize=BUFSIZE;int h_errno;
11315 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11316 buffer, bufsize, &h_errno);
11319 if { (eval echo configure:11320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11321 ol_cv_func_gethostbyname_r_nargs5=yes
11323 echo "configure: failed program was:" >&5
11324 cat conftest.$ac_ext >&5
11326 ol_cv_func_gethostbyname_r_nargs5=no
11330 cat > conftest.$ac_ext <<EOF
11331 #line 11332 "configure"
11332 #include "confdefs.h"
11333 #include <sys/types.h>
11334 #include <sys/socket.h>
11335 #include <netinet/in.h>
11337 #define BUFSIZE (sizeof(struct hostent)+10)
11339 struct hostent hent;struct hostent *rhent;
11340 char buffer[BUFSIZE];
11341 int bufsize=BUFSIZE;int h_errno;
11342 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11346 if { (eval echo configure:11347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11348 ol_cv_func_gethostbyname_r_nargs6=yes
11350 echo "configure: failed program was:" >&5
11351 cat conftest.$ac_ext >&5
11353 ol_cv_func_gethostbyname_r_nargs6=no
11357 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11358 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11360 ol_cv_func_gethostbyname_r_nargs=5
11362 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11363 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11365 ol_cv_func_gethostbyname_r_nargs=6
11368 ol_cv_func_gethostbyname_r_nargs=0
11373 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11374 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11375 cat >> confdefs.h <<EOF
11376 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11382 ol_cv_func_gethostbyname_r_nargs=0
11385 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11386 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11387 echo "configure:11388: checking number of arguments of gethostbyaddr_r" >&5
11388 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11389 echo $ac_n "(cached) $ac_c" 1>&6
11391 cat > conftest.$ac_ext <<EOF
11392 #line 11393 "configure"
11393 #include "confdefs.h"
11394 #include <sys/types.h>
11395 #include <sys/socket.h>
11396 #include <netinet/in.h>
11398 #define BUFSIZE (sizeof(struct hostent)+10)
11400 struct hostent hent; char buffer[BUFSIZE];
11401 struct in_addr add;
11402 size_t alen=sizeof(struct in_addr);
11403 int bufsize=BUFSIZE;int h_errno;
11404 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11405 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11408 if { (eval echo configure:11409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11410 ol_cv_func_gethostbyaddr_r_nargs7=yes
11412 echo "configure: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11415 ol_cv_func_gethostbyaddr_r_nargs7=no
11419 cat > conftest.$ac_ext <<EOF
11420 #line 11421 "configure"
11421 #include "confdefs.h"
11422 #include <sys/types.h>
11423 #include <sys/socket.h>
11424 #include <netinet/in.h>
11426 #define BUFSIZE (sizeof(struct hostent)+10)
11428 struct hostent hent;
11429 struct hostent *rhent; char buffer[BUFSIZE];
11430 struct in_addr add;
11431 size_t alen=sizeof(struct in_addr);
11432 int bufsize=BUFSIZE;int h_errno;
11433 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11434 alen, AF_INET, &hent, buffer, bufsize,
11438 if { (eval echo configure:11439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11440 ol_cv_func_gethostbyaddr_r_nargs8=yes
11442 echo "configure: failed program was:" >&5
11443 cat conftest.$ac_ext >&5
11445 ol_cv_func_gethostbyaddr_r_nargs8=no
11449 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11450 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11452 ol_cv_func_gethostbyaddr_r_nargs=7
11454 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11455 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11457 ol_cv_func_gethostbyaddr_r_nargs=8
11460 ol_cv_func_gethostbyaddr_r_nargs=0
11465 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11466 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11467 cat >> confdefs.h <<EOF
11468 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11474 ol_cv_func_gethostbyaddr_r_nargs=0
11477 if test "$ac_cv_func_ctime_r" = yes \
11478 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11479 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11480 -a "$ac_cv_func_gethostbyname_r" = yes \
11481 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11482 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11483 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11484 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11485 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11488 cat >> confdefs.h <<\EOF
11489 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11496 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11497 -o $ol_with_threads = nt ; then
11500 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11501 echo "configure:11502: checking for _beginthread" >&5
11502 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11503 echo $ac_n "(cached) $ac_c" 1>&6
11505 cat > conftest.$ac_ext <<EOF
11506 #line 11507 "configure"
11507 #include "confdefs.h"
11508 /* System header to define __stub macros and hopefully few prototypes,
11509 which can conflict with char _beginthread(); below. */
11510 #include <assert.h>
11511 /* Override any gcc2 internal prototype to avoid an error. */
11512 /* We use char because int might match the return type of a gcc2
11513 builtin and then its argument prototype would still apply. */
11514 char _beginthread();
11519 /* The GNU C library defines this for functions which it implements
11520 to always fail with ENOSYS. Some functions are actually named
11521 something starting with __ and the normal name is an alias. */
11522 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11530 if { (eval echo configure:11531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11532 eval "ac_cv_func__beginthread=yes"
11534 echo "configure: failed program was:" >&5
11535 cat conftest.$ac_ext >&5
11537 eval "ac_cv_func__beginthread=no"
11542 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11543 echo "$ac_t""yes" 1>&6
11546 echo "$ac_t""no" 1>&6
11550 if test $ac_cv_func__beginthread = yes ; then
11551 cat >> confdefs.h <<\EOF
11552 #define HAVE_NT_THREADS 1
11555 ol_cv_nt_threads=yes
11559 if test "$ol_cv_nt_threads" = yes ; then
11561 ol_with_threads=found
11562 ol_with_yielding_select=yes
11564 cat >> confdefs.h <<\EOF
11565 #define HAVE_NT_SERVICE_MANAGER 1
11568 cat >> confdefs.h <<\EOF
11569 #define HAVE_NT_EVENT_LOG 1
11574 if test $ol_with_threads = nt ; then
11575 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11579 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11580 -o $ol_with_threads = posix ; then
11582 for ac_hdr in pthread.h
11584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11586 echo "configure:11587: checking for $ac_hdr" >&5
11587 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11588 echo $ac_n "(cached) $ac_c" 1>&6
11590 cat > conftest.$ac_ext <<EOF
11591 #line 11592 "configure"
11592 #include "confdefs.h"
11595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11596 { (eval echo configure:11597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11598 if test -z "$ac_err"; then
11600 eval "ac_cv_header_$ac_safe=yes"
11603 echo "configure: failed program was:" >&5
11604 cat conftest.$ac_ext >&5
11606 eval "ac_cv_header_$ac_safe=no"
11610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11611 echo "$ac_t""yes" 1>&6
11612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11613 cat >> confdefs.h <<EOF
11614 #define $ac_tr_hdr 1
11618 echo "$ac_t""no" 1>&6
11623 if test $ac_cv_header_pthread_h = yes ; then
11624 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11625 echo "configure:11626: checking POSIX thread version" >&5
11626 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11627 echo $ac_n "(cached) $ac_c" 1>&6
11630 cat > conftest.$ac_ext <<EOF
11631 #line 11632 "configure"
11632 #include "confdefs.h"
11634 # include <pthread.h>
11635 /* this check could be improved */
11636 # ifdef PTHREAD_ONCE_INIT
11637 pthread_version_final;
11641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11642 egrep "pthread_version_final" >/dev/null 2>&1; then
11644 ol_pthread_final=yes
11647 ol_pthread_final=no
11652 cat > conftest.$ac_ext <<EOF
11653 #line 11654 "configure"
11654 #include "confdefs.h"
11656 # include <pthread.h>
11657 /* this check could be improved */
11658 # ifdef pthread_once_init
11659 pthread_version_draft4;
11663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11664 egrep "pthread_version_draft4" >/dev/null 2>&1; then
11666 ol_pthread_draft4=yes
11669 ol_pthread_draft4=no
11674 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
11675 ol_cv_pthread_version=final
11676 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
11677 ol_cv_pthread_version=draft4
11679 ol_cv_pthread_version=unknown
11684 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11687 if test $ol_cv_pthread_version = final ; then
11688 cat >> confdefs.h <<\EOF
11689 #define HAVE_PTHREADS_FINAL 1
11692 elif test $ol_cv_pthread_version = draft4 ; then
11693 cat >> confdefs.h <<\EOF
11694 #define HAVE_PTHREADS_D4 1
11698 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11701 # consider threads found
11702 ol_with_threads=found
11705 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11706 echo "configure:11707: checking for LinuxThreads pthread.h" >&5
11707 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11708 echo $ac_n "(cached) $ac_c" 1>&6
11710 cat > conftest.$ac_ext <<EOF
11711 #line 11712 "configure"
11712 #include "confdefs.h"
11713 #include <pthread.h>
11715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11716 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11718 ol_cv_header_linux_threads=yes
11721 ol_cv_header_linux_threads=no
11728 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11729 if test $ol_cv_header_linux_threads = yes; then
11730 cat >> confdefs.h <<\EOF
11731 #define HAVE_LINUX_THREADS 1
11737 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11738 echo "configure:11739: checking for GNU Pth pthread.h" >&5
11739 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11740 echo $ac_n "(cached) $ac_c" 1>&6
11742 cat > conftest.$ac_ext <<EOF
11743 #line 11744 "configure"
11744 #include "confdefs.h"
11745 #include <pthread.h>
11746 #ifdef _POSIX_THREAD_IS_GNU_PTH
11751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11752 egrep "__gnu_pth__" >/dev/null 2>&1; then
11754 ol_cv_header_gnu_pth_pthread_h=yes
11757 ol_cv_header_gnu_pth_pthread_h=no
11764 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11767 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11768 for ac_hdr in sched.h
11770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11772 echo "configure:11773: checking for $ac_hdr" >&5
11773 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11774 echo $ac_n "(cached) $ac_c" 1>&6
11776 cat > conftest.$ac_ext <<EOF
11777 #line 11778 "configure"
11778 #include "confdefs.h"
11781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11782 { (eval echo configure:11783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11784 if test -z "$ac_err"; then
11786 eval "ac_cv_header_$ac_safe=yes"
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11792 eval "ac_cv_header_$ac_safe=no"
11796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11797 echo "$ac_t""yes" 1>&6
11798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11799 cat >> confdefs.h <<EOF
11800 #define $ac_tr_hdr 1
11804 echo "$ac_t""no" 1>&6
11811 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11812 echo "configure:11813: checking for pthread_create in default libraries" >&5
11813 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11814 echo $ac_n "(cached) $ac_c" 1>&6
11817 if test "$cross_compiling" = yes; then
11818 cat > conftest.$ac_ext <<EOF
11819 #line 11820 "configure"
11820 #include "confdefs.h"
11821 /* pthread test headers */
11822 #include <pthread.h>
11824 #define NULL (void*)0
11827 static void *task(p)
11830 return (void *) (p == NULL);
11835 /* pthread test function */
11840 #ifdef HAVE_PTHREADS_FINAL
11841 /* Final pthreads */
11842 pthread_attr_t attr;
11844 status = pthread_attr_init(&attr);
11845 if( status ) return status;
11847 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11849 #if defined( PTHREAD_CREATE_JOINABLE )
11850 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11852 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11855 #ifdef PTHREAD_CREATE_DETACHED
11857 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11860 if( status ) return status;
11863 status = pthread_create( &t, &attr, task, NULL );
11864 if( status ) return status;
11866 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11868 /* give thread a chance to complete */
11869 /* it should remain joinable and hence detachable */
11872 status = pthread_detach( t );
11873 if( status ) return status;
11878 /* Draft 4 pthreads */
11879 status = pthread_create( &t, pthread_attr_default, task, NULL );
11880 if( status ) return status;
11883 /* give thread a chance to complete */
11884 /* it should remain joinable and hence detachable */
11887 status = pthread_detach( &t );
11888 if( status ) return status;
11892 #ifdef HAVE_LINUX_THREADS
11893 pthread_kill_other_threads_np();
11900 if { (eval echo configure:11901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11902 ol_cv_pthread_create=yes
11904 echo "configure: failed program was:" >&5
11905 cat conftest.$ac_ext >&5
11907 ol_cv_pthread_create=no
11911 cat > conftest.$ac_ext <<EOF
11912 #line 11913 "configure"
11913 #include "confdefs.h"
11914 /* pthread test headers */
11915 #include <pthread.h>
11917 #define NULL (void*)0
11920 static void *task(p)
11923 return (void *) (p == NULL);
11927 int main(argc, argv)
11932 /* pthread test function */
11937 #ifdef HAVE_PTHREADS_FINAL
11938 /* Final pthreads */
11939 pthread_attr_t attr;
11941 status = pthread_attr_init(&attr);
11942 if( status ) return status;
11944 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11946 #if defined( PTHREAD_CREATE_JOINABLE )
11947 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11949 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11952 #ifdef PTHREAD_CREATE_DETACHED
11954 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11957 if( status ) return status;
11960 status = pthread_create( &t, &attr, task, NULL );
11961 if( status ) return status;
11963 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11965 /* give thread a chance to complete */
11966 /* it should remain joinable and hence detachable */
11969 status = pthread_detach( t );
11970 if( status ) return status;
11975 /* Draft 4 pthreads */
11976 status = pthread_create( &t, pthread_attr_default, task, NULL );
11977 if( status ) return status;
11980 /* give thread a chance to complete */
11981 /* it should remain joinable and hence detachable */
11984 status = pthread_detach( &t );
11985 if( status ) return status;
11989 #ifdef HAVE_LINUX_THREADS
11990 pthread_kill_other_threads_np();
11998 if { (eval echo configure:11999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12000 ol_cv_pthread_create=yes
12002 echo "configure: failed program was:" >&5
12003 cat conftest.$ac_ext >&5
12005 ol_cv_pthread_create=no
12012 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12014 if test $ol_cv_pthread_create != no ; then
12015 ol_link_threads=posix
12016 ol_link_pthreads=""
12019 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12020 if test "$ol_link_threads" = no ; then
12022 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12023 echo "configure:12024: checking for pthread link with -kthread" >&5
12024 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12025 echo $ac_n "(cached) $ac_c" 1>&6
12030 LIBS="-kthread $LIBS"
12032 if test "$cross_compiling" = yes; then
12033 cat > conftest.$ac_ext <<EOF
12034 #line 12035 "configure"
12035 #include "confdefs.h"
12036 /* pthread test headers */
12037 #include <pthread.h>
12039 #define NULL (void*)0
12042 static void *task(p)
12045 return (void *) (p == NULL);
12050 /* pthread test function */
12055 #ifdef HAVE_PTHREADS_FINAL
12056 /* Final pthreads */
12057 pthread_attr_t attr;
12059 status = pthread_attr_init(&attr);
12060 if( status ) return status;
12062 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12064 #if defined( PTHREAD_CREATE_JOINABLE )
12065 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12067 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12070 #ifdef PTHREAD_CREATE_DETACHED
12072 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12075 if( status ) return status;
12078 status = pthread_create( &t, &attr, task, NULL );
12079 if( status ) return status;
12081 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12083 /* give thread a chance to complete */
12084 /* it should remain joinable and hence detachable */
12087 status = pthread_detach( t );
12088 if( status ) return status;
12093 /* Draft 4 pthreads */
12094 status = pthread_create( &t, pthread_attr_default, task, NULL );
12095 if( status ) return status;
12098 /* give thread a chance to complete */
12099 /* it should remain joinable and hence detachable */
12102 status = pthread_detach( &t );
12103 if( status ) return status;
12107 #ifdef HAVE_LINUX_THREADS
12108 pthread_kill_other_threads_np();
12115 if { (eval echo configure:12116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12117 ol_cv_pthread_kthread=yes
12119 echo "configure: failed program was:" >&5
12120 cat conftest.$ac_ext >&5
12122 ol_cv_pthread_kthread=no
12126 cat > conftest.$ac_ext <<EOF
12127 #line 12128 "configure"
12128 #include "confdefs.h"
12129 /* pthread test headers */
12130 #include <pthread.h>
12132 #define NULL (void*)0
12135 static void *task(p)
12138 return (void *) (p == NULL);
12142 int main(argc, argv)
12147 /* pthread test function */
12152 #ifdef HAVE_PTHREADS_FINAL
12153 /* Final pthreads */
12154 pthread_attr_t attr;
12156 status = pthread_attr_init(&attr);
12157 if( status ) return status;
12159 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12161 #if defined( PTHREAD_CREATE_JOINABLE )
12162 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12164 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12167 #ifdef PTHREAD_CREATE_DETACHED
12169 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12172 if( status ) return status;
12175 status = pthread_create( &t, &attr, task, NULL );
12176 if( status ) return status;
12178 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12180 /* give thread a chance to complete */
12181 /* it should remain joinable and hence detachable */
12184 status = pthread_detach( t );
12185 if( status ) return status;
12190 /* Draft 4 pthreads */
12191 status = pthread_create( &t, pthread_attr_default, task, NULL );
12192 if( status ) return status;
12195 /* give thread a chance to complete */
12196 /* it should remain joinable and hence detachable */
12199 status = pthread_detach( &t );
12200 if( status ) return status;
12204 #ifdef HAVE_LINUX_THREADS
12205 pthread_kill_other_threads_np();
12213 if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12215 ol_cv_pthread_kthread=yes
12217 echo "configure: failed program was:" >&5
12218 cat conftest.$ac_ext >&5
12220 ol_cv_pthread_kthread=no
12231 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12233 if test $ol_cv_pthread_kthread = yes ; then
12234 ol_link_pthreads="-kthread"
12235 ol_link_threads=posix
12239 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12240 if test "$ol_link_threads" = no ; then
12242 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12243 echo "configure:12244: checking for pthread link with -pthread" >&5
12244 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12245 echo $ac_n "(cached) $ac_c" 1>&6
12250 LIBS="-pthread $LIBS"
12252 if test "$cross_compiling" = yes; then
12253 cat > conftest.$ac_ext <<EOF
12254 #line 12255 "configure"
12255 #include "confdefs.h"
12256 /* pthread test headers */
12257 #include <pthread.h>
12259 #define NULL (void*)0
12262 static void *task(p)
12265 return (void *) (p == NULL);
12270 /* pthread test function */
12275 #ifdef HAVE_PTHREADS_FINAL
12276 /* Final pthreads */
12277 pthread_attr_t attr;
12279 status = pthread_attr_init(&attr);
12280 if( status ) return status;
12282 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12284 #if defined( PTHREAD_CREATE_JOINABLE )
12285 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12287 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12290 #ifdef PTHREAD_CREATE_DETACHED
12292 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12295 if( status ) return status;
12298 status = pthread_create( &t, &attr, task, NULL );
12299 if( status ) return status;
12301 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12303 /* give thread a chance to complete */
12304 /* it should remain joinable and hence detachable */
12307 status = pthread_detach( t );
12308 if( status ) return status;
12313 /* Draft 4 pthreads */
12314 status = pthread_create( &t, pthread_attr_default, task, NULL );
12315 if( status ) return status;
12318 /* give thread a chance to complete */
12319 /* it should remain joinable and hence detachable */
12322 status = pthread_detach( &t );
12323 if( status ) return status;
12327 #ifdef HAVE_LINUX_THREADS
12328 pthread_kill_other_threads_np();
12335 if { (eval echo configure:12336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12337 ol_cv_pthread_pthread=yes
12339 echo "configure: failed program was:" >&5
12340 cat conftest.$ac_ext >&5
12342 ol_cv_pthread_pthread=no
12346 cat > conftest.$ac_ext <<EOF
12347 #line 12348 "configure"
12348 #include "confdefs.h"
12349 /* pthread test headers */
12350 #include <pthread.h>
12352 #define NULL (void*)0
12355 static void *task(p)
12358 return (void *) (p == NULL);
12362 int main(argc, argv)
12367 /* pthread test function */
12372 #ifdef HAVE_PTHREADS_FINAL
12373 /* Final pthreads */
12374 pthread_attr_t attr;
12376 status = pthread_attr_init(&attr);
12377 if( status ) return status;
12379 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12381 #if defined( PTHREAD_CREATE_JOINABLE )
12382 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12384 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12387 #ifdef PTHREAD_CREATE_DETACHED
12389 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12392 if( status ) return status;
12395 status = pthread_create( &t, &attr, task, NULL );
12396 if( status ) return status;
12398 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12400 /* give thread a chance to complete */
12401 /* it should remain joinable and hence detachable */
12404 status = pthread_detach( t );
12405 if( status ) return status;
12410 /* Draft 4 pthreads */
12411 status = pthread_create( &t, pthread_attr_default, task, NULL );
12412 if( status ) return status;
12415 /* give thread a chance to complete */
12416 /* it should remain joinable and hence detachable */
12419 status = pthread_detach( &t );
12420 if( status ) return status;
12424 #ifdef HAVE_LINUX_THREADS
12425 pthread_kill_other_threads_np();
12433 if { (eval echo configure:12434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12435 ol_cv_pthread_pthread=yes
12437 echo "configure: failed program was:" >&5
12438 cat conftest.$ac_ext >&5
12440 ol_cv_pthread_pthread=no
12451 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12453 if test $ol_cv_pthread_pthread = yes ; then
12454 ol_link_pthreads="-pthread"
12455 ol_link_threads=posix
12459 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12460 if test "$ol_link_threads" = no ; then
12462 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12463 echo "configure:12464: checking for pthread link with -pthreads" >&5
12464 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12465 echo $ac_n "(cached) $ac_c" 1>&6
12470 LIBS="-pthreads $LIBS"
12472 if test "$cross_compiling" = yes; then
12473 cat > conftest.$ac_ext <<EOF
12474 #line 12475 "configure"
12475 #include "confdefs.h"
12476 /* pthread test headers */
12477 #include <pthread.h>
12479 #define NULL (void*)0
12482 static void *task(p)
12485 return (void *) (p == NULL);
12490 /* pthread test function */
12495 #ifdef HAVE_PTHREADS_FINAL
12496 /* Final pthreads */
12497 pthread_attr_t attr;
12499 status = pthread_attr_init(&attr);
12500 if( status ) return status;
12502 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12504 #if defined( PTHREAD_CREATE_JOINABLE )
12505 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12507 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12510 #ifdef PTHREAD_CREATE_DETACHED
12512 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12515 if( status ) return status;
12518 status = pthread_create( &t, &attr, task, NULL );
12519 if( status ) return status;
12521 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12523 /* give thread a chance to complete */
12524 /* it should remain joinable and hence detachable */
12527 status = pthread_detach( t );
12528 if( status ) return status;
12533 /* Draft 4 pthreads */
12534 status = pthread_create( &t, pthread_attr_default, task, NULL );
12535 if( status ) return status;
12538 /* give thread a chance to complete */
12539 /* it should remain joinable and hence detachable */
12542 status = pthread_detach( &t );
12543 if( status ) return status;
12547 #ifdef HAVE_LINUX_THREADS
12548 pthread_kill_other_threads_np();
12555 if { (eval echo configure:12556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12557 ol_cv_pthread_pthreads=yes
12559 echo "configure: failed program was:" >&5
12560 cat conftest.$ac_ext >&5
12562 ol_cv_pthread_pthreads=no
12566 cat > conftest.$ac_ext <<EOF
12567 #line 12568 "configure"
12568 #include "confdefs.h"
12569 /* pthread test headers */
12570 #include <pthread.h>
12572 #define NULL (void*)0
12575 static void *task(p)
12578 return (void *) (p == NULL);
12582 int main(argc, argv)
12587 /* pthread test function */
12592 #ifdef HAVE_PTHREADS_FINAL
12593 /* Final pthreads */
12594 pthread_attr_t attr;
12596 status = pthread_attr_init(&attr);
12597 if( status ) return status;
12599 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12601 #if defined( PTHREAD_CREATE_JOINABLE )
12602 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12604 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12607 #ifdef PTHREAD_CREATE_DETACHED
12609 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12612 if( status ) return status;
12615 status = pthread_create( &t, &attr, task, NULL );
12616 if( status ) return status;
12618 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12620 /* give thread a chance to complete */
12621 /* it should remain joinable and hence detachable */
12624 status = pthread_detach( t );
12625 if( status ) return status;
12630 /* Draft 4 pthreads */
12631 status = pthread_create( &t, pthread_attr_default, task, NULL );
12632 if( status ) return status;
12635 /* give thread a chance to complete */
12636 /* it should remain joinable and hence detachable */
12639 status = pthread_detach( &t );
12640 if( status ) return status;
12644 #ifdef HAVE_LINUX_THREADS
12645 pthread_kill_other_threads_np();
12653 if { (eval echo configure:12654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12655 ol_cv_pthread_pthreads=yes
12657 echo "configure: failed program was:" >&5
12658 cat conftest.$ac_ext >&5
12660 ol_cv_pthread_pthreads=no
12671 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12673 if test $ol_cv_pthread_pthreads = yes ; then
12674 ol_link_pthreads="-pthreads"
12675 ol_link_threads=posix
12679 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12680 if test "$ol_link_threads" = no ; then
12682 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12683 echo "configure:12684: checking for pthread link with -mthreads" >&5
12684 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12685 echo $ac_n "(cached) $ac_c" 1>&6
12690 LIBS="-mthreads $LIBS"
12692 if test "$cross_compiling" = yes; then
12693 cat > conftest.$ac_ext <<EOF
12694 #line 12695 "configure"
12695 #include "confdefs.h"
12696 /* pthread test headers */
12697 #include <pthread.h>
12699 #define NULL (void*)0
12702 static void *task(p)
12705 return (void *) (p == NULL);
12710 /* pthread test function */
12715 #ifdef HAVE_PTHREADS_FINAL
12716 /* Final pthreads */
12717 pthread_attr_t attr;
12719 status = pthread_attr_init(&attr);
12720 if( status ) return status;
12722 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12724 #if defined( PTHREAD_CREATE_JOINABLE )
12725 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12727 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12730 #ifdef PTHREAD_CREATE_DETACHED
12732 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12735 if( status ) return status;
12738 status = pthread_create( &t, &attr, task, NULL );
12739 if( status ) return status;
12741 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12743 /* give thread a chance to complete */
12744 /* it should remain joinable and hence detachable */
12747 status = pthread_detach( t );
12748 if( status ) return status;
12753 /* Draft 4 pthreads */
12754 status = pthread_create( &t, pthread_attr_default, task, NULL );
12755 if( status ) return status;
12758 /* give thread a chance to complete */
12759 /* it should remain joinable and hence detachable */
12762 status = pthread_detach( &t );
12763 if( status ) return status;
12767 #ifdef HAVE_LINUX_THREADS
12768 pthread_kill_other_threads_np();
12775 if { (eval echo configure:12776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12777 ol_cv_pthread_mthreads=yes
12779 echo "configure: failed program was:" >&5
12780 cat conftest.$ac_ext >&5
12782 ol_cv_pthread_mthreads=no
12786 cat > conftest.$ac_ext <<EOF
12787 #line 12788 "configure"
12788 #include "confdefs.h"
12789 /* pthread test headers */
12790 #include <pthread.h>
12792 #define NULL (void*)0
12795 static void *task(p)
12798 return (void *) (p == NULL);
12802 int main(argc, argv)
12807 /* pthread test function */
12812 #ifdef HAVE_PTHREADS_FINAL
12813 /* Final pthreads */
12814 pthread_attr_t attr;
12816 status = pthread_attr_init(&attr);
12817 if( status ) return status;
12819 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12821 #if defined( PTHREAD_CREATE_JOINABLE )
12822 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12824 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12827 #ifdef PTHREAD_CREATE_DETACHED
12829 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12832 if( status ) return status;
12835 status = pthread_create( &t, &attr, task, NULL );
12836 if( status ) return status;
12838 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12840 /* give thread a chance to complete */
12841 /* it should remain joinable and hence detachable */
12844 status = pthread_detach( t );
12845 if( status ) return status;
12850 /* Draft 4 pthreads */
12851 status = pthread_create( &t, pthread_attr_default, task, NULL );
12852 if( status ) return status;
12855 /* give thread a chance to complete */
12856 /* it should remain joinable and hence detachable */
12859 status = pthread_detach( &t );
12860 if( status ) return status;
12864 #ifdef HAVE_LINUX_THREADS
12865 pthread_kill_other_threads_np();
12873 if { (eval echo configure:12874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12875 ol_cv_pthread_mthreads=yes
12877 echo "configure: failed program was:" >&5
12878 cat conftest.$ac_ext >&5
12880 ol_cv_pthread_mthreads=no
12891 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12893 if test $ol_cv_pthread_mthreads = yes ; then
12894 ol_link_pthreads="-mthreads"
12895 ol_link_threads=posix
12899 # Pthread try link: -thread (ol_cv_pthread_thread)
12900 if test "$ol_link_threads" = no ; then
12902 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12903 echo "configure:12904: checking for pthread link with -thread" >&5
12904 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12905 echo $ac_n "(cached) $ac_c" 1>&6
12910 LIBS="-thread $LIBS"
12912 if test "$cross_compiling" = yes; then
12913 cat > conftest.$ac_ext <<EOF
12914 #line 12915 "configure"
12915 #include "confdefs.h"
12916 /* pthread test headers */
12917 #include <pthread.h>
12919 #define NULL (void*)0
12922 static void *task(p)
12925 return (void *) (p == NULL);
12930 /* pthread test function */
12935 #ifdef HAVE_PTHREADS_FINAL
12936 /* Final pthreads */
12937 pthread_attr_t attr;
12939 status = pthread_attr_init(&attr);
12940 if( status ) return status;
12942 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12944 #if defined( PTHREAD_CREATE_JOINABLE )
12945 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12947 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12950 #ifdef PTHREAD_CREATE_DETACHED
12952 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12955 if( status ) return status;
12958 status = pthread_create( &t, &attr, task, NULL );
12959 if( status ) return status;
12961 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12963 /* give thread a chance to complete */
12964 /* it should remain joinable and hence detachable */
12967 status = pthread_detach( t );
12968 if( status ) return status;
12973 /* Draft 4 pthreads */
12974 status = pthread_create( &t, pthread_attr_default, task, NULL );
12975 if( status ) return status;
12978 /* give thread a chance to complete */
12979 /* it should remain joinable and hence detachable */
12982 status = pthread_detach( &t );
12983 if( status ) return status;
12987 #ifdef HAVE_LINUX_THREADS
12988 pthread_kill_other_threads_np();
12995 if { (eval echo configure:12996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12997 ol_cv_pthread_thread=yes
12999 echo "configure: failed program was:" >&5
13000 cat conftest.$ac_ext >&5
13002 ol_cv_pthread_thread=no
13006 cat > conftest.$ac_ext <<EOF
13007 #line 13008 "configure"
13008 #include "confdefs.h"
13009 /* pthread test headers */
13010 #include <pthread.h>
13012 #define NULL (void*)0
13015 static void *task(p)
13018 return (void *) (p == NULL);
13022 int main(argc, argv)
13027 /* pthread test function */
13032 #ifdef HAVE_PTHREADS_FINAL
13033 /* Final pthreads */
13034 pthread_attr_t attr;
13036 status = pthread_attr_init(&attr);
13037 if( status ) return status;
13039 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13041 #if defined( PTHREAD_CREATE_JOINABLE )
13042 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13044 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13047 #ifdef PTHREAD_CREATE_DETACHED
13049 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13052 if( status ) return status;
13055 status = pthread_create( &t, &attr, task, NULL );
13056 if( status ) return status;
13058 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13060 /* give thread a chance to complete */
13061 /* it should remain joinable and hence detachable */
13064 status = pthread_detach( t );
13065 if( status ) return status;
13070 /* Draft 4 pthreads */
13071 status = pthread_create( &t, pthread_attr_default, task, NULL );
13072 if( status ) return status;
13075 /* give thread a chance to complete */
13076 /* it should remain joinable and hence detachable */
13079 status = pthread_detach( &t );
13080 if( status ) return status;
13084 #ifdef HAVE_LINUX_THREADS
13085 pthread_kill_other_threads_np();
13093 if { (eval echo configure:13094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13095 ol_cv_pthread_thread=yes
13097 echo "configure: failed program was:" >&5
13098 cat conftest.$ac_ext >&5
13100 ol_cv_pthread_thread=no
13111 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13113 if test $ol_cv_pthread_thread = yes ; then
13114 ol_link_pthreads="-thread"
13115 ol_link_threads=posix
13120 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13121 if test "$ol_link_threads" = no ; then
13122 # try -lpthread -lmach -lexc -lc_r
13123 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13124 echo "configure:13125: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13125 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13126 echo $ac_n "(cached) $ac_c" 1>&6
13131 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13133 if test "$cross_compiling" = yes; then
13134 cat > conftest.$ac_ext <<EOF
13135 #line 13136 "configure"
13136 #include "confdefs.h"
13137 /* pthread test headers */
13138 #include <pthread.h>
13140 #define NULL (void*)0
13143 static void *task(p)
13146 return (void *) (p == NULL);
13151 /* pthread test function */
13156 #ifdef HAVE_PTHREADS_FINAL
13157 /* Final pthreads */
13158 pthread_attr_t attr;
13160 status = pthread_attr_init(&attr);
13161 if( status ) return status;
13163 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13165 #if defined( PTHREAD_CREATE_JOINABLE )
13166 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13168 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13171 #ifdef PTHREAD_CREATE_DETACHED
13173 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13176 if( status ) return status;
13179 status = pthread_create( &t, &attr, task, NULL );
13180 if( status ) return status;
13182 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13184 /* give thread a chance to complete */
13185 /* it should remain joinable and hence detachable */
13188 status = pthread_detach( t );
13189 if( status ) return status;
13194 /* Draft 4 pthreads */
13195 status = pthread_create( &t, pthread_attr_default, task, NULL );
13196 if( status ) return status;
13199 /* give thread a chance to complete */
13200 /* it should remain joinable and hence detachable */
13203 status = pthread_detach( &t );
13204 if( status ) return status;
13208 #ifdef HAVE_LINUX_THREADS
13209 pthread_kill_other_threads_np();
13216 if { (eval echo configure:13217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13218 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13220 echo "configure: failed program was:" >&5
13221 cat conftest.$ac_ext >&5
13223 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13227 cat > conftest.$ac_ext <<EOF
13228 #line 13229 "configure"
13229 #include "confdefs.h"
13230 /* pthread test headers */
13231 #include <pthread.h>
13233 #define NULL (void*)0
13236 static void *task(p)
13239 return (void *) (p == NULL);
13243 int main(argc, argv)
13248 /* pthread test function */
13253 #ifdef HAVE_PTHREADS_FINAL
13254 /* Final pthreads */
13255 pthread_attr_t attr;
13257 status = pthread_attr_init(&attr);
13258 if( status ) return status;
13260 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13262 #if defined( PTHREAD_CREATE_JOINABLE )
13263 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13265 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13268 #ifdef PTHREAD_CREATE_DETACHED
13270 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13273 if( status ) return status;
13276 status = pthread_create( &t, &attr, task, NULL );
13277 if( status ) return status;
13279 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13281 /* give thread a chance to complete */
13282 /* it should remain joinable and hence detachable */
13285 status = pthread_detach( t );
13286 if( status ) return status;
13291 /* Draft 4 pthreads */
13292 status = pthread_create( &t, pthread_attr_default, task, NULL );
13293 if( status ) return status;
13296 /* give thread a chance to complete */
13297 /* it should remain joinable and hence detachable */
13300 status = pthread_detach( &t );
13301 if( status ) return status;
13305 #ifdef HAVE_LINUX_THREADS
13306 pthread_kill_other_threads_np();
13314 if { (eval echo configure:13315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13316 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13318 echo "configure: failed program was:" >&5
13319 cat conftest.$ac_ext >&5
13321 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13332 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13334 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13335 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13336 ol_link_threads=posix
13340 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13341 if test "$ol_link_threads" = no ; then
13342 # try -lpthread -lmach -lexc
13343 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13344 echo "configure:13345: checking for pthread link with -lpthread -lmach -lexc" >&5
13345 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13346 echo $ac_n "(cached) $ac_c" 1>&6
13351 LIBS="-lpthread -lmach -lexc $LIBS"
13353 if test "$cross_compiling" = yes; then
13354 cat > conftest.$ac_ext <<EOF
13355 #line 13356 "configure"
13356 #include "confdefs.h"
13357 /* pthread test headers */
13358 #include <pthread.h>
13360 #define NULL (void*)0
13363 static void *task(p)
13366 return (void *) (p == NULL);
13371 /* pthread test function */
13376 #ifdef HAVE_PTHREADS_FINAL
13377 /* Final pthreads */
13378 pthread_attr_t attr;
13380 status = pthread_attr_init(&attr);
13381 if( status ) return status;
13383 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13385 #if defined( PTHREAD_CREATE_JOINABLE )
13386 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13388 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13391 #ifdef PTHREAD_CREATE_DETACHED
13393 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13396 if( status ) return status;
13399 status = pthread_create( &t, &attr, task, NULL );
13400 if( status ) return status;
13402 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13404 /* give thread a chance to complete */
13405 /* it should remain joinable and hence detachable */
13408 status = pthread_detach( t );
13409 if( status ) return status;
13414 /* Draft 4 pthreads */
13415 status = pthread_create( &t, pthread_attr_default, task, NULL );
13416 if( status ) return status;
13419 /* give thread a chance to complete */
13420 /* it should remain joinable and hence detachable */
13423 status = pthread_detach( &t );
13424 if( status ) return status;
13428 #ifdef HAVE_LINUX_THREADS
13429 pthread_kill_other_threads_np();
13436 if { (eval echo configure:13437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13438 ol_cv_pthread_lpthread_lmach_lexc=yes
13440 echo "configure: failed program was:" >&5
13441 cat conftest.$ac_ext >&5
13443 ol_cv_pthread_lpthread_lmach_lexc=no
13447 cat > conftest.$ac_ext <<EOF
13448 #line 13449 "configure"
13449 #include "confdefs.h"
13450 /* pthread test headers */
13451 #include <pthread.h>
13453 #define NULL (void*)0
13456 static void *task(p)
13459 return (void *) (p == NULL);
13463 int main(argc, argv)
13468 /* pthread test function */
13473 #ifdef HAVE_PTHREADS_FINAL
13474 /* Final pthreads */
13475 pthread_attr_t attr;
13477 status = pthread_attr_init(&attr);
13478 if( status ) return status;
13480 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13482 #if defined( PTHREAD_CREATE_JOINABLE )
13483 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13485 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13488 #ifdef PTHREAD_CREATE_DETACHED
13490 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13493 if( status ) return status;
13496 status = pthread_create( &t, &attr, task, NULL );
13497 if( status ) return status;
13499 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13501 /* give thread a chance to complete */
13502 /* it should remain joinable and hence detachable */
13505 status = pthread_detach( t );
13506 if( status ) return status;
13511 /* Draft 4 pthreads */
13512 status = pthread_create( &t, pthread_attr_default, task, NULL );
13513 if( status ) return status;
13516 /* give thread a chance to complete */
13517 /* it should remain joinable and hence detachable */
13520 status = pthread_detach( &t );
13521 if( status ) return status;
13525 #ifdef HAVE_LINUX_THREADS
13526 pthread_kill_other_threads_np();
13534 if { (eval echo configure:13535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13536 ol_cv_pthread_lpthread_lmach_lexc=yes
13538 echo "configure: failed program was:" >&5
13539 cat conftest.$ac_ext >&5
13541 ol_cv_pthread_lpthread_lmach_lexc=no
13552 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13554 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13555 ol_link_pthreads="-lpthread -lmach -lexc"
13556 ol_link_threads=posix
13561 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13562 if test "$ol_link_threads" = no ; then
13563 # try -lpthread -Wl,-woff,85
13564 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13565 echo "configure:13566: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13566 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13567 echo $ac_n "(cached) $ac_c" 1>&6
13572 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13574 if test "$cross_compiling" = yes; then
13575 cat > conftest.$ac_ext <<EOF
13576 #line 13577 "configure"
13577 #include "confdefs.h"
13578 /* pthread test headers */
13579 #include <pthread.h>
13581 #define NULL (void*)0
13584 static void *task(p)
13587 return (void *) (p == NULL);
13592 /* pthread test function */
13597 #ifdef HAVE_PTHREADS_FINAL
13598 /* Final pthreads */
13599 pthread_attr_t attr;
13601 status = pthread_attr_init(&attr);
13602 if( status ) return status;
13604 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13606 #if defined( PTHREAD_CREATE_JOINABLE )
13607 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13609 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13612 #ifdef PTHREAD_CREATE_DETACHED
13614 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13617 if( status ) return status;
13620 status = pthread_create( &t, &attr, task, NULL );
13621 if( status ) return status;
13623 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13625 /* give thread a chance to complete */
13626 /* it should remain joinable and hence detachable */
13629 status = pthread_detach( t );
13630 if( status ) return status;
13635 /* Draft 4 pthreads */
13636 status = pthread_create( &t, pthread_attr_default, task, NULL );
13637 if( status ) return status;
13640 /* give thread a chance to complete */
13641 /* it should remain joinable and hence detachable */
13644 status = pthread_detach( &t );
13645 if( status ) return status;
13649 #ifdef HAVE_LINUX_THREADS
13650 pthread_kill_other_threads_np();
13657 if { (eval echo configure:13658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13659 ol_cv_pthread_lib_lpthread_woff=yes
13661 echo "configure: failed program was:" >&5
13662 cat conftest.$ac_ext >&5
13664 ol_cv_pthread_lib_lpthread_woff=no
13668 cat > conftest.$ac_ext <<EOF
13669 #line 13670 "configure"
13670 #include "confdefs.h"
13671 /* pthread test headers */
13672 #include <pthread.h>
13674 #define NULL (void*)0
13677 static void *task(p)
13680 return (void *) (p == NULL);
13684 int main(argc, argv)
13689 /* pthread test function */
13694 #ifdef HAVE_PTHREADS_FINAL
13695 /* Final pthreads */
13696 pthread_attr_t attr;
13698 status = pthread_attr_init(&attr);
13699 if( status ) return status;
13701 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13703 #if defined( PTHREAD_CREATE_JOINABLE )
13704 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13706 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13709 #ifdef PTHREAD_CREATE_DETACHED
13711 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13714 if( status ) return status;
13717 status = pthread_create( &t, &attr, task, NULL );
13718 if( status ) return status;
13720 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13722 /* give thread a chance to complete */
13723 /* it should remain joinable and hence detachable */
13726 status = pthread_detach( t );
13727 if( status ) return status;
13732 /* Draft 4 pthreads */
13733 status = pthread_create( &t, pthread_attr_default, task, NULL );
13734 if( status ) return status;
13737 /* give thread a chance to complete */
13738 /* it should remain joinable and hence detachable */
13741 status = pthread_detach( &t );
13742 if( status ) return status;
13746 #ifdef HAVE_LINUX_THREADS
13747 pthread_kill_other_threads_np();
13755 if { (eval echo configure:13756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13757 ol_cv_pthread_lib_lpthread_woff=yes
13759 echo "configure: failed program was:" >&5
13760 cat conftest.$ac_ext >&5
13762 ol_cv_pthread_lib_lpthread_woff=no
13773 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13775 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13776 ol_link_pthreads="-lpthread -Wl,-woff,85"
13777 ol_link_threads=posix
13782 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13783 if test "$ol_link_threads" = no ; then
13785 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13786 echo "configure:13787: checking for pthread link with -lpthread" >&5
13787 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13788 echo $ac_n "(cached) $ac_c" 1>&6
13793 LIBS="-lpthread $LIBS"
13795 if test "$cross_compiling" = yes; then
13796 cat > conftest.$ac_ext <<EOF
13797 #line 13798 "configure"
13798 #include "confdefs.h"
13799 /* pthread test headers */
13800 #include <pthread.h>
13802 #define NULL (void*)0
13805 static void *task(p)
13808 return (void *) (p == NULL);
13813 /* pthread test function */
13818 #ifdef HAVE_PTHREADS_FINAL
13819 /* Final pthreads */
13820 pthread_attr_t attr;
13822 status = pthread_attr_init(&attr);
13823 if( status ) return status;
13825 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13827 #if defined( PTHREAD_CREATE_JOINABLE )
13828 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13830 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13833 #ifdef PTHREAD_CREATE_DETACHED
13835 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13838 if( status ) return status;
13841 status = pthread_create( &t, &attr, task, NULL );
13842 if( status ) return status;
13844 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13846 /* give thread a chance to complete */
13847 /* it should remain joinable and hence detachable */
13850 status = pthread_detach( t );
13851 if( status ) return status;
13856 /* Draft 4 pthreads */
13857 status = pthread_create( &t, pthread_attr_default, task, NULL );
13858 if( status ) return status;
13861 /* give thread a chance to complete */
13862 /* it should remain joinable and hence detachable */
13865 status = pthread_detach( &t );
13866 if( status ) return status;
13870 #ifdef HAVE_LINUX_THREADS
13871 pthread_kill_other_threads_np();
13878 if { (eval echo configure:13879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13880 ol_cv_pthread_lpthread=yes
13882 echo "configure: failed program was:" >&5
13883 cat conftest.$ac_ext >&5
13885 ol_cv_pthread_lpthread=no
13889 cat > conftest.$ac_ext <<EOF
13890 #line 13891 "configure"
13891 #include "confdefs.h"
13892 /* pthread test headers */
13893 #include <pthread.h>
13895 #define NULL (void*)0
13898 static void *task(p)
13901 return (void *) (p == NULL);
13905 int main(argc, argv)
13910 /* pthread test function */
13915 #ifdef HAVE_PTHREADS_FINAL
13916 /* Final pthreads */
13917 pthread_attr_t attr;
13919 status = pthread_attr_init(&attr);
13920 if( status ) return status;
13922 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13924 #if defined( PTHREAD_CREATE_JOINABLE )
13925 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13927 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13930 #ifdef PTHREAD_CREATE_DETACHED
13932 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13935 if( status ) return status;
13938 status = pthread_create( &t, &attr, task, NULL );
13939 if( status ) return status;
13941 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13943 /* give thread a chance to complete */
13944 /* it should remain joinable and hence detachable */
13947 status = pthread_detach( t );
13948 if( status ) return status;
13953 /* Draft 4 pthreads */
13954 status = pthread_create( &t, pthread_attr_default, task, NULL );
13955 if( status ) return status;
13958 /* give thread a chance to complete */
13959 /* it should remain joinable and hence detachable */
13962 status = pthread_detach( &t );
13963 if( status ) return status;
13967 #ifdef HAVE_LINUX_THREADS
13968 pthread_kill_other_threads_np();
13976 if { (eval echo configure:13977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13978 ol_cv_pthread_lpthread=yes
13980 echo "configure: failed program was:" >&5
13981 cat conftest.$ac_ext >&5
13983 ol_cv_pthread_lpthread=no
13994 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13996 if test $ol_cv_pthread_lpthread = yes ; then
13997 ol_link_pthreads="-lpthread"
13998 ol_link_threads=posix
14002 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
14003 if test "$ol_link_threads" = no ; then
14005 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
14006 echo "configure:14007: checking for pthread link with -lc_r" >&5
14007 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
14008 echo $ac_n "(cached) $ac_c" 1>&6
14015 if test "$cross_compiling" = yes; then
14016 cat > conftest.$ac_ext <<EOF
14017 #line 14018 "configure"
14018 #include "confdefs.h"
14019 /* pthread test headers */
14020 #include <pthread.h>
14022 #define NULL (void*)0
14025 static void *task(p)
14028 return (void *) (p == NULL);
14033 /* pthread test function */
14038 #ifdef HAVE_PTHREADS_FINAL
14039 /* Final pthreads */
14040 pthread_attr_t attr;
14042 status = pthread_attr_init(&attr);
14043 if( status ) return status;
14045 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14047 #if defined( PTHREAD_CREATE_JOINABLE )
14048 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14050 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14053 #ifdef PTHREAD_CREATE_DETACHED
14055 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14058 if( status ) return status;
14061 status = pthread_create( &t, &attr, task, NULL );
14062 if( status ) return status;
14064 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14066 /* give thread a chance to complete */
14067 /* it should remain joinable and hence detachable */
14070 status = pthread_detach( t );
14071 if( status ) return status;
14076 /* Draft 4 pthreads */
14077 status = pthread_create( &t, pthread_attr_default, task, NULL );
14078 if( status ) return status;
14081 /* give thread a chance to complete */
14082 /* it should remain joinable and hence detachable */
14085 status = pthread_detach( &t );
14086 if( status ) return status;
14090 #ifdef HAVE_LINUX_THREADS
14091 pthread_kill_other_threads_np();
14098 if { (eval echo configure:14099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14100 ol_cv_pthread_lc_r=yes
14102 echo "configure: failed program was:" >&5
14103 cat conftest.$ac_ext >&5
14105 ol_cv_pthread_lc_r=no
14109 cat > conftest.$ac_ext <<EOF
14110 #line 14111 "configure"
14111 #include "confdefs.h"
14112 /* pthread test headers */
14113 #include <pthread.h>
14115 #define NULL (void*)0
14118 static void *task(p)
14121 return (void *) (p == NULL);
14125 int main(argc, argv)
14130 /* pthread test function */
14135 #ifdef HAVE_PTHREADS_FINAL
14136 /* Final pthreads */
14137 pthread_attr_t attr;
14139 status = pthread_attr_init(&attr);
14140 if( status ) return status;
14142 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14144 #if defined( PTHREAD_CREATE_JOINABLE )
14145 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14147 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14150 #ifdef PTHREAD_CREATE_DETACHED
14152 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14155 if( status ) return status;
14158 status = pthread_create( &t, &attr, task, NULL );
14159 if( status ) return status;
14161 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14163 /* give thread a chance to complete */
14164 /* it should remain joinable and hence detachable */
14167 status = pthread_detach( t );
14168 if( status ) return status;
14173 /* Draft 4 pthreads */
14174 status = pthread_create( &t, pthread_attr_default, task, NULL );
14175 if( status ) return status;
14178 /* give thread a chance to complete */
14179 /* it should remain joinable and hence detachable */
14182 status = pthread_detach( &t );
14183 if( status ) return status;
14187 #ifdef HAVE_LINUX_THREADS
14188 pthread_kill_other_threads_np();
14196 if { (eval echo configure:14197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14198 ol_cv_pthread_lc_r=yes
14200 echo "configure: failed program was:" >&5
14201 cat conftest.$ac_ext >&5
14203 ol_cv_pthread_lc_r=no
14214 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14216 if test $ol_cv_pthread_lc_r = yes ; then
14217 ol_link_pthreads="-lc_r"
14218 ol_link_threads=posix
14223 # Pthread try link: -threads (ol_cv_pthread_threads)
14224 if test "$ol_link_threads" = no ; then
14226 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14227 echo "configure:14228: checking for pthread link with -threads" >&5
14228 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14229 echo $ac_n "(cached) $ac_c" 1>&6
14234 LIBS="-threads $LIBS"
14236 if test "$cross_compiling" = yes; then
14237 cat > conftest.$ac_ext <<EOF
14238 #line 14239 "configure"
14239 #include "confdefs.h"
14240 /* pthread test headers */
14241 #include <pthread.h>
14243 #define NULL (void*)0
14246 static void *task(p)
14249 return (void *) (p == NULL);
14254 /* pthread test function */
14259 #ifdef HAVE_PTHREADS_FINAL
14260 /* Final pthreads */
14261 pthread_attr_t attr;
14263 status = pthread_attr_init(&attr);
14264 if( status ) return status;
14266 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14268 #if defined( PTHREAD_CREATE_JOINABLE )
14269 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14271 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14274 #ifdef PTHREAD_CREATE_DETACHED
14276 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14279 if( status ) return status;
14282 status = pthread_create( &t, &attr, task, NULL );
14283 if( status ) return status;
14285 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14287 /* give thread a chance to complete */
14288 /* it should remain joinable and hence detachable */
14291 status = pthread_detach( t );
14292 if( status ) return status;
14297 /* Draft 4 pthreads */
14298 status = pthread_create( &t, pthread_attr_default, task, NULL );
14299 if( status ) return status;
14302 /* give thread a chance to complete */
14303 /* it should remain joinable and hence detachable */
14306 status = pthread_detach( &t );
14307 if( status ) return status;
14311 #ifdef HAVE_LINUX_THREADS
14312 pthread_kill_other_threads_np();
14319 if { (eval echo configure:14320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14321 ol_cv_pthread_threads=yes
14323 echo "configure: failed program was:" >&5
14324 cat conftest.$ac_ext >&5
14326 ol_cv_pthread_threads=no
14330 cat > conftest.$ac_ext <<EOF
14331 #line 14332 "configure"
14332 #include "confdefs.h"
14333 /* pthread test headers */
14334 #include <pthread.h>
14336 #define NULL (void*)0
14339 static void *task(p)
14342 return (void *) (p == NULL);
14346 int main(argc, argv)
14351 /* pthread test function */
14356 #ifdef HAVE_PTHREADS_FINAL
14357 /* Final pthreads */
14358 pthread_attr_t attr;
14360 status = pthread_attr_init(&attr);
14361 if( status ) return status;
14363 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14365 #if defined( PTHREAD_CREATE_JOINABLE )
14366 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14368 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14371 #ifdef PTHREAD_CREATE_DETACHED
14373 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14376 if( status ) return status;
14379 status = pthread_create( &t, &attr, task, NULL );
14380 if( status ) return status;
14382 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14384 /* give thread a chance to complete */
14385 /* it should remain joinable and hence detachable */
14388 status = pthread_detach( t );
14389 if( status ) return status;
14394 /* Draft 4 pthreads */
14395 status = pthread_create( &t, pthread_attr_default, task, NULL );
14396 if( status ) return status;
14399 /* give thread a chance to complete */
14400 /* it should remain joinable and hence detachable */
14403 status = pthread_detach( &t );
14404 if( status ) return status;
14408 #ifdef HAVE_LINUX_THREADS
14409 pthread_kill_other_threads_np();
14417 if { (eval echo configure:14418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14419 ol_cv_pthread_threads=yes
14421 echo "configure: failed program was:" >&5
14422 cat conftest.$ac_ext >&5
14424 ol_cv_pthread_threads=no
14435 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14437 if test $ol_cv_pthread_threads = yes ; then
14438 ol_link_pthreads="-threads"
14439 ol_link_threads=posix
14444 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14445 if test "$ol_link_threads" = no ; then
14446 # try -lpthreads -lmach -lexc -lc_r
14447 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14448 echo "configure:14449: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14449 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14450 echo $ac_n "(cached) $ac_c" 1>&6
14455 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14457 if test "$cross_compiling" = yes; then
14458 cat > conftest.$ac_ext <<EOF
14459 #line 14460 "configure"
14460 #include "confdefs.h"
14461 /* pthread test headers */
14462 #include <pthread.h>
14464 #define NULL (void*)0
14467 static void *task(p)
14470 return (void *) (p == NULL);
14475 /* pthread test function */
14480 #ifdef HAVE_PTHREADS_FINAL
14481 /* Final pthreads */
14482 pthread_attr_t attr;
14484 status = pthread_attr_init(&attr);
14485 if( status ) return status;
14487 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14489 #if defined( PTHREAD_CREATE_JOINABLE )
14490 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14492 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14495 #ifdef PTHREAD_CREATE_DETACHED
14497 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14500 if( status ) return status;
14503 status = pthread_create( &t, &attr, task, NULL );
14504 if( status ) return status;
14506 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14508 /* give thread a chance to complete */
14509 /* it should remain joinable and hence detachable */
14512 status = pthread_detach( t );
14513 if( status ) return status;
14518 /* Draft 4 pthreads */
14519 status = pthread_create( &t, pthread_attr_default, task, NULL );
14520 if( status ) return status;
14523 /* give thread a chance to complete */
14524 /* it should remain joinable and hence detachable */
14527 status = pthread_detach( &t );
14528 if( status ) return status;
14532 #ifdef HAVE_LINUX_THREADS
14533 pthread_kill_other_threads_np();
14540 if { (eval echo configure:14541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14542 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14544 echo "configure: failed program was:" >&5
14545 cat conftest.$ac_ext >&5
14547 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14551 cat > conftest.$ac_ext <<EOF
14552 #line 14553 "configure"
14553 #include "confdefs.h"
14554 /* pthread test headers */
14555 #include <pthread.h>
14557 #define NULL (void*)0
14560 static void *task(p)
14563 return (void *) (p == NULL);
14567 int main(argc, argv)
14572 /* pthread test function */
14577 #ifdef HAVE_PTHREADS_FINAL
14578 /* Final pthreads */
14579 pthread_attr_t attr;
14581 status = pthread_attr_init(&attr);
14582 if( status ) return status;
14584 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14586 #if defined( PTHREAD_CREATE_JOINABLE )
14587 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14589 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14592 #ifdef PTHREAD_CREATE_DETACHED
14594 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14597 if( status ) return status;
14600 status = pthread_create( &t, &attr, task, NULL );
14601 if( status ) return status;
14603 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14605 /* give thread a chance to complete */
14606 /* it should remain joinable and hence detachable */
14609 status = pthread_detach( t );
14610 if( status ) return status;
14615 /* Draft 4 pthreads */
14616 status = pthread_create( &t, pthread_attr_default, task, NULL );
14617 if( status ) return status;
14620 /* give thread a chance to complete */
14621 /* it should remain joinable and hence detachable */
14624 status = pthread_detach( &t );
14625 if( status ) return status;
14629 #ifdef HAVE_LINUX_THREADS
14630 pthread_kill_other_threads_np();
14638 if { (eval echo configure:14639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14640 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14642 echo "configure: failed program was:" >&5
14643 cat conftest.$ac_ext >&5
14645 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14656 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14658 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14659 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14660 ol_link_threads=posix
14664 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14665 if test "$ol_link_threads" = no ; then
14666 # try -lpthreads -lmach -lexc
14667 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14668 echo "configure:14669: checking for pthread link with -lpthreads -lmach -lexc" >&5
14669 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14670 echo $ac_n "(cached) $ac_c" 1>&6
14675 LIBS="-lpthreads -lmach -lexc $LIBS"
14677 if test "$cross_compiling" = yes; then
14678 cat > conftest.$ac_ext <<EOF
14679 #line 14680 "configure"
14680 #include "confdefs.h"
14681 /* pthread test headers */
14682 #include <pthread.h>
14684 #define NULL (void*)0
14687 static void *task(p)
14690 return (void *) (p == NULL);
14695 /* pthread test function */
14700 #ifdef HAVE_PTHREADS_FINAL
14701 /* Final pthreads */
14702 pthread_attr_t attr;
14704 status = pthread_attr_init(&attr);
14705 if( status ) return status;
14707 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14709 #if defined( PTHREAD_CREATE_JOINABLE )
14710 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14712 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14715 #ifdef PTHREAD_CREATE_DETACHED
14717 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14720 if( status ) return status;
14723 status = pthread_create( &t, &attr, task, NULL );
14724 if( status ) return status;
14726 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14728 /* give thread a chance to complete */
14729 /* it should remain joinable and hence detachable */
14732 status = pthread_detach( t );
14733 if( status ) return status;
14738 /* Draft 4 pthreads */
14739 status = pthread_create( &t, pthread_attr_default, task, NULL );
14740 if( status ) return status;
14743 /* give thread a chance to complete */
14744 /* it should remain joinable and hence detachable */
14747 status = pthread_detach( &t );
14748 if( status ) return status;
14752 #ifdef HAVE_LINUX_THREADS
14753 pthread_kill_other_threads_np();
14760 if { (eval echo configure:14761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14762 ol_cv_pthread_lpthreads_lmach_lexc=yes
14764 echo "configure: failed program was:" >&5
14765 cat conftest.$ac_ext >&5
14767 ol_cv_pthread_lpthreads_lmach_lexc=no
14771 cat > conftest.$ac_ext <<EOF
14772 #line 14773 "configure"
14773 #include "confdefs.h"
14774 /* pthread test headers */
14775 #include <pthread.h>
14777 #define NULL (void*)0
14780 static void *task(p)
14783 return (void *) (p == NULL);
14787 int main(argc, argv)
14792 /* pthread test function */
14797 #ifdef HAVE_PTHREADS_FINAL
14798 /* Final pthreads */
14799 pthread_attr_t attr;
14801 status = pthread_attr_init(&attr);
14802 if( status ) return status;
14804 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14806 #if defined( PTHREAD_CREATE_JOINABLE )
14807 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14809 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14812 #ifdef PTHREAD_CREATE_DETACHED
14814 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14817 if( status ) return status;
14820 status = pthread_create( &t, &attr, task, NULL );
14821 if( status ) return status;
14823 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14825 /* give thread a chance to complete */
14826 /* it should remain joinable and hence detachable */
14829 status = pthread_detach( t );
14830 if( status ) return status;
14835 /* Draft 4 pthreads */
14836 status = pthread_create( &t, pthread_attr_default, task, NULL );
14837 if( status ) return status;
14840 /* give thread a chance to complete */
14841 /* it should remain joinable and hence detachable */
14844 status = pthread_detach( &t );
14845 if( status ) return status;
14849 #ifdef HAVE_LINUX_THREADS
14850 pthread_kill_other_threads_np();
14858 if { (eval echo configure:14859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14860 ol_cv_pthread_lpthreads_lmach_lexc=yes
14862 echo "configure: failed program was:" >&5
14863 cat conftest.$ac_ext >&5
14865 ol_cv_pthread_lpthreads_lmach_lexc=no
14876 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14878 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14879 ol_link_pthreads="-lpthreads -lmach -lexc"
14880 ol_link_threads=posix
14884 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14885 if test "$ol_link_threads" = no ; then
14886 # try -lpthreads -lexc
14887 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14888 echo "configure:14889: checking for pthread link with -lpthreads -lexc" >&5
14889 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14890 echo $ac_n "(cached) $ac_c" 1>&6
14895 LIBS="-lpthreads -lexc $LIBS"
14897 if test "$cross_compiling" = yes; then
14898 cat > conftest.$ac_ext <<EOF
14899 #line 14900 "configure"
14900 #include "confdefs.h"
14901 /* pthread test headers */
14902 #include <pthread.h>
14904 #define NULL (void*)0
14907 static void *task(p)
14910 return (void *) (p == NULL);
14915 /* pthread test function */
14920 #ifdef HAVE_PTHREADS_FINAL
14921 /* Final pthreads */
14922 pthread_attr_t attr;
14924 status = pthread_attr_init(&attr);
14925 if( status ) return status;
14927 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14929 #if defined( PTHREAD_CREATE_JOINABLE )
14930 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14932 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14935 #ifdef PTHREAD_CREATE_DETACHED
14937 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14940 if( status ) return status;
14943 status = pthread_create( &t, &attr, task, NULL );
14944 if( status ) return status;
14946 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14948 /* give thread a chance to complete */
14949 /* it should remain joinable and hence detachable */
14952 status = pthread_detach( t );
14953 if( status ) return status;
14958 /* Draft 4 pthreads */
14959 status = pthread_create( &t, pthread_attr_default, task, NULL );
14960 if( status ) return status;
14963 /* give thread a chance to complete */
14964 /* it should remain joinable and hence detachable */
14967 status = pthread_detach( &t );
14968 if( status ) return status;
14972 #ifdef HAVE_LINUX_THREADS
14973 pthread_kill_other_threads_np();
14980 if { (eval echo configure:14981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14982 ol_cv_pthread_lpthreads_lexc=yes
14984 echo "configure: failed program was:" >&5
14985 cat conftest.$ac_ext >&5
14987 ol_cv_pthread_lpthreads_lexc=no
14991 cat > conftest.$ac_ext <<EOF
14992 #line 14993 "configure"
14993 #include "confdefs.h"
14994 /* pthread test headers */
14995 #include <pthread.h>
14997 #define NULL (void*)0
15000 static void *task(p)
15003 return (void *) (p == NULL);
15007 int main(argc, argv)
15012 /* pthread test function */
15017 #ifdef HAVE_PTHREADS_FINAL
15018 /* Final pthreads */
15019 pthread_attr_t attr;
15021 status = pthread_attr_init(&attr);
15022 if( status ) return status;
15024 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15026 #if defined( PTHREAD_CREATE_JOINABLE )
15027 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15029 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15032 #ifdef PTHREAD_CREATE_DETACHED
15034 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15037 if( status ) return status;
15040 status = pthread_create( &t, &attr, task, NULL );
15041 if( status ) return status;
15043 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15045 /* give thread a chance to complete */
15046 /* it should remain joinable and hence detachable */
15049 status = pthread_detach( t );
15050 if( status ) return status;
15055 /* Draft 4 pthreads */
15056 status = pthread_create( &t, pthread_attr_default, task, NULL );
15057 if( status ) return status;
15060 /* give thread a chance to complete */
15061 /* it should remain joinable and hence detachable */
15064 status = pthread_detach( &t );
15065 if( status ) return status;
15069 #ifdef HAVE_LINUX_THREADS
15070 pthread_kill_other_threads_np();
15078 if { (eval echo configure:15079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15080 ol_cv_pthread_lpthreads_lexc=yes
15082 echo "configure: failed program was:" >&5
15083 cat conftest.$ac_ext >&5
15085 ol_cv_pthread_lpthreads_lexc=no
15096 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
15098 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
15099 ol_link_pthreads="-lpthreads -lexc"
15100 ol_link_threads=posix
15105 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
15106 if test "$ol_link_threads" = no ; then
15108 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
15109 echo "configure:15110: checking for pthread link with -lpthreads" >&5
15110 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
15111 echo $ac_n "(cached) $ac_c" 1>&6
15116 LIBS="-lpthreads $LIBS"
15118 if test "$cross_compiling" = yes; then
15119 cat > conftest.$ac_ext <<EOF
15120 #line 15121 "configure"
15121 #include "confdefs.h"
15122 /* pthread test headers */
15123 #include <pthread.h>
15125 #define NULL (void*)0
15128 static void *task(p)
15131 return (void *) (p == NULL);
15136 /* pthread test function */
15141 #ifdef HAVE_PTHREADS_FINAL
15142 /* Final pthreads */
15143 pthread_attr_t attr;
15145 status = pthread_attr_init(&attr);
15146 if( status ) return status;
15148 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15150 #if defined( PTHREAD_CREATE_JOINABLE )
15151 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15153 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15156 #ifdef PTHREAD_CREATE_DETACHED
15158 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15161 if( status ) return status;
15164 status = pthread_create( &t, &attr, task, NULL );
15165 if( status ) return status;
15167 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15169 /* give thread a chance to complete */
15170 /* it should remain joinable and hence detachable */
15173 status = pthread_detach( t );
15174 if( status ) return status;
15179 /* Draft 4 pthreads */
15180 status = pthread_create( &t, pthread_attr_default, task, NULL );
15181 if( status ) return status;
15184 /* give thread a chance to complete */
15185 /* it should remain joinable and hence detachable */
15188 status = pthread_detach( &t );
15189 if( status ) return status;
15193 #ifdef HAVE_LINUX_THREADS
15194 pthread_kill_other_threads_np();
15201 if { (eval echo configure:15202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15203 ol_cv_pthread_lib_lpthreads=yes
15205 echo "configure: failed program was:" >&5
15206 cat conftest.$ac_ext >&5
15208 ol_cv_pthread_lib_lpthreads=no
15212 cat > conftest.$ac_ext <<EOF
15213 #line 15214 "configure"
15214 #include "confdefs.h"
15215 /* pthread test headers */
15216 #include <pthread.h>
15218 #define NULL (void*)0
15221 static void *task(p)
15224 return (void *) (p == NULL);
15228 int main(argc, argv)
15233 /* pthread test function */
15238 #ifdef HAVE_PTHREADS_FINAL
15239 /* Final pthreads */
15240 pthread_attr_t attr;
15242 status = pthread_attr_init(&attr);
15243 if( status ) return status;
15245 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15247 #if defined( PTHREAD_CREATE_JOINABLE )
15248 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15250 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15253 #ifdef PTHREAD_CREATE_DETACHED
15255 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15258 if( status ) return status;
15261 status = pthread_create( &t, &attr, task, NULL );
15262 if( status ) return status;
15264 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15266 /* give thread a chance to complete */
15267 /* it should remain joinable and hence detachable */
15270 status = pthread_detach( t );
15271 if( status ) return status;
15276 /* Draft 4 pthreads */
15277 status = pthread_create( &t, pthread_attr_default, task, NULL );
15278 if( status ) return status;
15281 /* give thread a chance to complete */
15282 /* it should remain joinable and hence detachable */
15285 status = pthread_detach( &t );
15286 if( status ) return status;
15290 #ifdef HAVE_LINUX_THREADS
15291 pthread_kill_other_threads_np();
15299 if { (eval echo configure:15300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15301 ol_cv_pthread_lib_lpthreads=yes
15303 echo "configure: failed program was:" >&5
15304 cat conftest.$ac_ext >&5
15306 ol_cv_pthread_lib_lpthreads=no
15317 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15319 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15320 ol_link_pthreads="-lpthreads"
15321 ol_link_threads=posix
15326 if test $ol_link_threads != no ; then
15327 cat >> confdefs.h <<\EOF
15328 #define HAVE_PTHREADS 1
15332 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15334 save_CPPFLAGS="$CPPFLAGS"
15336 LIBS="$LTHREAD_LIBS $LIBS"
15338 for ac_func in sched_yield pthread_yield
15340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15341 echo "configure:15342: checking for $ac_func" >&5
15342 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15343 echo $ac_n "(cached) $ac_c" 1>&6
15345 cat > conftest.$ac_ext <<EOF
15346 #line 15347 "configure"
15347 #include "confdefs.h"
15348 /* System header to define __stub macros and hopefully few prototypes,
15349 which can conflict with char $ac_func(); below. */
15350 #include <assert.h>
15351 /* Override any gcc2 internal prototype to avoid an error. */
15352 /* We use char because int might match the return type of a gcc2
15353 builtin and then its argument prototype would still apply. */
15359 /* The GNU C library defines this for functions which it implements
15360 to always fail with ENOSYS. Some functions are actually named
15361 something starting with __ and the normal name is an alias. */
15362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15370 if { (eval echo configure:15371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15372 eval "ac_cv_func_$ac_func=yes"
15374 echo "configure: failed program was:" >&5
15375 cat conftest.$ac_ext >&5
15377 eval "ac_cv_func_$ac_func=no"
15382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15383 echo "$ac_t""yes" 1>&6
15384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15385 cat >> confdefs.h <<EOF
15386 #define $ac_tr_func 1
15390 echo "$ac_t""no" 1>&6
15395 if test $ac_cv_func_sched_yield = no -a \
15396 $ac_cv_func_pthread_yield = no ; then
15397 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15398 echo "configure:15399: checking for sched_yield in -lrt" >&5
15399 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15400 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15401 echo $ac_n "(cached) $ac_c" 1>&6
15403 ac_save_LIBS="$LIBS"
15405 cat > conftest.$ac_ext <<EOF
15406 #line 15407 "configure"
15407 #include "confdefs.h"
15408 /* Override any gcc2 internal prototype to avoid an error. */
15409 /* We use char because int might match the return type of a gcc2
15410 builtin and then its argument prototype would still apply. */
15411 char sched_yield();
15417 if { (eval echo configure:15418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15419 eval "ac_cv_lib_$ac_lib_var=yes"
15421 echo "configure: failed program was:" >&5
15422 cat conftest.$ac_ext >&5
15424 eval "ac_cv_lib_$ac_lib_var=no"
15427 LIBS="$ac_save_LIBS"
15430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15431 echo "$ac_t""yes" 1>&6
15432 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15433 cat >> confdefs.h <<\EOF
15434 #define HAVE_SCHED_YIELD 1
15437 ac_cv_func_sched_yield=yes
15439 echo "$ac_t""no" 1>&6
15440 ac_cv_func_sched_yield=no
15444 if test $ac_cv_func_sched_yield = no -a \
15445 $ac_cv_func_pthread_yield = no ; then
15446 for ac_func in thr_yield
15448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15449 echo "configure:15450: checking for $ac_func" >&5
15450 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15451 echo $ac_n "(cached) $ac_c" 1>&6
15453 cat > conftest.$ac_ext <<EOF
15454 #line 15455 "configure"
15455 #include "confdefs.h"
15456 /* System header to define __stub macros and hopefully few prototypes,
15457 which can conflict with char $ac_func(); below. */
15458 #include <assert.h>
15459 /* Override any gcc2 internal prototype to avoid an error. */
15460 /* We use char because int might match the return type of a gcc2
15461 builtin and then its argument prototype would still apply. */
15467 /* The GNU C library defines this for functions which it implements
15468 to always fail with ENOSYS. Some functions are actually named
15469 something starting with __ and the normal name is an alias. */
15470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15478 if { (eval echo configure:15479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15480 eval "ac_cv_func_$ac_func=yes"
15482 echo "configure: failed program was:" >&5
15483 cat conftest.$ac_ext >&5
15485 eval "ac_cv_func_$ac_func=no"
15490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15491 echo "$ac_t""yes" 1>&6
15492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15493 cat >> confdefs.h <<EOF
15494 #define $ac_tr_func 1
15498 echo "$ac_t""no" 1>&6
15503 if test $ac_cv_func_sched_yield = no -a \
15504 $ac_cv_func_pthread_yield = no -a \
15505 "$ac_cv_func_thr_yield" = no ; then
15506 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15509 for ac_func in pthread_kill pthread_rwlock_destroy
15511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15512 echo "configure:15513: checking for $ac_func" >&5
15513 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15514 echo $ac_n "(cached) $ac_c" 1>&6
15516 cat > conftest.$ac_ext <<EOF
15517 #line 15518 "configure"
15518 #include "confdefs.h"
15519 /* System header to define __stub macros and hopefully few prototypes,
15520 which can conflict with char $ac_func(); below. */
15521 #include <assert.h>
15522 /* Override any gcc2 internal prototype to avoid an error. */
15523 /* We use char because int might match the return type of a gcc2
15524 builtin and then its argument prototype would still apply. */
15530 /* The GNU C library defines this for functions which it implements
15531 to always fail with ENOSYS. Some functions are actually named
15532 something starting with __ and the normal name is an alias. */
15533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15541 if { (eval echo configure:15542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15543 eval "ac_cv_func_$ac_func=yes"
15545 echo "configure: failed program was:" >&5
15546 cat conftest.$ac_ext >&5
15548 eval "ac_cv_func_$ac_func=no"
15553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15554 echo "$ac_t""yes" 1>&6
15555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15556 cat >> confdefs.h <<EOF
15557 #define $ac_tr_func 1
15561 echo "$ac_t""no" 1>&6
15566 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15567 echo "configure:15568: checking for pthread_detach with <pthread.h>" >&5
15568 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15569 echo $ac_n "(cached) $ac_c" 1>&6
15572 cat > conftest.$ac_ext <<EOF
15573 #line 15574 "configure"
15574 #include "confdefs.h"
15576 #include <pthread.h>
15578 #define NULL (void*)0
15582 pthread_detach(NULL);
15585 if { (eval echo configure:15586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15587 ol_cv_func_pthread_detach=yes
15589 echo "configure: failed program was:" >&5
15590 cat conftest.$ac_ext >&5
15592 ol_cv_func_pthread_detach=no
15598 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15600 if test $ol_cv_func_pthread_detach = no ; then
15601 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15604 cat >> confdefs.h <<\EOF
15605 #define HAVE_PTHREAD_DETACH 1
15610 pthread_setconcurrency \
15611 pthread_getconcurrency \
15612 thr_setconcurrency \
15613 thr_getconcurrency \
15616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15617 echo "configure:15618: checking for $ac_func" >&5
15618 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15619 echo $ac_n "(cached) $ac_c" 1>&6
15621 cat > conftest.$ac_ext <<EOF
15622 #line 15623 "configure"
15623 #include "confdefs.h"
15624 /* System header to define __stub macros and hopefully few prototypes,
15625 which can conflict with char $ac_func(); below. */
15626 #include <assert.h>
15627 /* Override any gcc2 internal prototype to avoid an error. */
15628 /* We use char because int might match the return type of a gcc2
15629 builtin and then its argument prototype would still apply. */
15635 /* The GNU C library defines this for functions which it implements
15636 to always fail with ENOSYS. Some functions are actually named
15637 something starting with __ and the normal name is an alias. */
15638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15646 if { (eval echo configure:15647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15648 eval "ac_cv_func_$ac_func=yes"
15650 echo "configure: failed program was:" >&5
15651 cat conftest.$ac_ext >&5
15653 eval "ac_cv_func_$ac_func=no"
15658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15659 echo "$ac_t""yes" 1>&6
15660 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15661 cat >> confdefs.h <<EOF
15662 #define $ac_tr_func 1
15666 echo "$ac_t""no" 1>&6
15672 for ac_func in pthread_kill_other_threads_np
15674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15675 echo "configure:15676: checking for $ac_func" >&5
15676 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15677 echo $ac_n "(cached) $ac_c" 1>&6
15679 cat > conftest.$ac_ext <<EOF
15680 #line 15681 "configure"
15681 #include "confdefs.h"
15682 /* System header to define __stub macros and hopefully few prototypes,
15683 which can conflict with char $ac_func(); below. */
15684 #include <assert.h>
15685 /* Override any gcc2 internal prototype to avoid an error. */
15686 /* We use char because int might match the return type of a gcc2
15687 builtin and then its argument prototype would still apply. */
15693 /* The GNU C library defines this for functions which it implements
15694 to always fail with ENOSYS. Some functions are actually named
15695 something starting with __ and the normal name is an alias. */
15696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15704 if { (eval echo configure:15705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15706 eval "ac_cv_func_$ac_func=yes"
15708 echo "configure: failed program was:" >&5
15709 cat conftest.$ac_ext >&5
15711 eval "ac_cv_func_$ac_func=no"
15716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15717 echo "$ac_t""yes" 1>&6
15718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15719 cat >> confdefs.h <<EOF
15720 #define $ac_tr_func 1
15724 echo "$ac_t""no" 1>&6
15728 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15729 echo "configure:15730: checking for LinuxThreads implementation" >&5
15730 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15731 echo $ac_n "(cached) $ac_c" 1>&6
15733 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15736 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15741 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15742 echo "configure:15743: checking for LinuxThreads consistency" >&5
15743 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15744 echo $ac_n "(cached) $ac_c" 1>&6
15747 if test $ol_cv_header_linux_threads = yes -a \
15748 $ol_cv_sys_linux_threads = yes; then
15749 ol_cv_linux_threads=yes
15750 elif test $ol_cv_header_linux_threads = no -a \
15751 $ol_cv_sys_linux_threads = no; then
15752 ol_cv_linux_threads=no
15754 ol_cv_linux_threads=error
15759 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15762 if test $ol_cv_linux_threads = error; then
15763 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15766 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15767 echo "configure:15768: checking if pthread_create() works" >&5
15768 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15769 echo $ac_n "(cached) $ac_c" 1>&6
15772 if test "$cross_compiling" = yes; then
15773 ol_cv_pthread_create_works=yes
15775 cat > conftest.$ac_ext <<EOF
15776 #line 15777 "configure"
15777 #include "confdefs.h"
15778 /* pthread test headers */
15779 #include <pthread.h>
15781 #define NULL (void*)0
15784 static void *task(p)
15787 return (void *) (p == NULL);
15791 int main(argc, argv)
15796 /* pthread test function */
15801 #ifdef HAVE_PTHREADS_FINAL
15802 /* Final pthreads */
15803 pthread_attr_t attr;
15805 status = pthread_attr_init(&attr);
15806 if( status ) return status;
15808 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15810 #if defined( PTHREAD_CREATE_JOINABLE )
15811 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15813 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15816 #ifdef PTHREAD_CREATE_DETACHED
15818 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15821 if( status ) return status;
15824 status = pthread_create( &t, &attr, task, NULL );
15825 if( status ) return status;
15827 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15829 /* give thread a chance to complete */
15830 /* it should remain joinable and hence detachable */
15833 status = pthread_detach( t );
15834 if( status ) return status;
15839 /* Draft 4 pthreads */
15840 status = pthread_create( &t, pthread_attr_default, task, NULL );
15841 if( status ) return status;
15844 /* give thread a chance to complete */
15845 /* it should remain joinable and hence detachable */
15848 status = pthread_detach( &t );
15849 if( status ) return status;
15853 #ifdef HAVE_LINUX_THREADS
15854 pthread_kill_other_threads_np();
15862 if { (eval echo configure:15863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15864 ol_cv_pthread_create_works=yes
15866 echo "configure: failed program was:" >&5
15867 cat conftest.$ac_ext >&5
15869 ol_cv_pthread_create_works=no
15876 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15878 if test $ol_cv_pthread_create_works = no ; then
15879 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15882 if test $ol_with_yielding_select = auto ; then
15883 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15884 echo "configure:15885: checking if select yields when using pthreads" >&5
15885 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15886 echo $ac_n "(cached) $ac_c" 1>&6
15889 if test "$cross_compiling" = yes; then
15890 ol_cv_pthread_select_yields=cross
15892 cat > conftest.$ac_ext <<EOF
15893 #line 15894 "configure"
15894 #include "confdefs.h"
15896 #include <sys/types.h>
15897 #include <sys/time.h>
15898 #include <unistd.h>
15899 #include <pthread.h>
15901 #define NULL (void*) 0
15904 static int fildes[2];
15906 static void *task(p)
15918 FD_SET(fildes[0], &rfds);
15920 /* we're not interested in any fds */
15921 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15928 exit(0); /* if we exit here, the select blocked the whole process */
15931 int main(argc, argv)
15937 /* create a pipe to select */
15938 if(pipe(&fildes[0])) {
15943 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15944 (void) pthread_setconcurrency(2);
15946 #ifdef HAVE_THR_SETCONCURRENCY
15947 /* Set Solaris LWP concurrency to 2 */
15948 thr_setconcurrency(2);
15952 #if HAVE_PTHREADS_D4
15953 pthread_create(&t, pthread_attr_default, task, NULL);
15955 pthread_create(&t, NULL, task, NULL);
15958 #if HAVE_SCHED_YIELD
15959 sched_yield(); /* make sure task runs first */
15961 #ifdef HAVE_PTHREAD_YIELD
15962 pthread_yield(); /* make sure task runs first */
15969 if { (eval echo configure:15970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15971 ol_cv_pthread_select_yields=no
15973 echo "configure: failed program was:" >&5
15974 cat conftest.$ac_ext >&5
15976 ol_cv_pthread_select_yields=yes
15983 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15985 if test $ol_cv_pthread_select_yields = cross ; then
15986 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15989 if test $ol_cv_pthread_select_yields = yes ; then
15990 ol_with_yielding_select=yes
15994 CPPFLAGS="$save_CPPFLAGS"
15997 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
16001 if test $ol_with_threads = posix ; then
16002 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
16006 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16007 -o $ol_with_threads = mach ; then
16009 for ac_hdr in mach/cthreads.h cthreads.h
16011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16013 echo "configure:16014: checking for $ac_hdr" >&5
16014 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16015 echo $ac_n "(cached) $ac_c" 1>&6
16017 cat > conftest.$ac_ext <<EOF
16018 #line 16019 "configure"
16019 #include "confdefs.h"
16022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16023 { (eval echo configure:16024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16025 if test -z "$ac_err"; then
16027 eval "ac_cv_header_$ac_safe=yes"
16030 echo "configure: failed program was:" >&5
16031 cat conftest.$ac_ext >&5
16033 eval "ac_cv_header_$ac_safe=no"
16037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16038 echo "$ac_t""yes" 1>&6
16039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16040 cat >> confdefs.h <<EOF
16041 #define $ac_tr_hdr 1
16045 echo "$ac_t""no" 1>&6
16049 if test $ac_cv_header_mach_cthreads_h = yes ; then
16050 ol_with_threads=found
16052 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16053 echo "configure:16054: checking for cthread_fork" >&5
16054 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16055 echo $ac_n "(cached) $ac_c" 1>&6
16057 cat > conftest.$ac_ext <<EOF
16058 #line 16059 "configure"
16059 #include "confdefs.h"
16060 /* System header to define __stub macros and hopefully few prototypes,
16061 which can conflict with char cthread_fork(); below. */
16062 #include <assert.h>
16063 /* Override any gcc2 internal prototype to avoid an error. */
16064 /* We use char because int might match the return type of a gcc2
16065 builtin and then its argument prototype would still apply. */
16066 char cthread_fork();
16071 /* The GNU C library defines this for functions which it implements
16072 to always fail with ENOSYS. Some functions are actually named
16073 something starting with __ and the normal name is an alias. */
16074 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16082 if { (eval echo configure:16083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16084 eval "ac_cv_func_cthread_fork=yes"
16086 echo "configure: failed program was:" >&5
16087 cat conftest.$ac_ext >&5
16089 eval "ac_cv_func_cthread_fork=no"
16094 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16095 echo "$ac_t""yes" 1>&6
16096 ol_link_threads=yes
16098 echo "$ac_t""no" 1>&6
16102 if test $ol_link_threads = no ; then
16103 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
16104 echo "configure:16105: checking for cthread_fork with -all_load" >&5
16105 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
16106 echo $ac_n "(cached) $ac_c" 1>&6
16110 LIBS="-all_load $LIBS"
16111 cat > conftest.$ac_ext <<EOF
16112 #line 16113 "configure"
16113 #include "confdefs.h"
16114 #include <mach/cthreads.h>
16117 cthread_fork((void *)0, (void *)0);
16121 if { (eval echo configure:16122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16123 ol_cv_cthread_all_load=yes
16125 echo "configure: failed program was:" >&5
16126 cat conftest.$ac_ext >&5
16128 ol_cv_cthread_all_load=no
16135 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
16137 if test $ol_cv_cthread_all_load = yes ; then
16138 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
16139 ol_link_threads=mach
16140 ol_with_threads=found
16144 elif test $ac_cv_header_cthreads_h = yes ; then
16146 ol_with_threads=found
16149 LIBS="$LIBS -lthreads"
16150 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16151 echo "configure:16152: checking for cthread_fork" >&5
16152 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16153 echo $ac_n "(cached) $ac_c" 1>&6
16155 cat > conftest.$ac_ext <<EOF
16156 #line 16157 "configure"
16157 #include "confdefs.h"
16158 /* System header to define __stub macros and hopefully few prototypes,
16159 which can conflict with char cthread_fork(); below. */
16160 #include <assert.h>
16161 /* Override any gcc2 internal prototype to avoid an error. */
16162 /* We use char because int might match the return type of a gcc2
16163 builtin and then its argument prototype would still apply. */
16164 char cthread_fork();
16169 /* The GNU C library defines this for functions which it implements
16170 to always fail with ENOSYS. Some functions are actually named
16171 something starting with __ and the normal name is an alias. */
16172 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16180 if { (eval echo configure:16181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16182 eval "ac_cv_func_cthread_fork=yes"
16184 echo "configure: failed program was:" >&5
16185 cat conftest.$ac_ext >&5
16187 eval "ac_cv_func_cthread_fork=no"
16192 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16193 echo "$ac_t""yes" 1>&6
16194 ol_link_threads=yes
16196 echo "$ac_t""no" 1>&6
16201 if test $ol_link_threads = yes ; then
16202 LTHREAD_LIBS="-lthreads"
16203 ol_link_threads=mach
16204 ol_with_threads=found
16206 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16209 elif test $ol_with_threads = mach ; then
16210 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
16213 if test $ol_link_threads = mach ; then
16214 cat >> confdefs.h <<\EOF
16215 #define HAVE_MACH_CTHREADS 1
16218 elif test $ol_with_threads = found ; then
16219 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16223 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16224 -o $ol_with_threads = pth ; then
16226 for ac_hdr in pth.h
16228 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16229 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16230 echo "configure:16231: checking for $ac_hdr" >&5
16231 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16232 echo $ac_n "(cached) $ac_c" 1>&6
16234 cat > conftest.$ac_ext <<EOF
16235 #line 16236 "configure"
16236 #include "confdefs.h"
16239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16240 { (eval echo configure:16241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16242 if test -z "$ac_err"; then
16244 eval "ac_cv_header_$ac_safe=yes"
16247 echo "configure: failed program was:" >&5
16248 cat conftest.$ac_ext >&5
16250 eval "ac_cv_header_$ac_safe=no"
16254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16255 echo "$ac_t""yes" 1>&6
16256 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16257 cat >> confdefs.h <<EOF
16258 #define $ac_tr_hdr 1
16262 echo "$ac_t""no" 1>&6
16267 if test $ac_cv_header_pth_h = yes ; then
16268 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
16269 echo "configure:16270: checking for pth_version in -lpth" >&5
16270 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
16271 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16272 echo $ac_n "(cached) $ac_c" 1>&6
16274 ac_save_LIBS="$LIBS"
16276 cat > conftest.$ac_ext <<EOF
16277 #line 16278 "configure"
16278 #include "confdefs.h"
16279 /* Override any gcc2 internal prototype to avoid an error. */
16280 /* We use char because int might match the return type of a gcc2
16281 builtin and then its argument prototype would still apply. */
16282 char pth_version();
16288 if { (eval echo configure:16289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16290 eval "ac_cv_lib_$ac_lib_var=yes"
16292 echo "configure: failed program was:" >&5
16293 cat conftest.$ac_ext >&5
16295 eval "ac_cv_lib_$ac_lib_var=no"
16298 LIBS="$ac_save_LIBS"
16301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16302 echo "$ac_t""yes" 1>&6
16305 echo "$ac_t""no" 1>&6
16310 if test $have_pth = yes ; then
16311 cat >> confdefs.h <<\EOF
16312 #define HAVE_GNU_PTH 1
16315 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16316 ol_link_threads=pth
16317 ol_with_threads=found
16319 if test $ol_with_yielding_select = auto ; then
16320 ol_with_yielding_select=yes
16326 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16327 -o $ol_with_threads = lwp ; then
16329 for ac_hdr in thread.h synch.h
16331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16333 echo "configure:16334: checking for $ac_hdr" >&5
16334 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16335 echo $ac_n "(cached) $ac_c" 1>&6
16337 cat > conftest.$ac_ext <<EOF
16338 #line 16339 "configure"
16339 #include "confdefs.h"
16342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16343 { (eval echo configure:16344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16345 if test -z "$ac_err"; then
16347 eval "ac_cv_header_$ac_safe=yes"
16350 echo "configure: failed program was:" >&5
16351 cat conftest.$ac_ext >&5
16353 eval "ac_cv_header_$ac_safe=no"
16357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16358 echo "$ac_t""yes" 1>&6
16359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16360 cat >> confdefs.h <<EOF
16361 #define $ac_tr_hdr 1
16365 echo "$ac_t""no" 1>&6
16369 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16370 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16371 echo "configure:16372: checking for thr_create in -lthread" >&5
16372 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16373 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16374 echo $ac_n "(cached) $ac_c" 1>&6
16376 ac_save_LIBS="$LIBS"
16377 LIBS="-lthread $LIBS"
16378 cat > conftest.$ac_ext <<EOF
16379 #line 16380 "configure"
16380 #include "confdefs.h"
16381 /* Override any gcc2 internal prototype to avoid an error. */
16382 /* We use char because int might match the return type of a gcc2
16383 builtin and then its argument prototype would still apply. */
16390 if { (eval echo configure:16391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16392 eval "ac_cv_lib_$ac_lib_var=yes"
16394 echo "configure: failed program was:" >&5
16395 cat conftest.$ac_ext >&5
16397 eval "ac_cv_lib_$ac_lib_var=no"
16400 LIBS="$ac_save_LIBS"
16403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16404 echo "$ac_t""yes" 1>&6
16407 echo "$ac_t""no" 1>&6
16412 if test $have_thr = yes ; then
16413 cat >> confdefs.h <<\EOF
16417 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16418 ol_link_threads=thr
16420 if test $ol_with_yielding_select = auto ; then
16421 ol_with_yielding_select=yes
16425 thr_setconcurrency \
16426 thr_getconcurrency \
16429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16430 echo "configure:16431: checking for $ac_func" >&5
16431 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16432 echo $ac_n "(cached) $ac_c" 1>&6
16434 cat > conftest.$ac_ext <<EOF
16435 #line 16436 "configure"
16436 #include "confdefs.h"
16437 /* System header to define __stub macros and hopefully few prototypes,
16438 which can conflict with char $ac_func(); below. */
16439 #include <assert.h>
16440 /* Override any gcc2 internal prototype to avoid an error. */
16441 /* We use char because int might match the return type of a gcc2
16442 builtin and then its argument prototype would still apply. */
16448 /* The GNU C library defines this for functions which it implements
16449 to always fail with ENOSYS. Some functions are actually named
16450 something starting with __ and the normal name is an alias. */
16451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16459 if { (eval echo configure:16460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16461 eval "ac_cv_func_$ac_func=yes"
16463 echo "configure: failed program was:" >&5
16464 cat conftest.$ac_ext >&5
16466 eval "ac_cv_func_$ac_func=no"
16471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16472 echo "$ac_t""yes" 1>&6
16473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16474 cat >> confdefs.h <<EOF
16475 #define $ac_tr_func 1
16479 echo "$ac_t""no" 1>&6
16486 for ac_hdr in lwp/lwp.h
16488 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16489 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16490 echo "configure:16491: checking for $ac_hdr" >&5
16491 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16492 echo $ac_n "(cached) $ac_c" 1>&6
16494 cat > conftest.$ac_ext <<EOF
16495 #line 16496 "configure"
16496 #include "confdefs.h"
16499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16500 { (eval echo configure:16501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16502 if test -z "$ac_err"; then
16504 eval "ac_cv_header_$ac_safe=yes"
16507 echo "configure: failed program was:" >&5
16508 cat conftest.$ac_ext >&5
16510 eval "ac_cv_header_$ac_safe=no"
16514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16515 echo "$ac_t""yes" 1>&6
16516 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16517 cat >> confdefs.h <<EOF
16518 #define $ac_tr_hdr 1
16522 echo "$ac_t""no" 1>&6
16526 if test $ac_cv_header_lwp_lwp_h = yes ; then
16527 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16528 echo "configure:16529: checking for lwp_create in -llwp" >&5
16529 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16530 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16531 echo $ac_n "(cached) $ac_c" 1>&6
16533 ac_save_LIBS="$LIBS"
16535 cat > conftest.$ac_ext <<EOF
16536 #line 16537 "configure"
16537 #include "confdefs.h"
16538 /* Override any gcc2 internal prototype to avoid an error. */
16539 /* We use char because int might match the return type of a gcc2
16540 builtin and then its argument prototype would still apply. */
16547 if { (eval echo configure:16548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16549 eval "ac_cv_lib_$ac_lib_var=yes"
16551 echo "configure: failed program was:" >&5
16552 cat conftest.$ac_ext >&5
16554 eval "ac_cv_lib_$ac_lib_var=no"
16557 LIBS="$ac_save_LIBS"
16560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16561 echo "$ac_t""yes" 1>&6
16564 echo "$ac_t""no" 1>&6
16569 if test $have_lwp = yes ; then
16570 cat >> confdefs.h <<\EOF
16574 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16575 ol_link_threads=lwp
16577 if test $ol_with_yielding_select = auto ; then
16578 ol_with_yielding_select=no
16584 if test $ol_with_yielding_select = yes ; then
16585 cat >> confdefs.h <<\EOF
16586 #define HAVE_YIELDING_SELECT 1
16591 if test $ol_with_threads = manual ; then
16592 ol_link_threads=yes
16594 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16596 for ac_hdr in pthread.h sched.h
16598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16600 echo "configure:16601: checking for $ac_hdr" >&5
16601 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16602 echo $ac_n "(cached) $ac_c" 1>&6
16604 cat > conftest.$ac_ext <<EOF
16605 #line 16606 "configure"
16606 #include "confdefs.h"
16609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16610 { (eval echo configure:16611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16612 if test -z "$ac_err"; then
16614 eval "ac_cv_header_$ac_safe=yes"
16617 echo "configure: failed program was:" >&5
16618 cat conftest.$ac_ext >&5
16620 eval "ac_cv_header_$ac_safe=no"
16624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16625 echo "$ac_t""yes" 1>&6
16626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16627 cat >> confdefs.h <<EOF
16628 #define $ac_tr_hdr 1
16632 echo "$ac_t""no" 1>&6
16636 for ac_func in sched_yield pthread_yield
16638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16639 echo "configure:16640: checking for $ac_func" >&5
16640 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16641 echo $ac_n "(cached) $ac_c" 1>&6
16643 cat > conftest.$ac_ext <<EOF
16644 #line 16645 "configure"
16645 #include "confdefs.h"
16646 /* System header to define __stub macros and hopefully few prototypes,
16647 which can conflict with char $ac_func(); below. */
16648 #include <assert.h>
16649 /* Override any gcc2 internal prototype to avoid an error. */
16650 /* We use char because int might match the return type of a gcc2
16651 builtin and then its argument prototype would still apply. */
16657 /* The GNU C library defines this for functions which it implements
16658 to always fail with ENOSYS. Some functions are actually named
16659 something starting with __ and the normal name is an alias. */
16660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16668 if { (eval echo configure:16669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16670 eval "ac_cv_func_$ac_func=yes"
16672 echo "configure: failed program was:" >&5
16673 cat conftest.$ac_ext >&5
16675 eval "ac_cv_func_$ac_func=no"
16680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16681 echo "$ac_t""yes" 1>&6
16682 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16683 cat >> confdefs.h <<EOF
16684 #define $ac_tr_func 1
16688 echo "$ac_t""no" 1>&6
16693 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16694 echo "configure:16695: checking for LinuxThreads pthread.h" >&5
16695 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16696 echo $ac_n "(cached) $ac_c" 1>&6
16698 cat > conftest.$ac_ext <<EOF
16699 #line 16700 "configure"
16700 #include "confdefs.h"
16701 #include <pthread.h>
16703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16704 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16706 ol_cv_header_linux_threads=yes
16709 ol_cv_header_linux_threads=no
16716 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16717 if test $ol_cv_header_linux_threads = yes; then
16718 cat >> confdefs.h <<\EOF
16719 #define HAVE_LINUX_THREADS 1
16725 for ac_hdr in mach/cthreads.h
16727 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16729 echo "configure:16730: checking for $ac_hdr" >&5
16730 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16731 echo $ac_n "(cached) $ac_c" 1>&6
16733 cat > conftest.$ac_ext <<EOF
16734 #line 16735 "configure"
16735 #include "confdefs.h"
16738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16739 { (eval echo configure:16740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16741 if test -z "$ac_err"; then
16743 eval "ac_cv_header_$ac_safe=yes"
16746 echo "configure: failed program was:" >&5
16747 cat conftest.$ac_ext >&5
16749 eval "ac_cv_header_$ac_safe=no"
16753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16754 echo "$ac_t""yes" 1>&6
16755 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16756 cat >> confdefs.h <<EOF
16757 #define $ac_tr_hdr 1
16761 echo "$ac_t""no" 1>&6
16765 for ac_hdr in lwp/lwp.h
16767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16769 echo "configure:16770: checking for $ac_hdr" >&5
16770 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16771 echo $ac_n "(cached) $ac_c" 1>&6
16773 cat > conftest.$ac_ext <<EOF
16774 #line 16775 "configure"
16775 #include "confdefs.h"
16778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16779 { (eval echo configure:16780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16781 if test -z "$ac_err"; then
16783 eval "ac_cv_header_$ac_safe=yes"
16786 echo "configure: failed program was:" >&5
16787 cat conftest.$ac_ext >&5
16789 eval "ac_cv_header_$ac_safe=no"
16793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16794 echo "$ac_t""yes" 1>&6
16795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16796 cat >> confdefs.h <<EOF
16797 #define $ac_tr_hdr 1
16801 echo "$ac_t""no" 1>&6
16805 for ac_hdr in thread.h synch.h
16807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16809 echo "configure:16810: checking for $ac_hdr" >&5
16810 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16811 echo $ac_n "(cached) $ac_c" 1>&6
16813 cat > conftest.$ac_ext <<EOF
16814 #line 16815 "configure"
16815 #include "confdefs.h"
16818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16819 { (eval echo configure:16820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16821 if test -z "$ac_err"; then
16823 eval "ac_cv_header_$ac_safe=yes"
16826 echo "configure: failed program was:" >&5
16827 cat conftest.$ac_ext >&5
16829 eval "ac_cv_header_$ac_safe=no"
16833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16834 echo "$ac_t""yes" 1>&6
16835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16836 cat >> confdefs.h <<EOF
16837 #define $ac_tr_hdr 1
16841 echo "$ac_t""no" 1>&6
16847 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16848 cat >> confdefs.h <<\EOF
16849 #define REENTRANT 1
16852 cat >> confdefs.h <<\EOF
16853 #define _REENTRANT 1
16856 cat >> confdefs.h <<\EOF
16857 #define THREAD_SAFE 1
16860 cat >> confdefs.h <<\EOF
16861 #define _THREAD_SAFE 1
16864 cat >> confdefs.h <<\EOF
16865 #define THREADSAFE 1
16868 cat >> confdefs.h <<\EOF
16869 #define _THREADSAFE 1
16872 cat >> confdefs.h <<\EOF
16873 #define _SGI_MP_SOURCE 1
16877 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16878 echo "configure:16879: checking for thread specific errno" >&5
16879 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16880 echo $ac_n "(cached) $ac_c" 1>&6
16883 cat > conftest.$ac_ext <<EOF
16884 #line 16885 "configure"
16885 #include "confdefs.h"
16891 if { (eval echo configure:16892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16893 ol_cv_errno_thread_specific=yes
16895 echo "configure: failed program was:" >&5
16896 cat conftest.$ac_ext >&5
16898 ol_cv_errno_thread_specific=no
16904 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16906 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16907 echo "configure:16908: checking for thread specific h_errno" >&5
16908 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16909 echo $ac_n "(cached) $ac_c" 1>&6
16912 cat > conftest.$ac_ext <<EOF
16913 #line 16914 "configure"
16914 #include "confdefs.h"
16920 if { (eval echo configure:16921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16922 ol_cv_h_errno_thread_specific=yes
16924 echo "configure: failed program was:" >&5
16925 cat conftest.$ac_ext >&5
16927 ol_cv_h_errno_thread_specific=no
16933 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16935 if test $ol_cv_errno_thread_specific != yes \
16936 -o $ol_cv_h_errno_thread_specific != yes ; then
16937 LIBS="$LTHREAD_LIBS $LIBS"
16943 if test $ol_link_threads = no ; then
16944 if test $ol_with_threads = yes ; then
16945 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16948 if test $ol_with_threads = auto ; then
16949 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16953 cat >> confdefs.h <<\EOF
16954 #define NO_THREADS 1
16960 if test $ol_link_threads != no ; then
16961 cat >> confdefs.h <<\EOF
16962 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16969 if test $ol_with_ldbm_api = auto \
16970 -o $ol_with_ldbm_api = berkeley \
16971 -o $ol_with_ldbm_api = bcompat ; then
16973 if test $ol_with_ldbm_api = bcompat; then \
16974 for ac_hdr in db_185.h db.h
16976 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16977 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16978 echo "configure:16979: checking for $ac_hdr" >&5
16979 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16980 echo $ac_n "(cached) $ac_c" 1>&6
16982 cat > conftest.$ac_ext <<EOF
16983 #line 16984 "configure"
16984 #include "confdefs.h"
16987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16988 { (eval echo configure:16989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16990 if test -z "$ac_err"; then
16992 eval "ac_cv_header_$ac_safe=yes"
16995 echo "configure: failed program was:" >&5
16996 cat conftest.$ac_ext >&5
16998 eval "ac_cv_header_$ac_safe=no"
17002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17003 echo "$ac_t""yes" 1>&6
17004 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17005 cat >> confdefs.h <<EOF
17006 #define $ac_tr_hdr 1
17010 echo "$ac_t""no" 1>&6
17014 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
17015 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
17016 echo "configure:17017: checking if Berkeley DB header compatibility" >&5
17017 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
17018 echo $ac_n "(cached) $ac_c" 1>&6
17021 cat > conftest.$ac_ext <<EOF
17022 #line 17023 "configure"
17023 #include "confdefs.h"
17026 # include <db_185.h>
17031 /* this check could be improved */
17032 #ifndef DB_VERSION_MAJOR
17033 # define DB_VERSION_MAJOR 1
17036 #if DB_VERSION_MAJOR == 1
17041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17042 egrep "__db_version_1" >/dev/null 2>&1; then
17044 ol_cv_header_db1=yes
17047 ol_cv_header_db1=no
17053 echo "$ac_t""$ol_cv_header_db1" 1>&6
17055 if test $ol_cv_header_db1 = yes ; then
17057 if test $ol_cv_lib_db = no ; then
17058 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17059 echo "configure:17060: checking for Berkeley DB link (default)" >&5
17060 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17061 echo $ac_n "(cached) $ac_c" 1>&6
17066 LIBS="$ol_DB_LIB $LIBS"
17068 cat > conftest.$ac_ext <<EOF
17069 #line 17070 "configure"
17070 #include "confdefs.h"
17072 #ifdef HAVE_DB_185_H
17073 # include <db_185.h>
17078 #ifndef DB_VERSION_MAJOR
17079 # define DB_VERSION_MAJOR 1
17083 #define NULL ((void*)0)
17088 #if DB_VERSION_MAJOR > 1
17091 int major, minor, patch;
17093 version = db_version( &major, &minor, &patch );
17095 if( major != DB_VERSION_MAJOR ||
17096 minor < DB_VERSION_MINOR )
17098 printf("Berkeley DB version mismatch\n"
17099 "\texpected: %s\n\tgot: %s\n",
17100 DB_VERSION_STRING, version);
17106 #if DB_VERSION_MAJOR > 2
17107 db_env_create( NULL, 0 );
17108 #elif DB_VERSION_MAJOR > 1
17109 db_appexit( NULL );
17111 (void) dbopen( NULL, 0, 0, 0, NULL);
17116 if { (eval echo configure:17117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17120 echo "configure: failed program was:" >&5
17121 cat conftest.$ac_ext >&5
17131 echo "$ac_t""$ol_cv_db_none" 1>&6
17133 if test $ol_cv_db_none = yes ; then
17138 if test $ol_cv_lib_db = no ; then
17139 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17140 echo "configure:17141: checking for Berkeley DB link (-ldb4)" >&5
17141 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17142 echo $ac_n "(cached) $ac_c" 1>&6
17147 LIBS="$ol_DB_LIB $LIBS"
17149 cat > conftest.$ac_ext <<EOF
17150 #line 17151 "configure"
17151 #include "confdefs.h"
17153 #ifdef HAVE_DB_185_H
17154 # include <db_185.h>
17159 #ifndef DB_VERSION_MAJOR
17160 # define DB_VERSION_MAJOR 1
17164 #define NULL ((void*)0)
17169 #if DB_VERSION_MAJOR > 1
17172 int major, minor, patch;
17174 version = db_version( &major, &minor, &patch );
17176 if( major != DB_VERSION_MAJOR ||
17177 minor < DB_VERSION_MINOR )
17179 printf("Berkeley DB version mismatch\n"
17180 "\texpected: %s\n\tgot: %s\n",
17181 DB_VERSION_STRING, version);
17187 #if DB_VERSION_MAJOR > 2
17188 db_env_create( NULL, 0 );
17189 #elif DB_VERSION_MAJOR > 1
17190 db_appexit( NULL );
17192 (void) dbopen( NULL, 0, 0, 0, NULL);
17197 if { (eval echo configure:17198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17201 echo "configure: failed program was:" >&5
17202 cat conftest.$ac_ext >&5
17212 echo "$ac_t""$ol_cv_db_db4" 1>&6
17214 if test $ol_cv_db_db4 = yes ; then
17219 if test $ol_cv_lib_db = no ; then
17220 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17221 echo "configure:17222: checking for Berkeley DB link (-ldb)" >&5
17222 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17223 echo $ac_n "(cached) $ac_c" 1>&6
17228 LIBS="$ol_DB_LIB $LIBS"
17230 cat > conftest.$ac_ext <<EOF
17231 #line 17232 "configure"
17232 #include "confdefs.h"
17234 #ifdef HAVE_DB_185_H
17235 # include <db_185.h>
17240 #ifndef DB_VERSION_MAJOR
17241 # define DB_VERSION_MAJOR 1
17245 #define NULL ((void*)0)
17250 #if DB_VERSION_MAJOR > 1
17253 int major, minor, patch;
17255 version = db_version( &major, &minor, &patch );
17257 if( major != DB_VERSION_MAJOR ||
17258 minor < DB_VERSION_MINOR )
17260 printf("Berkeley DB version mismatch\n"
17261 "\texpected: %s\n\tgot: %s\n",
17262 DB_VERSION_STRING, version);
17268 #if DB_VERSION_MAJOR > 2
17269 db_env_create( NULL, 0 );
17270 #elif DB_VERSION_MAJOR > 1
17271 db_appexit( NULL );
17273 (void) dbopen( NULL, 0, 0, 0, NULL);
17278 if { (eval echo configure:17279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17282 echo "configure: failed program was:" >&5
17283 cat conftest.$ac_ext >&5
17293 echo "$ac_t""$ol_cv_db_db" 1>&6
17295 if test $ol_cv_db_db = yes ; then
17300 if test $ol_cv_lib_db = no ; then
17301 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17302 echo "configure:17303: checking for Berkeley DB link (-ldb3)" >&5
17303 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17304 echo $ac_n "(cached) $ac_c" 1>&6
17309 LIBS="$ol_DB_LIB $LIBS"
17311 cat > conftest.$ac_ext <<EOF
17312 #line 17313 "configure"
17313 #include "confdefs.h"
17315 #ifdef HAVE_DB_185_H
17316 # include <db_185.h>
17321 #ifndef DB_VERSION_MAJOR
17322 # define DB_VERSION_MAJOR 1
17326 #define NULL ((void*)0)
17331 #if DB_VERSION_MAJOR > 1
17334 int major, minor, patch;
17336 version = db_version( &major, &minor, &patch );
17338 if( major != DB_VERSION_MAJOR ||
17339 minor < DB_VERSION_MINOR )
17341 printf("Berkeley DB version mismatch\n"
17342 "\texpected: %s\n\tgot: %s\n",
17343 DB_VERSION_STRING, version);
17349 #if DB_VERSION_MAJOR > 2
17350 db_env_create( NULL, 0 );
17351 #elif DB_VERSION_MAJOR > 1
17352 db_appexit( NULL );
17354 (void) dbopen( NULL, 0, 0, 0, NULL);
17359 if { (eval echo configure:17360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17363 echo "configure: failed program was:" >&5
17364 cat conftest.$ac_ext >&5
17374 echo "$ac_t""$ol_cv_db_db3" 1>&6
17376 if test $ol_cv_db_db3 = yes ; then
17381 if test $ol_cv_lib_db = no ; then
17382 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17383 echo "configure:17384: checking for Berkeley DB link (-ldb2)" >&5
17384 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17385 echo $ac_n "(cached) $ac_c" 1>&6
17390 LIBS="$ol_DB_LIB $LIBS"
17392 cat > conftest.$ac_ext <<EOF
17393 #line 17394 "configure"
17394 #include "confdefs.h"
17396 #ifdef HAVE_DB_185_H
17397 # include <db_185.h>
17402 #ifndef DB_VERSION_MAJOR
17403 # define DB_VERSION_MAJOR 1
17407 #define NULL ((void*)0)
17412 #if DB_VERSION_MAJOR > 1
17415 int major, minor, patch;
17417 version = db_version( &major, &minor, &patch );
17419 if( major != DB_VERSION_MAJOR ||
17420 minor < DB_VERSION_MINOR )
17422 printf("Berkeley DB version mismatch\n"
17423 "\texpected: %s\n\tgot: %s\n",
17424 DB_VERSION_STRING, version);
17430 #if DB_VERSION_MAJOR > 2
17431 db_env_create( NULL, 0 );
17432 #elif DB_VERSION_MAJOR > 1
17433 db_appexit( NULL );
17435 (void) dbopen( NULL, 0, 0, 0, NULL);
17440 if { (eval echo configure:17441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17444 echo "configure: failed program was:" >&5
17445 cat conftest.$ac_ext >&5
17455 echo "$ac_t""$ol_cv_db_db2" 1>&6
17457 if test $ol_cv_db_db2 = yes ; then
17462 if test $ol_cv_lib_db = no ; then
17463 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17464 echo "configure:17465: checking for Berkeley DB link (-ldb1)" >&5
17465 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17466 echo $ac_n "(cached) $ac_c" 1>&6
17471 LIBS="$ol_DB_LIB $LIBS"
17473 cat > conftest.$ac_ext <<EOF
17474 #line 17475 "configure"
17475 #include "confdefs.h"
17477 #ifdef HAVE_DB_185_H
17478 # include <db_185.h>
17483 #ifndef DB_VERSION_MAJOR
17484 # define DB_VERSION_MAJOR 1
17488 #define NULL ((void*)0)
17493 #if DB_VERSION_MAJOR > 1
17496 int major, minor, patch;
17498 version = db_version( &major, &minor, &patch );
17500 if( major != DB_VERSION_MAJOR ||
17501 minor < DB_VERSION_MINOR )
17503 printf("Berkeley DB version mismatch\n"
17504 "\texpected: %s\n\tgot: %s\n",
17505 DB_VERSION_STRING, version);
17511 #if DB_VERSION_MAJOR > 2
17512 db_env_create( NULL, 0 );
17513 #elif DB_VERSION_MAJOR > 1
17514 db_appexit( NULL );
17516 (void) dbopen( NULL, 0, 0, 0, NULL);
17521 if { (eval echo configure:17522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17525 echo "configure: failed program was:" >&5
17526 cat conftest.$ac_ext >&5
17536 echo "$ac_t""$ol_cv_db_db1" 1>&6
17538 if test $ol_cv_db_db1 = yes ; then
17544 if test "$ol_cv_lib_db" != no ; then
17545 ol_cv_berkeley_db=yes
17551 ol_cv_berkeley_db=no
17554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17556 echo "configure:17557: checking for $ac_hdr" >&5
17557 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17558 echo $ac_n "(cached) $ac_c" 1>&6
17560 cat > conftest.$ac_ext <<EOF
17561 #line 17562 "configure"
17562 #include "confdefs.h"
17565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17566 { (eval echo configure:17567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17568 if test -z "$ac_err"; then
17570 eval "ac_cv_header_$ac_safe=yes"
17573 echo "configure: failed program was:" >&5
17574 cat conftest.$ac_ext >&5
17576 eval "ac_cv_header_$ac_safe=no"
17580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17581 echo "$ac_t""yes" 1>&6
17582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17583 cat >> confdefs.h <<EOF
17584 #define $ac_tr_hdr 1
17588 echo "$ac_t""no" 1>&6
17592 if test $ac_cv_header_db_h = yes; then
17594 if test $ol_cv_lib_db = no ; then
17595 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17596 echo "configure:17597: checking for Berkeley DB link (default)" >&5
17597 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17598 echo $ac_n "(cached) $ac_c" 1>&6
17603 LIBS="$ol_DB_LIB $LIBS"
17605 cat > conftest.$ac_ext <<EOF
17606 #line 17607 "configure"
17607 #include "confdefs.h"
17609 #ifdef HAVE_DB_185_H
17610 # include <db_185.h>
17615 #ifndef DB_VERSION_MAJOR
17616 # define DB_VERSION_MAJOR 1
17620 #define NULL ((void*)0)
17625 #if DB_VERSION_MAJOR > 1
17628 int major, minor, patch;
17630 version = db_version( &major, &minor, &patch );
17632 if( major != DB_VERSION_MAJOR ||
17633 minor < DB_VERSION_MINOR )
17635 printf("Berkeley DB version mismatch\n"
17636 "\texpected: %s\n\tgot: %s\n",
17637 DB_VERSION_STRING, version);
17643 #if DB_VERSION_MAJOR > 2
17644 db_env_create( NULL, 0 );
17645 #elif DB_VERSION_MAJOR > 1
17646 db_appexit( NULL );
17648 (void) dbopen( NULL, 0, 0, 0, NULL);
17653 if { (eval echo configure:17654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17657 echo "configure: failed program was:" >&5
17658 cat conftest.$ac_ext >&5
17668 echo "$ac_t""$ol_cv_db_none" 1>&6
17670 if test $ol_cv_db_none = yes ; then
17675 if test $ol_cv_lib_db = no ; then
17676 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17677 echo "configure:17678: checking for Berkeley DB link (-ldb4)" >&5
17678 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17679 echo $ac_n "(cached) $ac_c" 1>&6
17684 LIBS="$ol_DB_LIB $LIBS"
17686 cat > conftest.$ac_ext <<EOF
17687 #line 17688 "configure"
17688 #include "confdefs.h"
17690 #ifdef HAVE_DB_185_H
17691 # include <db_185.h>
17696 #ifndef DB_VERSION_MAJOR
17697 # define DB_VERSION_MAJOR 1
17701 #define NULL ((void*)0)
17706 #if DB_VERSION_MAJOR > 1
17709 int major, minor, patch;
17711 version = db_version( &major, &minor, &patch );
17713 if( major != DB_VERSION_MAJOR ||
17714 minor < DB_VERSION_MINOR )
17716 printf("Berkeley DB version mismatch\n"
17717 "\texpected: %s\n\tgot: %s\n",
17718 DB_VERSION_STRING, version);
17724 #if DB_VERSION_MAJOR > 2
17725 db_env_create( NULL, 0 );
17726 #elif DB_VERSION_MAJOR > 1
17727 db_appexit( NULL );
17729 (void) dbopen( NULL, 0, 0, 0, NULL);
17734 if { (eval echo configure:17735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17738 echo "configure: failed program was:" >&5
17739 cat conftest.$ac_ext >&5
17749 echo "$ac_t""$ol_cv_db_db4" 1>&6
17751 if test $ol_cv_db_db4 = yes ; then
17756 if test $ol_cv_lib_db = no ; then
17757 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17758 echo "configure:17759: checking for Berkeley DB link (-ldb)" >&5
17759 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17760 echo $ac_n "(cached) $ac_c" 1>&6
17765 LIBS="$ol_DB_LIB $LIBS"
17767 cat > conftest.$ac_ext <<EOF
17768 #line 17769 "configure"
17769 #include "confdefs.h"
17771 #ifdef HAVE_DB_185_H
17772 # include <db_185.h>
17777 #ifndef DB_VERSION_MAJOR
17778 # define DB_VERSION_MAJOR 1
17782 #define NULL ((void*)0)
17787 #if DB_VERSION_MAJOR > 1
17790 int major, minor, patch;
17792 version = db_version( &major, &minor, &patch );
17794 if( major != DB_VERSION_MAJOR ||
17795 minor < DB_VERSION_MINOR )
17797 printf("Berkeley DB version mismatch\n"
17798 "\texpected: %s\n\tgot: %s\n",
17799 DB_VERSION_STRING, version);
17805 #if DB_VERSION_MAJOR > 2
17806 db_env_create( NULL, 0 );
17807 #elif DB_VERSION_MAJOR > 1
17808 db_appexit( NULL );
17810 (void) dbopen( NULL, 0, 0, 0, NULL);
17815 if { (eval echo configure:17816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17819 echo "configure: failed program was:" >&5
17820 cat conftest.$ac_ext >&5
17830 echo "$ac_t""$ol_cv_db_db" 1>&6
17832 if test $ol_cv_db_db = yes ; then
17837 if test $ol_cv_lib_db = no ; then
17838 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17839 echo "configure:17840: checking for Berkeley DB link (-ldb3)" >&5
17840 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17841 echo $ac_n "(cached) $ac_c" 1>&6
17846 LIBS="$ol_DB_LIB $LIBS"
17848 cat > conftest.$ac_ext <<EOF
17849 #line 17850 "configure"
17850 #include "confdefs.h"
17852 #ifdef HAVE_DB_185_H
17853 # include <db_185.h>
17858 #ifndef DB_VERSION_MAJOR
17859 # define DB_VERSION_MAJOR 1
17863 #define NULL ((void*)0)
17868 #if DB_VERSION_MAJOR > 1
17871 int major, minor, patch;
17873 version = db_version( &major, &minor, &patch );
17875 if( major != DB_VERSION_MAJOR ||
17876 minor < DB_VERSION_MINOR )
17878 printf("Berkeley DB version mismatch\n"
17879 "\texpected: %s\n\tgot: %s\n",
17880 DB_VERSION_STRING, version);
17886 #if DB_VERSION_MAJOR > 2
17887 db_env_create( NULL, 0 );
17888 #elif DB_VERSION_MAJOR > 1
17889 db_appexit( NULL );
17891 (void) dbopen( NULL, 0, 0, 0, NULL);
17896 if { (eval echo configure:17897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17900 echo "configure: failed program was:" >&5
17901 cat conftest.$ac_ext >&5
17911 echo "$ac_t""$ol_cv_db_db3" 1>&6
17913 if test $ol_cv_db_db3 = yes ; then
17918 if test $ol_cv_lib_db = no ; then
17919 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17920 echo "configure:17921: checking for Berkeley DB link (-ldb2)" >&5
17921 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17922 echo $ac_n "(cached) $ac_c" 1>&6
17927 LIBS="$ol_DB_LIB $LIBS"
17929 cat > conftest.$ac_ext <<EOF
17930 #line 17931 "configure"
17931 #include "confdefs.h"
17933 #ifdef HAVE_DB_185_H
17934 # include <db_185.h>
17939 #ifndef DB_VERSION_MAJOR
17940 # define DB_VERSION_MAJOR 1
17944 #define NULL ((void*)0)
17949 #if DB_VERSION_MAJOR > 1
17952 int major, minor, patch;
17954 version = db_version( &major, &minor, &patch );
17956 if( major != DB_VERSION_MAJOR ||
17957 minor < DB_VERSION_MINOR )
17959 printf("Berkeley DB version mismatch\n"
17960 "\texpected: %s\n\tgot: %s\n",
17961 DB_VERSION_STRING, version);
17967 #if DB_VERSION_MAJOR > 2
17968 db_env_create( NULL, 0 );
17969 #elif DB_VERSION_MAJOR > 1
17970 db_appexit( NULL );
17972 (void) dbopen( NULL, 0, 0, 0, NULL);
17977 if { (eval echo configure:17978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17981 echo "configure: failed program was:" >&5
17982 cat conftest.$ac_ext >&5
17992 echo "$ac_t""$ol_cv_db_db2" 1>&6
17994 if test $ol_cv_db_db2 = yes ; then
17999 if test $ol_cv_lib_db = no ; then
18000 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18001 echo "configure:18002: checking for Berkeley DB link (-ldb1)" >&5
18002 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18003 echo $ac_n "(cached) $ac_c" 1>&6
18008 LIBS="$ol_DB_LIB $LIBS"
18010 cat > conftest.$ac_ext <<EOF
18011 #line 18012 "configure"
18012 #include "confdefs.h"
18014 #ifdef HAVE_DB_185_H
18015 # include <db_185.h>
18020 #ifndef DB_VERSION_MAJOR
18021 # define DB_VERSION_MAJOR 1
18025 #define NULL ((void*)0)
18030 #if DB_VERSION_MAJOR > 1
18033 int major, minor, patch;
18035 version = db_version( &major, &minor, &patch );
18037 if( major != DB_VERSION_MAJOR ||
18038 minor < DB_VERSION_MINOR )
18040 printf("Berkeley DB version mismatch\n"
18041 "\texpected: %s\n\tgot: %s\n",
18042 DB_VERSION_STRING, version);
18048 #if DB_VERSION_MAJOR > 2
18049 db_env_create( NULL, 0 );
18050 #elif DB_VERSION_MAJOR > 1
18051 db_appexit( NULL );
18053 (void) dbopen( NULL, 0, 0, 0, NULL);
18058 if { (eval echo configure:18059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18062 echo "configure: failed program was:" >&5
18063 cat conftest.$ac_ext >&5
18073 echo "$ac_t""$ol_cv_db_db1" 1>&6
18075 if test $ol_cv_db_db1 = yes ; then
18081 if test "$ol_cv_lib_db" != no ; then
18082 ol_cv_berkeley_db=yes
18083 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18084 echo "configure:18085: checking for Berkeley DB thread support" >&5
18085 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18086 echo $ac_n "(cached) $ac_c" 1>&6
18090 if test $ol_cv_lib_db != yes ; then
18091 LIBS="$ol_cv_lib_db"
18094 if test "$cross_compiling" = yes; then
18095 ol_cv_berkeley_db_thread=cross
18097 cat > conftest.$ac_ext <<EOF
18098 #line 18099 "configure"
18099 #include "confdefs.h"
18101 #ifdef HAVE_DB_185_H
18107 #define NULL ((void *)0)
18112 u_int32_t flags = DB_CREATE |
18118 #if DB_VERSION_MAJOR > 2
18119 DB_ENV *env = NULL;
18121 rc = db_env_create( &env, 0 );
18123 flags |= DB_INIT_MPOOL;
18124 #ifdef DB_MPOOL_PRIVATE
18125 flags |= DB_MPOOL_PRIVATE;
18129 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18133 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18134 rc = env->open( env, NULL, flags, 0 );
18136 rc = env->open( env, NULL, NULL, flags, 0 );
18140 rc = env->close( env, 0 );
18144 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18150 memset( &env, '\0', sizeof(env) );
18152 rc = db_appinit( NULL, NULL, &env, flags );
18155 db_appexit( &env );
18158 unlink("__db_mpool.share");
18159 unlink("__db_lock.share");
18165 if { (eval echo configure:18166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18167 ol_cv_berkeley_db_thread=yes
18169 echo "configure: failed program was:" >&5
18170 cat conftest.$ac_ext >&5
18172 ol_cv_berkeley_db_thread=no
18180 if test $ol_cv_berkeley_db_thread != no ; then
18181 cat >> confdefs.h <<\EOF
18182 #define HAVE_BERKELEY_DB_THREAD 1
18189 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18195 if test $ol_cv_berkeley_db != no ; then
18196 cat >> confdefs.h <<\EOF
18197 #define HAVE_BERKELEY_DB 1
18201 ol_link_ldbm=berkeley
18202 ol_with_ldbm_api=berkeley
18204 if test $ol_with_ldbm_type = hash ; then
18205 cat >> confdefs.h <<\EOF
18206 #define LDBM_USE_DBHASH 1
18210 cat >> confdefs.h <<\EOF
18211 #define LDBM_USE_DBBTREE 1
18216 if test $ol_cv_lib_db != yes ; then
18217 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18222 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18223 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18224 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18225 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18226 echo "configure:18227: checking Berkeley DB version for BDB backend" >&5
18227 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18228 echo $ac_n "(cached) $ac_c" 1>&6
18231 cat > conftest.$ac_ext <<EOF
18232 #line 18233 "configure"
18233 #include "confdefs.h"
18237 /* this check could be improved */
18238 #ifndef DB_VERSION_MAJOR
18239 # define DB_VERSION_MAJOR 1
18242 /* require 4.0 or later */
18243 #if DB_VERSION_MAJOR >= 4
18244 __db_version_compat
18248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18249 egrep "__db_version_compat" >/dev/null 2>&1; then
18251 ol_cv_bdb_compat=yes
18254 ol_cv_bdb_compat=no
18260 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18263 if test $ol_cv_bdb_compat = yes ; then
18265 elif test $ol_enable_bdb = yes ; then
18266 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18272 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18273 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18274 ol_with_ldbm_api=none
18277 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18278 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18279 echo "configure:18280: checking for MDBM library" >&5
18280 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18281 echo $ac_n "(cached) $ac_c" 1>&6
18284 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18285 echo "configure:18286: checking for mdbm_set_chain" >&5
18286 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18287 echo $ac_n "(cached) $ac_c" 1>&6
18289 cat > conftest.$ac_ext <<EOF
18290 #line 18291 "configure"
18291 #include "confdefs.h"
18292 /* System header to define __stub macros and hopefully few prototypes,
18293 which can conflict with char mdbm_set_chain(); below. */
18294 #include <assert.h>
18295 /* Override any gcc2 internal prototype to avoid an error. */
18296 /* We use char because int might match the return type of a gcc2
18297 builtin and then its argument prototype would still apply. */
18298 char mdbm_set_chain();
18303 /* The GNU C library defines this for functions which it implements
18304 to always fail with ENOSYS. Some functions are actually named
18305 something starting with __ and the normal name is an alias. */
18306 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18309 f = mdbm_set_chain;
18314 if { (eval echo configure:18315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18316 eval "ac_cv_func_mdbm_set_chain=yes"
18318 echo "configure: failed program was:" >&5
18319 cat conftest.$ac_ext >&5
18321 eval "ac_cv_func_mdbm_set_chain=no"
18326 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18327 echo "$ac_t""yes" 1>&6
18330 echo "$ac_t""no" 1>&6
18332 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18333 echo "configure:18334: checking for mdbm_set_chain in -lmdbm" >&5
18334 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18335 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18336 echo $ac_n "(cached) $ac_c" 1>&6
18338 ac_save_LIBS="$LIBS"
18339 LIBS="-lmdbm $LIBS"
18340 cat > conftest.$ac_ext <<EOF
18341 #line 18342 "configure"
18342 #include "confdefs.h"
18343 /* Override any gcc2 internal prototype to avoid an error. */
18344 /* We use char because int might match the return type of a gcc2
18345 builtin and then its argument prototype would still apply. */
18346 char mdbm_set_chain();
18352 if { (eval echo configure:18353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18354 eval "ac_cv_lib_$ac_lib_var=yes"
18356 echo "configure: failed program was:" >&5
18357 cat conftest.$ac_ext >&5
18359 eval "ac_cv_lib_$ac_lib_var=no"
18362 LIBS="$ac_save_LIBS"
18365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18366 echo "$ac_t""yes" 1>&6
18367 ol_cv_lib_mdbm=-lmdbm
18369 echo "$ac_t""no" 1>&6
18380 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18383 for ac_hdr in mdbm.h
18385 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18386 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18387 echo "configure:18388: checking for $ac_hdr" >&5
18388 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18389 echo $ac_n "(cached) $ac_c" 1>&6
18391 cat > conftest.$ac_ext <<EOF
18392 #line 18393 "configure"
18393 #include "confdefs.h"
18396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18397 { (eval echo configure:18398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18399 if test -z "$ac_err"; then
18401 eval "ac_cv_header_$ac_safe=yes"
18404 echo "configure: failed program was:" >&5
18405 cat conftest.$ac_ext >&5
18407 eval "ac_cv_header_$ac_safe=no"
18411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18412 echo "$ac_t""yes" 1>&6
18413 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18414 cat >> confdefs.h <<EOF
18415 #define $ac_tr_hdr 1
18419 echo "$ac_t""no" 1>&6
18423 echo $ac_n "checking for db""... $ac_c" 1>&6
18424 echo "configure:18425: checking for db" >&5
18425 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18426 echo $ac_n "(cached) $ac_c" 1>&6
18429 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18437 echo "$ac_t""$ol_cv_mdbm" 1>&6
18438 if test $ol_cv_mdbm = yes ; then
18439 cat >> confdefs.h <<\EOF
18440 #define HAVE_MDBM 1
18446 if test $ol_cv_mdbm = yes ; then
18448 ol_with_ldbm_api=mdbm
18449 if test $ol_cv_lib_mdbm != yes ; then
18450 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18455 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18456 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18457 echo "configure:18458: checking for GDBM library" >&5
18458 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18459 echo $ac_n "(cached) $ac_c" 1>&6
18462 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18463 echo "configure:18464: checking for gdbm_open" >&5
18464 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
18465 echo $ac_n "(cached) $ac_c" 1>&6
18467 cat > conftest.$ac_ext <<EOF
18468 #line 18469 "configure"
18469 #include "confdefs.h"
18470 /* System header to define __stub macros and hopefully few prototypes,
18471 which can conflict with char gdbm_open(); below. */
18472 #include <assert.h>
18473 /* Override any gcc2 internal prototype to avoid an error. */
18474 /* We use char because int might match the return type of a gcc2
18475 builtin and then its argument prototype would still apply. */
18481 /* The GNU C library defines this for functions which it implements
18482 to always fail with ENOSYS. Some functions are actually named
18483 something starting with __ and the normal name is an alias. */
18484 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18492 if { (eval echo configure:18493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18494 eval "ac_cv_func_gdbm_open=yes"
18496 echo "configure: failed program was:" >&5
18497 cat conftest.$ac_ext >&5
18499 eval "ac_cv_func_gdbm_open=no"
18504 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18505 echo "$ac_t""yes" 1>&6
18508 echo "$ac_t""no" 1>&6
18510 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18511 echo "configure:18512: checking for gdbm_open in -lgdbm" >&5
18512 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18513 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18514 echo $ac_n "(cached) $ac_c" 1>&6
18516 ac_save_LIBS="$LIBS"
18517 LIBS="-lgdbm $LIBS"
18518 cat > conftest.$ac_ext <<EOF
18519 #line 18520 "configure"
18520 #include "confdefs.h"
18521 /* Override any gcc2 internal prototype to avoid an error. */
18522 /* We use char because int might match the return type of a gcc2
18523 builtin and then its argument prototype would still apply. */
18530 if { (eval echo configure:18531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18532 eval "ac_cv_lib_$ac_lib_var=yes"
18534 echo "configure: failed program was:" >&5
18535 cat conftest.$ac_ext >&5
18537 eval "ac_cv_lib_$ac_lib_var=no"
18540 LIBS="$ac_save_LIBS"
18543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18544 echo "$ac_t""yes" 1>&6
18545 ol_cv_lib_gdbm=-lgdbm
18547 echo "$ac_t""no" 1>&6
18558 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18561 for ac_hdr in gdbm.h
18563 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18565 echo "configure:18566: checking for $ac_hdr" >&5
18566 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18567 echo $ac_n "(cached) $ac_c" 1>&6
18569 cat > conftest.$ac_ext <<EOF
18570 #line 18571 "configure"
18571 #include "confdefs.h"
18574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18575 { (eval echo configure:18576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18577 if test -z "$ac_err"; then
18579 eval "ac_cv_header_$ac_safe=yes"
18582 echo "configure: failed program was:" >&5
18583 cat conftest.$ac_ext >&5
18585 eval "ac_cv_header_$ac_safe=no"
18589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18590 echo "$ac_t""yes" 1>&6
18591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18592 cat >> confdefs.h <<EOF
18593 #define $ac_tr_hdr 1
18597 echo "$ac_t""no" 1>&6
18601 echo $ac_n "checking for db""... $ac_c" 1>&6
18602 echo "configure:18603: checking for db" >&5
18603 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18604 echo $ac_n "(cached) $ac_c" 1>&6
18607 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18615 echo "$ac_t""$ol_cv_gdbm" 1>&6
18616 if test $ol_cv_gdbm = yes ; then
18617 cat >> confdefs.h <<\EOF
18618 #define HAVE_GDBM 1
18624 if test $ol_cv_gdbm = yes ; then
18626 ol_with_ldbm_api=gdbm
18628 if test $ol_cv_lib_gdbm != yes ; then
18629 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
18634 if test $ol_with_ldbm_api = ndbm ; then
18635 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
18636 echo "configure:18637: checking for NDBM library" >&5
18637 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
18638 echo $ac_n "(cached) $ac_c" 1>&6
18641 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
18642 echo "configure:18643: checking for dbm_open" >&5
18643 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
18644 echo $ac_n "(cached) $ac_c" 1>&6
18646 cat > conftest.$ac_ext <<EOF
18647 #line 18648 "configure"
18648 #include "confdefs.h"
18649 /* System header to define __stub macros and hopefully few prototypes,
18650 which can conflict with char dbm_open(); below. */
18651 #include <assert.h>
18652 /* Override any gcc2 internal prototype to avoid an error. */
18653 /* We use char because int might match the return type of a gcc2
18654 builtin and then its argument prototype would still apply. */
18660 /* The GNU C library defines this for functions which it implements
18661 to always fail with ENOSYS. Some functions are actually named
18662 something starting with __ and the normal name is an alias. */
18663 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
18671 if { (eval echo configure:18672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18673 eval "ac_cv_func_dbm_open=yes"
18675 echo "configure: failed program was:" >&5
18676 cat conftest.$ac_ext >&5
18678 eval "ac_cv_func_dbm_open=no"
18683 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
18684 echo "$ac_t""yes" 1>&6
18687 echo "$ac_t""no" 1>&6
18689 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
18690 echo "configure:18691: checking for dbm_open in -lndbm" >&5
18691 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18692 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18693 echo $ac_n "(cached) $ac_c" 1>&6
18695 ac_save_LIBS="$LIBS"
18696 LIBS="-lndbm $LIBS"
18697 cat > conftest.$ac_ext <<EOF
18698 #line 18699 "configure"
18699 #include "confdefs.h"
18700 /* Override any gcc2 internal prototype to avoid an error. */
18701 /* We use char because int might match the return type of a gcc2
18702 builtin and then its argument prototype would still apply. */
18709 if { (eval echo configure:18710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18711 eval "ac_cv_lib_$ac_lib_var=yes"
18713 echo "configure: failed program was:" >&5
18714 cat conftest.$ac_ext >&5
18716 eval "ac_cv_lib_$ac_lib_var=no"
18719 LIBS="$ac_save_LIBS"
18722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18723 echo "$ac_t""yes" 1>&6
18724 ol_cv_lib_ndbm=-lndbm
18726 echo "$ac_t""no" 1>&6
18728 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
18729 echo "configure:18730: checking for dbm_open in -ldbm" >&5
18730 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18731 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18732 echo $ac_n "(cached) $ac_c" 1>&6
18734 ac_save_LIBS="$LIBS"
18736 cat > conftest.$ac_ext <<EOF
18737 #line 18738 "configure"
18738 #include "confdefs.h"
18739 /* Override any gcc2 internal prototype to avoid an error. */
18740 /* We use char because int might match the return type of a gcc2
18741 builtin and then its argument prototype would still apply. */
18748 if { (eval echo configure:18749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18750 eval "ac_cv_lib_$ac_lib_var=yes"
18752 echo "configure: failed program was:" >&5
18753 cat conftest.$ac_ext >&5
18755 eval "ac_cv_lib_$ac_lib_var=no"
18758 LIBS="$ac_save_LIBS"
18761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18762 echo "$ac_t""yes" 1>&6
18763 ol_cv_lib_ndbm=-ldbm
18765 echo "$ac_t""no" 1>&6
18778 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
18781 for ac_hdr in ndbm.h
18783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18785 echo "configure:18786: checking for $ac_hdr" >&5
18786 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18787 echo $ac_n "(cached) $ac_c" 1>&6
18789 cat > conftest.$ac_ext <<EOF
18790 #line 18791 "configure"
18791 #include "confdefs.h"
18794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18795 { (eval echo configure:18796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18797 if test -z "$ac_err"; then
18799 eval "ac_cv_header_$ac_safe=yes"
18802 echo "configure: failed program was:" >&5
18803 cat conftest.$ac_ext >&5
18805 eval "ac_cv_header_$ac_safe=no"
18809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18810 echo "$ac_t""yes" 1>&6
18811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18812 cat >> confdefs.h <<EOF
18813 #define $ac_tr_hdr 1
18817 echo "$ac_t""no" 1>&6
18821 echo $ac_n "checking for db""... $ac_c" 1>&6
18822 echo "configure:18823: checking for db" >&5
18823 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
18824 echo $ac_n "(cached) $ac_c" 1>&6
18827 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
18835 echo "$ac_t""$ol_cv_ndbm" 1>&6
18836 if test $ol_cv_ndbm = yes ; then
18837 cat >> confdefs.h <<\EOF
18838 #define HAVE_NDBM 1
18844 if test $ol_cv_ndbm = yes ; then
18846 ol_with_ldbm_api=ndbm
18848 if test $ol_cv_lib_ndbm != yes ; then
18849 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
18854 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
18855 echo "configure: warning: could not find suitable LDBM backend" 1>&2
18856 if test $ol_enable_ldbm = yes ; then
18857 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
18860 echo "configure: warning: disabling LDBM" 1>&2
18864 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
18865 BUILD_LIBS_DYNAMIC=shared
18866 cat >> confdefs.h <<\EOF
18867 #define LDAP_LIBS_DYNAMIC 1
18871 BUILD_LIBS_DYNAMIC=static
18874 if test $ol_enable_wrappers != no ; then
18875 for ac_hdr in tcpd.h
18877 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18878 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18879 echo "configure:18880: checking for $ac_hdr" >&5
18880 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18881 echo $ac_n "(cached) $ac_c" 1>&6
18883 cat > conftest.$ac_ext <<EOF
18884 #line 18885 "configure"
18885 #include "confdefs.h"
18888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18889 { (eval echo configure:18890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18891 if test -z "$ac_err"; then
18893 eval "ac_cv_header_$ac_safe=yes"
18896 echo "configure: failed program was:" >&5
18897 cat conftest.$ac_ext >&5
18899 eval "ac_cv_header_$ac_safe=no"
18903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18904 echo "$ac_t""yes" 1>&6
18905 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18906 cat >> confdefs.h <<EOF
18907 #define $ac_tr_hdr 1
18910 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
18911 echo "configure:18912: checking for TCP wrappers library" >&5
18913 LIBS="$LIBS -lwrap"
18914 cat > conftest.$ac_ext <<EOF
18915 #line 18916 "configure"
18916 #include "confdefs.h"
18919 int allow_severity = 0;
18920 int deny_severity = 0;
18922 struct request_info *req;
18930 if { (eval echo configure:18931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18932 echo "$ac_t""-lwrap" 1>&6
18936 echo "configure: failed program was:" >&5
18937 cat conftest.$ac_ext >&5
18941 cat > conftest.$ac_ext <<EOF
18942 #line 18943 "configure"
18943 #include "confdefs.h"
18946 int allow_severity = 0;
18947 int deny_severity = 0;
18949 struct request_info *req;
18957 if { (eval echo configure:18958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18959 echo "$ac_t""-lwrap -lnsl" 1>&6
18961 LIBS="$save_LIBS -lnsl"
18963 echo "configure: failed program was:" >&5
18964 cat conftest.$ac_ext >&5
18967 echo "$ac_t""no" 1>&6
18975 echo "$ac_t""no" 1>&6
18981 if test $have_wrappers = yes ; then
18982 cat >> confdefs.h <<\EOF
18983 #define HAVE_TCPD 1
18987 elif test $ol_enable_wrappers = yes ; then
18988 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
18990 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
18995 if test $ol_enable_syslog != no ; then
18996 echo $ac_n "checking for openlog""... $ac_c" 1>&6
18997 echo "configure:18998: checking for openlog" >&5
18998 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
18999 echo $ac_n "(cached) $ac_c" 1>&6
19001 cat > conftest.$ac_ext <<EOF
19002 #line 19003 "configure"
19003 #include "confdefs.h"
19004 /* System header to define __stub macros and hopefully few prototypes,
19005 which can conflict with char openlog(); below. */
19006 #include <assert.h>
19007 /* Override any gcc2 internal prototype to avoid an error. */
19008 /* We use char because int might match the return type of a gcc2
19009 builtin and then its argument prototype would still apply. */
19015 /* The GNU C library defines this for functions which it implements
19016 to always fail with ENOSYS. Some functions are actually named
19017 something starting with __ and the normal name is an alias. */
19018 #if defined (__stub_openlog) || defined (__stub___openlog)
19026 if { (eval echo configure:19027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19028 eval "ac_cv_func_openlog=yes"
19030 echo "configure: failed program was:" >&5
19031 cat conftest.$ac_ext >&5
19033 eval "ac_cv_func_openlog=no"
19038 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19039 echo "$ac_t""yes" 1>&6
19042 echo "$ac_t""no" 1>&6
19045 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19046 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19048 ol_enable_syslog=$ac_cv_func_openlog
19053 if test $ol_enable_sql != no ; then
19054 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19055 echo "configure:19056: checking for SQLDriverConnect in -liodbc" >&5
19056 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19057 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19058 echo $ac_n "(cached) $ac_c" 1>&6
19060 ac_save_LIBS="$LIBS"
19061 LIBS="-liodbc $LIBS"
19062 cat > conftest.$ac_ext <<EOF
19063 #line 19064 "configure"
19064 #include "confdefs.h"
19065 /* Override any gcc2 internal prototype to avoid an error. */
19066 /* We use char because int might match the return type of a gcc2
19067 builtin and then its argument prototype would still apply. */
19068 char SQLDriverConnect();
19074 if { (eval echo configure:19075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19076 eval "ac_cv_lib_$ac_lib_var=yes"
19078 echo "configure: failed program was:" >&5
19079 cat conftest.$ac_ext >&5
19081 eval "ac_cv_lib_$ac_lib_var=no"
19084 LIBS="$ac_save_LIBS"
19087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19088 echo "$ac_t""yes" 1>&6
19091 echo "$ac_t""no" 1>&6
19095 if test $have_iodbc = yes ; then
19096 ol_link_sql="-liodbc"
19098 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19099 echo "configure:19100: checking for SQLDriverConnect in -lodbc" >&5
19100 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19101 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19102 echo $ac_n "(cached) $ac_c" 1>&6
19104 ac_save_LIBS="$LIBS"
19105 LIBS="-lodbc $LIBS"
19106 cat > conftest.$ac_ext <<EOF
19107 #line 19108 "configure"
19108 #include "confdefs.h"
19109 /* Override any gcc2 internal prototype to avoid an error. */
19110 /* We use char because int might match the return type of a gcc2
19111 builtin and then its argument prototype would still apply. */
19112 char SQLDriverConnect();
19118 if { (eval echo configure:19119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19120 eval "ac_cv_lib_$ac_lib_var=yes"
19122 echo "configure: failed program was:" >&5
19123 cat conftest.$ac_ext >&5
19125 eval "ac_cv_lib_$ac_lib_var=no"
19128 LIBS="$ac_save_LIBS"
19131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19132 echo "$ac_t""yes" 1>&6
19135 echo "$ac_t""no" 1>&6
19139 if test $have_odbc = yes ; then
19140 ol_link_sql="-lodbc"
19144 if test $ol_link_sql != no ; then
19145 SLAPD_SQL_LIBS="$ol_link_sql"
19147 elif test $ol_enable_sql != auto ; then
19148 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19153 for ac_hdr in termcap.h ncurses.h
19155 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19157 echo "configure:19158: checking for $ac_hdr" >&5
19158 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19159 echo $ac_n "(cached) $ac_c" 1>&6
19161 cat > conftest.$ac_ext <<EOF
19162 #line 19163 "configure"
19163 #include "confdefs.h"
19166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19167 { (eval echo configure:19168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19169 if test -z "$ac_err"; then
19171 eval "ac_cv_header_$ac_safe=yes"
19174 echo "configure: failed program was:" >&5
19175 cat conftest.$ac_ext >&5
19177 eval "ac_cv_header_$ac_safe=no"
19181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19182 echo "$ac_t""yes" 1>&6
19183 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19184 cat >> confdefs.h <<EOF
19185 #define $ac_tr_hdr 1
19189 echo "$ac_t""no" 1>&6
19194 if test $ol_link_termcap = no ; then
19195 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19196 echo "configure:19197: checking for tputs in -ltermcap" >&5
19197 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19198 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19199 echo $ac_n "(cached) $ac_c" 1>&6
19201 ac_save_LIBS="$LIBS"
19202 LIBS="-ltermcap $LIBS"
19203 cat > conftest.$ac_ext <<EOF
19204 #line 19205 "configure"
19205 #include "confdefs.h"
19206 /* Override any gcc2 internal prototype to avoid an error. */
19207 /* We use char because int might match the return type of a gcc2
19208 builtin and then its argument prototype would still apply. */
19215 if { (eval echo configure:19216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19217 eval "ac_cv_lib_$ac_lib_var=yes"
19219 echo "configure: failed program was:" >&5
19220 cat conftest.$ac_ext >&5
19222 eval "ac_cv_lib_$ac_lib_var=no"
19225 LIBS="$ac_save_LIBS"
19228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19229 echo "$ac_t""yes" 1>&6
19232 echo "$ac_t""no" 1>&6
19236 if test $have_termcap = yes ; then
19237 cat >> confdefs.h <<\EOF
19238 #define HAVE_TERMCAP 1
19241 ol_link_termcap=yes
19242 TERMCAP_LIBS=-ltermcap
19246 if test $ol_link_termcap = no ; then
19247 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19248 echo "configure:19249: checking for initscr in -lncurses" >&5
19249 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19250 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19251 echo $ac_n "(cached) $ac_c" 1>&6
19253 ac_save_LIBS="$LIBS"
19254 LIBS="-lncurses $LIBS"
19255 cat > conftest.$ac_ext <<EOF
19256 #line 19257 "configure"
19257 #include "confdefs.h"
19258 /* Override any gcc2 internal prototype to avoid an error. */
19259 /* We use char because int might match the return type of a gcc2
19260 builtin and then its argument prototype would still apply. */
19267 if { (eval echo configure:19268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19269 eval "ac_cv_lib_$ac_lib_var=yes"
19271 echo "configure: failed program was:" >&5
19272 cat conftest.$ac_ext >&5
19274 eval "ac_cv_lib_$ac_lib_var=no"
19277 LIBS="$ac_save_LIBS"
19280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19281 echo "$ac_t""yes" 1>&6
19284 echo "$ac_t""no" 1>&6
19288 if test $have_ncurses = yes ; then
19289 cat >> confdefs.h <<\EOF
19290 #define HAVE_NCURSES 1
19293 ol_link_termcap=yes
19294 TERMCAP_LIBS=-lncurses
19298 if test $ol_link_termcap = no ; then
19299 cat >> confdefs.h <<\EOF
19300 #define NO_TERMCAP 1
19308 if test $ol_with_cyrus_sasl != no ; then
19309 for ac_hdr in sasl/sasl.h sasl.h
19311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19313 echo "configure:19314: checking for $ac_hdr" >&5
19314 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19315 echo $ac_n "(cached) $ac_c" 1>&6
19317 cat > conftest.$ac_ext <<EOF
19318 #line 19319 "configure"
19319 #include "confdefs.h"
19322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19323 { (eval echo configure:19324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19325 if test -z "$ac_err"; then
19327 eval "ac_cv_header_$ac_safe=yes"
19330 echo "configure: failed program was:" >&5
19331 cat conftest.$ac_ext >&5
19333 eval "ac_cv_header_$ac_safe=no"
19337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19338 echo "$ac_t""yes" 1>&6
19339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19340 cat >> confdefs.h <<EOF
19341 #define $ac_tr_hdr 1
19345 echo "$ac_t""no" 1>&6
19350 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
19351 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19352 echo "configure:19353: checking for sasl_client_init in -lsasl2" >&5
19353 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19354 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19355 echo $ac_n "(cached) $ac_c" 1>&6
19357 ac_save_LIBS="$LIBS"
19358 LIBS="-lsasl2 $LIBS"
19359 cat > conftest.$ac_ext <<EOF
19360 #line 19361 "configure"
19361 #include "confdefs.h"
19362 /* Override any gcc2 internal prototype to avoid an error. */
19363 /* We use char because int might match the return type of a gcc2
19364 builtin and then its argument prototype would still apply. */
19365 char sasl_client_init();
19371 if { (eval echo configure:19372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19373 eval "ac_cv_lib_$ac_lib_var=yes"
19375 echo "configure: failed program was:" >&5
19376 cat conftest.$ac_ext >&5
19378 eval "ac_cv_lib_$ac_lib_var=no"
19381 LIBS="$ac_save_LIBS"
19384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19385 echo "$ac_t""yes" 1>&6
19386 ol_link_sasl="-lsasl2"
19388 echo "$ac_t""no" 1>&6
19389 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19390 echo "configure:19391: checking for sasl_client_init in -lsasl" >&5
19391 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19392 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19393 echo $ac_n "(cached) $ac_c" 1>&6
19395 ac_save_LIBS="$LIBS"
19396 LIBS="-lsasl $LIBS"
19397 cat > conftest.$ac_ext <<EOF
19398 #line 19399 "configure"
19399 #include "confdefs.h"
19400 /* Override any gcc2 internal prototype to avoid an error. */
19401 /* We use char because int might match the return type of a gcc2
19402 builtin and then its argument prototype would still apply. */
19403 char sasl_client_init();
19409 if { (eval echo configure:19410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19411 eval "ac_cv_lib_$ac_lib_var=yes"
19413 echo "configure: failed program was:" >&5
19414 cat conftest.$ac_ext >&5
19416 eval "ac_cv_lib_$ac_lib_var=no"
19419 LIBS="$ac_save_LIBS"
19422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19423 echo "$ac_t""yes" 1>&6
19424 ol_link_sasl="-lsasl"
19426 echo "$ac_t""no" 1>&6
19433 if test $ol_link_sasl = no ; then
19434 if test $ol_with_cyrus_sasl != auto ; then
19435 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19437 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19438 echo "configure: warning: SASL authentication not supported!" 1>&2
19439 if test $ol_link_tls = no ; then
19440 echo "configure: warning: Strong authentication not supported!" 1>&2
19444 cat >> confdefs.h <<\EOF
19445 #define HAVE_CYRUS_SASL 1
19448 SASL_LIBS="$ol_link_sasl"
19449 if test $ol_enable_spasswd != no ; then
19450 ol_link_spasswd=yes
19455 echo "configure: warning: SASL authentication not supported!" 1>&2
19456 if test $ol_link_tls = no ; then
19457 echo "configure: warning: Strong authentication not supported!" 1>&2
19461 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
19463 if test -r /dev/urandom ; then
19464 dev="/dev/urandom";
19465 elif test -r /idev/urandom ; then
19466 dev="/idev/urandom";
19467 elif test -r /dev/srandom ; then
19468 dev="/dev/srandom";
19469 elif test -r /dev/random ; then
19471 elif test -r /idev/random ; then
19472 dev="/idev/random";
19475 if test $dev != no ; then
19476 cat >> confdefs.h <<EOF
19477 #define URANDOM_DEVICE "$dev"
19484 if test $ol_with_fetch != no ; then
19486 LIBS="-lfetch -lcom_err $LIBS"
19487 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
19488 echo "configure:19489: checking fetch(3) library" >&5
19489 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
19490 echo $ac_n "(cached) $ac_c" 1>&6
19493 cat > conftest.$ac_ext <<EOF
19494 #line 19495 "configure"
19495 #include "confdefs.h"
19497 #include <sys/param.h>
19501 struct url *u = fetchParseURL("file:///");
19504 if { (eval echo configure:19505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19506 ol_cv_lib_fetch=yes
19508 echo "configure: failed program was:" >&5
19509 cat conftest.$ac_ext >&5
19516 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
19518 if test $ol_cv_lib_fetch != no ; then
19519 ol_link_fetch="-lfetch -lcom_err"
19520 cat >> confdefs.h <<\EOF
19521 #define HAVE_FETCH 1
19527 if test $ol_cv_lib_fetch != no ; then
19528 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
19529 ol_link_fetch=freebsd
19531 elif test $ol_with_fetch != auto ; then
19532 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
19536 ol_link_readline=no
19537 if test $ol_with_readline != no ; then
19538 for ac_hdr in readline/readline.h readline/history.h
19540 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19542 echo "configure:19543: checking for $ac_hdr" >&5
19543 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19544 echo $ac_n "(cached) $ac_c" 1>&6
19546 cat > conftest.$ac_ext <<EOF
19547 #line 19548 "configure"
19548 #include "confdefs.h"
19551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19552 { (eval echo configure:19553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19554 if test -z "$ac_err"; then
19556 eval "ac_cv_header_$ac_safe=yes"
19559 echo "configure: failed program was:" >&5
19560 cat conftest.$ac_ext >&5
19562 eval "ac_cv_header_$ac_safe=no"
19566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19567 echo "$ac_t""yes" 1>&6
19568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19569 cat >> confdefs.h <<EOF
19570 #define $ac_tr_hdr 1
19574 echo "$ac_t""no" 1>&6
19579 if test $ac_cv_header_readline_readline_h = yes ; then
19581 LIBS="$TERMCAP_LIBS $LIBS"
19582 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
19583 echo "configure:19584: checking for readline in -lreadline" >&5
19584 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
19585 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19586 echo $ac_n "(cached) $ac_c" 1>&6
19588 ac_save_LIBS="$LIBS"
19589 LIBS="-lreadline $LIBS"
19590 cat > conftest.$ac_ext <<EOF
19591 #line 19592 "configure"
19592 #include "confdefs.h"
19593 /* Override any gcc2 internal prototype to avoid an error. */
19594 /* We use char because int might match the return type of a gcc2
19595 builtin and then its argument prototype would still apply. */
19602 if { (eval echo configure:19603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19604 eval "ac_cv_lib_$ac_lib_var=yes"
19606 echo "configure: failed program was:" >&5
19607 cat conftest.$ac_ext >&5
19609 eval "ac_cv_lib_$ac_lib_var=no"
19612 LIBS="$ac_save_LIBS"
19615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19616 echo "$ac_t""yes" 1>&6
19619 echo "$ac_t""no" 1>&6
19625 if test $have_readline = yes ; then
19626 ol_with_readline=found
19627 ol_link_readline=yes
19629 READLINE_LIBS="-lreadline"
19634 if test $ol_link_readline = yes ; then
19635 cat >> confdefs.h <<\EOF
19636 #define HAVE_READLINE 1
19642 if test $ol_enable_crypt != no ; then
19643 echo $ac_n "checking for crypt""... $ac_c" 1>&6
19644 echo "configure:19645: checking for crypt" >&5
19645 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
19646 echo $ac_n "(cached) $ac_c" 1>&6
19648 cat > conftest.$ac_ext <<EOF
19649 #line 19650 "configure"
19650 #include "confdefs.h"
19651 /* System header to define __stub macros and hopefully few prototypes,
19652 which can conflict with char crypt(); below. */
19653 #include <assert.h>
19654 /* Override any gcc2 internal prototype to avoid an error. */
19655 /* We use char because int might match the return type of a gcc2
19656 builtin and then its argument prototype would still apply. */
19662 /* The GNU C library defines this for functions which it implements
19663 to always fail with ENOSYS. Some functions are actually named
19664 something starting with __ and the normal name is an alias. */
19665 #if defined (__stub_crypt) || defined (__stub___crypt)
19673 if { (eval echo configure:19674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19675 eval "ac_cv_func_crypt=yes"
19677 echo "configure: failed program was:" >&5
19678 cat conftest.$ac_ext >&5
19680 eval "ac_cv_func_crypt=no"
19685 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
19686 echo "$ac_t""yes" 1>&6
19689 echo "$ac_t""no" 1>&6
19691 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
19692 echo "configure:19693: checking for crypt in -lcrypt" >&5
19693 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
19694 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19695 echo $ac_n "(cached) $ac_c" 1>&6
19697 ac_save_LIBS="$LIBS"
19698 LIBS="-lcrypt $LIBS"
19699 cat > conftest.$ac_ext <<EOF
19700 #line 19701 "configure"
19701 #include "confdefs.h"
19702 /* Override any gcc2 internal prototype to avoid an error. */
19703 /* We use char because int might match the return type of a gcc2
19704 builtin and then its argument prototype would still apply. */
19711 if { (eval echo configure:19712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19713 eval "ac_cv_lib_$ac_lib_var=yes"
19715 echo "configure: failed program was:" >&5
19716 cat conftest.$ac_ext >&5
19718 eval "ac_cv_lib_$ac_lib_var=no"
19721 LIBS="$ac_save_LIBS"
19724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19725 echo "$ac_t""yes" 1>&6
19726 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
19729 echo "$ac_t""no" 1>&6
19736 if test $have_crypt = yes ; then
19737 cat >> confdefs.h <<\EOF
19738 #define HAVE_CRYPT 1
19742 echo "configure: warning: could not find crypt" 1>&2
19743 if test $ol_enable_crypt = yes ; then
19744 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
19747 echo "configure: warning: disabling crypt support" 1>&2
19752 if test $ol_enable_proctitle != no ; then
19753 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
19754 echo "configure:19755: checking for setproctitle" >&5
19755 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
19756 echo $ac_n "(cached) $ac_c" 1>&6
19758 cat > conftest.$ac_ext <<EOF
19759 #line 19760 "configure"
19760 #include "confdefs.h"
19761 /* System header to define __stub macros and hopefully few prototypes,
19762 which can conflict with char setproctitle(); below. */
19763 #include <assert.h>
19764 /* Override any gcc2 internal prototype to avoid an error. */
19765 /* We use char because int might match the return type of a gcc2
19766 builtin and then its argument prototype would still apply. */
19767 char setproctitle();
19772 /* The GNU C library defines this for functions which it implements
19773 to always fail with ENOSYS. Some functions are actually named
19774 something starting with __ and the normal name is an alias. */
19775 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
19783 if { (eval echo configure:19784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19785 eval "ac_cv_func_setproctitle=yes"
19787 echo "configure: failed program was:" >&5
19788 cat conftest.$ac_ext >&5
19790 eval "ac_cv_func_setproctitle=no"
19795 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
19796 echo "$ac_t""yes" 1>&6
19797 have_setproctitle=yes
19799 echo "$ac_t""no" 1>&6
19801 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
19802 echo "configure:19803: checking for setproctitle in -lutil" >&5
19803 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
19804 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19805 echo $ac_n "(cached) $ac_c" 1>&6
19807 ac_save_LIBS="$LIBS"
19808 LIBS="-lutil $LIBS"
19809 cat > conftest.$ac_ext <<EOF
19810 #line 19811 "configure"
19811 #include "confdefs.h"
19812 /* Override any gcc2 internal prototype to avoid an error. */
19813 /* We use char because int might match the return type of a gcc2
19814 builtin and then its argument prototype would still apply. */
19815 char setproctitle();
19821 if { (eval echo configure:19822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19823 eval "ac_cv_lib_$ac_lib_var=yes"
19825 echo "configure: failed program was:" >&5
19826 cat conftest.$ac_ext >&5
19828 eval "ac_cv_lib_$ac_lib_var=no"
19831 LIBS="$ac_save_LIBS"
19834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19835 echo "$ac_t""yes" 1>&6
19836 have_setproctitle=yes
19837 LUTIL_LIBS="$LUTIL_LIBS -lutil"
19839 echo "$ac_t""no" 1>&6
19840 have_setproctitle=no
19841 LIBOBJS="$LIBOBJS setproctitle.o"
19842 LIBSRCS="$LIBSRCS setproctitle.c"
19848 if test $have_setproctitle = yes ; then
19849 cat >> confdefs.h <<\EOF
19850 #define HAVE_SETPROCTITLE 1
19856 if test $ol_enable_slp != no ; then
19857 for ac_hdr in slp.h
19859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19861 echo "configure:19862: checking for $ac_hdr" >&5
19862 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19863 echo $ac_n "(cached) $ac_c" 1>&6
19865 cat > conftest.$ac_ext <<EOF
19866 #line 19867 "configure"
19867 #include "confdefs.h"
19870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19871 { (eval echo configure:19872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19873 if test -z "$ac_err"; then
19875 eval "ac_cv_header_$ac_safe=yes"
19878 echo "configure: failed program was:" >&5
19879 cat conftest.$ac_ext >&5
19881 eval "ac_cv_header_$ac_safe=no"
19885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19886 echo "$ac_t""yes" 1>&6
19887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19888 cat >> confdefs.h <<EOF
19889 #define $ac_tr_hdr 1
19893 echo "$ac_t""no" 1>&6
19898 if test $ac_cv_header_slp_h = yes ; then
19899 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
19900 echo "configure:19901: checking for SLPOpen in -lslp" >&5
19901 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
19902 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19903 echo $ac_n "(cached) $ac_c" 1>&6
19905 ac_save_LIBS="$LIBS"
19907 cat > conftest.$ac_ext <<EOF
19908 #line 19909 "configure"
19909 #include "confdefs.h"
19910 /* Override any gcc2 internal prototype to avoid an error. */
19911 /* We use char because int might match the return type of a gcc2
19912 builtin and then its argument prototype would still apply. */
19919 if { (eval echo configure:19920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19921 eval "ac_cv_lib_$ac_lib_var=yes"
19923 echo "configure: failed program was:" >&5
19924 cat conftest.$ac_ext >&5
19926 eval "ac_cv_lib_$ac_lib_var=no"
19929 LIBS="$ac_save_LIBS"
19932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19933 echo "$ac_t""yes" 1>&6
19936 echo "$ac_t""no" 1>&6
19940 if test $have_slp = yes ; then
19941 cat >> confdefs.h <<\EOF
19945 SLAPD_SLP_LIBS=-lslp
19948 elif test $ol_enable_slp = yes ; then
19949 { echo "configure: error: SLP not found" 1>&2; exit 1; }
19953 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
19954 echo "configure:19955: checking for ANSI C header files" >&5
19955 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
19956 echo $ac_n "(cached) $ac_c" 1>&6
19958 cat > conftest.$ac_ext <<EOF
19959 #line 19960 "configure"
19960 #include "confdefs.h"
19961 #include <stdlib.h>
19962 #include <stdarg.h>
19963 #include <string.h>
19966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19967 { (eval echo configure:19968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19969 if test -z "$ac_err"; then
19971 ac_cv_header_stdc=yes
19974 echo "configure: failed program was:" >&5
19975 cat conftest.$ac_ext >&5
19977 ac_cv_header_stdc=no
19981 if test $ac_cv_header_stdc = yes; then
19982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19983 cat > conftest.$ac_ext <<EOF
19984 #line 19985 "configure"
19985 #include "confdefs.h"
19986 #include <string.h>
19988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19989 egrep "memchr" >/dev/null 2>&1; then
19993 ac_cv_header_stdc=no
19999 if test $ac_cv_header_stdc = yes; then
20000 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20001 cat > conftest.$ac_ext <<EOF
20002 #line 20003 "configure"
20003 #include "confdefs.h"
20004 #include <stdlib.h>
20006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20007 egrep "free" >/dev/null 2>&1; then
20011 ac_cv_header_stdc=no
20017 if test $ac_cv_header_stdc = yes; then
20018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20019 if test "$cross_compiling" = yes; then
20022 cat > conftest.$ac_ext <<EOF
20023 #line 20024 "configure"
20024 #include "confdefs.h"
20026 #if ((' ' & 0x0FF) == 0x020)
20027 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20028 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20030 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20031 || ('j' <= (c) && (c) <= 'r') \
20032 || ('s' <= (c) && (c) <= 'z'))
20033 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20035 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20036 int main () { int i; for (i = 0; i < 256; i++)
20037 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20041 if { (eval echo configure:20042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20045 echo "configure: failed program was:" >&5
20046 cat conftest.$ac_ext >&5
20048 ac_cv_header_stdc=no
20056 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20057 if test $ac_cv_header_stdc = yes; then
20058 cat >> confdefs.h <<\EOF
20059 #define STDC_HEADERS 1
20064 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20065 echo "configure:20066: checking for mode_t" >&5
20066 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20067 echo $ac_n "(cached) $ac_c" 1>&6
20069 cat > conftest.$ac_ext <<EOF
20070 #line 20071 "configure"
20071 #include "confdefs.h"
20072 #include <sys/types.h>
20074 #include <stdlib.h>
20075 #include <stddef.h>
20079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20080 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20082 eval "ac_cv_type_mode_t=yes"
20085 eval "ac_cv_type_mode_t=no"
20090 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20091 echo "$ac_t""yes" 1>&6
20093 echo "$ac_t""no" 1>&6
20094 cat >> confdefs.h <<EOF
20100 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20101 echo "configure:20102: checking for off_t" >&5
20102 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20103 echo $ac_n "(cached) $ac_c" 1>&6
20105 cat > conftest.$ac_ext <<EOF
20106 #line 20107 "configure"
20107 #include "confdefs.h"
20108 #include <sys/types.h>
20110 #include <stdlib.h>
20111 #include <stddef.h>
20115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20116 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20118 eval "ac_cv_type_off_t=yes"
20121 eval "ac_cv_type_off_t=no"
20126 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20127 echo "$ac_t""yes" 1>&6
20129 echo "$ac_t""no" 1>&6
20130 cat >> confdefs.h <<EOF
20136 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20137 echo "configure:20138: checking for pid_t" >&5
20138 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20139 echo $ac_n "(cached) $ac_c" 1>&6
20141 cat > conftest.$ac_ext <<EOF
20142 #line 20143 "configure"
20143 #include "confdefs.h"
20144 #include <sys/types.h>
20146 #include <stdlib.h>
20147 #include <stddef.h>
20151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20152 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20154 eval "ac_cv_type_pid_t=yes"
20157 eval "ac_cv_type_pid_t=no"
20162 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20163 echo "$ac_t""yes" 1>&6
20165 echo "$ac_t""no" 1>&6
20166 cat >> confdefs.h <<EOF
20172 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20173 echo "configure:20174: checking for ptrdiff_t" >&5
20174 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20175 echo $ac_n "(cached) $ac_c" 1>&6
20177 cat > conftest.$ac_ext <<EOF
20178 #line 20179 "configure"
20179 #include "confdefs.h"
20180 #include <stddef.h>
20185 if { (eval echo configure:20186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20187 am_cv_type_ptrdiff_t=yes
20189 echo "configure: failed program was:" >&5
20190 cat conftest.$ac_ext >&5
20192 am_cv_type_ptrdiff_t=no
20197 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20198 if test $am_cv_type_ptrdiff_t = yes; then
20199 cat >> confdefs.h <<\EOF
20200 #define HAVE_PTRDIFF_T 1
20205 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20206 echo "configure:20207: checking return type of signal handlers" >&5
20207 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20208 echo $ac_n "(cached) $ac_c" 1>&6
20210 cat > conftest.$ac_ext <<EOF
20211 #line 20212 "configure"
20212 #include "confdefs.h"
20213 #include <sys/types.h>
20214 #include <signal.h>
20219 extern "C" void (*signal (int, void (*)(int)))(int);
20221 void (*signal ()) ();
20228 if { (eval echo configure:20229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20230 ac_cv_type_signal=void
20232 echo "configure: failed program was:" >&5
20233 cat conftest.$ac_ext >&5
20235 ac_cv_type_signal=int
20240 echo "$ac_t""$ac_cv_type_signal" 1>&6
20241 cat >> confdefs.h <<EOF
20242 #define RETSIGTYPE $ac_cv_type_signal
20246 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20247 echo "configure:20248: checking for size_t" >&5
20248 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20249 echo $ac_n "(cached) $ac_c" 1>&6
20251 cat > conftest.$ac_ext <<EOF
20252 #line 20253 "configure"
20253 #include "confdefs.h"
20254 #include <sys/types.h>
20256 #include <stdlib.h>
20257 #include <stddef.h>
20261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20262 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20264 eval "ac_cv_type_size_t=yes"
20267 eval "ac_cv_type_size_t=no"
20272 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20273 echo "$ac_t""yes" 1>&6
20275 echo "$ac_t""no" 1>&6
20276 cat >> confdefs.h <<EOF
20277 #define size_t unsigned
20283 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20284 echo "configure:20285: checking for ssize_t" >&5
20285 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20286 echo $ac_n "(cached) $ac_c" 1>&6
20288 cat > conftest.$ac_ext <<EOF
20289 #line 20290 "configure"
20290 #include "confdefs.h"
20291 #include <sys/types.h>
20293 #include <stdlib.h>
20294 #include <stddef.h>
20298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20299 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20301 eval "ac_cv_type_ssize_t=yes"
20304 eval "ac_cv_type_ssize_t=no"
20309 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20310 echo "$ac_t""yes" 1>&6
20312 echo "$ac_t""no" 1>&6
20313 cat >> confdefs.h <<EOF
20314 #define ssize_t signed int
20319 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20320 echo "configure:20321: checking for caddr_t" >&5
20321 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20322 echo $ac_n "(cached) $ac_c" 1>&6
20324 cat > conftest.$ac_ext <<EOF
20325 #line 20326 "configure"
20326 #include "confdefs.h"
20327 #include <sys/types.h>
20329 #include <stdlib.h>
20330 #include <stddef.h>
20334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20335 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20337 eval "ac_cv_type_caddr_t=yes"
20340 eval "ac_cv_type_caddr_t=no"
20345 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20346 echo "$ac_t""yes" 1>&6
20348 echo "$ac_t""no" 1>&6
20349 cat >> confdefs.h <<EOF
20350 #define caddr_t char *
20356 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20357 echo "configure:20358: checking for socklen_t" >&5
20358 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20359 echo $ac_n "(cached) $ac_c" 1>&6
20361 cat > conftest.$ac_ext <<EOF
20362 #line 20363 "configure"
20363 #include "confdefs.h"
20365 #ifdef HAVE_SYS_TYPES_H
20366 #include <sys/types.h>
20368 #ifdef HAVE_SYS_SOCKET_H
20369 #include <sys/socket.h>
20376 if { (eval echo configure:20377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20378 ol_cv_type_socklen_t=yes
20380 echo "configure: failed program was:" >&5
20381 cat conftest.$ac_ext >&5
20383 ol_cv_type_socklen_t=no
20388 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20389 if test $ol_cv_type_socklen_t = no; then
20390 cat >> confdefs.h <<\EOF
20391 #define socklen_t int
20396 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20397 echo "configure:20398: checking for member st_blksize in aggregate type struct stat" >&5
20398 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20399 echo $ac_n "(cached) $ac_c" 1>&6
20401 cat > conftest.$ac_ext <<EOF
20402 #line 20403 "configure"
20403 #include "confdefs.h"
20404 #include <sys/types.h>
20405 #include <sys/stat.h>
20407 struct stat foo; foo.st_blksize;
20410 if { (eval echo configure:20411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20412 ac_cv_c_struct_member_st_blksize=yes
20414 echo "configure: failed program was:" >&5
20415 cat conftest.$ac_ext >&5
20417 ac_cv_c_struct_member_st_blksize=no
20422 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20423 st_blksize="$ac_cv_c_struct_member_st_blksize"
20424 if test $ac_cv_c_struct_member_st_blksize = yes; then
20425 cat >> confdefs.h <<\EOF
20426 #define HAVE_ST_BLKSIZE 1
20431 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
20432 echo "configure:20433: checking whether time.h and sys/time.h may both be included" >&5
20433 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
20434 echo $ac_n "(cached) $ac_c" 1>&6
20436 cat > conftest.$ac_ext <<EOF
20437 #line 20438 "configure"
20438 #include "confdefs.h"
20439 #include <sys/types.h>
20440 #include <sys/time.h>
20446 if { (eval echo configure:20447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20448 ac_cv_header_time=yes
20450 echo "configure: failed program was:" >&5
20451 cat conftest.$ac_ext >&5
20453 ac_cv_header_time=no
20458 echo "$ac_t""$ac_cv_header_time" 1>&6
20459 if test $ac_cv_header_time = yes; then
20460 cat >> confdefs.h <<\EOF
20461 #define TIME_WITH_SYS_TIME 1
20466 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
20467 echo "configure:20468: checking whether struct tm is in sys/time.h or time.h" >&5
20468 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
20469 echo $ac_n "(cached) $ac_c" 1>&6
20471 cat > conftest.$ac_ext <<EOF
20472 #line 20473 "configure"
20473 #include "confdefs.h"
20474 #include <sys/types.h>
20477 struct tm *tp; tp->tm_sec;
20480 if { (eval echo configure:20481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20482 ac_cv_struct_tm=time.h
20484 echo "configure: failed program was:" >&5
20485 cat conftest.$ac_ext >&5
20487 ac_cv_struct_tm=sys/time.h
20492 echo "$ac_t""$ac_cv_struct_tm" 1>&6
20493 if test $ac_cv_struct_tm = sys/time.h; then
20494 cat >> confdefs.h <<\EOF
20495 #define TM_IN_SYS_TIME 1
20500 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
20501 echo "configure:20502: checking for uid_t in sys/types.h" >&5
20502 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
20503 echo $ac_n "(cached) $ac_c" 1>&6
20505 cat > conftest.$ac_ext <<EOF
20506 #line 20507 "configure"
20507 #include "confdefs.h"
20508 #include <sys/types.h>
20510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20511 egrep "uid_t" >/dev/null 2>&1; then
20513 ac_cv_type_uid_t=yes
20516 ac_cv_type_uid_t=no
20522 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
20523 if test $ac_cv_type_uid_t = no; then
20524 cat >> confdefs.h <<\EOF
20528 cat >> confdefs.h <<\EOF
20534 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
20535 echo "configure:20536: checking for sig_atomic_t" >&5
20536 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
20537 echo $ac_n "(cached) $ac_c" 1>&6
20539 cat > conftest.$ac_ext <<EOF
20540 #line 20541 "configure"
20541 #include "confdefs.h"
20542 #include <signal.h>
20544 sig_atomic_t atomic;
20547 if { (eval echo configure:20548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20549 ol_cv_type_sig_atomic_t=yes
20551 echo "configure: failed program was:" >&5
20552 cat conftest.$ac_ext >&5
20554 ol_cv_type_sig_atomic_t=no
20559 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
20560 if test $ol_cv_type_sig_atomic_t = no; then
20561 cat >> confdefs.h <<\EOF
20562 #define sig_atomic_t int
20569 # test for pw_gecos in struct passwd
20570 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
20571 echo "configure:20572: checking struct passwd for pw_gecos" >&5
20572 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
20573 echo $ac_n "(cached) $ac_c" 1>&6
20576 cat > conftest.$ac_ext <<EOF
20577 #line 20578 "configure"
20578 #include "confdefs.h"
20583 pwd.pw_gecos = pwd.pw_name;
20587 if { (eval echo configure:20588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20589 ol_cv_struct_passwd_pw_gecos=yes
20591 echo "configure: failed program was:" >&5
20592 cat conftest.$ac_ext >&5
20594 ol_cv_struct_passwd_pw_gecos=no
20599 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
20600 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
20601 cat >> confdefs.h <<\EOF
20602 #define HAVE_PW_GECOS 1
20607 # test for pw_passwd in struct passwd
20608 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
20609 echo "configure:20610: checking struct passwd for pw_passwd" >&5
20610 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
20611 echo $ac_n "(cached) $ac_c" 1>&6
20614 cat > conftest.$ac_ext <<EOF
20615 #line 20616 "configure"
20616 #include "confdefs.h"
20621 pwd.pw_passwd = pwd.pw_name;
20625 if { (eval echo configure:20626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20627 ol_cv_struct_passwd_pw_passwd=yes
20629 echo "configure: failed program was:" >&5
20630 cat conftest.$ac_ext >&5
20632 ol_cv_struct_passwd_pw_passwd=no
20637 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
20638 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
20639 cat >> confdefs.h <<\EOF
20640 #define HAVE_PW_PASSWD 1
20646 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
20647 echo "configure:20648: checking if toupper() requires islower()" >&5
20648 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
20649 echo $ac_n "(cached) $ac_c" 1>&6
20652 if test "$cross_compiling" = yes; then
20653 ol_cv_c_upper_lower=safe
20655 cat > conftest.$ac_ext <<EOF
20656 #line 20657 "configure"
20657 #include "confdefs.h"
20662 if ('C' == toupper('C'))
20668 if { (eval echo configure:20669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20670 ol_cv_c_upper_lower=no
20672 echo "configure: failed program was:" >&5
20673 cat conftest.$ac_ext >&5
20675 ol_cv_c_upper_lower=yes
20682 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
20683 if test $ol_cv_c_upper_lower != no ; then
20684 cat >> confdefs.h <<\EOF
20685 #define C_UPPER_LOWER 1
20690 echo $ac_n "checking for working const""... $ac_c" 1>&6
20691 echo "configure:20692: checking for working const" >&5
20692 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
20693 echo $ac_n "(cached) $ac_c" 1>&6
20695 cat > conftest.$ac_ext <<EOF
20696 #line 20697 "configure"
20697 #include "confdefs.h"
20701 /* Ultrix mips cc rejects this. */
20702 typedef int charset[2]; const charset x;
20703 /* SunOS 4.1.1 cc rejects this. */
20704 char const *const *ccp;
20706 /* NEC SVR4.0.2 mips cc rejects this. */
20707 struct point {int x, y;};
20708 static struct point const zero = {0,0};
20709 /* AIX XL C 1.02.0.0 rejects this.
20710 It does not let you subtract one const X* pointer from another in an arm
20711 of an if-expression whose if-part is not a constant expression */
20712 const char *g = "string";
20713 ccp = &g + (g ? g-g : 0);
20714 /* HPUX 7.0 cc rejects these. */
20717 ccp = (char const *const *) p;
20718 { /* SCO 3.2v4 cc rejects this. */
20720 char const *s = 0 ? (char *) 0 : (char const *) 0;
20724 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20725 int x[] = {25, 17};
20726 const int *foo = &x[0];
20729 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20730 typedef const int *iptr;
20734 { /* AIX XL C 1.02.0.0 rejects this saying
20735 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20736 struct s { int j; const int *ap[3]; };
20737 struct s *b; b->j = 5;
20739 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20740 const int foo = 10;
20745 if { (eval echo configure:20746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20749 echo "configure: failed program was:" >&5
20750 cat conftest.$ac_ext >&5
20757 echo "$ac_t""$ac_cv_c_const" 1>&6
20758 if test $ac_cv_c_const = no; then
20759 cat >> confdefs.h <<\EOF
20765 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
20766 echo "configure:20767: checking if compiler understands volatile" >&5
20767 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
20768 echo $ac_n "(cached) $ac_c" 1>&6
20770 cat > conftest.$ac_ext <<EOF
20771 #line 20772 "configure"
20772 #include "confdefs.h"
20775 volatile int a; int * volatile b = x ? &y : &z;
20776 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
20780 if { (eval echo configure:20781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20782 ol_cv_c_volatile=yes
20784 echo "configure: failed program was:" >&5
20785 cat conftest.$ac_ext >&5
20787 ol_cv_c_volatile=no
20792 echo "$ac_t""$ol_cv_c_volatile" 1>&6
20793 if test $ol_cv_c_volatile = yes; then
20796 cat >> confdefs.h <<\EOF
20803 if test $cross_compiling = yes ; then
20804 cat >> confdefs.h <<\EOF
20805 #define CROSS_COMPILING 1
20809 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
20810 echo "configure:20811: checking whether byte ordering is bigendian" >&5
20811 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
20812 echo $ac_n "(cached) $ac_c" 1>&6
20814 ac_cv_c_bigendian=unknown
20815 # See if sys/param.h defines the BYTE_ORDER macro.
20816 cat > conftest.$ac_ext <<EOF
20817 #line 20818 "configure"
20818 #include "confdefs.h"
20819 #include <sys/types.h>
20820 #include <sys/param.h>
20823 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20824 bogus endian macros
20828 if { (eval echo configure:20829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20830 # It does; now see whether it defined to BIG_ENDIAN or not.
20831 cat > conftest.$ac_ext <<EOF
20832 #line 20833 "configure"
20833 #include "confdefs.h"
20834 #include <sys/types.h>
20835 #include <sys/param.h>
20838 #if BYTE_ORDER != BIG_ENDIAN
20843 if { (eval echo configure:20844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20845 ac_cv_c_bigendian=yes
20847 echo "configure: failed program was:" >&5
20848 cat conftest.$ac_ext >&5
20850 ac_cv_c_bigendian=no
20854 echo "configure: failed program was:" >&5
20855 cat conftest.$ac_ext >&5
20858 if test $ac_cv_c_bigendian = unknown; then
20859 if test "$cross_compiling" = yes; then
20860 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
20862 cat > conftest.$ac_ext <<EOF
20863 #line 20864 "configure"
20864 #include "confdefs.h"
20866 /* Are we little or big endian? From Harbison&Steele. */
20870 char c[sizeof (long)];
20873 exit (u.c[sizeof (long) - 1] == 1);
20876 if { (eval echo configure:20877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20878 ac_cv_c_bigendian=no
20880 echo "configure: failed program was:" >&5
20881 cat conftest.$ac_ext >&5
20883 ac_cv_c_bigendian=yes
20891 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
20892 if test $ac_cv_c_bigendian = yes; then
20893 cat >> confdefs.h <<\EOF
20894 #define WORDS_BIGENDIAN 1
20901 echo $ac_n "checking size of short""... $ac_c" 1>&6
20902 echo "configure:20903: checking size of short" >&5
20903 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
20904 echo $ac_n "(cached) $ac_c" 1>&6
20906 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20907 cat > conftest.$ac_ext <<EOF
20908 #line 20909 "configure"
20909 #include "confdefs.h"
20910 #include "confdefs.h"
20911 #include <sys/types.h>
20915 switch (0) case 0: case (sizeof (short) == $ac_size):;
20918 if { (eval echo configure:20919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20920 ac_cv_sizeof_short=$ac_size
20922 echo "configure: failed program was:" >&5
20923 cat conftest.$ac_ext >&5
20926 if test x$ac_cv_sizeof_short != x ; then break; fi
20931 if test x$ac_cv_sizeof_short = x ; then
20932 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
20934 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
20935 cat >> confdefs.h <<EOF
20936 #define SIZEOF_SHORT $ac_cv_sizeof_short
20940 echo $ac_n "checking size of int""... $ac_c" 1>&6
20941 echo "configure:20942: checking size of int" >&5
20942 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
20943 echo $ac_n "(cached) $ac_c" 1>&6
20945 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20946 cat > conftest.$ac_ext <<EOF
20947 #line 20948 "configure"
20948 #include "confdefs.h"
20949 #include "confdefs.h"
20950 #include <sys/types.h>
20954 switch (0) case 0: case (sizeof (int) == $ac_size):;
20957 if { (eval echo configure:20958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20959 ac_cv_sizeof_int=$ac_size
20961 echo "configure: failed program was:" >&5
20962 cat conftest.$ac_ext >&5
20965 if test x$ac_cv_sizeof_int != x ; then break; fi
20970 if test x$ac_cv_sizeof_int = x ; then
20971 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
20973 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
20974 cat >> confdefs.h <<EOF
20975 #define SIZEOF_INT $ac_cv_sizeof_int
20979 echo $ac_n "checking size of long""... $ac_c" 1>&6
20980 echo "configure:20981: checking size of long" >&5
20981 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
20982 echo $ac_n "(cached) $ac_c" 1>&6
20984 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20985 cat > conftest.$ac_ext <<EOF
20986 #line 20987 "configure"
20987 #include "confdefs.h"
20988 #include "confdefs.h"
20989 #include <sys/types.h>
20993 switch (0) case 0: case (sizeof (long) == $ac_size):;
20996 if { (eval echo configure:20997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20998 ac_cv_sizeof_long=$ac_size
21000 echo "configure: failed program was:" >&5
21001 cat conftest.$ac_ext >&5
21004 if test x$ac_cv_sizeof_long != x ; then break; fi
21009 if test x$ac_cv_sizeof_long = x ; then
21010 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21012 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21013 cat >> confdefs.h <<EOF
21014 #define SIZEOF_LONG $ac_cv_sizeof_long
21019 if test "$ac_cv_sizeof_int" -lt 4 ; then
21020 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21022 cat >> confdefs.h <<\EOF
21023 #define LBER_INT_T long
21027 cat >> confdefs.h <<\EOF
21028 #define LBER_INT_T int
21033 cat >> confdefs.h <<\EOF
21034 #define LBER_LEN_T long
21037 cat >> confdefs.h <<\EOF
21038 #define LBER_SOCKET_T int
21041 cat >> confdefs.h <<\EOF
21042 #define LBER_TAG_T long
21046 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21047 echo "configure:21048: checking for 8-bit clean memcmp" >&5
21048 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21049 echo $ac_n "(cached) $ac_c" 1>&6
21051 if test "$cross_compiling" = yes; then
21052 ac_cv_func_memcmp_clean=no
21054 cat > conftest.$ac_ext <<EOF
21055 #line 21056 "configure"
21056 #include "confdefs.h"
21060 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21061 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21065 if { (eval echo configure:21066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21067 ac_cv_func_memcmp_clean=yes
21069 echo "configure: failed program was:" >&5
21070 cat conftest.$ac_ext >&5
21072 ac_cv_func_memcmp_clean=no
21079 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21080 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21082 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21083 echo "configure:21084: checking for strftime" >&5
21084 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21085 echo $ac_n "(cached) $ac_c" 1>&6
21087 cat > conftest.$ac_ext <<EOF
21088 #line 21089 "configure"
21089 #include "confdefs.h"
21090 /* System header to define __stub macros and hopefully few prototypes,
21091 which can conflict with char strftime(); below. */
21092 #include <assert.h>
21093 /* Override any gcc2 internal prototype to avoid an error. */
21094 /* We use char because int might match the return type of a gcc2
21095 builtin and then its argument prototype would still apply. */
21101 /* The GNU C library defines this for functions which it implements
21102 to always fail with ENOSYS. Some functions are actually named
21103 something starting with __ and the normal name is an alias. */
21104 #if defined (__stub_strftime) || defined (__stub___strftime)
21112 if { (eval echo configure:21113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21114 eval "ac_cv_func_strftime=yes"
21116 echo "configure: failed program was:" >&5
21117 cat conftest.$ac_ext >&5
21119 eval "ac_cv_func_strftime=no"
21124 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21125 echo "$ac_t""yes" 1>&6
21126 cat >> confdefs.h <<\EOF
21127 #define HAVE_STRFTIME 1
21131 echo "$ac_t""no" 1>&6
21132 # strftime is in -lintl on SCO UNIX.
21133 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21134 echo "configure:21135: checking for strftime in -lintl" >&5
21135 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21136 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21137 echo $ac_n "(cached) $ac_c" 1>&6
21139 ac_save_LIBS="$LIBS"
21140 LIBS="-lintl $LIBS"
21141 cat > conftest.$ac_ext <<EOF
21142 #line 21143 "configure"
21143 #include "confdefs.h"
21144 /* Override any gcc2 internal prototype to avoid an error. */
21145 /* We use char because int might match the return type of a gcc2
21146 builtin and then its argument prototype would still apply. */
21153 if { (eval echo configure:21154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21155 eval "ac_cv_lib_$ac_lib_var=yes"
21157 echo "configure: failed program was:" >&5
21158 cat conftest.$ac_ext >&5
21160 eval "ac_cv_lib_$ac_lib_var=no"
21163 LIBS="$ac_save_LIBS"
21166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21167 echo "$ac_t""yes" 1>&6
21168 cat >> confdefs.h <<\EOF
21169 #define HAVE_STRFTIME 1
21172 LIBS="-lintl $LIBS"
21174 echo "$ac_t""no" 1>&6
21180 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21181 echo "configure:21182: checking for inet_aton()" >&5
21182 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21183 echo $ac_n "(cached) $ac_c" 1>&6
21185 cat > conftest.$ac_ext <<EOF
21186 #line 21187 "configure"
21187 #include "confdefs.h"
21189 #ifdef HAVE_SYS_TYPES_H
21190 # include <sys/types.h>
21192 #ifdef HAVE_SYS_SOCKET_H
21193 # include <sys/socket.h>
21194 # ifdef HAVE_SYS_SELECT_H
21195 # include <sys/select.h>
21197 # include <netinet/in.h>
21198 # ifdef HAVE_ARPA_INET_H
21199 # include <arpa/inet.h>
21205 int rc = inet_aton( "255.255.255.255", &in );
21208 if { (eval echo configure:21209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21210 ol_cv_func_inet_aton=yes
21212 echo "configure: failed program was:" >&5
21213 cat conftest.$ac_ext >&5
21215 ol_cv_func_inet_aton=no
21220 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21221 if test $ol_cv_func_inet_aton != no; then
21222 cat >> confdefs.h <<\EOF
21223 #define HAVE_INET_ATON 1
21229 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21230 echo "configure:21231: checking for _spawnlp" >&5
21231 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21232 echo $ac_n "(cached) $ac_c" 1>&6
21234 cat > conftest.$ac_ext <<EOF
21235 #line 21236 "configure"
21236 #include "confdefs.h"
21237 /* System header to define __stub macros and hopefully few prototypes,
21238 which can conflict with char _spawnlp(); below. */
21239 #include <assert.h>
21240 /* Override any gcc2 internal prototype to avoid an error. */
21241 /* We use char because int might match the return type of a gcc2
21242 builtin and then its argument prototype would still apply. */
21248 /* The GNU C library defines this for functions which it implements
21249 to always fail with ENOSYS. Some functions are actually named
21250 something starting with __ and the normal name is an alias. */
21251 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21259 if { (eval echo configure:21260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21261 eval "ac_cv_func__spawnlp=yes"
21263 echo "configure: failed program was:" >&5
21264 cat conftest.$ac_ext >&5
21266 eval "ac_cv_func__spawnlp=no"
21271 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21272 echo "$ac_t""yes" 1>&6
21273 cat >> confdefs.h <<\EOF
21274 #define HAVE_SPAWNLP 1
21278 echo "$ac_t""no" 1>&6
21282 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21283 echo "configure:21284: checking for _snprintf" >&5
21284 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21285 echo $ac_n "(cached) $ac_c" 1>&6
21287 cat > conftest.$ac_ext <<EOF
21288 #line 21289 "configure"
21289 #include "confdefs.h"
21290 /* System header to define __stub macros and hopefully few prototypes,
21291 which can conflict with char _snprintf(); below. */
21292 #include <assert.h>
21293 /* Override any gcc2 internal prototype to avoid an error. */
21294 /* We use char because int might match the return type of a gcc2
21295 builtin and then its argument prototype would still apply. */
21301 /* The GNU C library defines this for functions which it implements
21302 to always fail with ENOSYS. Some functions are actually named
21303 something starting with __ and the normal name is an alias. */
21304 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21312 if { (eval echo configure:21313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21314 eval "ac_cv_func__snprintf=yes"
21316 echo "configure: failed program was:" >&5
21317 cat conftest.$ac_ext >&5
21319 eval "ac_cv_func__snprintf=no"
21324 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21325 echo "$ac_t""yes" 1>&6
21326 ac_cv_func_snprintf=yes
21327 cat >> confdefs.h <<\EOF
21328 #define snprintf _snprintf
21333 echo "$ac_t""no" 1>&6
21337 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21338 echo "configure:21339: checking for _vsnprintf" >&5
21339 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21340 echo $ac_n "(cached) $ac_c" 1>&6
21342 cat > conftest.$ac_ext <<EOF
21343 #line 21344 "configure"
21344 #include "confdefs.h"
21345 /* System header to define __stub macros and hopefully few prototypes,
21346 which can conflict with char _vsnprintf(); below. */
21347 #include <assert.h>
21348 /* Override any gcc2 internal prototype to avoid an error. */
21349 /* We use char because int might match the return type of a gcc2
21350 builtin and then its argument prototype would still apply. */
21356 /* The GNU C library defines this for functions which it implements
21357 to always fail with ENOSYS. Some functions are actually named
21358 something starting with __ and the normal name is an alias. */
21359 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21367 if { (eval echo configure:21368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21369 eval "ac_cv_func__vsnprintf=yes"
21371 echo "configure: failed program was:" >&5
21372 cat conftest.$ac_ext >&5
21374 eval "ac_cv_func__vsnprintf=no"
21379 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21380 echo "$ac_t""yes" 1>&6
21381 ac_cv_func_vsnprintf=yes
21382 cat >> confdefs.h <<\EOF
21383 #define vsnprintf _vsnprintf
21388 echo "$ac_t""no" 1>&6
21392 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21393 echo "configure:21394: checking for vprintf" >&5
21394 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
21395 echo $ac_n "(cached) $ac_c" 1>&6
21397 cat > conftest.$ac_ext <<EOF
21398 #line 21399 "configure"
21399 #include "confdefs.h"
21400 /* System header to define __stub macros and hopefully few prototypes,
21401 which can conflict with char vprintf(); below. */
21402 #include <assert.h>
21403 /* Override any gcc2 internal prototype to avoid an error. */
21404 /* We use char because int might match the return type of a gcc2
21405 builtin and then its argument prototype would still apply. */
21411 /* The GNU C library defines this for functions which it implements
21412 to always fail with ENOSYS. Some functions are actually named
21413 something starting with __ and the normal name is an alias. */
21414 #if defined (__stub_vprintf) || defined (__stub___vprintf)
21422 if { (eval echo configure:21423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21424 eval "ac_cv_func_vprintf=yes"
21426 echo "configure: failed program was:" >&5
21427 cat conftest.$ac_ext >&5
21429 eval "ac_cv_func_vprintf=no"
21434 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
21435 echo "$ac_t""yes" 1>&6
21436 cat >> confdefs.h <<\EOF
21437 #define HAVE_VPRINTF 1
21441 echo "$ac_t""no" 1>&6
21444 if test "$ac_cv_func_vprintf" != yes; then
21445 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21446 echo "configure:21447: checking for _doprnt" >&5
21447 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
21448 echo $ac_n "(cached) $ac_c" 1>&6
21450 cat > conftest.$ac_ext <<EOF
21451 #line 21452 "configure"
21452 #include "confdefs.h"
21453 /* System header to define __stub macros and hopefully few prototypes,
21454 which can conflict with char _doprnt(); below. */
21455 #include <assert.h>
21456 /* Override any gcc2 internal prototype to avoid an error. */
21457 /* We use char because int might match the return type of a gcc2
21458 builtin and then its argument prototype would still apply. */
21464 /* The GNU C library defines this for functions which it implements
21465 to always fail with ENOSYS. Some functions are actually named
21466 something starting with __ and the normal name is an alias. */
21467 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21475 if { (eval echo configure:21476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21477 eval "ac_cv_func__doprnt=yes"
21479 echo "configure: failed program was:" >&5
21480 cat conftest.$ac_ext >&5
21482 eval "ac_cv_func__doprnt=no"
21487 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
21488 echo "$ac_t""yes" 1>&6
21489 cat >> confdefs.h <<\EOF
21490 #define HAVE_DOPRNT 1
21494 echo "$ac_t""no" 1>&6
21500 if test $ac_cv_func_vprintf = yes ; then
21501 for ac_func in vsnprintf vsprintf
21503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21504 echo "configure:21505: checking for $ac_func" >&5
21505 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21506 echo $ac_n "(cached) $ac_c" 1>&6
21508 cat > conftest.$ac_ext <<EOF
21509 #line 21510 "configure"
21510 #include "confdefs.h"
21511 /* System header to define __stub macros and hopefully few prototypes,
21512 which can conflict with char $ac_func(); below. */
21513 #include <assert.h>
21514 /* Override any gcc2 internal prototype to avoid an error. */
21515 /* We use char because int might match the return type of a gcc2
21516 builtin and then its argument prototype would still apply. */
21522 /* The GNU C library defines this for functions which it implements
21523 to always fail with ENOSYS. Some functions are actually named
21524 something starting with __ and the normal name is an alias. */
21525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21533 if { (eval echo configure:21534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21535 eval "ac_cv_func_$ac_func=yes"
21537 echo "configure: failed program was:" >&5
21538 cat conftest.$ac_ext >&5
21540 eval "ac_cv_func_$ac_func=no"
21545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21546 echo "$ac_t""yes" 1>&6
21547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21548 cat >> confdefs.h <<EOF
21549 #define $ac_tr_func 1
21553 echo "$ac_t""no" 1>&6
21613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21614 echo "configure:21615: checking for $ac_func" >&5
21615 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21616 echo $ac_n "(cached) $ac_c" 1>&6
21618 cat > conftest.$ac_ext <<EOF
21619 #line 21620 "configure"
21620 #include "confdefs.h"
21621 /* System header to define __stub macros and hopefully few prototypes,
21622 which can conflict with char $ac_func(); below. */
21623 #include <assert.h>
21624 /* Override any gcc2 internal prototype to avoid an error. */
21625 /* We use char because int might match the return type of a gcc2
21626 builtin and then its argument prototype would still apply. */
21632 /* The GNU C library defines this for functions which it implements
21633 to always fail with ENOSYS. Some functions are actually named
21634 something starting with __ and the normal name is an alias. */
21635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21643 if { (eval echo configure:21644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21645 eval "ac_cv_func_$ac_func=yes"
21647 echo "configure: failed program was:" >&5
21648 cat conftest.$ac_ext >&5
21650 eval "ac_cv_func_$ac_func=no"
21655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21656 echo "$ac_t""yes" 1>&6
21657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21658 cat >> confdefs.h <<EOF
21659 #define $ac_tr_func 1
21663 echo "$ac_t""no" 1>&6
21668 for ac_func in getopt
21670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21671 echo "configure:21672: checking for $ac_func" >&5
21672 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21673 echo $ac_n "(cached) $ac_c" 1>&6
21675 cat > conftest.$ac_ext <<EOF
21676 #line 21677 "configure"
21677 #include "confdefs.h"
21678 /* System header to define __stub macros and hopefully few prototypes,
21679 which can conflict with char $ac_func(); below. */
21680 #include <assert.h>
21681 /* Override any gcc2 internal prototype to avoid an error. */
21682 /* We use char because int might match the return type of a gcc2
21683 builtin and then its argument prototype would still apply. */
21689 /* The GNU C library defines this for functions which it implements
21690 to always fail with ENOSYS. Some functions are actually named
21691 something starting with __ and the normal name is an alias. */
21692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21700 if { (eval echo configure:21701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21702 eval "ac_cv_func_$ac_func=yes"
21704 echo "configure: failed program was:" >&5
21705 cat conftest.$ac_ext >&5
21707 eval "ac_cv_func_$ac_func=no"
21712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21713 echo "$ac_t""yes" 1>&6
21714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21715 cat >> confdefs.h <<EOF
21716 #define $ac_tr_func 1
21720 echo "$ac_t""no" 1>&6
21721 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
21727 if test "$ac_cv_func_getopt" != yes; then
21728 LIBSRCS="$LIBSRCS getopt.c"
21731 # Check Configuration
21732 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
21733 echo "configure:21734: checking declaration of sys_errlist" >&5
21734 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
21735 echo $ac_n "(cached) $ac_c" 1>&6
21738 cat > conftest.$ac_ext <<EOF
21739 #line 21740 "configure"
21740 #include "confdefs.h"
21743 #include <sys/types.h>
21746 #include <stdlib.h>
21749 char *c = (char *) *sys_errlist
21752 if { (eval echo configure:21753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21754 ol_cv_dcl_sys_errlist=yes
21755 ol_cv_have_sys_errlist=yes
21757 echo "configure: failed program was:" >&5
21758 cat conftest.$ac_ext >&5
21760 ol_cv_dcl_sys_errlist=no
21765 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
21767 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
21768 if test $ol_cv_dcl_sys_errlist = no ; then
21769 cat >> confdefs.h <<\EOF
21770 #define DECL_SYS_ERRLIST 1
21774 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
21775 echo "configure:21776: checking existence of sys_errlist" >&5
21776 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
21777 echo $ac_n "(cached) $ac_c" 1>&6
21780 cat > conftest.$ac_ext <<EOF
21781 #line 21782 "configure"
21782 #include "confdefs.h"
21785 char *c = (char *) *sys_errlist
21788 if { (eval echo configure:21789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21790 ol_cv_have_sys_errlist=yes
21792 echo "configure: failed program was:" >&5
21793 cat conftest.$ac_ext >&5
21795 ol_cv_have_sys_errlist=no
21800 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
21802 if test $ol_cv_have_sys_errlist = yes ; then
21803 cat >> confdefs.h <<\EOF
21804 #define HAVE_SYS_ERRLIST 1
21811 if test "$ol_enable_debug" != no ; then
21812 cat >> confdefs.h <<\EOF
21813 #define LDAP_DEBUG 1
21817 if test "$ol_enable_syslog" = yes ; then
21818 cat >> confdefs.h <<\EOF
21819 #define LDAP_SYSLOG 1
21823 if test "$ol_enable_cache" = no ; then
21824 cat >> confdefs.h <<\EOF
21825 #define LDAP_NOCACHE 1
21829 if test "$ol_link_kbind" != no ; then
21830 cat >> confdefs.h <<\EOF
21831 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
21835 if test "$ol_enable_proctitle" != no ; then
21836 cat >> confdefs.h <<\EOF
21837 #define LDAP_PROCTITLE 1
21841 if test "$ol_enable_referrals" != no ; then
21842 cat >> confdefs.h <<\EOF
21843 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
21847 if test "$ol_enable_local" != no; then
21848 cat >> confdefs.h <<\EOF
21849 #define LDAP_PF_LOCAL 1
21853 if test "$ol_link_ipv6" != no; then
21854 cat >> confdefs.h <<\EOF
21855 #define LDAP_PF_INET6 1
21859 if test "$ol_enable_cleartext" != no ; then
21860 cat >> confdefs.h <<\EOF
21861 #define SLAPD_CLEARTEXT 1
21865 if test "$ol_enable_crypt" != no ; then
21866 cat >> confdefs.h <<\EOF
21867 #define SLAPD_CRYPT 1
21871 if test "$ol_link_kpasswd" != no ; then
21872 cat >> confdefs.h <<\EOF
21873 #define SLAPD_KPASSWD 1
21877 if test "$ol_link_spasswd" != no ; then
21878 cat >> confdefs.h <<\EOF
21879 #define SLAPD_SPASSWD 1
21883 if test "$ol_enable_phonetic" != no ; then
21884 cat >> confdefs.h <<\EOF
21885 #define SLAPD_PHONETIC 1
21889 if test "$ol_enable_rlookups" != no ; then
21890 cat >> confdefs.h <<\EOF
21891 #define SLAPD_RLOOKUPS 1
21895 if test "$ol_enable_aci" != no ; then
21896 cat >> confdefs.h <<\EOF
21897 #define SLAPD_ACI_ENABLED 1
21902 if test "$ol_link_modules" != no ; then
21903 cat >> confdefs.h <<\EOF
21904 #define SLAPD_MODULES 1
21908 SLAPD_MODULES_LDFLAGS="-dlopen self"
21911 if test "$ol_enable_bdb" != no ; then
21912 cat >> confdefs.h <<\EOF
21913 #define SLAPD_BDB 1
21918 if test "$ol_with_bdb_module" != static ; then
21919 cat >> confdefs.h <<\EOF
21920 #define SLAPD_BDB_DYNAMIC 1
21924 BUILD_BDB_DYNAMIC=shared
21925 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
21926 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
21928 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
21932 if test "$ol_link_dnssrv" != no ; then
21933 cat >> confdefs.h <<\EOF
21934 #define SLAPD_DNSSRV 1
21939 if test "$ol_with_dnssrv_module" != static ; then
21940 cat >> confdefs.h <<\EOF
21941 #define SLAPD_DNSSRV_DYNAMIC 1
21945 BUILD_DNSSRV_DYNAMIC=shared
21946 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
21947 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
21949 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
21953 if test "$ol_enable_ldap" != no ; then
21954 cat >> confdefs.h <<\EOF
21955 #define SLAPD_LDAP 1
21960 if test "$ol_with_ldap_module" != static ; then
21961 cat >> confdefs.h <<\EOF
21962 #define SLAPD_LDAP_DYNAMIC 1
21966 BUILD_LDAP_DYNAMIC=shared
21967 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
21968 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
21970 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
21974 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
21975 cat >> confdefs.h <<\EOF
21976 #define SLAPD_LDBM 1
21982 if test "$ol_with_ldbm_module" != static ; then
21983 cat >> confdefs.h <<\EOF
21984 #define SLAPD_LDBM_DYNAMIC 1
21988 BUILD_LDBM_DYNAMIC=shared
21989 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
21990 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
21992 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
21996 if test "$ol_enable_meta" != no ; then
21997 if test "$ol_enable_ldap" = no ; then
21998 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22000 if test "$ol_enable_rewrite" = no ; then
22001 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22003 cat >> confdefs.h <<\EOF
22004 #define SLAPD_META 1
22009 if test "$ol_with_meta_module" != static ; then
22010 cat >> confdefs.h <<\EOF
22011 #define SLAPD_META_DYNAMIC 1
22015 BUILD_META_DYNAMIC=shared
22016 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
22017 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22019 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22023 if test "$ol_enable_monitor" != no ; then
22024 cat >> confdefs.h <<\EOF
22025 #define SLAPD_MONITOR 1
22030 if test "$ol_with_monitor_module" != static ; then
22031 cat >> confdefs.h <<\EOF
22032 #define SLAPD_MONITOR_DYNAMIC 1
22036 BUILD_MONITOR_DYNAMIC=shared
22037 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
22038 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22040 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22044 if test "$ol_enable_null" != no ; then
22045 cat >> confdefs.h <<\EOF
22046 #define SLAPD_NULL 1
22051 if test "$ol_with_null_module" != static ; then
22052 cat >> confdefs.h <<\EOF
22053 #define SLAPD_NULL_DYNAMIC 1
22057 BUILD_NULL_DYNAMIC=shared
22058 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-null/back_null.la"
22059 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
22061 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
22065 if test "$ol_enable_passwd" != no ; then
22066 cat >> confdefs.h <<\EOF
22067 #define SLAPD_PASSWD 1
22072 if test "$ol_with_passwd_module" != static ; then
22073 cat >> confdefs.h <<\EOF
22074 #define SLAPD_PASSWD_DYNAMIC 1
22078 BUILD_PASSWD_DYNAMIC=shared
22079 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
22080 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22082 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22086 if test "$ol_link_perl" != no ; then
22087 cat >> confdefs.h <<\EOF
22088 #define SLAPD_PERL 1
22093 if test "$ol_with_perl_module" != static ; then
22094 cat >> confdefs.h <<\EOF
22095 #define SLAPD_PERL_DYNAMIC 1
22099 BUILD_PERL_DYNAMIC=shared
22100 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
22101 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22103 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22107 if test "$ol_enable_shell" != no ; then
22108 cat >> confdefs.h <<\EOF
22109 #define SLAPD_SHELL 1
22114 if test "$ol_with_shell_module" != static ; then
22115 cat >> confdefs.h <<\EOF
22116 #define SLAPD_SHELL_DYNAMIC 1
22120 BUILD_SHELL_DYNAMIC=shared
22121 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
22122 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22124 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22128 if test "$ol_link_sql" != no ; then
22129 cat >> confdefs.h <<\EOF
22130 #define SLAPD_SQL 1
22135 if test "$ol_with_sql_module" != static; then
22136 cat >> confdefs.h <<\EOF
22137 #define SLAPD_SQL_DYNAMIC 1
22141 BUILD_SQL_DYNAMIC=shared
22142 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
22143 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22145 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22149 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22150 $BUILD_SLAPD = yes ; then
22154 if test "$ol_enable_rewrite" != no ; then
22155 cat >> confdefs.h <<\EOF
22156 #define ENABLE_REWRITE 1
22164 if test "$ac_cv_mingw32" = yes ; then
22166 SLAPD_MODULES_LDFLAGS=
22167 SLAPD_MODULES_LIST=
22238 # Check whether --with-xxinstall or --without-xxinstall was given.
22239 if test "${with_xxinstall+set}" = set; then
22240 withval="$with_xxinstall"
22248 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22250 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22251 # Let make expand exec_prefix.
22252 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22254 # Any assignment to VPATH causes Sun make to only execute
22255 # the first set of double-colon rules, so remove it if not needed.
22256 # If there is a colon in the path, we need to keep it.
22257 if test "x$srcdir" = x.; then
22258 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22261 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22263 DEFS=-DHAVE_CONFIG_H
22265 # Without the "./", some shells look in PATH for config.status.
22266 : ${CONFIG_STATUS=./config.status}
22268 echo creating $CONFIG_STATUS
22269 rm -f $CONFIG_STATUS
22270 cat > $CONFIG_STATUS <<EOF
22272 # Generated automatically by configure.
22273 # Run this file to recreate the current configuration.
22274 # This directory was configured as follows,
22275 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22277 # $0 $ac_configure_args
22279 # Compiler output produced by configure, useful for debugging
22280 # configure, is in ./config.log if it exists.
22282 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22285 case "\$ac_option" in
22286 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22287 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22288 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22289 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22290 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22292 -help | --help | --hel | --he | --h)
22293 echo "\$ac_cs_usage"; exit 0 ;;
22294 *) echo "\$ac_cs_usage"; exit 1 ;;
22298 ac_given_srcdir=$srcdir
22299 ac_given_INSTALL="$INSTALL"
22301 trap 'rm -fr `echo "\
22302 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22303 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22304 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22305 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22306 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22307 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22308 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22309 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22310 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22311 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22312 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22313 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22314 include/Makefile:build/top.mk:include/Makefile.in \
22315 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22316 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22317 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22318 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22319 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22320 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22321 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22322 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22323 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22324 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22325 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22326 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22327 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22328 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22329 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22330 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22331 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22332 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22333 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22334 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22335 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22336 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22337 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22338 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22339 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22340 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22341 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22342 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22343 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22345 cat >> $CONFIG_STATUS <<EOF
22347 # Protect against being on the right side of a sed subst in config.status.
22348 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22349 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22353 s%@CFLAGS@%$CFLAGS%g
22354 s%@CPPFLAGS@%$CPPFLAGS%g
22355 s%@CXXFLAGS@%$CXXFLAGS%g
22356 s%@FFLAGS@%$FFLAGS%g
22358 s%@LDFLAGS@%$LDFLAGS%g
22360 s%@exec_prefix@%$exec_prefix%g
22361 s%@prefix@%$prefix%g
22362 s%@program_transform_name@%$program_transform_name%g
22363 s%@bindir@%$bindir%g
22364 s%@sbindir@%$sbindir%g
22365 s%@libexecdir@%$libexecdir%g
22366 s%@datadir@%$datadir%g
22367 s%@sysconfdir@%$sysconfdir%g
22368 s%@sharedstatedir@%$sharedstatedir%g
22369 s%@localstatedir@%$localstatedir%g
22370 s%@libdir@%$libdir%g
22371 s%@includedir@%$includedir%g
22372 s%@oldincludedir@%$oldincludedir%g
22373 s%@infodir@%$infodir%g
22374 s%@mandir@%$mandir%g
22376 s%@host_alias@%$host_alias%g
22377 s%@host_cpu@%$host_cpu%g
22378 s%@host_vendor@%$host_vendor%g
22379 s%@host_os@%$host_os%g
22380 s%@target@%$target%g
22381 s%@target_alias@%$target_alias%g
22382 s%@target_cpu@%$target_cpu%g
22383 s%@target_vendor@%$target_vendor%g
22384 s%@target_os@%$target_os%g
22386 s%@build_alias@%$build_alias%g
22387 s%@build_cpu@%$build_cpu%g
22388 s%@build_vendor@%$build_vendor%g
22389 s%@build_os@%$build_os%g
22390 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22391 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22392 s%@INSTALL_DATA@%$INSTALL_DATA%g
22393 s%@PACKAGE@%$PACKAGE%g
22394 s%@VERSION@%$VERSION%g
22395 s%@ACLOCAL@%$ACLOCAL%g
22396 s%@AUTOCONF@%$AUTOCONF%g
22397 s%@AUTOMAKE@%$AUTOMAKE%g
22398 s%@AUTOHEADER@%$AUTOHEADER%g
22399 s%@MAKEINFO@%$MAKEINFO%g
22400 s%@install_sh@%$install_sh%g
22403 s%@AMTARFLAGS@%$AMTARFLAGS%g
22404 s%@SET_MAKE@%$SET_MAKE%g
22405 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
22406 s%@top_builddir@%$top_builddir%g
22407 s%@ldap_subdir@%$ldap_subdir%g
22411 s%@OBJEXT@%$OBJEXT%g
22412 s%@EXEEXT@%$EXEEXT%g
22414 s%@RANLIB@%$RANLIB%g
22416 s%@DLLTOOL@%$DLLTOOL%g
22418 s%@OBJDUMP@%$OBJDUMP%g
22420 s%@LIBTOOL@%$LIBTOOL%g
22422 s%@SENDMAIL@%$SENDMAIL%g
22423 s%@EDITOR@%$EDITOR%g
22424 s%@PERLBIN@%$PERLBIN%g
22425 s%@OL_MKDEP@%$OL_MKDEP%g
22426 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
22427 s%@LIBOBJS@%$LIBOBJS%g
22428 s%@LIBSRCS@%$LIBSRCS%g
22430 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
22431 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
22432 s%@BUILD_BDB@%$BUILD_BDB%g
22433 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
22434 s%@BUILD_LDAP@%$BUILD_LDAP%g
22435 s%@BUILD_LDBM@%$BUILD_LDBM%g
22436 s%@BUILD_META@%$BUILD_META%g
22437 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
22438 s%@BUILD_NULL@%$BUILD_NULL%g
22439 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
22440 s%@BUILD_PERL@%$BUILD_PERL%g
22441 s%@BUILD_SHELL@%$BUILD_SHELL%g
22442 s%@BUILD_SQL@%$BUILD_SQL%g
22443 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
22444 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
22445 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
22446 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
22447 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
22448 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
22449 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
22450 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
22451 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
22452 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
22453 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
22454 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
22455 s%@LDBM_LIB@%$LDBM_LIB%g
22456 s%@LDAP_LIBS@%$LDAP_LIBS%g
22457 s%@LDIF_LIBS@%$LDIF_LIBS%g
22458 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
22459 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
22460 s%@LDBM_LIBS@%$LDBM_LIBS%g
22461 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
22462 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
22463 s%@WRAP_LIBS@%$WRAP_LIBS%g
22464 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
22465 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
22466 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
22467 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
22468 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
22469 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
22470 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
22471 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
22472 s%@KRB4_LIBS@%$KRB4_LIBS%g
22473 s%@KRB5_LIBS@%$KRB5_LIBS%g
22474 s%@READLINE_LIBS@%$READLINE_LIBS%g
22475 s%@SASL_LIBS@%$SASL_LIBS%g
22476 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
22477 s%@TLS_LIBS@%$TLS_LIBS%g
22478 s%@MODULES_LIBS@%$MODULES_LIBS%g
22479 s%@AUTH_LIBS@%$AUTH_LIBS%g
22480 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
22481 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
22482 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
22483 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
22488 cat >> $CONFIG_STATUS <<\EOF
22490 # Split the substitutions into bite-sized pieces for seds with
22491 # small command number limits, like on Digital OSF/1 and HP-UX.
22492 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22493 ac_file=1 # Number of current file.
22494 ac_beg=1 # First line for current file.
22495 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22498 while $ac_more_lines; do
22499 if test $ac_beg -gt 1; then
22500 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22502 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22504 if test ! -s conftest.s$ac_file; then
22505 ac_more_lines=false
22506 rm -f conftest.s$ac_file
22508 if test -z "$ac_sed_cmds"; then
22509 ac_sed_cmds="sed -f conftest.s$ac_file"
22511 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22513 ac_file=`expr $ac_file + 1`
22515 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22518 if test -z "$ac_sed_cmds"; then
22523 cat >> $CONFIG_STATUS <<EOF
22525 CONFIG_FILES=\${CONFIG_FILES-"\
22526 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22527 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22528 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22529 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22530 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22531 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22532 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22533 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22534 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22535 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22536 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22537 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22538 include/Makefile:build/top.mk:include/Makefile.in \
22539 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22540 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22541 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22542 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22543 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22544 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22545 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22546 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22547 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22548 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22549 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22550 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22551 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22552 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22553 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22554 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22555 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22556 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22557 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22558 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22559 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22560 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22561 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22562 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22563 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22564 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22565 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22566 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22569 cat >> $CONFIG_STATUS <<\EOF
22570 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22571 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22573 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22574 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22575 *) ac_file_in="${ac_file}.in" ;;
22578 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22580 # Remove last slash and all that follows it. Not all systems have dirname.
22581 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22582 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22583 # The file is in a subdirectory.
22584 test ! -d "$ac_dir" && mkdir "$ac_dir"
22585 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22586 # A "../" for each directory in $ac_dir_suffix.
22587 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22589 ac_dir_suffix= ac_dots=
22592 case "$ac_given_srcdir" in
22594 if test -z "$ac_dots"; then top_srcdir=.
22595 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22596 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22597 *) # Relative path.
22598 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22599 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22602 case "$ac_given_INSTALL" in
22603 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22604 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22607 echo creating "$ac_file"
22609 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22611 *[Mm]akefile*) ac_comsub="1i\\
22612 # $configure_input" ;;
22616 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22618 s%@configure_input@%$configure_input%g
22619 s%@srcdir@%$srcdir%g
22620 s%@top_srcdir@%$top_srcdir%g
22621 s%@INSTALL@%$INSTALL%g
22622 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22626 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22627 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22629 # ac_d sets the value in "#define NAME VALUE" lines.
22630 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22631 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22634 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22635 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22636 ac_uB='\([ ]\)%\1#\2define\3'
22639 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22640 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22641 ac_eB='$%\1#\2define\3'
22645 if test "${CONFIG_HEADERS+set}" != set; then
22647 cat >> $CONFIG_STATUS <<EOF
22648 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
22650 cat >> $CONFIG_STATUS <<\EOF
22652 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22653 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22655 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22656 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22657 *) ac_file_in="${ac_file}.in" ;;
22660 echo creating $ac_file
22662 rm -f conftest.frag conftest.in conftest.out
22663 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22664 cat $ac_file_inputs > conftest.in
22668 # Transform confdefs.h into a sed script conftest.vals that substitutes
22669 # the proper values into config.h.in to produce config.h. And first:
22670 # Protect against being on the right side of a sed subst in config.status.
22671 # Protect against being in an unquoted here document in config.status.
22672 rm -f conftest.vals
22673 cat > conftest.hdr <<\EOF
22676 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22680 sed -n -f conftest.hdr confdefs.h > conftest.vals
22683 # This sed command replaces #undef with comments. This is necessary, for
22684 # example, in the case of _POSIX_SOURCE, which is predefined and required
22685 # on some systems where configure will not decide to define it.
22686 cat >> conftest.vals <<\EOF
22687 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22690 # Break up conftest.vals because some shells have a limit on
22691 # the size of here documents, and old seds have small limits too.
22693 rm -f conftest.tail
22696 ac_lines=`grep -c . conftest.vals`
22697 # grep -c gives empty output for an empty file on some AIX systems.
22698 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22699 # Write a limited-size here document to conftest.frag.
22700 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22701 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22703 sed -f conftest.frag conftest.in > conftest.out
22705 mv conftest.out conftest.in
22706 ' >> $CONFIG_STATUS
22707 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22708 rm -f conftest.vals
22709 mv conftest.tail conftest.vals
22711 rm -f conftest.vals
22713 cat >> $CONFIG_STATUS <<\EOF
22714 rm -f conftest.frag conftest.h
22715 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22716 cat conftest.in >> conftest.h
22718 if cmp -s $ac_file conftest.h 2>/dev/null; then
22719 echo "$ac_file is unchanged"
22722 # Remove last slash and all that follows it. Not all systems have dirname.
22723 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22724 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22725 # The file is in a subdirectory.
22726 test ! -d "$ac_dir" && mkdir "$ac_dir"
22729 mv conftest.h $ac_file
22734 cat >> $CONFIG_STATUS <<EOF
22737 cat >> $CONFIG_STATUS <<\EOF
22740 echo Please run \"make depend\" to build dependencies
22744 chmod +x $CONFIG_STATUS
22745 rm -fr confdefs* $ac_clean_files
22746 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1