3 # from OpenLDAP: pkg/ldap/configure.in,v 1.408.2.14 2002/09/17 18:51:04 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-ipv6 enable IPv6 support [auto]"
43 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
45 --enable-x-compile enable cross compiling [no]"
47 --with-cyrus-sasl with Cyrus SASL support [auto]"
49 --with-fetch with freeBSD fetch URL support [auto]"
51 --with-kerberos with Kerberos support [auto]"
53 --with-readline with readline support [auto]"
55 --with-threads with threads [auto]"
57 --with-tls with TLS/SSL support [auto]"
59 --with-yielding-select with implicitly yielding select [auto]"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd [yes]"
66 --enable-aci enable per-object ACIs (experimental) [no]"
68 --enable-cleartext enable cleartext passwords [yes]"
70 --enable-crypt enable crypt(3) passwords [no]"
72 --enable-dynamic enable linking built binaries with dynamic libs [no]"
74 --enable-kpasswd enable Kerberos password verification [no]"
76 --enable-lmpasswd enable LAN Manager passwords [no]"
78 --enable-spasswd enable (Cyrus) SASL password verification [no]"
80 --enable-modules enable dynamic module support [no]"
82 --enable-phonetic enable phonetic/soundex [no]"
84 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
86 --enable-rlookups enable reverse lookups of client hostnames [no]"
88 --enable-slp enable SLPv2 support [no]"
90 --enable-wrappers enable tcp wrapper support [no]"
92 --enable-bdb enable Berkeley DB backend [yes]"
94 --with-bdb-module module type static|dynamic [static]"
96 --enable-dnssrv enable dnssrv backend [no]"
98 --with-dnssrv-module module type static|dynamic [static]"
100 --enable-ldap enable ldap backend [no]"
102 --with-ldap-module module type static|dynamic [static]"
104 --enable-ldbm enable ldbm backend [no]"
106 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
108 --with-ldbm-module module type static|dynamic [static]"
110 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
112 --enable-meta enable metadirectory backend [no]"
114 --with-meta-module module type static|dynamic [static]"
116 --enable-monitor enable monitor backend [no]"
118 --with-monitor-module module type static|dynamic [static]"
120 --enable-null enable null backend [no]"
122 --with-null-module module type static|dynamic [static]"
124 --enable-passwd enable passwd backend [no]"
126 --with-passwd-module module type static|dynamic [static]"
128 --enable-perl enable perl backend [no]"
130 --with-perl-module module type static|dynamic [static]"
132 --enable-shell enable shell backend [no]"
134 --with-shell-module module type static|dynamic [static]"
136 --enable-sql enable sql backend [no]"
138 --with-sql-module module type static|dynamic [static]"
141 SLURPD (Replication Daemon) Options:"
143 --enable-slurpd enable building slurpd [auto]"
146 Library Generation & Linking Options"
148 --enable-static[=PKGS] build static libraries [default=yes]"
150 --enable-shared[=PKGS] build shared libraries [default=yes]"
152 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
154 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
156 # Find the correct PATH separator. Usually this is `:', but
157 # DJGPP uses `;' like DOS.
158 if test "X${PATH_SEPARATOR+set}" != Xset; then
159 UNAME=${UNAME-`uname 2>/dev/null`}
161 *-DOS) lt_cv_sys_path_separator=';' ;;
162 *) lt_cv_sys_path_separator=':' ;;
164 PATH_SEPARATOR=$lt_cv_sys_path_separator
168 # Check that we are running under the correct shell.
169 SHELL=${CONFIG_SHELL-/bin/sh}
173 # Remove one level of quotation (which was required for Make).
174 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
179 if test "X$1" = X--no-reexec; then
180 # Discard the --no-reexec flag, and continue.
182 elif test "X$1" = X--fallback-echo; then
183 # Avoid inline document here, it may be left over
185 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
186 # Yippee, $echo works!
189 # Restart under the correct shell.
190 exec $SHELL "$0" --no-reexec ${1+"$@"}
193 if test "X$1" = X--fallback-echo; then
194 # used as fallback echo
202 # The HP-UX ksh and POSIX shell print the target directory to stdout
204 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
206 if test -z "$ECHO"; then
207 if test "X${echo_test_string+set}" != Xset; then
208 # find a string as large as possible, as long as the shell can cope with it
209 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
210 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
211 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
212 echo_test_string="`eval $cmd`" &&
213 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
220 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
221 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
222 test "X$echo_testing_string" = "X$echo_test_string"; then
225 # The Solaris, AIX, and Digital Unix default echo programs unquote
226 # backslashes. This makes it impossible to quote backslashes using
227 # echo "$something" | sed 's/\\/\\\\/g'
229 # So, first we look for a working echo in the user's PATH.
231 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
232 for dir in $PATH /usr/ucb; do
233 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
234 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
235 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
236 test "X$echo_testing_string" = "X$echo_test_string"; then
243 if test "X$echo" = Xecho; then
244 # We didn't find a better echo, so look for alternatives.
245 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
246 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
247 test "X$echo_testing_string" = "X$echo_test_string"; then
248 # This shell has a builtin print -r that does the trick.
250 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
251 test "X$CONFIG_SHELL" != X/bin/ksh; then
252 # If we have ksh, try running configure again with it.
253 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
254 export ORIGINAL_CONFIG_SHELL
255 CONFIG_SHELL=/bin/ksh
257 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
261 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
262 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
263 test "X$echo_testing_string" = "X$echo_test_string"; then
266 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
267 test "X$echo_testing_string" = 'X\t' &&
268 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
269 test "X$echo_testing_string" = "X$echo_test_string"; then
270 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
272 SHELL="$CONFIG_SHELL"
274 echo="$CONFIG_SHELL $0 --fallback-echo"
275 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
276 test "X$echo_testing_string" = 'X\t' &&
277 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
278 test "X$echo_testing_string" = "X$echo_test_string"; then
279 echo="$CONFIG_SHELL $0 --fallback-echo"
281 # maybe with a smaller string...
284 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
285 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
292 if test "$prev" != 'sed 50q "$0"'; then
293 echo_test_string=`eval $prev`
294 export echo_test_string
295 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
297 # Oops. We lost completely, so just stick with echo.
306 # Copy echo and quote the copy suitably for passing to libtool from
307 # the Makefile, instead of quoting the original, which is used later.
309 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
310 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
315 --disable-libtool-lock avoid locking (might break parallel builds)"
317 --with-pic try to use only PIC/non-PIC objects [default=use both]"
320 See INSTALL file for further details."
322 # Initialize some variables set by options.
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
326 cache_file=./config.cache
335 program_transform_name=s,x,x,
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 # Initialize some other variables.
359 SHELL=${CONFIG_SHELL-/bin/sh}
360 # Maximum number of lines to put in a shell here document.
367 # If the previous option needs an argument, assign it.
368 if test -n "$ac_prev"; then
369 eval "$ac_prev=\$ac_option"
375 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
379 # Accept the important Cygnus configure options, so we can diagnose typos.
383 -bindir | --bindir | --bindi | --bind | --bin | --bi)
385 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
386 bindir="$ac_optarg" ;;
388 -build | --build | --buil | --bui | --bu)
390 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
391 build="$ac_optarg" ;;
393 -cache-file | --cache-file | --cache-fil | --cache-fi \
394 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
395 ac_prev=cache_file ;;
396 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
397 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
398 cache_file="$ac_optarg" ;;
400 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
402 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
404 datadir="$ac_optarg" ;;
406 -disable-* | --disable-*)
407 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
412 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
413 eval "enable_${ac_feature}=no" ;;
415 -enable-* | --enable-*)
416 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
419 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
421 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
426 eval "enable_${ac_feature}='$ac_optarg'" ;;
428 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
429 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
430 | --exec | --exe | --ex)
431 ac_prev=exec_prefix ;;
432 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
433 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
434 | --exec=* | --exe=* | --ex=*)
435 exec_prefix="$ac_optarg" ;;
437 -gas | --gas | --ga | --g)
438 # Obsolete; use --with-gas.
441 -help | --help | --hel | --he)
442 # Omit some internal or obsolete options to make the list less imposing.
443 # This message is too long to be a string in the A/UX 3.1 sh.
445 Usage: configure [options] [host]
446 Options: [defaults in brackets after descriptions]
448 --cache-file=FILE cache test results in FILE
449 --help print this message
450 --no-create do not create output files
451 --quiet, --silent do not print \`checking...' messages
452 --version print the version of autoconf that created configure
453 Directory and file names:
454 --prefix=PREFIX install architecture-independent files in PREFIX
456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
458 --bindir=DIR user executables in DIR [EPREFIX/bin]
459 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
460 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
461 --datadir=DIR read-only architecture-independent data in DIR
463 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
464 --sharedstatedir=DIR modifiable architecture-independent data in DIR
466 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
467 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
468 --includedir=DIR C header files in DIR [PREFIX/include]
469 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
470 --infodir=DIR info documentation in DIR [PREFIX/info]
471 --mandir=DIR man documentation in DIR [PREFIX/man]
472 --srcdir=DIR find the sources in DIR [configure dir or ..]
473 --program-prefix=PREFIX prepend PREFIX to installed program names
474 --program-suffix=SUFFIX append SUFFIX to installed program names
475 --program-transform-name=PROGRAM
476 run sed PROGRAM on installed program names
480 --build=BUILD configure for building on BUILD [BUILD=HOST]
481 --host=HOST configure for HOST [guessed]
482 --target=TARGET configure for TARGET [TARGET=HOST]
483 Features and packages:
484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
488 --x-includes=DIR X include files are in DIR
489 --x-libraries=DIR X library files are in DIR
491 if test -n "$ac_help"; then
492 echo "--enable and --with options recognized:$ac_help"
496 -host | --host | --hos | --ho)
498 -host=* | --host=* | --hos=* | --ho=*)
501 -includedir | --includedir | --includedi | --included | --include \
502 | --includ | --inclu | --incl | --inc)
503 ac_prev=includedir ;;
504 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
505 | --includ=* | --inclu=* | --incl=* | --inc=*)
506 includedir="$ac_optarg" ;;
508 -infodir | --infodir | --infodi | --infod | --info | --inf)
510 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
511 infodir="$ac_optarg" ;;
513 -libdir | --libdir | --libdi | --libd)
515 -libdir=* | --libdir=* | --libdi=* | --libd=*)
516 libdir="$ac_optarg" ;;
518 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
519 | --libexe | --libex | --libe)
520 ac_prev=libexecdir ;;
521 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
522 | --libexe=* | --libex=* | --libe=*)
523 libexecdir="$ac_optarg" ;;
525 -localstatedir | --localstatedir | --localstatedi | --localstated \
526 | --localstate | --localstat | --localsta | --localst \
527 | --locals | --local | --loca | --loc | --lo)
528 ac_prev=localstatedir ;;
529 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
530 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
531 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
532 localstatedir="$ac_optarg" ;;
534 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
536 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
537 mandir="$ac_optarg" ;;
540 # Obsolete; use --without-fp.
543 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
547 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
548 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
551 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
552 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
553 | --oldin | --oldi | --old | --ol | --o)
554 ac_prev=oldincludedir ;;
555 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
556 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
557 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
558 oldincludedir="$ac_optarg" ;;
560 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
562 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
563 prefix="$ac_optarg" ;;
565 -program-prefix | --program-prefix | --program-prefi | --program-pref \
566 | --program-pre | --program-pr | --program-p)
567 ac_prev=program_prefix ;;
568 -program-prefix=* | --program-prefix=* | --program-prefi=* \
569 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
570 program_prefix="$ac_optarg" ;;
572 -program-suffix | --program-suffix | --program-suffi | --program-suff \
573 | --program-suf | --program-su | --program-s)
574 ac_prev=program_suffix ;;
575 -program-suffix=* | --program-suffix=* | --program-suffi=* \
576 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
577 program_suffix="$ac_optarg" ;;
579 -program-transform-name | --program-transform-name \
580 | --program-transform-nam | --program-transform-na \
581 | --program-transform-n | --program-transform- \
582 | --program-transform | --program-transfor \
583 | --program-transfo | --program-transf \
584 | --program-trans | --program-tran \
585 | --progr-tra | --program-tr | --program-t)
586 ac_prev=program_transform_name ;;
587 -program-transform-name=* | --program-transform-name=* \
588 | --program-transform-nam=* | --program-transform-na=* \
589 | --program-transform-n=* | --program-transform-=* \
590 | --program-transform=* | --program-transfor=* \
591 | --program-transfo=* | --program-transf=* \
592 | --program-trans=* | --program-tran=* \
593 | --progr-tra=* | --program-tr=* | --program-t=*)
594 program_transform_name="$ac_optarg" ;;
596 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
597 | -silent | --silent | --silen | --sile | --sil)
600 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
602 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
604 sbindir="$ac_optarg" ;;
606 -sharedstatedir | --sharedstatedir | --sharedstatedi \
607 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
608 | --sharedst | --shareds | --shared | --share | --shar \
610 ac_prev=sharedstatedir ;;
611 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
612 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
613 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
615 sharedstatedir="$ac_optarg" ;;
617 -site | --site | --sit)
619 -site=* | --site=* | --sit=*)
622 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
624 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
625 srcdir="$ac_optarg" ;;
627 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
628 | --syscon | --sysco | --sysc | --sys | --sy)
629 ac_prev=sysconfdir ;;
630 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
631 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
632 sysconfdir="$ac_optarg" ;;
634 -target | --target | --targe | --targ | --tar | --ta | --t)
636 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
637 target="$ac_optarg" ;;
639 -v | -verbose | --verbose | --verbos | --verbo | --verb)
642 -version | --version | --versio | --versi | --vers)
643 echo "configure generated by autoconf version 2.13.1"
647 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
648 # Reject names that are not valid shell variable names.
649 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
650 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
652 ac_package=`echo $ac_package| sed 's/-/_/g'`
657 eval "with_${ac_package}='$ac_optarg'" ;;
659 -without-* | --without-*)
660 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
661 # Reject names that are not valid shell variable names.
662 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
663 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
665 ac_package=`echo $ac_package| sed 's/-/_/g'`
666 eval "with_${ac_package}=no" ;;
669 # Obsolete; use --with-x.
672 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
673 | --x-incl | --x-inc | --x-in | --x-i)
674 ac_prev=x_includes ;;
675 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
676 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
677 x_includes="$ac_optarg" ;;
679 -x-libraries | --x-libraries | --x-librarie | --x-librari \
680 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
681 ac_prev=x_libraries ;;
682 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
683 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
684 x_libraries="$ac_optarg" ;;
686 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
690 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
691 echo "configure: warning: $ac_option: invalid host type" 1>&2
693 if test "x$nonopt" != xNONE; then
694 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
702 if test -n "$ac_prev"; then
703 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
706 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
708 # File descriptor usage:
711 # 2 errors and warnings
712 # 3 some systems may open it to /dev/tty
713 # 4 used on the Kubota Titan
714 # 6 checking for... messages and results
715 # 5 compiler messages saved in config.log
716 if test "$silent" = yes; then
724 This file contains any messages produced by compilers while
725 running configure, to aid debugging if configure makes a mistake.
728 # Strip out --no-create and --no-recursion so they do not pile up.
729 # Also quote any args containing shell metacharacters.
734 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
735 | --no-cr | --no-c) ;;
736 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
737 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
738 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
739 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
740 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
745 # Only set these to C if already set. These must not be set unconditionally
746 # because not all systems understand e.g. LANG=C (notably SCO).
747 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
748 # Non-C LC_CTYPE values break the ctype check.
749 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
750 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
751 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
752 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
755 rm -rf conftest* confdefs.h
756 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
759 # A filename unique to this package, relative to the directory that
760 # configure is in, which we can look for to find out if srcdir is correct.
761 ac_unique_file=build/version.sh
763 # Find the source files, if location was not specified.
764 if test -z "$srcdir"; then
765 ac_srcdir_defaulted=yes
766 # Try the directory containing this script, then its parent.
768 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
769 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
771 if test ! -r $srcdir/$ac_unique_file; then
775 ac_srcdir_defaulted=no
777 if test ! -r $srcdir/$ac_unique_file; then
778 if test "$ac_srcdir_defaulted" = yes; then
779 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
781 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
784 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
786 # Prefer explicitly selected file to automatically selected ones.
787 if test -z "$CONFIG_SITE"; then
788 if test "x$prefix" != xNONE; then
789 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
791 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
794 for ac_site_file in $CONFIG_SITE; do
795 if test -r "$ac_site_file"; then
796 echo "loading site script $ac_site_file"
803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
804 ac_cpp='$CPP $CPPFLAGS'
805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
807 cross_compiling=$ac_cv_prog_cc_cross
811 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
812 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
813 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
820 ac_n= ac_c='\c' ac_t=
824 # set unset (borrowed from autoconf 2.49c)
825 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
831 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
834 for ac_dir in build $srcdir/build; do
835 if test -f $ac_dir/install-sh; then
837 ac_install_sh="$ac_aux_dir/install-sh -c"
839 elif test -f $ac_dir/install.sh; then
841 ac_install_sh="$ac_aux_dir/install.sh -c"
843 elif test -f $ac_dir/shtool; then
845 ac_install_sh="$ac_aux_dir/shtool install -c"
849 if test -z "$ac_aux_dir"; then
850 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
852 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
853 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
854 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
856 eval `$ac_aux_dir/version.sh`
857 if test -z "$OL_STRING"; then
858 { echo "configure: error: could not determine version" 1>&2; exit 1; }
861 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
862 ac_cv_shtool="$ac_aux_dir/shtool"
864 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
867 SHTOOL="$ac_cv_shtool"
869 TB=`$SHTOOL echo -e %B`
870 TN=`$SHTOOL echo -e %b`
872 echo "Configuring $TB$OL_STRING$TN ..."
875 echo $ac_n "checking host system type""... $ac_c" 1>&6
876 echo "configure:877: checking host system type" >&5
877 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
879 # Make sure we can run config.sub.
880 if $ac_config_sub sun4 >/dev/null 2>&1; then :
881 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
884 ac_cv_host_alias=$host
885 case "$ac_cv_host_alias" in
889 if ac_cv_host_alias=`$ac_config_guess`; then :
890 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
892 *) ac_cv_host_alias=$nonopt ;;
896 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
897 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
898 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
899 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
901 echo $ac_n "(cached) $ac_c" 1>&6
904 echo "$ac_t""$ac_cv_host" 1>&6
907 host_alias=$ac_cv_host_alias
908 host_cpu=$ac_cv_host_cpu
909 host_vendor=$ac_cv_host_vendor
910 host_os=$ac_cv_host_os
916 echo $ac_n "checking target system type""... $ac_c" 1>&6
917 echo "configure:918: checking target system type" >&5
918 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
920 # Make sure we can run config.sub.
921 if $ac_config_sub sun4 >/dev/null 2>&1; then :
922 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
925 ac_cv_target_alias=$target
926 case "$ac_cv_target_alias" in
930 ac_cv_target_alias=$host_alias ;;
932 *) ac_cv_target_alias=$nonopt ;;
936 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
937 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
938 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
939 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
941 echo $ac_n "(cached) $ac_c" 1>&6
944 echo "$ac_t""$ac_cv_target" 1>&6
947 target_alias=$ac_cv_target_alias
948 target_cpu=$ac_cv_target_cpu
949 target_vendor=$ac_cv_target_vendor
950 target_os=$ac_cv_target_os
956 echo $ac_n "checking build system type""... $ac_c" 1>&6
957 echo "configure:958: checking build system type" >&5
958 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
960 # Make sure we can run config.sub.
961 if $ac_config_sub sun4 >/dev/null 2>&1; then :
962 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
965 ac_cv_build_alias=$build
966 case "$ac_cv_build_alias" in
970 ac_cv_build_alias=$host_alias ;;
972 *) ac_cv_build_alias=$nonopt ;;
976 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
977 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
978 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
979 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
981 echo $ac_n "(cached) $ac_c" 1>&6
984 echo "$ac_t""$ac_cv_build" 1>&6
987 build_alias=$ac_cv_build_alias
988 build_cpu=$ac_cv_build_cpu
989 build_vendor=$ac_cv_build_vendor
990 build_os=$ac_cv_build_os
996 # Do some error checking and defaulting for the host and target type.
998 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1001 # 1. You are not allowed to specify --host, --target, and nonopt at the
1003 # 2. Host defaults to nonopt.
1004 # 3. If nonopt is not specified, then host defaults to the current host,
1005 # as determined by config.guess.
1006 # 4. Target and build default to nonopt.
1007 # 5. If nonopt is not specified, then target and build default to host.
1009 # The aliases save the names the user supplied, while $host etc.
1010 # will get canonicalized.
1011 case $host---$target---$nonopt in
1012 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1013 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1016 test "$host_alias" != "$target_alias" &&
1017 test "$program_prefix$program_suffix$program_transform_name" = \
1019 program_prefix=${target_alias}-
1022 # Find a good install program. We prefer a C program (faster),
1023 # so one script is as good as another. But avoid the broken or
1024 # incompatible versions:
1025 # SysV /etc/install, /usr/sbin/install
1026 # SunOS /usr/etc/install
1027 # IRIX /sbin/install
1029 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1030 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1031 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1032 # ./install, which can be erroneously created by make from ./install.sh.
1033 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1034 echo "configure:1035: checking for a BSD compatible install" >&5
1035 if test -z "$INSTALL"; then
1036 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1039 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1040 for ac_dir in $PATH; do
1041 # Account for people who put trailing slashes in PATH elements.
1043 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1045 # OSF1 and SCO ODT 3.0 have their own names for install.
1046 # Don't use installbsd from OSF since it installs stuff as root
1048 for ac_prog in ginstall scoinst install; do
1049 if test -f $ac_dir/$ac_prog; then
1050 if test $ac_prog = install &&
1051 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1052 # AIX install. It has an incompatible calling convention.
1054 elif test $ac_prog = install &&
1055 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1056 # program-specific install script used by HP pwplus--don't use.
1059 ac_cv_path_install="$ac_dir/$ac_prog -c"
1070 if test "${ac_cv_path_install+set}" = set; then
1071 INSTALL="$ac_cv_path_install"
1073 # As a last resort, use the slow shell script. We don't cache a
1074 # path for INSTALL within a source directory, because that will
1075 # break other packages using the cache if that directory is
1076 # removed, or if the path is relative.
1077 INSTALL="$ac_install_sh"
1080 echo "$ac_t""$INSTALL" 1>&6
1082 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1083 # It thinks the first close brace ends the variable substitution.
1084 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1086 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1088 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1090 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1091 echo "configure:1092: checking whether build environment is sane" >&5
1094 echo timestamp > conftestfile
1095 # Do `set' in a subshell so we don't clobber the current shell's
1096 # arguments. Must try -L first in case configure is actually a
1097 # symlink; some systems play weird games with the mod time of symlinks
1098 # (eg FreeBSD returns the mod time of the symlink's containing
1101 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1102 if test "$*" = "X"; then
1104 set X `ls -t $srcdir/configure conftestfile`
1106 if test "$*" != "X $srcdir/configure conftestfile" \
1107 && test "$*" != "X conftestfile $srcdir/configure"; then
1109 # If neither matched, then we have a broken ls. This can happen
1110 # if, for instance, CONFIG_SHELL is bash and it inherits a
1111 # broken ls alias from the environment. This has actually
1112 # happened. Such a system could not be considered "sane".
1113 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1114 alias in your environment" 1>&2; exit 1; }
1117 test "$2" = conftestfile
1123 { echo "configure: error: newly created file is older than distributed files!
1124 Check your system clock" 1>&2; exit 1; }
1127 echo "$ac_t""yes" 1>&6
1128 if test "$program_transform_name" = s,x,x,; then
1129 program_transform_name=
1131 # Double any \ or $. echo might interpret backslashes.
1132 cat <<\EOF_SED > conftestsed
1133 s,\\,\\\\,g; s,\$,$$,g
1135 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1138 test "$program_prefix" != NONE &&
1139 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1140 # Use a double $ so make ignores it.
1141 test "$program_suffix" != NONE &&
1142 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1144 # sed with no file args requires a program.
1145 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1147 for ac_prog in mawk gawk nawk awk
1149 # Extract the first word of "$ac_prog", so it can be a program name with args.
1150 set dummy $ac_prog; ac_word=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 if test -n "$AWK"; then
1157 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1161 for ac_dir in $ac_dummy; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_AWK="$ac_prog"
1171 AWK="$ac_cv_prog_AWK"
1172 if test -n "$AWK"; then
1173 echo "$ac_t""$AWK" 1>&6
1175 echo "$ac_t""no" 1>&6
1178 test -n "$AWK" && break
1181 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether ${MAKE-make} sets \${MAKE}" >&5
1183 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1184 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1187 cat > conftestmake <<\EOF
1189 @echo 'ac_maketemp="${MAKE}"'
1191 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1192 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1193 if test -n "$ac_maketemp"; then
1194 eval ac_cv_prog_make_${ac_make}_set=yes
1196 eval ac_cv_prog_make_${ac_make}_set=no
1200 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1201 echo "$ac_t""yes" 1>&6
1204 echo "$ac_t""no" 1>&6
1205 SET_MAKE="MAKE=${MAKE-make}"
1214 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1215 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1220 missing_dir=`cd $ac_aux_dir && pwd`
1221 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1222 echo "configure:1223: checking for working aclocal" >&5
1223 # Run test in a subshell; some versions of sh will print an error if
1224 # an executable is not found, even if stderr is redirected.
1225 # Redirect stdin to placate older versions of autoconf. Sigh.
1226 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1228 echo "$ac_t""found" 1>&6
1230 ACLOCAL="$missing_dir/missing aclocal"
1231 echo "$ac_t""missing" 1>&6
1234 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1235 echo "configure:1236: checking for working autoconf" >&5
1236 # Run test in a subshell; some versions of sh will print an error if
1237 # an executable is not found, even if stderr is redirected.
1238 # Redirect stdin to placate older versions of autoconf. Sigh.
1239 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1241 echo "$ac_t""found" 1>&6
1243 AUTOCONF="$missing_dir/missing autoconf"
1244 echo "$ac_t""missing" 1>&6
1247 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1248 echo "configure:1249: checking for working automake" >&5
1249 # Run test in a subshell; some versions of sh will print an error if
1250 # an executable is not found, even if stderr is redirected.
1251 # Redirect stdin to placate older versions of autoconf. Sigh.
1252 if (automake --version) < /dev/null > /dev/null 2>&1; then
1254 echo "$ac_t""found" 1>&6
1256 AUTOMAKE="$missing_dir/missing automake"
1257 echo "$ac_t""missing" 1>&6
1260 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1261 echo "configure:1262: checking for working autoheader" >&5
1262 # Run test in a subshell; some versions of sh will print an error if
1263 # an executable is not found, even if stderr is redirected.
1264 # Redirect stdin to placate older versions of autoconf. Sigh.
1265 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1266 AUTOHEADER=autoheader
1267 echo "$ac_t""found" 1>&6
1269 AUTOHEADER="$missing_dir/missing autoheader"
1270 echo "$ac_t""missing" 1>&6
1273 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1274 echo "configure:1275: checking for working makeinfo" >&5
1275 # Run test in a subshell; some versions of sh will print an error if
1276 # an executable is not found, even if stderr is redirected.
1277 # Redirect stdin to placate older versions of autoconf. Sigh.
1278 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1280 echo "$ac_t""found" 1>&6
1282 MAKEINFO="$missing_dir/missing makeinfo"
1283 echo "$ac_t""missing" 1>&6
1286 install_sh="$missing_dir/install-sh"
1287 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1289 for ac_prog in gnutar gtar tar
1291 # Extract the first word of "$ac_prog", so it can be a program name with args.
1292 set dummy $ac_prog; ac_word=$2
1293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1294 echo "configure:1295: checking for $ac_word" >&5
1295 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 if test -n "$AMTAR"; then
1299 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1303 for ac_dir in $ac_dummy; do
1304 test -z "$ac_dir" && ac_dir=.
1305 if test -f $ac_dir/$ac_word; then
1306 ac_cv_prog_AMTAR="$ac_prog"
1313 AMTAR="$ac_cv_prog_AMTAR"
1314 if test -n "$AMTAR"; then
1315 echo "$ac_t""$AMTAR" 1>&6
1317 echo "$ac_t""no" 1>&6
1320 test -n "$AMTAR" && break
1325 if test -n "$AMTAR"; then
1326 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1331 cat >> confdefs.h <<EOF
1332 #define OPENLDAP_PACKAGE "$PACKAGE"
1335 cat >> confdefs.h <<EOF
1336 #define OPENLDAP_VERSION "$VERSION"
1340 cat >> confdefs.h <<EOF
1341 #define LDAP_VENDOR_VERSION $OL_API_INC
1344 cat >> confdefs.h <<EOF
1345 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1348 cat >> confdefs.h <<EOF
1349 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1352 cat >> confdefs.h <<EOF
1353 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1357 OPENLDAP_LIBVERSION=$OL_API_LIB
1359 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
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 ol_enable_kbind=${ol_enable_kbind-no}
1491 # OpenLDAP --enable-ipv6
1492 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1493 if test "${enable_ipv6+set}" = set; then
1494 enableval="$enable_ipv6"
1497 for ol_val in auto yes no ; do
1498 if test "$enableval" = "$ol_val" ; then
1502 if test "$ol_arg" = "invalid" ; then
1503 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1505 ol_enable_ipv6="$ol_arg"
1508 ol_enable_ipv6="auto"
1511 # OpenLDAP --enable-local
1512 # Check whether --enable-local or --disable-local was given.
1513 if test "${enable_local+set}" = set; then
1514 enableval="$enable_local"
1517 for ol_val in auto yes no ; do
1518 if test "$enableval" = "$ol_val" ; then
1522 if test "$ol_arg" = "invalid" ; then
1523 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1525 ol_enable_local="$ol_arg"
1528 ol_enable_local="auto"
1530 # end --enable-local
1531 # OpenLDAP --enable-x_compile
1532 # Check whether --enable-x_compile or --disable-x_compile was given.
1533 if test "${enable_x_compile+set}" = set; then
1534 enableval="$enable_x_compile"
1537 for ol_val in yes no ; do
1538 if test "$enableval" = "$ol_val" ; then
1542 if test "$ol_arg" = "invalid" ; then
1543 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1545 ol_enable_x_compile="$ol_arg"
1548 ol_enable_x_compile="no"
1550 # end --enable-x_compile
1553 # OpenLDAP --with-cyrus_sasl
1554 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1555 if test "${with_cyrus_sasl+set}" = set; then
1556 withval="$with_cyrus_sasl"
1559 for ol_val in auto yes no ; do
1560 if test "$withval" = "$ol_val" ; then
1564 if test "$ol_arg" = "invalid" ; then
1565 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1567 ol_with_cyrus_sasl="$ol_arg"
1570 ol_with_cyrus_sasl="auto"
1572 # end --with-cyrus_sasl
1574 # OpenLDAP --with-fetch
1575 # Check whether --with-fetch or --without-fetch was given.
1576 if test "${with_fetch+set}" = set; then
1577 withval="$with_fetch"
1580 for ol_val in auto yes no ; do
1581 if test "$withval" = "$ol_val" ; then
1585 if test "$ol_arg" = "invalid" ; then
1586 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1588 ol_with_fetch="$ol_arg"
1591 ol_with_fetch="auto"
1595 # OpenLDAP --with-kerberos
1596 # Check whether --with-kerberos or --without-kerberos was given.
1597 if test "${with_kerberos+set}" = set; then
1598 withval="$with_kerberos"
1601 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1602 if test "$withval" = "$ol_val" ; then
1606 if test "$ol_arg" = "invalid" ; then
1607 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1609 ol_with_kerberos="$ol_arg"
1612 ol_with_kerberos="auto"
1614 # end --with-kerberos
1616 # OpenLDAP --with-readline
1617 # Check whether --with-readline or --without-readline was given.
1618 if test "${with_readline+set}" = set; then
1619 withval="$with_readline"
1622 for ol_val in auto yes no ; do
1623 if test "$withval" = "$ol_val" ; then
1627 if test "$ol_arg" = "invalid" ; then
1628 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1630 ol_with_readline="$ol_arg"
1633 ol_with_readline="auto"
1635 # end --with-readline
1637 # OpenLDAP --with-threads
1638 # Check whether --with-threads or --without-threads was given.
1639 if test "${with_threads+set}" = set; then
1640 withval="$with_threads"
1643 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1644 if test "$withval" = "$ol_val" ; then
1648 if test "$ol_arg" = "invalid" ; then
1649 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1651 ol_with_threads="$ol_arg"
1654 ol_with_threads="auto"
1656 # end --with-threads
1658 # OpenLDAP --with-tls
1659 # Check whether --with-tls or --without-tls was given.
1660 if test "${with_tls+set}" = set; then
1664 for ol_val in auto ssleay openssl yes no ; do
1665 if test "$withval" = "$ol_val" ; then
1669 if test "$ol_arg" = "invalid" ; then
1670 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1672 ol_with_tls="$ol_arg"
1679 # OpenLDAP --with-yielding_select
1680 # Check whether --with-yielding_select or --without-yielding_select was given.
1681 if test "${with_yielding_select+set}" = set; then
1682 withval="$with_yielding_select"
1685 for ol_val in auto yes no manual ; do
1686 if test "$withval" = "$ol_val" ; then
1690 if test "$ol_arg" = "invalid" ; then
1691 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1693 ol_with_yielding_select="$ol_arg"
1696 ol_with_yielding_select="auto"
1698 # end --with-yielding_select
1702 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1703 if test "${with_xxslapdoptions+set}" = set; then
1704 withval="$with_xxslapdoptions"
1708 # OpenLDAP --enable-slapd
1709 # Check whether --enable-slapd or --disable-slapd was given.
1710 if test "${enable_slapd+set}" = set; then
1711 enableval="$enable_slapd"
1714 for ol_val in auto yes no ; do
1715 if test "$enableval" = "$ol_val" ; then
1719 if test "$ol_arg" = "invalid" ; then
1720 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1722 ol_enable_slapd="$ol_arg"
1725 ol_enable_slapd="yes"
1727 # end --enable-slapd
1728 # OpenLDAP --enable-aci
1729 # Check whether --enable-aci or --disable-aci was given.
1730 if test "${enable_aci+set}" = set; then
1731 enableval="$enable_aci"
1734 for ol_val in auto yes no ; do
1735 if test "$enableval" = "$ol_val" ; then
1739 if test "$ol_arg" = "invalid" ; then
1740 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1742 ol_enable_aci="$ol_arg"
1748 # OpenLDAP --enable-cleartext
1749 # Check whether --enable-cleartext or --disable-cleartext was given.
1750 if test "${enable_cleartext+set}" = set; then
1751 enableval="$enable_cleartext"
1754 for ol_val in auto yes no ; do
1755 if test "$enableval" = "$ol_val" ; then
1759 if test "$ol_arg" = "invalid" ; then
1760 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1762 ol_enable_cleartext="$ol_arg"
1765 ol_enable_cleartext="yes"
1767 # end --enable-cleartext
1768 # OpenLDAP --enable-crypt
1769 # Check whether --enable-crypt or --disable-crypt was given.
1770 if test "${enable_crypt+set}" = set; then
1771 enableval="$enable_crypt"
1774 for ol_val in auto yes no ; do
1775 if test "$enableval" = "$ol_val" ; then
1779 if test "$ol_arg" = "invalid" ; then
1780 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1782 ol_enable_crypt="$ol_arg"
1785 ol_enable_crypt="no"
1787 # end --enable-crypt
1788 # OpenLDAP --enable-dynamic
1789 # Check whether --enable-dynamic or --disable-dynamic was given.
1790 if test "${enable_dynamic+set}" = set; then
1791 enableval="$enable_dynamic"
1794 for ol_val in auto yes no ; do
1795 if test "$enableval" = "$ol_val" ; then
1799 if test "$ol_arg" = "invalid" ; then
1800 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1802 ol_enable_dynamic="$ol_arg"
1805 ol_enable_dynamic="no"
1807 # end --enable-dynamic
1808 # OpenLDAP --enable-kpasswd
1809 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1810 if test "${enable_kpasswd+set}" = set; then
1811 enableval="$enable_kpasswd"
1814 for ol_val in auto yes no ; do
1815 if test "$enableval" = "$ol_val" ; then
1819 if test "$ol_arg" = "invalid" ; then
1820 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1822 ol_enable_kpasswd="$ol_arg"
1825 ol_enable_kpasswd="no"
1827 # end --enable-kpasswd
1828 # OpenLDAP --enable-lmpasswd
1829 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1830 if test "${enable_lmpasswd+set}" = set; then
1831 enableval="$enable_lmpasswd"
1834 for ol_val in auto yes no ; do
1835 if test "$enableval" = "$ol_val" ; then
1839 if test "$ol_arg" = "invalid" ; then
1840 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1842 ol_enable_lmpasswd="$ol_arg"
1845 ol_enable_lmpasswd="no"
1847 # end --enable-lmpasswd
1848 # OpenLDAP --enable-spasswd
1849 # Check whether --enable-spasswd or --disable-spasswd was given.
1850 if test "${enable_spasswd+set}" = set; then
1851 enableval="$enable_spasswd"
1854 for ol_val in auto yes no ; do
1855 if test "$enableval" = "$ol_val" ; then
1859 if test "$ol_arg" = "invalid" ; then
1860 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1862 ol_enable_spasswd="$ol_arg"
1865 ol_enable_spasswd="no"
1867 # end --enable-spasswd
1868 # OpenLDAP --enable-modules
1869 # Check whether --enable-modules or --disable-modules was given.
1870 if test "${enable_modules+set}" = set; then
1871 enableval="$enable_modules"
1874 for ol_val in auto yes no ; do
1875 if test "$enableval" = "$ol_val" ; then
1879 if test "$ol_arg" = "invalid" ; then
1880 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1882 ol_enable_modules="$ol_arg"
1885 ol_enable_modules="no"
1887 # end --enable-modules
1888 ol_enable_multimaster=${ol_enable_multimaster-no}
1889 # OpenLDAP --enable-phonetic
1890 # Check whether --enable-phonetic or --disable-phonetic was given.
1891 if test "${enable_phonetic+set}" = set; then
1892 enableval="$enable_phonetic"
1895 for ol_val in auto yes no ; do
1896 if test "$enableval" = "$ol_val" ; then
1900 if test "$ol_arg" = "invalid" ; then
1901 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1903 ol_enable_phonetic="$ol_arg"
1906 ol_enable_phonetic="no"
1908 # end --enable-phonetic
1909 # OpenLDAP --enable-rewrite
1910 # Check whether --enable-rewrite or --disable-rewrite was given.
1911 if test "${enable_rewrite+set}" = set; then
1912 enableval="$enable_rewrite"
1915 for ol_val in auto yes no ; do
1916 if test "$enableval" = "$ol_val" ; then
1920 if test "$ol_arg" = "invalid" ; then
1921 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1923 ol_enable_rewrite="$ol_arg"
1926 ol_enable_rewrite="no"
1928 # end --enable-rewrite
1929 # OpenLDAP --enable-rlookups
1930 # Check whether --enable-rlookups or --disable-rlookups was given.
1931 if test "${enable_rlookups+set}" = set; then
1932 enableval="$enable_rlookups"
1935 for ol_val in auto yes no ; do
1936 if test "$enableval" = "$ol_val" ; then
1940 if test "$ol_arg" = "invalid" ; then
1941 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1943 ol_enable_rlookups="$ol_arg"
1946 ol_enable_rlookups="no"
1948 # end --enable-rlookups
1949 # OpenLDAP --enable-slp
1950 # Check whether --enable-slp or --disable-slp was given.
1951 if test "${enable_slp+set}" = set; then
1952 enableval="$enable_slp"
1955 for ol_val in auto yes no ; do
1956 if test "$enableval" = "$ol_val" ; then
1960 if test "$ol_arg" = "invalid" ; then
1961 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1963 ol_enable_slp="$ol_arg"
1969 # OpenLDAP --enable-wrappers
1970 # Check whether --enable-wrappers or --disable-wrappers was given.
1971 if test "${enable_wrappers+set}" = set; then
1972 enableval="$enable_wrappers"
1975 for ol_val in auto yes no ; do
1976 if test "$enableval" = "$ol_val" ; then
1980 if test "$ol_arg" = "invalid" ; then
1981 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1983 ol_enable_wrappers="$ol_arg"
1986 ol_enable_wrappers="no"
1988 # end --enable-wrappers
1990 # OpenLDAP --enable-bdb
1991 # Check whether --enable-bdb or --disable-bdb was given.
1992 if test "${enable_bdb+set}" = set; then
1993 enableval="$enable_bdb"
1996 for ol_val in auto yes no ; do
1997 if test "$enableval" = "$ol_val" ; then
2001 if test "$ol_arg" = "invalid" ; then
2002 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2004 ol_enable_bdb="$ol_arg"
2010 # OpenLDAP --with-bdb_module
2011 # Check whether --with-bdb_module or --without-bdb_module was given.
2012 if test "${with_bdb_module+set}" = set; then
2013 withval="$with_bdb_module"
2016 for ol_val in static dynamic ; do
2017 if test "$withval" = "$ol_val" ; then
2021 if test "$ol_arg" = "invalid" ; then
2022 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2024 ol_with_bdb_module="$ol_arg"
2027 ol_with_bdb_module="static"
2029 # end --with-bdb_module
2031 # OpenLDAP --enable-dnssrv
2032 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2033 if test "${enable_dnssrv+set}" = set; then
2034 enableval="$enable_dnssrv"
2037 for ol_val in auto yes no ; do
2038 if test "$enableval" = "$ol_val" ; then
2042 if test "$ol_arg" = "invalid" ; then
2043 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2045 ol_enable_dnssrv="$ol_arg"
2048 ol_enable_dnssrv="no"
2050 # end --enable-dnssrv
2051 # OpenLDAP --with-dnssrv_module
2052 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2053 if test "${with_dnssrv_module+set}" = set; then
2054 withval="$with_dnssrv_module"
2057 for ol_val in static dynamic ; do
2058 if test "$withval" = "$ol_val" ; then
2062 if test "$ol_arg" = "invalid" ; then
2063 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2065 ol_with_dnssrv_module="$ol_arg"
2068 ol_with_dnssrv_module="static"
2070 # end --with-dnssrv_module
2072 # OpenLDAP --enable-ldap
2073 # Check whether --enable-ldap or --disable-ldap was given.
2074 if test "${enable_ldap+set}" = set; then
2075 enableval="$enable_ldap"
2078 for ol_val in auto yes no ; do
2079 if test "$enableval" = "$ol_val" ; then
2083 if test "$ol_arg" = "invalid" ; then
2084 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2086 ol_enable_ldap="$ol_arg"
2092 # OpenLDAP --with-ldap_module
2093 # Check whether --with-ldap_module or --without-ldap_module was given.
2094 if test "${with_ldap_module+set}" = set; then
2095 withval="$with_ldap_module"
2098 for ol_val in static dynamic ; do
2099 if test "$withval" = "$ol_val" ; then
2103 if test "$ol_arg" = "invalid" ; then
2104 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2106 ol_with_ldap_module="$ol_arg"
2109 ol_with_ldap_module="static"
2111 # end --with-ldap_module
2113 # OpenLDAP --enable-ldbm
2114 # Check whether --enable-ldbm or --disable-ldbm was given.
2115 if test "${enable_ldbm+set}" = set; then
2116 enableval="$enable_ldbm"
2119 for ol_val in auto yes no ; do
2120 if test "$enableval" = "$ol_val" ; then
2124 if test "$ol_arg" = "invalid" ; then
2125 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2127 ol_enable_ldbm="$ol_arg"
2133 # OpenLDAP --with-ldbm_api
2134 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2135 if test "${with_ldbm_api+set}" = set; then
2136 withval="$with_ldbm_api"
2139 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2140 if test "$withval" = "$ol_val" ; then
2144 if test "$ol_arg" = "invalid" ; then
2145 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2147 ol_with_ldbm_api="$ol_arg"
2150 ol_with_ldbm_api="auto"
2152 # end --with-ldbm_api
2154 # OpenLDAP --with-ldbm_module
2155 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2156 if test "${with_ldbm_module+set}" = set; then
2157 withval="$with_ldbm_module"
2160 for ol_val in static dynamic ; do
2161 if test "$withval" = "$ol_val" ; then
2165 if test "$ol_arg" = "invalid" ; then
2166 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2168 ol_with_ldbm_module="$ol_arg"
2171 ol_with_ldbm_module="static"
2173 # end --with-ldbm_module
2175 # OpenLDAP --with-ldbm_type
2176 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2177 if test "${with_ldbm_type+set}" = set; then
2178 withval="$with_ldbm_type"
2181 for ol_val in auto btree hash ; do
2182 if test "$withval" = "$ol_val" ; then
2186 if test "$ol_arg" = "invalid" ; then
2187 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2189 ol_with_ldbm_type="$ol_arg"
2192 ol_with_ldbm_type="auto"
2194 # end --with-ldbm_type
2196 # OpenLDAP --enable-meta
2197 # Check whether --enable-meta or --disable-meta was given.
2198 if test "${enable_meta+set}" = set; then
2199 enableval="$enable_meta"
2202 for ol_val in auto yes no ; do
2203 if test "$enableval" = "$ol_val" ; then
2207 if test "$ol_arg" = "invalid" ; then
2208 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2210 ol_enable_meta="$ol_arg"
2216 # OpenLDAP --with-meta_module
2217 # Check whether --with-meta_module or --without-meta_module was given.
2218 if test "${with_meta_module+set}" = set; then
2219 withval="$with_meta_module"
2222 for ol_val in static dynamic ; do
2223 if test "$withval" = "$ol_val" ; then
2227 if test "$ol_arg" = "invalid" ; then
2228 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2230 ol_with_meta_module="$ol_arg"
2233 ol_with_meta_module="static"
2235 # end --with-meta_module
2237 # OpenLDAP --enable-monitor
2238 # Check whether --enable-monitor or --disable-monitor was given.
2239 if test "${enable_monitor+set}" = set; then
2240 enableval="$enable_monitor"
2243 for ol_val in auto yes no ; do
2244 if test "$enableval" = "$ol_val" ; then
2248 if test "$ol_arg" = "invalid" ; then
2249 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2251 ol_enable_monitor="$ol_arg"
2254 ol_enable_monitor="no"
2256 # end --enable-monitor
2257 # OpenLDAP --with-monitor_module
2258 # Check whether --with-monitor_module or --without-monitor_module was given.
2259 if test "${with_monitor_module+set}" = set; then
2260 withval="$with_monitor_module"
2263 for ol_val in static dynamic ; do
2264 if test "$withval" = "$ol_val" ; then
2268 if test "$ol_arg" = "invalid" ; then
2269 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2271 ol_with_monitor_module="$ol_arg"
2274 ol_with_monitor_module="static"
2276 # end --with-monitor_module
2278 # OpenLDAP --enable-null
2279 # Check whether --enable-null or --disable-null was given.
2280 if test "${enable_null+set}" = set; then
2281 enableval="$enable_null"
2284 for ol_val in auto yes no ; do
2285 if test "$enableval" = "$ol_val" ; then
2289 if test "$ol_arg" = "invalid" ; then
2290 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2292 ol_enable_null="$ol_arg"
2298 # OpenLDAP --with-null_module
2299 # Check whether --with-null_module or --without-null_module was given.
2300 if test "${with_null_module+set}" = set; then
2301 withval="$with_null_module"
2304 for ol_val in static dynamic ; do
2305 if test "$withval" = "$ol_val" ; then
2309 if test "$ol_arg" = "invalid" ; then
2310 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2312 ol_with_null_module="$ol_arg"
2315 ol_with_null_module="static"
2317 # end --with-null_module
2319 # OpenLDAP --enable-passwd
2320 # Check whether --enable-passwd or --disable-passwd was given.
2321 if test "${enable_passwd+set}" = set; then
2322 enableval="$enable_passwd"
2325 for ol_val in auto yes no ; do
2326 if test "$enableval" = "$ol_val" ; then
2330 if test "$ol_arg" = "invalid" ; then
2331 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2333 ol_enable_passwd="$ol_arg"
2336 ol_enable_passwd="no"
2338 # end --enable-passwd
2339 # OpenLDAP --with-passwd_module
2340 # Check whether --with-passwd_module or --without-passwd_module was given.
2341 if test "${with_passwd_module+set}" = set; then
2342 withval="$with_passwd_module"
2345 for ol_val in static dynamic ; do
2346 if test "$withval" = "$ol_val" ; then
2350 if test "$ol_arg" = "invalid" ; then
2351 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2353 ol_with_passwd_module="$ol_arg"
2356 ol_with_passwd_module="static"
2358 # end --with-passwd_module
2360 # OpenLDAP --enable-perl
2361 # Check whether --enable-perl or --disable-perl was given.
2362 if test "${enable_perl+set}" = set; then
2363 enableval="$enable_perl"
2366 for ol_val in auto yes no ; do
2367 if test "$enableval" = "$ol_val" ; then
2371 if test "$ol_arg" = "invalid" ; then
2372 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2374 ol_enable_perl="$ol_arg"
2380 # OpenLDAP --with-perl_module
2381 # Check whether --with-perl_module or --without-perl_module was given.
2382 if test "${with_perl_module+set}" = set; then
2383 withval="$with_perl_module"
2386 for ol_val in static dynamic ; do
2387 if test "$withval" = "$ol_val" ; then
2391 if test "$ol_arg" = "invalid" ; then
2392 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2394 ol_with_perl_module="$ol_arg"
2397 ol_with_perl_module="static"
2399 # end --with-perl_module
2401 # OpenLDAP --enable-shell
2402 # Check whether --enable-shell or --disable-shell was given.
2403 if test "${enable_shell+set}" = set; then
2404 enableval="$enable_shell"
2407 for ol_val in auto yes no ; do
2408 if test "$enableval" = "$ol_val" ; then
2412 if test "$ol_arg" = "invalid" ; then
2413 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2415 ol_enable_shell="$ol_arg"
2418 ol_enable_shell="no"
2420 # end --enable-shell
2421 # OpenLDAP --with-shell_module
2422 # Check whether --with-shell_module or --without-shell_module was given.
2423 if test "${with_shell_module+set}" = set; then
2424 withval="$with_shell_module"
2427 for ol_val in static dynamic ; do
2428 if test "$withval" = "$ol_val" ; then
2432 if test "$ol_arg" = "invalid" ; then
2433 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2435 ol_with_shell_module="$ol_arg"
2438 ol_with_shell_module="static"
2440 # end --with-shell_module
2442 # OpenLDAP --enable-sql
2443 # Check whether --enable-sql or --disable-sql was given.
2444 if test "${enable_sql+set}" = set; then
2445 enableval="$enable_sql"
2448 for ol_val in auto yes no ; do
2449 if test "$enableval" = "$ol_val" ; then
2453 if test "$ol_arg" = "invalid" ; then
2454 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2456 ol_enable_sql="$ol_arg"
2462 # OpenLDAP --with-sql_module
2463 # Check whether --with-sql_module or --without-sql_module was given.
2464 if test "${with_sql_module+set}" = set; then
2465 withval="$with_sql_module"
2468 for ol_val in static dynamic ; do
2469 if test "$withval" = "$ol_val" ; then
2473 if test "$ol_arg" = "invalid" ; then
2474 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2476 ol_with_sql_module="$ol_arg"
2479 ol_with_sql_module="static"
2481 # end --with-sql_module
2484 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2485 if test "${with_xxslurpdoptions+set}" = set; then
2486 withval="$with_xxslurpdoptions"
2490 # OpenLDAP --enable-slurpd
2491 # Check whether --enable-slurpd or --disable-slurpd was given.
2492 if test "${enable_slurpd+set}" = set; then
2493 enableval="$enable_slurpd"
2496 for ol_val in auto yes no ; do
2497 if test "$enableval" = "$ol_val" ; then
2501 if test "$ol_arg" = "invalid" ; then
2502 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2504 ol_enable_slurpd="$ol_arg"
2507 ol_enable_slurpd="auto"
2509 # end --enable-slurpd
2511 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2512 if test "${with_xxliboptions+set}" = set; then
2513 withval="$with_xxliboptions"
2517 # Check whether --enable-static or --disable-static was given.
2518 if test "${enable_static+set}" = set; then
2519 enableval="$enable_static"
2520 p=${PACKAGE-default}
2522 yes) enable_static=yes ;;
2523 no) enable_static=no ;;
2526 # Look at the argument we got. We use all the common list separators.
2527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2528 for pkg in $enableval; do
2529 if test "X$pkg" = "X$p"; then
2540 # Check whether --enable-shared or --disable-shared was given.
2541 if test "${enable_shared+set}" = set; then
2542 enableval="$enable_shared"
2543 p=${PACKAGE-default}
2545 yes) enable_shared=yes ;;
2546 no) enable_shared=no ;;
2549 # Look at the argument we got. We use all the common list separators.
2550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2551 for pkg in $enableval; do
2552 if test "X$pkg" = "X$p"; then
2566 if test $ol_enable_slapd = no ; then
2567 if test $ol_enable_bdb = yes ; then
2568 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2570 if test $ol_enable_dnssrv = yes ; then
2571 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2573 if test $ol_enable_ldap = yes ; then
2574 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2576 if test $ol_enable_ldbm = yes ; then
2577 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2579 if test $ol_enable_meta = yes ; then
2580 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2582 if test $ol_enable_monitor = yes ; then
2583 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2585 if test $ol_enable_null = yes ; then
2586 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2588 if test $ol_enable_passwd = yes ; then
2589 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2591 if test $ol_enable_perl = yes ; then
2592 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2594 if test $ol_enable_shell = yes ; then
2595 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2597 if test $ol_enable_sql = yes ; then
2598 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2600 if test $ol_enable_modules = yes ; then
2601 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2603 if test $ol_enable_multimaster = yes ; then
2604 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2606 if test $ol_enable_wrappers = yes ; then
2607 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2609 if test $ol_enable_phonetic = yes ; then
2610 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2612 if test $ol_enable_rlookups = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2615 if test $ol_enable_aci = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2618 if test $ol_with_ldbm_api != auto ; then
2619 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2621 if test $ol_with_ldbm_type != auto ; then
2622 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2624 if test $ol_with_bdb_module != static ; then
2625 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2627 if test $ol_with_dnssrv_module != static ; then
2628 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2630 if test $ol_with_ldap_module != static ; then
2631 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2633 if test $ol_with_ldbm_module != static ; then
2634 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2636 if test $ol_with_meta_module != static ; then
2637 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2639 if test $ol_with_monitor_module != static ; then
2640 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2642 if test $ol_with_null_module != static ; then
2643 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2645 if test $ol_with_passwd_module != static ; then
2646 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2648 if test $ol_with_perl_module != static ; then
2649 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2651 if test $ol_with_shell_module != static ; then
2652 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2654 if test $ol_with_sql_module != static ; then
2655 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2657 if test $ol_enable_slurpd = yes ; then
2658 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2660 if test $ol_enable_rewrite = yes ; then
2661 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2664 # force settings to no
2670 ol_enable_monitor=no
2677 ol_enable_modules=no
2678 ol_enable_multimaster=no
2679 ol_enable_phonetic=no
2680 ol_enable_rlookups=no
2682 ol_enable_wrappers=no
2683 ol_enable_dynamic=no
2686 ol_with_ldbm_type=no
2688 ol_with_bdb_module=static
2689 ol_with_dnssrv_module=static
2690 ol_with_ldap_module=static
2691 ol_with_ldbm_module=static
2692 ol_with_meta_module=static
2693 ol_with_monitor_module=static
2694 ol_with_null_module=static
2695 ol_with_passwd_module=static
2696 ol_with_perl_module=static
2697 ol_with_shell_module=static
2698 ol_with_sql_module=static
2702 ol_enable_rewrite=no
2704 elif test $ol_enable_ldbm = no ; then
2706 if test $ol_with_ldbm_api != auto ; then
2707 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2710 if test $ol_with_ldbm_type != auto ; then
2711 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2714 if test $ol_with_ldbm_module != static ; then
2715 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2718 if test $ol_enable_modules != yes -a \
2719 $ol_enable_bdb = no -a \
2720 $ol_enable_dnssrv = no -a \
2721 $ol_enable_ldap = no -a \
2722 $ol_enable_meta = no -a \
2723 $ol_enable_monitor = no -a \
2724 $ol_enable_null = no -a \
2725 $ol_enable_passwd = no -a \
2726 $ol_enable_perl = no -a \
2727 $ol_enable_shell = no -a \
2728 $ol_enable_sql = no ; then
2730 if test $ol_enable_slapd = yes ; then
2731 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2733 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2739 ol_with_ldbm_type=no
2740 ol_with_ldbm_module=static
2742 if test $ol_enable_bdb != no ; then
2743 ol_with_ldbm_api=berkeley
2747 if test $ol_with_ldbm_api = gdbm -a \
2748 $ol_with_ldbm_type = btree ; then
2749 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2751 if test $ol_with_ldbm_api = mdbm -a \
2752 $ol_with_ldbm_type = btree ; then
2753 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2755 if test $ol_with_ldbm_api = ndbm -a \
2756 $ol_with_ldbm_type = btree ; then
2757 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2760 if test $ol_enable_bdb = yes ; then
2761 if test $ol_with_ldbm_api = auto ; then
2762 ol_with_ldbm_api=berkeley
2763 elif test $ol_with_ldbm_api != berkeley ; then
2764 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2767 elif test $ol_enable_bdb = auto ; then
2768 if test $ol_with_ldbm_api != berkeley \
2769 -o $ol_with_ldbm_api != auto ; then
2770 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2776 if test $ol_enable_slurpd = yes ; then
2777 if test $ol_with_threads = no ; then
2778 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2782 if test $ol_enable_lmpasswd = yes ; then
2783 if test $ol_with_tls = no ; then
2784 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2788 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2789 if test $ol_with_kerberos = no ; then
2790 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2791 elif test $ol_with_kerberos = auto ; then
2792 ol_with_kerberos=yes
2795 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2796 if test $ol_with_kerberos = auto ; then
2798 elif test $ol_with_kerberos != no ; then
2799 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2804 if test $ol_enable_spasswd = yes ; then
2805 if test $ol_with_cyrus_sasl = no ; then
2806 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2808 ol_with_cyrus_sasl=yes
2811 echo "$ac_t""done" 1>&6
2839 BUILD_BDB_DYNAMIC=static
2840 BUILD_DNSSRV_DYNAMIC=static
2841 BUILD_LDAP_DYNAMIC=static
2842 BUILD_LDBM_DYNAMIC=static
2843 BUILD_META_DYNAMIC=static
2844 BUILD_MONITOR_DYNAMIC=static
2845 BUILD_NULL_DYNAMIC=static
2846 BUILD_PASSWD_DYNAMIC=static
2847 BUILD_PERL_DYNAMIC=static
2848 BUILD_SHELL_DYNAMIC=static
2849 BUILD_SQL_DYNAMIC=static
2851 SLAPD_MODULES_LDFLAGS=
2852 SLAPD_MODULES_CPPFLAGS=
2854 SLAPD_STATIC_BACKENDS=
2855 SLAPD_DYNAMIC_BACKENDS=
2877 # Find a good install program. We prefer a C program (faster),
2878 # so one script is as good as another. But avoid the broken or
2879 # incompatible versions:
2880 # SysV /etc/install, /usr/sbin/install
2881 # SunOS /usr/etc/install
2882 # IRIX /sbin/install
2884 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2885 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2886 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2887 # ./install, which can be erroneously created by make from ./install.sh.
2888 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2889 echo "configure:2890: checking for a BSD compatible install" >&5
2890 if test -z "$INSTALL"; then
2891 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2895 for ac_dir in $PATH; do
2896 # Account for people who put trailing slashes in PATH elements.
2898 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2900 # OSF1 and SCO ODT 3.0 have their own names for install.
2901 # Don't use installbsd from OSF since it installs stuff as root
2903 for ac_prog in ginstall scoinst install; do
2904 if test -f $ac_dir/$ac_prog; then
2905 if test $ac_prog = install &&
2906 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2907 # AIX install. It has an incompatible calling convention.
2909 elif test $ac_prog = install &&
2910 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2911 # program-specific install script used by HP pwplus--don't use.
2914 ac_cv_path_install="$ac_dir/$ac_prog -c"
2925 if test "${ac_cv_path_install+set}" = set; then
2926 INSTALL="$ac_cv_path_install"
2928 # As a last resort, use the slow shell script. We don't cache a
2929 # path for INSTALL within a source directory, because that will
2930 # break other packages using the cache if that directory is
2931 # removed, or if the path is relative.
2932 INSTALL="$ac_install_sh"
2935 echo "$ac_t""$INSTALL" 1>&6
2937 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2938 # It thinks the first close brace ends the variable substitution.
2939 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2941 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2943 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2946 cat >> confdefs.h <<\EOF
2947 #define HAVE_MKVERSION 1
2955 *-*-aix*) if test -z "$CC" ; then
2956 case "$ol_with_threads" in
2957 auto | yes | posix) ol_aix_threads=yes ;;
2963 if test $ol_aix_threads = yes ; then
2964 if test -z "${CC}" ; then
2965 for ac_prog in cc_r xlc_r cc
2967 # Extract the first word of "$ac_prog", so it can be a program name with args.
2968 set dummy $ac_prog; ac_word=$2
2969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2970 echo "configure:2971: checking for $ac_word" >&5
2971 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2979 for ac_dir in $ac_dummy; do
2980 test -z "$ac_dir" && ac_dir=.
2981 if test -f $ac_dir/$ac_word; then
2982 ac_cv_prog_CC="$ac_prog"
2990 if test -n "$CC"; then
2991 echo "$ac_t""$CC" 1>&6
2993 echo "$ac_t""no" 1>&6
2996 test -n "$CC" && break
3000 if test "$CC" = cc ; then
3001 if test $ol_with_threads != auto ; then
3002 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3004 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3010 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3011 ol_with_threads=posix
3012 ol_cv_pthread_create=yes
3016 if test -z "${CC}"; then
3017 for ac_prog in cc gcc
3019 # Extract the first word of "$ac_prog", so it can be a program name with args.
3020 set dummy $ac_prog; ac_word=$2
3021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3022 echo "configure:3023: checking for $ac_word" >&5
3023 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3031 for ac_dir in $ac_dummy; do
3032 test -z "$ac_dir" && ac_dir=.
3033 if test -f $ac_dir/$ac_word; then
3034 ac_cv_prog_CC="$ac_prog"
3042 if test -n "$CC"; then
3043 echo "$ac_t""$CC" 1>&6
3045 echo "$ac_t""no" 1>&6
3048 test -n "$CC" && break
3050 test -n "$CC" || CC="missing"
3053 if test "${CC}" = "missing" ; then
3054 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3058 if test -z "${AR}"; then
3059 for ac_prog in ar gar
3061 # Extract the first word of "$ac_prog", so it can be a program name with args.
3062 set dummy $ac_prog; ac_word=$2
3063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3064 echo "configure:3065: checking for $ac_word" >&5
3065 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 if test -n "$AR"; then
3069 ac_cv_prog_AR="$AR" # Let the user override the test.
3071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3073 for ac_dir in $ac_dummy; do
3074 test -z "$ac_dir" && ac_dir=.
3075 if test -f $ac_dir/$ac_word; then
3076 ac_cv_prog_AR="$ac_prog"
3084 if test -n "$AR"; then
3085 echo "$ac_t""$AR" 1>&6
3087 echo "$ac_t""no" 1>&6
3090 test -n "$AR" && break
3092 test -n "$AR" || AR="missing"
3095 if test "${AR}" = "missing" ; then
3096 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3102 # Find the correct PATH separator. Usually this is `:', but
3103 # DJGPP uses `;' like DOS.
3104 if test "X${PATH_SEPARATOR+set}" != Xset; then
3105 UNAME=${UNAME-`uname 2>/dev/null`}
3107 *-DOS) lt_cv_sys_path_separator=';' ;;
3108 *) lt_cv_sys_path_separator=':' ;;
3110 PATH_SEPARATOR=$lt_cv_sys_path_separator
3113 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3114 echo "configure:3115: checking for Cygwin environment" >&5
3115 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 cat > conftest.$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3125 #define __CYGWIN__ __CYGWIN32__
3130 if { (eval echo configure:3131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3142 echo "$ac_t""$ac_cv_cygwin" 1>&6
3144 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3145 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3146 echo "configure:3147: checking for mingw32 environment" >&5
3147 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3150 cat > conftest.$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3158 if { (eval echo configure:3159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3162 echo "configure: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3170 echo "$ac_t""$ac_cv_mingw32" 1>&6
3172 test "$ac_cv_mingw32" = yes && MINGW32=yes
3173 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3174 echo "configure:3175: checking for EMX OS/2 environment" >&5
3175 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 cat > conftest.$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3186 if { (eval echo configure:3187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3190 echo "configure: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3198 echo "$ac_t""$ac_cv_emxos2" 1>&6
3200 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3201 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3202 echo "configure:3203: checking how to run the C preprocessor" >&5
3203 # On Suns, sometimes $CPP names a directory.
3204 if test -n "$CPP" && test -d "$CPP"; then
3207 if test -z "$CPP"; then
3208 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 # This must be in double quotes, not single quotes, because CPP may get
3212 # substituted into the Makefile and "${CC-cc}" will confuse make.
3214 # On the NeXT, cc -E runs the code through the compiler's parser,
3215 # not just through cpp.
3216 cat > conftest.$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3223 { (eval echo configure:3224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3225 if test -z "$ac_err"; then
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 CPP="${CC-cc} -E -traditional-cpp"
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3240 { (eval echo configure:3241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3242 if test -z "$ac_err"; then
3246 echo "configure: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3249 CPP="${CC-cc} -nologo -E"
3250 cat > conftest.$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3257 { (eval echo configure:3258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3259 if test -z "$ac_err"; then
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3273 ac_cv_prog_CPP="$CPP"
3275 CPP="$ac_cv_prog_CPP"
3277 ac_cv_prog_CPP="$CPP"
3279 echo "$ac_t""$CPP" 1>&6
3281 # Check whether --enable-fast-install or --disable-fast-install was given.
3282 if test "${enable_fast_install+set}" = set; then
3283 enableval="$enable_fast_install"
3284 p=${PACKAGE-default}
3286 yes) enable_fast_install=yes ;;
3287 no) enable_fast_install=no ;;
3289 enable_fast_install=no
3290 # Look at the argument we got. We use all the common list separators.
3291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3292 for pkg in $enableval; do
3293 if test "X$pkg" = "X$p"; then
3294 enable_fast_install=yes
3301 enable_fast_install=yes
3304 # Extract the first word of "gcc", so it can be a program name with args.
3305 set dummy gcc; ac_word=$2
3306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3307 echo "configure:3308: checking for $ac_word" >&5
3308 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3316 for ac_dir in $ac_dummy; do
3317 test -z "$ac_dir" && ac_dir=.
3318 if test -f $ac_dir/$ac_word; then
3327 if test -n "$CC"; then
3328 echo "$ac_t""$CC" 1>&6
3330 echo "$ac_t""no" 1>&6
3333 if test -z "$CC"; then
3334 # Extract the first word of "cc", so it can be a program name with args.
3335 set dummy cc; ac_word=$2
3336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3337 echo "configure:3338: checking for $ac_word" >&5
3338 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3347 for ac_dir in $ac_dummy; do
3348 test -z "$ac_dir" && ac_dir=.
3349 if test -f $ac_dir/$ac_word; then
3350 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3351 ac_prog_rejected=yes
3359 if test $ac_prog_rejected = yes; then
3360 # We found a bogon in the path, so make sure we never use it.
3361 set dummy $ac_cv_prog_CC
3363 if test $# -gt 0; then
3364 # We chose a different compiler from the bogus one.
3365 # However, it has the same basename, so the bogon will be chosen
3366 # first if we set CC to just the basename; use the full file name.
3368 set dummy "$ac_dir/$ac_word" "$@"
3376 if test -n "$CC"; then
3377 echo "$ac_t""$CC" 1>&6
3379 echo "$ac_t""no" 1>&6
3382 if test -z "$CC"; then
3383 case "`uname -s`" in
3384 *win32* | *WIN32* | *CYGWIN*)
3385 # Extract the first word of "cl", so it can be a program name with args.
3386 set dummy cl; ac_word=$2
3387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3388 echo "configure:3389: checking for $ac_word" >&5
3389 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3397 for ac_dir in $ac_dummy; do
3398 test -z "$ac_dir" && ac_dir=.
3399 if test -f $ac_dir/$ac_word; then
3408 if test -n "$CC"; then
3409 echo "$ac_t""$CC" 1>&6
3411 echo "$ac_t""no" 1>&6
3416 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3419 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3420 echo "configure:3421: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3423 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3426 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3427 cross_compiling=$ac_cv_prog_cc_cross
3429 cat > conftest.$ac_ext << EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3436 if { (eval echo configure:3437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3437 ac_cv_prog_cc_works=yes
3438 # If we can't run a trivial program, we are probably using a cross compiler.
3439 if (./conftest; exit) 2>/dev/null; then
3440 ac_cv_prog_cc_cross=no
3442 ac_cv_prog_cc_cross=yes
3445 echo "configure: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3447 ac_cv_prog_cc_works=no
3451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3455 cross_compiling=$ac_cv_prog_cc_cross
3457 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3458 if test $ac_cv_prog_cc_works = no; then
3459 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3461 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3462 echo "configure:3463: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3463 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3464 cross_compiling=$ac_cv_prog_cc_cross
3466 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3467 echo "configure:3468: checking whether we are using GNU C" >&5
3468 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 cat > conftest.c <<EOF
3476 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3483 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3485 if test $ac_cv_prog_gcc = yes; then
3491 ac_test_CFLAGS="${CFLAGS+set}"
3492 ac_save_CFLAGS="$CFLAGS"
3494 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3495 echo "configure:3496: checking whether ${CC-cc} accepts -g" >&5
3496 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 echo 'void f(){}' > conftest.c
3500 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3509 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3510 if test "$ac_test_CFLAGS" = set; then
3511 CFLAGS="$ac_save_CFLAGS"
3512 elif test $ac_cv_prog_cc_g = yes; then
3513 if test "$GCC" = yes; then
3519 if test "$GCC" = yes; then
3526 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3527 if test "${with_gnu_ld+set}" = set; then
3528 withval="$with_gnu_ld"
3529 test "$withval" = no || with_gnu_ld=yes
3535 if test "$GCC" = yes; then
3536 # Check if gcc -print-prog-name=ld gives a path.
3537 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3538 echo "configure:3539: checking for ld used by GCC" >&5
3541 # gcc leaves a trailing carriage return which upsets mingw
3542 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3544 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3547 # Accept absolute paths.
3548 [\\/]* | [A-Za-z]:[\\/]*)
3549 re_direlt='/[^/][^/]*/\.\./'
3550 # Canonicalize the path of ld
3551 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3552 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3553 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3555 test -z "$LD" && LD="$ac_prog"
3558 # If it fails, then pretend we aren't using GCC.
3562 # If it is relative, then search for the first ld in PATH.
3566 elif test "$with_gnu_ld" = yes; then
3567 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3568 echo "configure:3569: checking for GNU ld" >&5
3570 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3571 echo "configure:3572: checking for non-GNU ld" >&5
3573 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3576 if test -z "$LD"; then
3577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3578 for ac_dir in $PATH; do
3579 test -z "$ac_dir" && ac_dir=.
3580 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3581 lt_cv_path_LD="$ac_dir/$ac_prog"
3582 # Check to see if the program is GNU ld. I'd rather use --version,
3583 # but apparently some GNU ld's only accept -v.
3584 # Break only if it was the GNU/non-GNU ld that we prefer.
3585 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3586 test "$with_gnu_ld" != no && break
3588 test "$with_gnu_ld" != yes && break
3594 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3599 if test -n "$LD"; then
3600 echo "$ac_t""$LD" 1>&6
3602 echo "$ac_t""no" 1>&6
3604 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3605 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3606 echo "configure:3607: checking if the linker ($LD) is GNU ld" >&5
3607 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3611 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3612 lt_cv_prog_gnu_ld=yes
3614 lt_cv_prog_gnu_ld=no
3618 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3619 with_gnu_ld=$lt_cv_prog_gnu_ld
3622 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3623 echo "configure:3624: checking for $LD option to reload object files" >&5
3624 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3625 echo $ac_n "(cached) $ac_c" 1>&6
3627 lt_cv_ld_reload_flag='-r'
3630 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3631 reload_flag=$lt_cv_ld_reload_flag
3632 test -n "$reload_flag" && reload_flag=" $reload_flag"
3634 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3635 echo "configure:3636: checking for BSD-compatible nm" >&5
3636 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3639 if test -n "$NM"; then
3640 # Let the user override the test.
3643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3644 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3645 test -z "$ac_dir" && ac_dir=.
3646 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3647 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3648 # Check to see if the nm accepts a BSD-compat flag.
3649 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3650 # nm: unknown option "B" ignored
3651 # Tru64's nm complains that /dev/null is an invalid object file
3652 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3653 lt_cv_path_NM="$tmp_nm -B"
3655 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3656 lt_cv_path_NM="$tmp_nm -p"
3659 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3660 continue # so that we can try to find one that supports BSD flags
3665 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3670 echo "$ac_t""$NM" 1>&6
3672 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3673 echo "configure:3674: checking whether ln -s works" >&5
3674 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3678 if ln -s X conftestdata 2>/dev/null
3681 ac_cv_prog_LN_S="ln -s"
3686 LN_S="$ac_cv_prog_LN_S"
3687 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3688 echo "$ac_t""yes" 1>&6
3690 echo "$ac_t""no" 1>&6
3693 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3694 echo "configure:3695: checking how to recognise dependant libraries" >&5
3695 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3698 lt_cv_file_magic_cmd='$MAGIC_CMD'
3699 lt_cv_file_magic_test_file=
3700 lt_cv_deplibs_check_method='unknown'
3701 # Need to set the preceding variable on all platforms that support
3702 # interlibrary dependencies.
3703 # 'none' -- dependencies not supported.
3704 # `unknown' -- same as none, but documents that we really don't know.
3705 # 'pass_all' -- all dependencies passed with no checks.
3706 # 'test_compile' -- check by making test program.
3707 # 'file_magic [[regex]]' -- check by looking for files in library path
3708 # which responds to the $file_magic_cmd with a given egrep regex.
3709 # If you have `file' or equivalent on your system and you're not sure
3710 # whether `pass_all' will *always* work, you probably want this one.
3714 lt_cv_deplibs_check_method=pass_all
3718 lt_cv_deplibs_check_method=pass_all
3722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3723 lt_cv_file_magic_cmd='/usr/bin/file -L'
3724 lt_cv_file_magic_test_file=/shlib/libc.so
3727 cygwin* | mingw* | pw32*)
3728 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3729 lt_cv_file_magic_cmd='$OBJDUMP -f'
3732 darwin* | rhapsody*)
3733 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3734 lt_cv_file_magic_cmd='/usr/bin/file -L'
3736 rhapsody* | darwin1.[012])
3737 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3740 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3746 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3749 # Not sure whether the presence of OpenBSD here was a mistake.
3750 # Let's accept both of them until this is cleared up.
3751 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3752 lt_cv_file_magic_cmd=/usr/bin/file
3753 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3757 lt_cv_deplibs_check_method=pass_all
3762 lt_cv_deplibs_check_method=pass_all
3766 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3767 lt_cv_file_magic_cmd=/usr/bin/file
3768 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3774 # this will be overridden with pass_all, but let us keep it just in case
3775 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3779 *-32|*"-32 ") libmagic=32-bit;;
3780 *-n32|*"-n32 ") libmagic=N32;;
3781 *-64|*"-64 ") libmagic=64-bit;;
3782 *) libmagic=never-match;;
3784 # this will be overridden with pass_all, but let us keep it just in case
3785 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3788 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3789 lt_cv_deplibs_check_method=pass_all
3792 # This must be Linux ELF.
3795 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3796 lt_cv_deplibs_check_method=pass_all ;;
3798 # glibc up to 2.1.1 does not perform some relocations on ARM
3799 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3801 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3805 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3806 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3808 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3813 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3814 lt_cv_file_magic_cmd=/usr/bin/file
3815 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3819 lt_cv_file_magic_cmd=/usr/bin/file
3820 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3821 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3824 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3828 osf3* | osf4* | osf5*)
3829 # this will be overridden with pass_all, but let us keep it just in case
3830 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3831 lt_cv_file_magic_test_file=/shlib/libc.so
3832 lt_cv_deplibs_check_method=pass_all
3836 lt_cv_deplibs_check_method=pass_all
3840 lt_cv_deplibs_check_method=pass_all
3841 lt_cv_file_magic_test_file=/lib/libc.so
3844 sysv5uw[78]* | sysv4*uw2*)
3845 lt_cv_deplibs_check_method=pass_all
3848 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3849 case $host_vendor in
3851 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]'
3852 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3855 lt_cv_deplibs_check_method=pass_all
3858 lt_cv_file_magic_cmd='/bin/file'
3859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3862 lt_cv_file_magic_cmd='/bin/file'
3863 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3864 lt_cv_file_magic_test_file=/lib/libc.so
3872 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3873 file_magic_cmd=$lt_cv_file_magic_cmd
3874 deplibs_check_method=$lt_cv_deplibs_check_method
3876 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3877 echo "configure:3878: checking for object suffix" >&5
3878 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3879 echo $ac_n "(cached) $ac_c" 1>&6
3882 echo 'int i = 1;' > conftest.$ac_ext
3883 if { (eval echo configure:3884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3884 for ac_file in conftest.*; do
3887 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3891 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3896 echo "$ac_t""$ac_cv_objext" 1>&6
3897 OBJEXT=$ac_cv_objext
3898 ac_objext=$ac_cv_objext
3903 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3904 echo "configure:3905: checking for executable suffix" >&5
3905 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3908 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3912 echo 'int main () { return 0; }' > conftest.$ac_ext
3914 if { (eval echo configure:3915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3915 for file in conftest.*; do
3917 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3918 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3922 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3925 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3930 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3931 echo "$ac_t""${ac_cv_exeext}" 1>&6
3934 if test $host != $build; then
3935 ac_tool_prefix=${host_alias}-
3943 # Check for command to grab the raw symbol name followed by C symbol from nm.
3944 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3945 echo "configure:3946: checking command to parse $NM output" >&5
3946 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3947 echo $ac_n "(cached) $ac_c" 1>&6
3950 # These are sane defaults that work on at least a few old systems.
3951 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3953 # Character class describing NM global symbol codes.
3954 symcode='[BCDEGRST]'
3956 # Regexp to match symbols that can be accessed directly from C.
3957 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3959 # Transform the above into a raw symbol and a C symbol.
3960 symxfrm='\1 \2\3 \3'
3962 # Transform an extracted symbol line into a proper C declaration
3963 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3965 # Transform an extracted symbol line into symbol name and symbol address
3966 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'"
3968 # Define system-specific variables.
3973 cygwin* | mingw* | pw32*)
3974 symcode='[ABCDGISTW]'
3976 hpux*) # Its linker distinguishes data from code symbols
3977 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3978 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'"
3981 symcode='[BCDEGRST]'
3991 # Handle CRLF in mingw tool chain
3995 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3999 # If we're using GNU nm, then use its standard symbol codes.
4000 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4001 symcode='[ABCDGISTW]'
4004 # Try without a prefix undercore, then with it.
4005 for ac_symprfx in "" "_"; do
4007 # Write the raw and C identifiers.
4008 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4010 # Check to see that the pipe works correctly.
4013 cat > conftest.$ac_ext <<EOF
4018 void nm_test_func(){}
4022 int main(){nm_test_var='a';nm_test_func();return(0);}
4025 if { (eval echo configure:4026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4026 # Now try to grab the symbols.
4028 if { (eval echo configure:4029: \"$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
4029 # Try sorting and uniquifying the output.
4030 if sort "$nlist" | uniq > "$nlist"T; then
4031 mv -f "$nlist"T "$nlist"
4036 # Make sure that we snagged all the symbols we need.
4037 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4038 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4039 cat <<EOF > conftest.$ac_ext
4045 # Now generate the symbol file.
4046 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4048 cat <<EOF >> conftest.$ac_ext
4049 #if defined (__STDC__) && __STDC__
4050 # define lt_ptr void *
4052 # define lt_ptr char *
4056 /* The mapping between symbol names and symbols. */
4061 lt_preloaded_symbols[] =
4064 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4065 cat <<\EOF >> conftest.$ac_ext
4073 # Now try linking the two files.
4074 mv conftest.$ac_objext conftstm.$ac_objext
4076 save_CFLAGS="$CFLAGS"
4077 LIBS="conftstm.$ac_objext"
4078 CFLAGS="$CFLAGS$no_builtin_flag"
4079 if { (eval echo configure:4080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4083 CFLAGS="$save_CFLAGS"
4085 echo "cannot find nm_test_func in $nlist" >&5
4088 echo "cannot find nm_test_var in $nlist" >&5
4091 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4094 echo "$progname: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4097 rm -f conftest* conftst*
4099 # Do not use the global_symbol_pipe unless it works.
4100 if test "$pipe_works" = yes; then
4103 lt_cv_sys_global_symbol_pipe=
4109 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4110 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4111 global_symbol_to_cdecl=
4112 global_symbol_to_c_name_address=
4114 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4115 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4117 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4119 echo "$ac_t""failed" 1>&6
4121 echo "$ac_t""ok" 1>&6
4124 for ac_hdr in dlfcn.h
4126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4128 echo "configure:4129: checking for $ac_hdr" >&5
4129 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4138 { (eval echo configure:4139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4140 if test -z "$ac_err"; then
4142 eval "ac_cv_header_$ac_safe=yes"
4145 echo "configure: failed program was:" >&5
4146 cat conftest.$ac_ext >&5
4148 eval "ac_cv_header_$ac_safe=no"
4152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4153 echo "$ac_t""yes" 1>&6
4154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4155 cat >> confdefs.h <<EOF
4156 #define $ac_tr_hdr 1
4160 echo "$ac_t""no" 1>&6
4168 # Only perform the check for file, if the check method requires it
4169 case $deplibs_check_method in
4171 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4172 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4173 echo "configure:4174: checking for ${ac_tool_prefix}file" >&5
4174 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4179 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4182 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4185 ac_save_MAGIC_CMD="$MAGIC_CMD"
4186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4187 ac_dummy="/usr/bin:$PATH"
4188 for ac_dir in $ac_dummy; do
4189 test -z "$ac_dir" && ac_dir=.
4190 if test -f $ac_dir/${ac_tool_prefix}file; then
4191 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4192 if test -n "$file_magic_test_file"; then
4193 case $deplibs_check_method in
4195 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4197 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4198 egrep "$file_magic_regex" > /dev/null; then
4203 *** Warning: the command libtool uses to detect shared libraries,
4204 *** $file_magic_cmd, produces output that libtool cannot recognize.
4205 *** The result is that libtool may fail to recognize shared libraries
4206 *** as such. This will affect the creation of libtool libraries that
4207 *** depend on shared libraries, but programs linked with such libtool
4208 *** libraries will work regardless of this problem. Nevertheless, you
4209 *** may want to report the problem to your system manager and/or to
4210 *** bug-libtool@gnu.org
4220 MAGIC_CMD="$ac_save_MAGIC_CMD"
4225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4226 if test -n "$MAGIC_CMD"; then
4227 echo "$ac_t""$MAGIC_CMD" 1>&6
4229 echo "$ac_t""no" 1>&6
4232 if test -z "$lt_cv_path_MAGIC_CMD"; then
4233 if test -n "$ac_tool_prefix"; then
4234 echo $ac_n "checking for file""... $ac_c" 1>&6
4235 echo "configure:4236: checking for file" >&5
4236 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4241 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4244 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4247 ac_save_MAGIC_CMD="$MAGIC_CMD"
4248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4249 ac_dummy="/usr/bin:$PATH"
4250 for ac_dir in $ac_dummy; do
4251 test -z "$ac_dir" && ac_dir=.
4252 if test -f $ac_dir/file; then
4253 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4254 if test -n "$file_magic_test_file"; then
4255 case $deplibs_check_method in
4257 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4259 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4260 egrep "$file_magic_regex" > /dev/null; then
4265 *** Warning: the command libtool uses to detect shared libraries,
4266 *** $file_magic_cmd, produces output that libtool cannot recognize.
4267 *** The result is that libtool may fail to recognize shared libraries
4268 *** as such. This will affect the creation of libtool libraries that
4269 *** depend on shared libraries, but programs linked with such libtool
4270 *** libraries will work regardless of this problem. Nevertheless, you
4271 *** may want to report the problem to your system manager and/or to
4272 *** bug-libtool@gnu.org
4282 MAGIC_CMD="$ac_save_MAGIC_CMD"
4287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4288 if test -n "$MAGIC_CMD"; then
4289 echo "$ac_t""$MAGIC_CMD" 1>&6
4291 echo "$ac_t""no" 1>&6
4303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4304 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4306 echo "configure:4307: checking for $ac_word" >&5
4307 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4310 if test -n "$RANLIB"; then
4311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4315 for ac_dir in $ac_dummy; do
4316 test -z "$ac_dir" && ac_dir=.
4317 if test -f $ac_dir/$ac_word; then
4318 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4325 RANLIB="$ac_cv_prog_RANLIB"
4326 if test -n "$RANLIB"; then
4327 echo "$ac_t""$RANLIB" 1>&6
4329 echo "$ac_t""no" 1>&6
4333 if test -z "$ac_cv_prog_RANLIB"; then
4334 if test -n "$ac_tool_prefix"; then
4335 # Extract the first word of "ranlib", so it can be a program name with args.
4336 set dummy ranlib; ac_word=$2
4337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4338 echo "configure:4339: checking for $ac_word" >&5
4339 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4340 echo $ac_n "(cached) $ac_c" 1>&6
4342 if test -n "$RANLIB"; then
4343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4347 for ac_dir in $ac_dummy; do
4348 test -z "$ac_dir" && ac_dir=.
4349 if test -f $ac_dir/$ac_word; then
4350 ac_cv_prog_RANLIB="ranlib"
4355 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4358 RANLIB="$ac_cv_prog_RANLIB"
4359 if test -n "$RANLIB"; then
4360 echo "$ac_t""$RANLIB" 1>&6
4362 echo "$ac_t""no" 1>&6
4370 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4371 set dummy ${ac_tool_prefix}strip; ac_word=$2
4372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4373 echo "configure:4374: checking for $ac_word" >&5
4374 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4377 if test -n "$STRIP"; then
4378 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4382 for ac_dir in $ac_dummy; do
4383 test -z "$ac_dir" && ac_dir=.
4384 if test -f $ac_dir/$ac_word; then
4385 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4392 STRIP="$ac_cv_prog_STRIP"
4393 if test -n "$STRIP"; then
4394 echo "$ac_t""$STRIP" 1>&6
4396 echo "$ac_t""no" 1>&6
4400 if test -z "$ac_cv_prog_STRIP"; then
4401 if test -n "$ac_tool_prefix"; then
4402 # Extract the first word of "strip", so it can be a program name with args.
4403 set dummy strip; ac_word=$2
4404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4405 echo "configure:4406: checking for $ac_word" >&5
4406 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4409 if test -n "$STRIP"; then
4410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4414 for ac_dir in $ac_dummy; do
4415 test -z "$ac_dir" && ac_dir=.
4416 if test -f $ac_dir/$ac_word; then
4417 ac_cv_prog_STRIP="strip"
4422 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4425 STRIP="$ac_cv_prog_STRIP"
4426 if test -n "$STRIP"; then
4427 echo "$ac_t""$STRIP" 1>&6
4429 echo "$ac_t""no" 1>&6
4439 enable_win32_dll=yes
4441 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4442 if test "${enable_libtool_lock+set}" = set; then
4443 enableval="$enable_libtool_lock"
4447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4449 # Some flags need to be propagated to the compiler or linker for good
4453 # Find out which ABI we are using.
4454 echo '#line 4455 "configure"' > conftest.$ac_ext
4455 if { (eval echo configure:4456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4456 case `/usr/bin/file conftest.$ac_objext` in
4472 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4473 SAVE_CFLAGS="$CFLAGS"
4474 CFLAGS="$CFLAGS -belf"
4475 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4476 echo "configure:4477: checking whether the C compiler needs -belf" >&5
4477 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4486 cross_compiling=$ac_cv_prog_cc_cross
4488 cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4496 if { (eval echo configure:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4498 lt_cv_cc_needs_belf=yes
4500 echo "configure: failed program was:" >&5
4501 cat conftest.$ac_ext >&5
4503 lt_cv_cc_needs_belf=no
4507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4511 cross_compiling=$ac_cv_prog_cc_cross
4515 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4516 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4517 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4518 CFLAGS="$SAVE_CFLAGS"
4522 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4523 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4524 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4525 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4526 echo "configure:4527: checking for $ac_word" >&5
4527 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 if test -n "$DLLTOOL"; then
4531 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4535 for ac_dir in $ac_dummy; do
4536 test -z "$ac_dir" && ac_dir=.
4537 if test -f $ac_dir/$ac_word; then
4538 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4545 DLLTOOL="$ac_cv_prog_DLLTOOL"
4546 if test -n "$DLLTOOL"; then
4547 echo "$ac_t""$DLLTOOL" 1>&6
4549 echo "$ac_t""no" 1>&6
4553 if test -z "$ac_cv_prog_DLLTOOL"; then
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "dlltool", so it can be a program name with args.
4556 set dummy dlltool; ac_word=$2
4557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4558 echo "configure:4559: checking for $ac_word" >&5
4559 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4562 if test -n "$DLLTOOL"; then
4563 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4567 for ac_dir in $ac_dummy; do
4568 test -z "$ac_dir" && ac_dir=.
4569 if test -f $ac_dir/$ac_word; then
4570 ac_cv_prog_DLLTOOL="dlltool"
4575 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4578 DLLTOOL="$ac_cv_prog_DLLTOOL"
4579 if test -n "$DLLTOOL"; then
4580 echo "$ac_t""$DLLTOOL" 1>&6
4582 echo "$ac_t""no" 1>&6
4590 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4591 set dummy ${ac_tool_prefix}as; ac_word=$2
4592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4593 echo "configure:4594: checking for $ac_word" >&5
4594 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4597 if test -n "$AS"; then
4598 ac_cv_prog_AS="$AS" # Let the user override the test.
4600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4602 for ac_dir in $ac_dummy; do
4603 test -z "$ac_dir" && ac_dir=.
4604 if test -f $ac_dir/$ac_word; then
4605 ac_cv_prog_AS="${ac_tool_prefix}as"
4613 if test -n "$AS"; then
4614 echo "$ac_t""$AS" 1>&6
4616 echo "$ac_t""no" 1>&6
4620 if test -z "$ac_cv_prog_AS"; then
4621 if test -n "$ac_tool_prefix"; then
4622 # Extract the first word of "as", so it can be a program name with args.
4623 set dummy as; ac_word=$2
4624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4625 echo "configure:4626: checking for $ac_word" >&5
4626 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 if test -n "$AS"; then
4630 ac_cv_prog_AS="$AS" # Let the user override the test.
4632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4634 for ac_dir in $ac_dummy; do
4635 test -z "$ac_dir" && ac_dir=.
4636 if test -f $ac_dir/$ac_word; then
4642 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4646 if test -n "$AS"; then
4647 echo "$ac_t""$AS" 1>&6
4649 echo "$ac_t""no" 1>&6
4657 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4658 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4660 echo "configure:4661: checking for $ac_word" >&5
4661 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4664 if test -n "$OBJDUMP"; then
4665 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4669 for ac_dir in $ac_dummy; do
4670 test -z "$ac_dir" && ac_dir=.
4671 if test -f $ac_dir/$ac_word; then
4672 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4679 OBJDUMP="$ac_cv_prog_OBJDUMP"
4680 if test -n "$OBJDUMP"; then
4681 echo "$ac_t""$OBJDUMP" 1>&6
4683 echo "$ac_t""no" 1>&6
4687 if test -z "$ac_cv_prog_OBJDUMP"; then
4688 if test -n "$ac_tool_prefix"; then
4689 # Extract the first word of "objdump", so it can be a program name with args.
4690 set dummy objdump; ac_word=$2
4691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4692 echo "configure:4693: checking for $ac_word" >&5
4693 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4694 echo $ac_n "(cached) $ac_c" 1>&6
4696 if test -n "$OBJDUMP"; then
4697 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4701 for ac_dir in $ac_dummy; do
4702 test -z "$ac_dir" && ac_dir=.
4703 if test -f $ac_dir/$ac_word; then
4704 ac_cv_prog_OBJDUMP="objdump"
4709 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4712 OBJDUMP="$ac_cv_prog_OBJDUMP"
4713 if test -n "$OBJDUMP"; then
4714 echo "$ac_t""$OBJDUMP" 1>&6
4716 echo "$ac_t""no" 1>&6
4725 # recent cygwin and mingw systems supply a stub DllMain which the user
4726 # can override, but on older systems we have to supply one
4727 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4728 echo "configure:4729: checking if libtool should supply DllMain function" >&5
4729 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4730 echo $ac_n "(cached) $ac_c" 1>&6
4732 cat > conftest.$ac_ext <<EOF
4733 #line 4734 "configure"
4734 #include "confdefs.h"
4737 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4741 if { (eval echo configure:4742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4743 lt_cv_need_dllmain=no
4745 echo "configure: failed program was:" >&5
4746 cat conftest.$ac_ext >&5
4748 lt_cv_need_dllmain=yes
4753 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4756 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4757 # old mingw systems require "-dll" to link a DLL, while more recent ones
4759 SAVE_CFLAGS="$CFLAGS"
4760 CFLAGS="$CFLAGS -mdll"
4761 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4762 echo "configure:4763: checking how to link DLLs" >&5
4763 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4764 echo $ac_n "(cached) $ac_c" 1>&6
4766 cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4774 if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4776 lt_cv_cc_dll_switch=-mdll
4778 echo "configure: failed program was:" >&5
4779 cat conftest.$ac_ext >&5
4781 lt_cv_cc_dll_switch=-dll
4786 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4787 CFLAGS="$SAVE_CFLAGS" ;;
4788 *-*-cygwin* | *-*-pw32*)
4789 # cygwin systems need to pass --dll to the linker, and not link
4790 # crt.o which will require a WinMain@16 definition.
4791 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4797 # Sed substitution that helps us do robust quoting. It backslashifies
4798 # metacharacters that are still active within double-quoted strings.
4799 Xsed='sed -e s/^X//'
4800 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4802 # Same as above, but do not quote variable references.
4803 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4805 # Sed substitution to delay expansion of an escaped shell variable in a
4806 # double_quote_subst'ed string.
4807 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4813 default_ofile=libtool
4814 can_build_shared=yes
4816 # All known linkers require a `.a' archive for static linking (except M$VC,
4817 # which needs '.lib').
4819 ltmain="$ac_aux_dir/ltmain.sh"
4820 ofile="$default_ofile"
4821 with_gnu_ld="$lt_cv_prog_gnu_ld"
4822 need_locks="$enable_libtool_lock"
4825 old_CFLAGS="$CFLAGS"
4827 # Set sane defaults for various variables
4828 test -z "$AR" && AR=ar
4829 test -z "$AR_FLAGS" && AR_FLAGS=cru
4830 test -z "$AS" && AS=as
4831 test -z "$CC" && CC=cc
4832 test -z "$DLLTOOL" && DLLTOOL=dlltool
4833 test -z "$LD" && LD=ld
4834 test -z "$LN_S" && LN_S="ln -s"
4835 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4836 test -z "$NM" && NM=nm
4837 test -z "$OBJDUMP" && OBJDUMP=objdump
4838 test -z "$RANLIB" && RANLIB=:
4839 test -z "$STRIP" && STRIP=:
4840 test -z "$ac_objext" && ac_objext=o
4842 if test x"$host" != x"$build"; then
4843 ac_tool_prefix=${host_alias}-
4848 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4851 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4856 # AIX sometimes has problems with the GCC collect2 program. For some
4857 # reason, if we set the COLLECT_NAMES environment variable, the problems
4858 # vanish in a puff of smoke.
4859 if test "X${COLLECT_NAMES+set}" != Xset; then
4861 export COLLECT_NAMES
4866 # Determine commands to create old-style static archives.
4867 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4868 old_postinstall_cmds='chmod 644 $oldlib'
4869 old_postuninstall_cmds=
4871 if test -n "$RANLIB"; then
4874 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4877 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4880 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4883 # Allow CC to be a program name with arguments.
4887 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4888 echo "configure:4889: checking for objdir" >&5
4889 rm -f .libs 2>/dev/null
4890 mkdir .libs 2>/dev/null
4891 if test -d .libs; then
4894 # MS-DOS does not allow filenames that begin with a dot.
4897 rmdir .libs 2>/dev/null
4898 echo "$ac_t""$objdir" 1>&6
4901 # Check whether --with-pic or --without-pic was given.
4902 if test "${with_pic+set}" = set; then
4909 test -z "$pic_mode" && pic_mode=default
4911 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4912 # in isolation, and that seeing it set (from the cache) indicates that
4913 # the associated values are set (in the cache) correctly too.
4914 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4915 echo "configure:4916: checking for $compiler option to produce PIC" >&5
4916 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4920 lt_cv_prog_cc_shlib=
4922 lt_cv_prog_cc_static=
4923 lt_cv_prog_cc_no_builtin=
4924 lt_cv_prog_cc_can_build_shared=$can_build_shared
4926 if test "$GCC" = yes; then
4927 lt_cv_prog_cc_wl='-Wl,'
4928 lt_cv_prog_cc_static='-static'
4932 # Below there is a dirty hack to force normal static linking with -ldl
4933 # The problem is because libdl dynamically linked with both libc and
4934 # libC (AIX C++ library), which obviously doesn't included in libraries
4935 # list by gcc. This cause undefined symbols with -static flags.
4936 # This hack allows C programs to be linked with "-static -ldl", but
4937 # not sure about C++ programs.
4938 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4941 # FIXME: we need at least 68020 code to build shared libraries, but
4942 # adding the `-m68020' flag to GCC prevents building anything better,
4944 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4946 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4947 # PIC is the default for these OSes.
4949 darwin* | rhapsody*)
4950 # PIC is the default on this platform
4951 # Common symbols not allowed in MH_DYLIB files
4952 lt_cv_prog_cc_pic='-fno-common'
4954 cygwin* | mingw* | pw32* | os2*)
4955 # This hack is so that the source file can tell whether it is being
4956 # built for inclusion in a dll (and should export symbols for example).
4957 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4960 if test -d /usr/nec; then
4961 lt_cv_prog_cc_pic=-Kconform_pic
4965 lt_cv_prog_cc_pic='-fPIC'
4969 # PORTME Check for PIC flags for the system compiler.
4971 aix3* | aix4* | aix5*)
4972 lt_cv_prog_cc_wl='-Wl,'
4973 # All AIX code is PIC.
4974 if test "$host_cpu" = ia64; then
4975 # AIX 5 now supports IA64 processor
4976 lt_cv_prog_cc_static='-Bstatic'
4978 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4982 hpux9* | hpux10* | hpux11*)
4983 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4984 lt_cv_prog_cc_wl='-Wl,'
4985 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4986 lt_cv_prog_cc_pic='+Z'
4990 lt_cv_prog_cc_wl='-Wl,'
4991 lt_cv_prog_cc_static='-non_shared'
4992 # PIC (with -KPIC) is the default.
4995 cygwin* | mingw* | pw32* | os2*)
4996 # This hack is so that the source file can tell whether it is being
4997 # built for inclusion in a dll (and should export symbols for example).
4998 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5002 lt_cv_prog_cc_pic='-KPIC'
5003 lt_cv_prog_cc_static='-Bstatic'
5006 osf3* | osf4* | osf5*)
5007 # All OSF/1 code is PIC.
5008 lt_cv_prog_cc_wl='-Wl,'
5009 lt_cv_prog_cc_static='-non_shared'
5013 lt_cv_prog_cc_pic='-Kpic'
5014 lt_cv_prog_cc_static='-dn'
5015 lt_cv_prog_cc_shlib='-belf'
5019 lt_cv_prog_cc_pic='-KPIC'
5020 lt_cv_prog_cc_static='-Bstatic'
5021 lt_cv_prog_cc_wl='-Wl,'
5025 lt_cv_prog_cc_pic='-PIC'
5026 lt_cv_prog_cc_static='-Bstatic'
5027 lt_cv_prog_cc_wl='-Qoption ld '
5030 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5031 lt_cv_prog_cc_pic='-KPIC'
5032 lt_cv_prog_cc_static='-Bstatic'
5033 if test "x$host_vendor" = xsni; then
5034 lt_cv_prog_cc_wl='-LD'
5036 lt_cv_prog_cc_wl='-Wl,'
5041 lt_cv_prog_cc_pic='-pic'
5042 lt_cv_prog_cc_static='-Bstatic'
5046 if test -d /usr/nec ;then
5047 lt_cv_prog_cc_pic='-Kconform_pic'
5048 lt_cv_prog_cc_static='-Bstatic'
5053 lt_cv_prog_cc_can_build_shared=no
5060 if test -z "$lt_cv_prog_cc_pic"; then
5061 echo "$ac_t""none" 1>&6
5063 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5065 # Check to make sure the pic_flag actually works.
5066 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5067 echo "configure:5068: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5068 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5071 save_CFLAGS="$CFLAGS"
5072 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5073 cat > conftest.$ac_ext <<EOF
5074 #line 5075 "configure"
5075 #include "confdefs.h"
5081 if { (eval echo configure:5082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5084 hpux9* | hpux10* | hpux11*)
5085 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5086 # they create non-PIC objects. So, if there were any warnings, we
5087 # assume that PIC is not supported.
5088 if test -s conftest.err; then
5089 lt_cv_prog_cc_pic_works=no
5091 lt_cv_prog_cc_pic_works=yes
5095 lt_cv_prog_cc_pic_works=yes
5100 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5103 lt_cv_prog_cc_pic_works=no
5107 CFLAGS="$save_CFLAGS"
5112 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5114 lt_cv_prog_cc_can_build_shared=no
5116 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5119 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5122 # Check for any special shared library compilation flags.
5123 if test -n "$lt_cv_prog_cc_shlib"; then
5124 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5125 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5127 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5128 lt_cv_prog_cc_can_build_shared=no
5132 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5133 echo "configure:5134: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5134 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5137 lt_cv_prog_cc_static_works=no
5138 save_LDFLAGS="$LDFLAGS"
5139 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5150 lt_cv_prog_cc_static_works=yes
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5156 LDFLAGS="$save_LDFLAGS"
5161 # Belt *and* braces to stop my trousers falling down:
5162 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5163 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5165 pic_flag="$lt_cv_prog_cc_pic"
5166 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5167 wl="$lt_cv_prog_cc_wl"
5168 link_static_flag="$lt_cv_prog_cc_static"
5169 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5170 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5173 # Check to see if options -o and -c are simultaneously supported by compiler
5174 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5175 echo "configure:5176: checking if $compiler supports -c -o file.$ac_objext" >&5
5176 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5177 echo $ac_n "(cached) $ac_c" 1>&6
5180 $rm -r conftest 2>/dev/null
5183 echo "int some_variable = 0;" > conftest.$ac_ext
5185 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5186 # that will create temporary files in the current directory regardless of
5187 # the output directory. Thus, making CWD read-only will cause this test
5188 # to fail, enabling locking or at least warning the user not to do parallel
5191 save_CFLAGS="$CFLAGS"
5192 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5194 if { (eval echo configure:5195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5195 # The compiler can only warn and ignore the option if not recognized
5196 # So say no if there are warnings
5197 if test -s out/conftest.err; then
5198 lt_cv_compiler_c_o=no
5200 lt_cv_compiler_c_o=yes
5203 # Append any errors to the config.log.
5204 cat out/conftest.err 1>&5
5205 lt_cv_compiler_c_o=no
5207 CFLAGS="$save_CFLAGS"
5213 $rm -r conftest 2>/dev/null
5217 compiler_c_o=$lt_cv_compiler_c_o
5218 echo "$ac_t""$compiler_c_o" 1>&6
5220 if test x"$compiler_c_o" = x"yes"; then
5221 # Check to see if we can write to a .lo
5222 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5223 echo "configure:5224: checking if $compiler supports -c -o file.lo" >&5
5224 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5228 lt_cv_compiler_o_lo=no
5229 save_CFLAGS="$CFLAGS"
5230 CFLAGS="$CFLAGS -c -o conftest.lo"
5231 save_objext="$ac_objext"
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5238 int some_variable = 0;
5241 if { (eval echo configure:5242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5243 # The compiler can only warn and ignore the option if not recognized
5244 # So say no if there are warnings
5245 if test -s conftest.err; then
5246 lt_cv_compiler_o_lo=no
5248 lt_cv_compiler_o_lo=yes
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5256 ac_objext="$save_objext"
5257 CFLAGS="$save_CFLAGS"
5261 compiler_o_lo=$lt_cv_compiler_o_lo
5262 echo "$ac_t""$compiler_o_lo" 1>&6
5267 # Check to see if we can do hard links to lock some files if needed
5268 hard_links="nottested"
5269 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5270 # do not overwrite the value of need_locks provided by the user
5271 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5272 echo "configure:5273: checking if we can lock with hard links" >&5
5275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5277 ln conftest.a conftest.b 2>&5 || hard_links=no
5278 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5279 echo "$ac_t""$hard_links" 1>&6
5280 if test "$hard_links" = no; then
5281 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5288 if test "$GCC" = yes; then
5289 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5290 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5291 echo "configure:5292: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5292 echo "int some_variable = 0;" > conftest.$ac_ext
5293 save_CFLAGS="$CFLAGS"
5294 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5295 compiler_rtti_exceptions=no
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5301 int some_variable = 0;
5304 if { (eval echo configure:5305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5306 # The compiler can only warn and ignore the option if not recognized
5307 # So say no if there are warnings
5308 if test -s conftest.err; then
5309 compiler_rtti_exceptions=no
5311 compiler_rtti_exceptions=yes
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5319 CFLAGS="$save_CFLAGS"
5320 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5322 if test "$compiler_rtti_exceptions" = "yes"; then
5323 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5325 no_builtin_flag=' -fno-builtin'
5329 # See if the linker supports building shared libraries.
5330 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5331 echo "configure:5332: checking whether the linker ($LD) supports shared libraries" >&5
5333 allow_undefined_flag=
5335 need_lib_prefix=unknown
5336 need_version=unknown
5337 # when you set need_version to no, make sure it does not cause -set_version
5338 # flags to be left without arguments
5340 archive_expsym_cmds=
5341 old_archive_from_new_cmds=
5342 old_archive_from_expsyms_cmds=
5343 export_dynamic_flag_spec=
5344 whole_archive_flag_spec=
5345 thread_safe_flag_spec=
5346 hardcode_into_libs=no
5347 hardcode_libdir_flag_spec=
5348 hardcode_libdir_separator=
5351 hardcode_shlibpath_var=unsupported
5353 link_all_deplibs=unknown
5354 always_export_symbols=no
5355 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5356 # include_expsyms should be a list of space-separated symbols to be *always*
5357 # included in the symbol list
5359 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5360 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5361 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5362 # as well as any symbol that contains `d'.
5363 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5364 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5365 # platforms (ab)use it in PIC code, but their linkers get confused if
5366 # the symbol is explicitly referenced. Since portable code cannot
5367 # rely on this symbol name, it's probably fine to never include it in
5368 # preloaded symbol tables.
5369 extract_expsyms_cmds=
5372 cygwin* | mingw* | pw32*)
5373 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5374 # When not using gcc, we currently assume that we are using
5375 # Microsoft Visual C++.
5376 if test "$GCC" != yes; then
5386 if test "$with_gnu_ld" = yes; then
5387 # If archive_cmds runs LD, not CC, wlarc should be empty
5390 # See if GNU ld supports shared libraries.
5392 aix3* | aix4* | aix5*)
5393 # On AIX, the GNU linker is very broken
5394 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5398 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5399 *** to be unable to reliably create shared libraries on AIX.
5400 *** Therefore, libtool is disabling shared libraries support. If you
5401 *** really care for shared libraries, you may want to modify your PATH
5402 *** so that a non-GNU linker is found, and then restart.
5408 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)'
5409 hardcode_libdir_flag_spec='-L$libdir'
5410 hardcode_minus_L=yes
5412 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5413 # that the semantics of dynamic libraries on AmigaOS, at least up
5414 # to version 4, is to share data among multiple programs linked
5415 # with the same dynamic library. Since this doesn't match the
5416 # behavior of shared libraries on other platforms, we can use
5422 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5423 allow_undefined_flag=unsupported
5424 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5425 # support --undefined. This deserves some investigation. FIXME
5426 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5432 cygwin* | mingw* | pw32*)
5433 # hardcode_libdir_flag_spec is actually meaningless, as there is
5434 # no search path for DLLs.
5435 hardcode_libdir_flag_spec='-L$libdir'
5436 allow_undefined_flag=unsupported
5437 always_export_symbols=yes
5439 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5440 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5441 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5442 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5443 else $CC -o impgen impgen.c ; fi)~
5444 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5446 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5448 # cygwin and mingw dlls have different entry points and sets of symbols
5450 # FIXME: what about values for MSVC?
5451 dll_entry=__cygwin_dll_entry@12
5452 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5456 dll_entry=_DllMainCRTStartup@12
5457 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5461 # mingw and cygwin differ, and it's simplest to just exclude the union
5462 # of the two symbol sets.
5463 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5465 # recent cygwin and mingw systems supply a stub DllMain which the user
5466 # can override, but on older systems we have to supply one (in ltdll.c)
5467 if test "x$lt_cv_need_dllmain" = "xyes"; then
5468 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5469 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~
5470 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5476 # Extract the symbol export list from an `--export-all' def file,
5477 # then regenerate the def file from the symbol export list, so that
5478 # the compiled dll only exports the symbol export list.
5479 # Be careful not to strip the DATA tag left be newer dlltools.
5480 export_symbols_cmds="$ltdll_cmds"'
5481 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5482 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5484 # If the export-symbols file already is a .def file (1st line
5485 # is EXPORTS), use it as is.
5486 # If DATA tags from a recent dlltool are present, honour them!
5487 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5488 cp $export_symbols $output_objdir/$soname-def;
5490 echo EXPORTS > $output_objdir/$soname-def;
5492 cat $export_symbols | while read symbol; do
5495 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5496 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5498 _lt_hint=`expr 1 + \$_lt_hint`;
5502 $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~
5503 $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~
5504 $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~
5505 $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~
5506 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5511 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5514 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5515 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5520 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5524 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5525 *** create shared libraries on Solaris systems. Therefore, libtool
5526 *** is disabling shared libraries support. We urge you to upgrade GNU
5527 *** binutils to release 2.9.1 or newer. Another option is to modify
5528 *** your PATH or compiler configuration so that the native linker is
5529 *** used, and then restart.
5532 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5534 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5541 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5544 hardcode_shlibpath_var=no
5548 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5550 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5557 if test "$ld_shlibs" = yes; then
5558 runpath_var=LD_RUN_PATH
5559 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5560 export_dynamic_flag_spec='${wl}--export-dynamic'
5562 cygwin* | mingw* | pw32*)
5563 # dlltool doesn't understand --whole-archive et. al.
5564 whole_archive_flag_spec=
5567 # ancient GNU ld didn't support --whole-archive et. al.
5568 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5569 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5571 whole_archive_flag_spec=
5577 # PORTME fill in a description of your system's linker (not GNU ld)
5580 allow_undefined_flag=unsupported
5581 always_export_symbols=yes
5582 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'
5583 # Note: this linker hardcodes the directories in LIBPATH if there
5584 # are no directories specified by -L.
5585 hardcode_minus_L=yes
5586 if test "$GCC" = yes && test -z "$link_static_flag"; then
5587 # Neither direct hardcoding nor static linking is supported with a
5589 hardcode_direct=unsupported
5594 if test "$host_cpu" = ia64; then
5595 # On IA64, the linker does run time linking by default, so we don't
5596 # have to do anything special.
5597 aix_use_runtimelinking=no
5598 exp_sym_flag='-Bexport'
5601 aix_use_runtimelinking=no
5603 # Test if we are trying to use run time linking or normal
5604 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5605 # need to do runtime linking.
5606 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5607 for ld_flag in $LDFLAGS; do
5608 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5609 aix_use_runtimelinking=yes
5615 exp_sym_flag='-bexport'
5616 no_entry_flag='-bnoentry'
5619 # When large executables or shared objects are built, AIX ld can
5620 # have problems creating the table of contents. If linking a library
5621 # or program results in "error TOC overflow" add -mminimal-toc to
5622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5627 hardcode_libdir_separator=':'
5628 if test "$GCC" = yes; then
5629 case $host_os in aix4.[012]|aix4.[012].*)
5630 collect2name=`${CC} -print-prog-name=collect2`
5631 if test -f "$collect2name" && \
5632 strings "$collect2name" | grep resolve_lib_name >/dev/null
5634 # We have reworked collect2
5637 # We have old collect2
5638 hardcode_direct=unsupported
5639 # It fails to find uninstalled libraries when the uninstalled
5640 # path is not listed in the libpath. Setting hardcode_minus_L
5641 # to unsupported forces relinking
5642 hardcode_minus_L=yes
5643 hardcode_libdir_flag_spec='-L$libdir'
5644 hardcode_libdir_separator=
5648 shared_flag='-shared'
5651 if test "$host_cpu" = ia64; then
5652 shared_flag='${wl}-G'
5654 if test "$aix_use_runtimelinking" = yes; then
5655 shared_flag='${wl}-G'
5657 shared_flag='${wl}-bM:SRE'
5662 # It seems that -bexpall can do strange things, so it is better to
5663 # generate a list of symbols to export.
5664 always_export_symbols=yes
5665 if test "$aix_use_runtimelinking" = yes; then
5666 # Warning - without using the other runtime loading flags (-brtl),
5667 # -berok will link without error, but may produce a broken library.
5668 allow_undefined_flag='-berok'
5669 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5670 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"
5672 if test "$host_cpu" = ia64; then
5673 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5674 allow_undefined_flag="-z nodefs"
5675 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"
5677 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5678 # Warning - without using the other run time loading flags,
5679 # -berok will link without error, but may produce a broken library.
5680 allow_undefined_flag='${wl}-berok'
5681 # This is a bit strange, but is similar to how AIX traditionally builds
5682 # it's shared libraries.
5683 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'
5689 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)'
5690 hardcode_libdir_flag_spec='-L$libdir'
5691 hardcode_minus_L=yes
5692 # see comment about different semantics on the GNU ld section
5696 cygwin* | mingw* | pw32*)
5697 # When not using gcc, we currently assume that we are using
5698 # Microsoft Visual C++.
5699 # hardcode_libdir_flag_spec is actually meaningless, as there is
5700 # no search path for DLLs.
5701 hardcode_libdir_flag_spec=' '
5702 allow_undefined_flag=unsupported
5703 # Tell ltmain to make .lib files, not .a files.
5705 # FIXME: Setting linknames here is a bad hack.
5706 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5707 # The linker will automatically build a .lib file if we build a DLL.
5708 old_archive_from_new_cmds='true'
5709 # FIXME: Should let the user specify the lib program.
5710 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5711 fix_srcfile_path='`cygpath -w "$srcfile"`'
5714 darwin* | rhapsody*)
5716 rhapsody* | darwin1.[012])
5717 allow_undefined_flag='-undefined suppress'
5720 allow_undefined_flag='-flat_namespace -undefined suppress'
5723 # FIXME: Relying on posixy $() will cause problems for
5724 # cross-compilation, but unfortunately the echo tests do not
5725 # yet detect zsh echo's removal of \ escapes.
5726 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'
5727 # We need to add '_' to the symbols in $export_symbols first
5728 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5730 hardcode_shlibpath_var=no
5731 whole_archive_flag_spec='-all_load $convenience'
5738 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5739 # support. Future versions do this automatically, but an explicit c++rt0.o
5740 # does not break anything, and helps significantly (at the cost of a little
5743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5744 hardcode_libdir_flag_spec='-R$libdir'
5746 hardcode_shlibpath_var=no
5749 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5753 hardcode_minus_L=yes
5754 hardcode_shlibpath_var=no
5757 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5759 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5760 hardcode_libdir_flag_spec='-R$libdir'
5762 hardcode_shlibpath_var=no
5765 hpux9* | hpux10* | hpux11*)
5767 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' ;;
5768 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5771 hardcode_libdir_separator=:
5773 hardcode_minus_L=yes # Not in the search PATH, but as the default
5774 # location of the library.
5775 export_dynamic_flag_spec='${wl}-E'
5779 if test "$GCC" = yes; then
5780 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'
5782 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'
5784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5785 hardcode_libdir_separator=:
5786 link_all_deplibs=yes
5790 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5793 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5795 hardcode_libdir_flag_spec='-R$libdir'
5797 hardcode_shlibpath_var=no
5801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5804 hardcode_libdir_separator=:
5805 hardcode_shlibpath_var=no
5810 hardcode_shlibpath_var=no
5811 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5812 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5814 export_dynamic_flag_spec='${wl}-E'
5817 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5819 hardcode_libdir_flag_spec='-R$libdir'
5822 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5830 hardcode_libdir_flag_spec='-L$libdir'
5831 hardcode_minus_L=yes
5832 allow_undefined_flag=unsupported
5833 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'
5834 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5838 if test "$GCC" = yes; then
5839 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5840 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'
5842 allow_undefined_flag=' -expect_unresolved \*'
5843 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'
5845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5846 hardcode_libdir_separator=:
5849 osf4* | osf5*) # as osf3* with the addition of -msym flag
5850 if test "$GCC" = yes; then
5851 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5852 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'
5853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5855 allow_undefined_flag=' -expect_unresolved \*'
5856 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'
5857 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5858 $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'
5860 #Both c and cxx compiler support -rpath directly
5861 hardcode_libdir_flag_spec='-rpath $libdir'
5863 hardcode_libdir_separator=:
5867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5868 hardcode_shlibpath_var=no
5869 runpath_var=LD_RUN_PATH
5870 hardcode_runpath_var=yes
5871 export_dynamic_flag_spec='${wl}-Bexport'
5875 # gcc --version < 3.0 without binutils cannot create self contained
5876 # shared libraries reliably, requiring libgcc.a to resolve some of
5877 # the object symbols generated in some cases. Libraries that use
5878 # assert need libgcc.a to resolve __eprintf, for example. Linking
5879 # a copy of libgcc.a into every shared library to guarantee resolving
5880 # such symbols causes other problems: According to Tim Van Holder
5881 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5882 # (to the application) exception stack for one thing.
5883 no_undefined_flag=' -z defs'
5884 if test "$GCC" = yes; then
5885 case `$CC --version 2>/dev/null` in
5889 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5890 *** create self contained shared libraries on Solaris systems, without
5891 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5892 *** -no-undefined support, which will at least allow you to build shared
5893 *** libraries. However, you may find that when you link such libraries
5894 *** into an application without using GCC, you have to manually add
5895 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5896 *** upgrade to a newer version of GCC. Another option is to rebuild your
5897 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5904 # $CC -shared without GNU ld will not create a library from C++
5905 # object files and a static libstdc++, better avoid it by now
5906 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5907 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5908 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5909 hardcode_libdir_flag_spec='-R$libdir'
5910 hardcode_shlibpath_var=no
5912 solaris2.[0-5] | solaris2.[0-5].*) ;;
5913 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5914 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5916 link_all_deplibs=yes
5920 if test "x$host_vendor" = xsequent; then
5921 # Use $CC to link under sequent, because it throws in some extra .o
5922 # files that make .init and .fini sections work.
5923 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5925 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5927 hardcode_libdir_flag_spec='-L$libdir'
5929 hardcode_minus_L=yes
5930 hardcode_shlibpath_var=no
5934 if test "x$host_vendor" = xsno; then
5935 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5936 hardcode_direct=yes # is this really true???
5938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5939 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5941 runpath_var='LD_RUN_PATH'
5942 hardcode_shlibpath_var=no
5946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5947 hardcode_shlibpath_var=no
5948 export_dynamic_flag_spec='-Bexport'
5952 no_undefined_flag=' -z text'
5953 # $CC -shared without GNU ld will not create a library from C++
5954 # object files and a static libstdc++, better avoid it by now
5955 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5956 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5957 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5958 hardcode_libdir_flag_spec=
5959 hardcode_shlibpath_var=no
5960 runpath_var='LD_RUN_PATH'
5964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5965 hardcode_libdir_flag_spec='-L$libdir'
5966 hardcode_shlibpath_var=no
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 if test -d /usr/nec; then
5977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5978 hardcode_shlibpath_var=no
5979 runpath_var=LD_RUN_PATH
5980 hardcode_runpath_var=yes
5986 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5989 hardcode_shlibpath_var=no
5990 hardcode_runpath_var=yes
5991 runpath_var=LD_RUN_PATH
5994 sysv5uw7* | unixware7*)
5995 no_undefined_flag='${wl}-z ${wl}text'
5996 if test "$GCC" = yes; then
5997 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5999 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6001 runpath_var='LD_RUN_PATH'
6002 hardcode_shlibpath_var=no
6010 echo "$ac_t""$ld_shlibs" 1>&6
6011 test "$ld_shlibs" = no && can_build_shared=no
6013 # Check hardcoding attributes.
6014 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6015 echo "configure:6016: checking how to hardcode library paths into programs" >&5
6017 if test -n "$hardcode_libdir_flag_spec" || \
6018 test -n "$runpath_var"; then
6020 # We can hardcode non-existant directories.
6021 if test "$hardcode_direct" != no &&
6022 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6023 # have to relink, otherwise we might link with an installed library
6024 # when we should be linking with a yet-to-be-installed one
6025 ## test "$hardcode_shlibpath_var" != no &&
6026 test "$hardcode_minus_L" != no; then
6027 # Linking always hardcodes the temporary library directory.
6028 hardcode_action=relink
6030 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6031 hardcode_action=immediate
6034 # We cannot hardcode anything, or else we can only hardcode existing
6036 hardcode_action=unsupported
6038 echo "$ac_t""$hardcode_action" 1>&6
6042 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6043 echo "configure:6044: checking whether stripping libraries is possible" >&5
6044 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6045 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6046 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6047 echo "$ac_t""yes" 1>&6
6049 echo "$ac_t""no" 1>&6
6052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6053 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6055 # PORTME Fill in your ld.so characteristics
6056 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6057 echo "configure:6058: checking dynamic linker characteristics" >&5
6059 libname_spec='lib$name'
6066 shlibpath_overrides_runpath=unknown
6068 dynamic_linker="$host_os ld.so"
6069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6070 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6075 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6076 shlibpath_var=LIBPATH
6078 # AIX has no versioning support, so we append a major version to the name.
6079 soname_spec='${libname}${release}.so$major'
6084 if test "$host_cpu" = ia64; then
6085 # AIX 5 supports IA64
6086 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6087 shlibpath_var=LD_LIBRARY_PATH
6089 # With GCC up to 2.95.x, collect2 would create an import file
6090 # for dependence libraries. The import file would start with
6091 # the line `#! .'. This would cause the generated library to
6092 # depend on `.', always an invalid library. This was fixed in
6093 # development snapshots of GCC prior to 3.0.
6095 aix4 | aix4.[01] | aix4.[01].*)
6096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6098 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6105 # AIX (on Power*) has no versioning support, so currently we can
6106 # not hardcode correct soname into executable. Probably we can
6107 # add versioning support to collect2, so additional links can
6108 # be useful in future.
6109 if test "$aix_use_runtimelinking" = yes; then
6110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6111 # instead of lib<name>.a to let people know that these are not
6112 # typical AIX shared libraries.
6113 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6115 # We preserve .a as extension for shared libraries through AIX4.2
6116 # and later when we are not doing run time linking.
6117 library_names_spec='${libname}${release}.a $libname.a'
6118 soname_spec='${libname}${release}.so$major'
6120 shlibpath_var=LIBPATH
6125 library_names_spec='$libname.ixlibrary $libname.a'
6126 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6127 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'
6131 library_names_spec='${libname}.so'
6132 dynamic_linker="$host_os ld.so"
6133 shlibpath_var=LIBRARY_PATH
6139 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6140 soname_spec='${libname}${release}.so$major'
6141 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6142 shlibpath_var=LD_LIBRARY_PATH
6143 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6144 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6145 export_dynamic_flag_spec=-rdynamic
6146 # the default ld.so.conf also contains /usr/contrib/lib and
6147 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6148 # libtool to hard-code these into programs
6151 cygwin* | mingw* | pw32*)
6152 version_type=windows
6155 case $GCC,$host_os in
6157 library_names_spec='$libname.dll.a'
6158 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6159 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6160 dldir=$destdir/`dirname \$dlpath`~
6161 test -d \$dldir || mkdir -p \$dldir~
6162 $install_prog .libs/$dlname \$dldir/$dlname'
6163 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6164 dlpath=$dir/\$dldll~
6168 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6169 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6172 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6175 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6178 dynamic_linker='Win32 ld.exe'
6179 # FIXME: first we should search . and the directory the executable is in
6183 darwin* | rhapsody*)
6184 dynamic_linker="$host_os dyld"
6188 # FIXME: Relying on posixy $() will cause problems for
6189 # cross-compilation, but unfortunately the echo tests do not
6190 # yet detect zsh echo's removal of \ escapes.
6191 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)'
6192 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6193 shlibpath_overrides_runpath=yes
6194 shlibpath_var=DYLD_LIBRARY_PATH
6202 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6203 version_type=freebsd-$objformat
6204 case $version_type in
6206 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6211 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6215 shlibpath_var=LD_LIBRARY_PATH
6218 shlibpath_overrides_runpath=yes
6221 shlibpath_overrides_runpath=no
6222 hardcode_into_libs=yes
6231 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6232 soname_spec='${libname}${release}.so$major'
6233 shlibpath_var=LD_LIBRARY_PATH
6234 hardcode_into_libs=yes
6237 hpux9* | hpux10* | hpux11*)
6238 # Give a soname corresponding to the major version so that dld.sl refuses to
6239 # link against other versions.
6240 dynamic_linker="$host_os dld.sl"
6244 shlibpath_var=SHLIB_PATH
6245 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6246 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6247 soname_spec='${libname}${release}.sl$major'
6248 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6249 postinstall_cmds='chmod 555 $lib'
6256 soname_spec='${libname}${release}.so$major'
6257 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6263 case $LD in # libtool.m4 will add one of these switches to LD
6264 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6265 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6266 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6267 *) libsuff= shlibsuff= libmagic=never-match;;
6271 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6272 shlibpath_overrides_runpath=no
6273 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6274 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6277 # No shared lib support for Linux oldld, aout, or coff.
6278 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6282 # This must be Linux ELF.
6287 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6288 soname_spec='${libname}${release}.so$major'
6289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6290 shlibpath_var=LD_LIBRARY_PATH
6291 shlibpath_overrides_runpath=no
6292 # This implies no fast_install, which is unacceptable.
6293 # Some rework will be needed to allow for fast_install
6294 # before this can be enabled.
6295 hardcode_into_libs=yes
6297 # We used to test for /lib/ld.so.1 and disable shared libraries on
6298 # powerpc, because MkLinux only supported shared libraries with the
6299 # GNU dynamic linker. Since this was broken with cross compilers,
6300 # most powerpc-linux boxes support dynamic linking these days and
6301 # people can always --disable-shared, the test was removed, and we
6302 # assume the GNU/Linux dynamic linker is in use.
6303 dynamic_linker='GNU/Linux ld.so'
6310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6311 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6313 dynamic_linker='NetBSD (a.out) ld.so'
6315 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6316 soname_spec='${libname}${release}.so$major'
6317 dynamic_linker='NetBSD ld.elf_so'
6319 shlibpath_var=LD_LIBRARY_PATH
6320 shlibpath_overrides_runpath=yes
6321 hardcode_into_libs=yes
6326 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6327 shlibpath_var=LD_LIBRARY_PATH
6328 shlibpath_overrides_runpath=yes
6335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6337 openbsd2.[89] | openbsd2.[89].*)
6338 shlibpath_overrides_runpath=no
6341 shlibpath_overrides_runpath=yes
6345 shlibpath_overrides_runpath=yes
6347 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6349 shlibpath_var=LD_LIBRARY_PATH
6353 libname_spec='$name'
6355 library_names_spec='$libname.dll $libname.a'
6356 dynamic_linker='OS/2 ld.exe'
6357 shlibpath_var=LIBPATH
6360 osf3* | osf4* | osf5*)
6363 soname_spec='${libname}${release}.so'
6364 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6365 shlibpath_var=LD_LIBRARY_PATH
6366 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6367 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6372 soname_spec='${libname}${release}.so$major'
6373 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6374 shlibpath_var=LD_LIBRARY_PATH
6381 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6382 soname_spec='${libname}${release}.so$major'
6383 shlibpath_var=LD_LIBRARY_PATH
6384 shlibpath_overrides_runpath=yes
6385 hardcode_into_libs=yes
6386 # ldd complains unless libraries are executable
6387 postinstall_cmds='chmod +x $lib'
6392 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6393 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6394 shlibpath_var=LD_LIBRARY_PATH
6395 shlibpath_overrides_runpath=yes
6396 if test "$with_gnu_ld" = yes; then
6402 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6404 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6405 soname_spec='${libname}${release}.so$major'
6406 shlibpath_var=LD_LIBRARY_PATH
6407 case $host_vendor in
6409 shlibpath_overrides_runpath=no
6414 shlibpath_overrides_runpath=no
6415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6422 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6423 soname_spec='${libname}${release}.so$major'
6424 shlibpath_var=LD_LIBRARY_PATH
6431 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6432 soname_spec='${libname}${release}.so$major'
6433 shlibpath_var=LD_LIBRARY_PATH
6437 if test -d /usr/nec ;then
6439 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6440 soname_spec='$libname.so.$major'
6441 shlibpath_var=LD_LIBRARY_PATH
6449 echo "$ac_t""$dynamic_linker" 1>&6
6450 test "$dynamic_linker" = no && can_build_shared=no
6452 # Report the final consequences.
6453 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6454 echo "configure:6455: checking if libtool supports shared libraries" >&5
6455 echo "$ac_t""$can_build_shared" 1>&6
6457 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6458 echo "configure:6459: checking whether to build shared libraries" >&5
6459 test "$can_build_shared" = "no" && enable_shared=no
6461 # On AIX, shared libraries and static libraries use the same namespace, and
6462 # are all built from PIC.
6465 test "$enable_shared" = yes && enable_static=no
6466 if test -n "$RANLIB"; then
6467 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6468 postinstall_cmds='$RANLIB $lib'
6473 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6474 test "$enable_shared" = yes && enable_static=no
6478 echo "$ac_t""$enable_shared" 1>&6
6480 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6481 echo "configure:6482: checking whether to build static libraries" >&5
6482 # Make sure either enable_shared or enable_static is yes.
6483 test "$enable_shared" = yes || enable_static=yes
6484 echo "$ac_t""$enable_static" 1>&6
6486 if test "$hardcode_action" = relink; then
6487 # Fast installation is not supported
6488 enable_fast_install=no
6489 elif test "$shlibpath_overrides_runpath" = yes ||
6490 test "$enable_shared" = no; then
6491 # Fast installation is not necessary
6492 enable_fast_install=needless
6495 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6496 if test "$GCC" = yes; then
6497 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6500 if test "x$enable_dlopen" != xyes; then
6501 enable_dlopen=unknown
6502 enable_dlopen_self=unknown
6503 enable_dlopen_self_static=unknown
6510 lt_cv_dlopen="load_add_on"
6512 lt_cv_dlopen_self=yes
6515 cygwin* | mingw* | pw32*)
6516 lt_cv_dlopen="LoadLibrary"
6521 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6522 echo "configure:6523: checking for shl_load" >&5
6523 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6526 cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6529 /* System header to define __stub macros and hopefully few prototypes,
6530 which can conflict with char shl_load(); below. */
6532 /* Override any gcc2 internal prototype to avoid an error. */
6533 /* We use char because int might match the return type of a gcc2
6534 builtin and then its argument prototype would still apply. */
6540 /* The GNU C library defines this for functions which it implements
6541 to always fail with ENOSYS. Some functions are actually named
6542 something starting with __ and the normal name is an alias. */
6543 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6551 if { (eval echo configure:6552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6553 eval "ac_cv_func_shl_load=yes"
6555 echo "configure: failed program was:" >&5
6556 cat conftest.$ac_ext >&5
6558 eval "ac_cv_func_shl_load=no"
6563 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6564 echo "$ac_t""yes" 1>&6
6565 lt_cv_dlopen="shl_load"
6567 echo "$ac_t""no" 1>&6
6568 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6569 echo "configure:6570: checking for shl_load in -ldld" >&5
6570 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6571 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6574 ac_save_LIBS="$LIBS"
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6588 if { (eval echo configure:6589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6590 eval "ac_cv_lib_$ac_lib_var=yes"
6592 echo "configure: failed program was:" >&5
6593 cat conftest.$ac_ext >&5
6595 eval "ac_cv_lib_$ac_lib_var=no"
6598 LIBS="$ac_save_LIBS"
6601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6602 echo "$ac_t""yes" 1>&6
6603 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6605 echo "$ac_t""no" 1>&6
6606 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6607 echo "configure:6608: checking for dlopen" >&5
6608 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6609 echo $ac_n "(cached) $ac_c" 1>&6
6611 cat > conftest.$ac_ext <<EOF
6612 #line 6613 "configure"
6613 #include "confdefs.h"
6614 /* System header to define __stub macros and hopefully few prototypes,
6615 which can conflict with char dlopen(); below. */
6617 /* Override any gcc2 internal prototype to avoid an error. */
6618 /* We use char because int might match the return type of a gcc2
6619 builtin and then its argument prototype would still apply. */
6625 /* The GNU C library defines this for functions which it implements
6626 to always fail with ENOSYS. Some functions are actually named
6627 something starting with __ and the normal name is an alias. */
6628 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6636 if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6638 eval "ac_cv_func_dlopen=yes"
6640 echo "configure: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6643 eval "ac_cv_func_dlopen=no"
6648 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6649 echo "$ac_t""yes" 1>&6
6650 lt_cv_dlopen="dlopen"
6652 echo "$ac_t""no" 1>&6
6653 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6654 echo "configure:6655: checking for dlopen in -ldl" >&5
6655 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6656 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6657 echo $ac_n "(cached) $ac_c" 1>&6
6659 ac_save_LIBS="$LIBS"
6661 cat > conftest.$ac_ext <<EOF
6662 #line 6663 "configure"
6663 #include "confdefs.h"
6664 /* Override any gcc2 internal prototype to avoid an error. */
6665 /* We use char because int might match the return type of a gcc2
6666 builtin and then its argument prototype would still apply. */
6673 if { (eval echo configure:6674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6675 eval "ac_cv_lib_$ac_lib_var=yes"
6677 echo "configure: failed program was:" >&5
6678 cat conftest.$ac_ext >&5
6680 eval "ac_cv_lib_$ac_lib_var=no"
6683 LIBS="$ac_save_LIBS"
6686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6687 echo "$ac_t""yes" 1>&6
6688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6690 echo "$ac_t""no" 1>&6
6691 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6692 echo "configure:6693: checking for dlopen in -lsvld" >&5
6693 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6694 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6695 echo $ac_n "(cached) $ac_c" 1>&6
6697 ac_save_LIBS="$LIBS"
6699 cat > conftest.$ac_ext <<EOF
6700 #line 6701 "configure"
6701 #include "confdefs.h"
6702 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6711 if { (eval echo configure:6712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6713 eval "ac_cv_lib_$ac_lib_var=yes"
6715 echo "configure: failed program was:" >&5
6716 cat conftest.$ac_ext >&5
6718 eval "ac_cv_lib_$ac_lib_var=no"
6721 LIBS="$ac_save_LIBS"
6724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6725 echo "$ac_t""yes" 1>&6
6726 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6728 echo "$ac_t""no" 1>&6
6729 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6730 echo "configure:6731: checking for dld_link in -ldld" >&5
6731 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6732 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6733 echo $ac_n "(cached) $ac_c" 1>&6
6735 ac_save_LIBS="$LIBS"
6737 cat > conftest.$ac_ext <<EOF
6738 #line 6739 "configure"
6739 #include "confdefs.h"
6740 /* Override any gcc2 internal prototype to avoid an error. */
6741 /* We use char because int might match the return type of a gcc2
6742 builtin and then its argument prototype would still apply. */
6749 if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6751 eval "ac_cv_lib_$ac_lib_var=yes"
6753 echo "configure: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6756 eval "ac_cv_lib_$ac_lib_var=no"
6759 LIBS="$ac_save_LIBS"
6762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6763 echo "$ac_t""yes" 1>&6
6764 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6766 echo "$ac_t""no" 1>&6
6787 if test "x$lt_cv_dlopen" != xno; then
6793 case $lt_cv_dlopen in
6795 save_CPPFLAGS="$CPPFLAGS"
6796 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6798 save_LDFLAGS="$LDFLAGS"
6799 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6802 LIBS="$lt_cv_dlopen_libs $LIBS"
6804 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6805 echo "configure:6806: checking whether a program can dlopen itself" >&5
6806 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6809 if test "$cross_compiling" = yes; then :
6810 lt_cv_dlopen_self=cross
6812 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6813 lt_status=$lt_dlunknown
6814 cat > conftest.$ac_ext <<EOF
6815 #line 6816 "configure"
6816 #include "confdefs.h"
6825 # define LT_DLGLOBAL RTLD_GLOBAL
6828 # define LT_DLGLOBAL DL_GLOBAL
6830 # define LT_DLGLOBAL 0
6834 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6835 find out it does not work in some platform. */
6836 #ifndef LT_DLLAZY_OR_NOW
6838 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6841 # define LT_DLLAZY_OR_NOW DL_LAZY
6844 # define LT_DLLAZY_OR_NOW RTLD_NOW
6847 # define LT_DLLAZY_OR_NOW DL_NOW
6849 # define LT_DLLAZY_OR_NOW 0
6857 extern "C" void exit (int);
6860 void fnord() { int i=42;}
6863 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6864 int status = $lt_dlunknown;
6868 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6869 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6870 /* dlclose (self); */
6876 if { (eval echo configure:6877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6877 (./conftest; exit; ) 2>/dev/null
6880 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6881 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6882 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6885 # compilation failed
6886 lt_cv_dlopen_self=no
6894 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6896 if test "x$lt_cv_dlopen_self" = xyes; then
6897 LDFLAGS="$LDFLAGS $link_static_flag"
6898 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6899 echo "configure:6900: checking whether a statically linked program can dlopen itself" >&5
6900 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6901 echo $ac_n "(cached) $ac_c" 1>&6
6903 if test "$cross_compiling" = yes; then :
6904 lt_cv_dlopen_self_static=cross
6906 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6907 lt_status=$lt_dlunknown
6908 cat > conftest.$ac_ext <<EOF
6909 #line 6910 "configure"
6910 #include "confdefs.h"
6919 # define LT_DLGLOBAL RTLD_GLOBAL
6922 # define LT_DLGLOBAL DL_GLOBAL
6924 # define LT_DLGLOBAL 0
6928 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6929 find out it does not work in some platform. */
6930 #ifndef LT_DLLAZY_OR_NOW
6932 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6935 # define LT_DLLAZY_OR_NOW DL_LAZY
6938 # define LT_DLLAZY_OR_NOW RTLD_NOW
6941 # define LT_DLLAZY_OR_NOW DL_NOW
6943 # define LT_DLLAZY_OR_NOW 0
6951 extern "C" void exit (int);
6954 void fnord() { int i=42;}
6957 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6958 int status = $lt_dlunknown;
6962 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6963 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6964 /* dlclose (self); */
6970 if { (eval echo configure:6971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6971 (./conftest; exit; ) 2>/dev/null
6974 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6975 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6976 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6979 # compilation failed
6980 lt_cv_dlopen_self_static=no
6988 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6991 CPPFLAGS="$save_CPPFLAGS"
6992 LDFLAGS="$save_LDFLAGS"
6997 case $lt_cv_dlopen_self in
6998 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6999 *) enable_dlopen_self=unknown ;;
7002 case $lt_cv_dlopen_self_static in
7003 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7004 *) enable_dlopen_self_static=unknown ;;
7009 if test "$enable_shared" = yes && test "$GCC" = yes; then
7010 case $archive_cmds in
7012 # FIXME: we may have to deal with multi-command sequences.
7015 # Test whether the compiler implicitly links with -lc since on some
7016 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7017 # to ld, don't add -lc before -lgcc.
7018 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7019 echo "configure:7020: checking whether -lc should be explicitly linked in" >&5
7020 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7021 echo $ac_n "(cached) $ac_c" 1>&6
7024 echo 'static int dummy;' > conftest.$ac_ext
7026 if { (eval echo configure:7027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7029 libobjs=conftest.$ac_objext
7031 wl=$lt_cv_prog_cc_wl
7037 save_allow_undefined_flag=$allow_undefined_flag
7038 allow_undefined_flag=
7039 if { (eval echo configure:7040: \"$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; }
7041 lt_cv_archive_cmds_need_lc=no
7043 lt_cv_archive_cmds_need_lc=yes
7045 allow_undefined_flag=$save_allow_undefined_flag
7047 cat conftest.err 1>&5
7051 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7055 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7057 # The second clause should only fire when bootstrapping the
7058 # libtool distribution, otherwise you forgot to ship ltmain.sh
7059 # with your package, and you will get complaints that there are
7060 # no rules to generate ltmain.sh.
7061 if test -f "$ltmain"; then
7064 # If there is no Makefile yet, we rely on a make rule to execute
7065 # `config.status --recheck' to rerun these tests and create the
7066 # libtool script then.
7067 test -f Makefile && make "$ltmain"
7070 if test -f "$ltmain"; then
7071 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7074 echo creating $ofile
7076 # Now quote all the things that may contain metacharacters while being
7077 # careful not to overquote the AC_SUBSTed values. We take copies of the
7078 # variables and quote the copies for generation of the libtool script.
7079 for var in echo old_CC old_CFLAGS \
7080 AR AR_FLAGS CC LD LN_S NM SHELL \
7081 reload_flag reload_cmds wl \
7082 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7083 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7084 library_names_spec soname_spec \
7085 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7086 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7087 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7088 old_striplib striplib file_magic_cmd export_symbols_cmds \
7089 deplibs_check_method allow_undefined_flag no_undefined_flag \
7090 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7091 global_symbol_to_c_name_address \
7092 hardcode_libdir_flag_spec hardcode_libdir_separator \
7093 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7094 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7097 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7098 old_postinstall_cmds | old_postuninstall_cmds | \
7099 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7100 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7101 postinstall_cmds | postuninstall_cmds | \
7102 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7103 # Double-quote double-evaled strings.
7104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7107 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7112 cat <<__EOF__ > "${ofile}T"
7115 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7116 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7117 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7119 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7120 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7122 # This program is free software; you can redistribute it and/or modify
7123 # it under the terms of the GNU General Public License as published by
7124 # the Free Software Foundation; either version 2 of the License, or
7125 # (at your option) any later version.
7127 # This program is distributed in the hope that it will be useful, but
7128 # WITHOUT ANY WARRANTY; without even the implied warranty of
7129 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7130 # General Public License for more details.
7132 # You should have received a copy of the GNU General Public License
7133 # along with this program; if not, write to the Free Software
7134 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7136 # As a special exception to the GNU General Public License, if you
7137 # distribute this file as part of a program that contains a
7138 # configuration script generated by Autoconf, you may include it under
7139 # the same distribution terms that you use for the rest of that program.
7141 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7142 Xsed="sed -e s/^X//"
7144 # The HP-UX ksh and POSIX shell print the target directory to stdout
7146 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7148 # ### BEGIN LIBTOOL CONFIG
7150 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7152 # Shell to use when invoking shell scripts.
7155 # Whether or not to build shared libraries.
7156 build_libtool_libs=$enable_shared
7158 # Whether or not to build static libraries.
7159 build_old_libs=$enable_static
7161 # Whether or not to add -lc for building shared libraries.
7162 build_libtool_need_lc=$need_lc
7164 # Whether or not to optimize for fast installation.
7165 fast_install=$enable_fast_install
7168 host_alias=$host_alias
7171 # An echo program that does not interpret backslashes.
7176 AR_FLAGS=$lt_AR_FLAGS
7178 # The default C compiler.
7181 # Is the compiler the GNU C compiler?
7184 # The linker used to build libraries.
7187 # Whether we need hard or soft links.
7190 # A BSD-compatible nm program.
7193 # A symbol stripping program
7196 # Used to examine libraries when file_magic_cmd begins "file"
7197 MAGIC_CMD=$MAGIC_CMD
7199 # Used on cygwin: DLL creation program.
7202 # Used on cygwin: object dumper.
7205 # Used on cygwin: assembler.
7208 # The name of the directory that contains temporary libtool files.
7211 # How to create reloadable object files.
7212 reload_flag=$lt_reload_flag
7213 reload_cmds=$lt_reload_cmds
7215 # How to pass a linker flag through the compiler.
7218 # Object file suffix (normally "o").
7221 # Old archive suffix (normally "a").
7224 # Executable file suffix (normally "").
7227 # Additional compiler flags for building library objects.
7228 pic_flag=$lt_pic_flag
7231 # Does compiler simultaneously support -c and -o options?
7232 compiler_c_o=$lt_compiler_c_o
7234 # Can we write directly to a .lo ?
7235 compiler_o_lo=$lt_compiler_o_lo
7237 # Must we lock files when doing compilation ?
7238 need_locks=$lt_need_locks
7240 # Do we need the lib prefix for modules?
7241 need_lib_prefix=$need_lib_prefix
7243 # Do we need a version for libraries?
7244 need_version=$need_version
7246 # Whether dlopen is supported.
7247 dlopen_support=$enable_dlopen
7249 # Whether dlopen of programs is supported.
7250 dlopen_self=$enable_dlopen_self
7252 # Whether dlopen of statically linked programs is supported.
7253 dlopen_self_static=$enable_dlopen_self_static
7255 # Compiler flag to prevent dynamic linking.
7256 link_static_flag=$lt_link_static_flag
7258 # Compiler flag to turn off builtin functions.
7259 no_builtin_flag=$lt_no_builtin_flag
7261 # Compiler flag to allow reflexive dlopens.
7262 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7264 # Compiler flag to generate shared objects directly from archives.
7265 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7267 # Compiler flag to generate thread-safe objects.
7268 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7270 # Library versioning type.
7271 version_type=$version_type
7273 # Format of library name prefix.
7274 libname_spec=$lt_libname_spec
7276 # List of archive names. First name is the real one, the rest are links.
7277 # The last name is the one that the linker finds with -lNAME.
7278 library_names_spec=$lt_library_names_spec
7280 # The coded name of the library, if different from the real name.
7281 soname_spec=$lt_soname_spec
7283 # Commands used to build and install an old-style archive.
7285 old_archive_cmds=$lt_old_archive_cmds
7286 old_postinstall_cmds=$lt_old_postinstall_cmds
7287 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7289 # Create an old-style archive from a shared archive.
7290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7292 # Create a temporary old-style archive to link instead of a shared archive.
7293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7295 # Commands used to build and install a shared archive.
7296 archive_cmds=$lt_archive_cmds
7297 archive_expsym_cmds=$lt_archive_expsym_cmds
7298 postinstall_cmds=$lt_postinstall_cmds
7299 postuninstall_cmds=$lt_postuninstall_cmds
7301 # Commands to strip libraries.
7302 old_striplib=$lt_old_striplib
7303 striplib=$lt_striplib
7305 # Method to check whether dependent libraries are shared objects.
7306 deplibs_check_method=$lt_deplibs_check_method
7308 # Command to use when deplibs_check_method == file_magic.
7309 file_magic_cmd=$lt_file_magic_cmd
7311 # Flag that allows shared libraries with undefined symbols to be built.
7312 allow_undefined_flag=$lt_allow_undefined_flag
7314 # Flag that forces no undefined symbols.
7315 no_undefined_flag=$lt_no_undefined_flag
7317 # Commands used to finish a libtool library installation in a directory.
7318 finish_cmds=$lt_finish_cmds
7320 # Same as above, but a single script fragment to be evaled but not shown.
7321 finish_eval=$lt_finish_eval
7323 # Take the output of nm and produce a listing of raw symbols and C names.
7324 global_symbol_pipe=$lt_global_symbol_pipe
7326 # Transform the output of nm in a proper C declaration
7327 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7329 # Transform the output of nm in a C name address pair
7330 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7332 # This is the shared library runtime path variable.
7333 runpath_var=$runpath_var
7335 # This is the shared library path variable.
7336 shlibpath_var=$shlibpath_var
7338 # Is shlibpath searched before the hard-coded library search path?
7339 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7341 # How to hardcode a shared library path into an executable.
7342 hardcode_action=$hardcode_action
7344 # Whether we should hardcode library paths into libraries.
7345 hardcode_into_libs=$hardcode_into_libs
7347 # Flag to hardcode \$libdir into a binary during linking.
7348 # This must work even if \$libdir does not exist.
7349 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7351 # Whether we need a single -rpath flag with a separated argument.
7352 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7354 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7356 hardcode_direct=$hardcode_direct
7358 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7360 hardcode_minus_L=$hardcode_minus_L
7362 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7363 # the resulting binary.
7364 hardcode_shlibpath_var=$hardcode_shlibpath_var
7366 # Variables whose values should be saved in libtool wrapper scripts and
7367 # restored at relink time.
7368 variables_saved_for_relink="$variables_saved_for_relink"
7370 # Whether libtool must link a program against all its dependency libraries.
7371 link_all_deplibs=$link_all_deplibs
7373 # Compile-time system search path for libraries
7374 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7376 # Run-time system search path for libraries
7377 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7379 # Fix the shell variable \$srcfile for the compiler.
7380 fix_srcfile_path="$fix_srcfile_path"
7382 # Set to yes if exported symbols are required.
7383 always_export_symbols=$always_export_symbols
7385 # The commands to list exported symbols.
7386 export_symbols_cmds=$lt_export_symbols_cmds
7388 # The commands to extract the exported symbol list from a shared archive.
7389 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7391 # Symbols that should not be listed in the preloaded symbols.
7392 exclude_expsyms=$lt_exclude_expsyms
7394 # Symbols that must always be exported.
7395 include_expsyms=$lt_include_expsyms
7397 # ### END LIBTOOL CONFIG
7403 cat <<\EOF >> "${ofile}T"
7405 # AIX sometimes has problems with the GCC collect2 program. For some
7406 # reason, if we set the COLLECT_NAMES environment variable, the problems
7407 # vanish in a puff of smoke.
7408 if test "X${COLLECT_NAMES+set}" != Xset; then
7410 export COLLECT_NAMES
7417 cygwin* | mingw* | pw32* | os2*)
7418 cat <<'EOF' >> "${ofile}T"
7419 # This is a source program that is used to create dlls on Windows
7420 # Don't remove nor modify the starting and closing comments
7421 # /* ltdll.c starts here */
7422 # #define WIN32_LEAN_AND_MEAN
7423 # #include <windows.h>
7424 # #undef WIN32_LEAN_AND_MEAN
7425 # #include <stdio.h>
7427 # #ifndef __CYGWIN__
7428 # # ifdef __CYGWIN32__
7429 # # define __CYGWIN__ __CYGWIN32__
7433 # #ifdef __cplusplus
7436 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7437 # #ifdef __cplusplus
7442 # #include <cygwin/cygwin_dll.h>
7443 # DECLARE_CYGWIN_DLL( DllMain );
7445 # HINSTANCE __hDllInstance_base;
7448 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7450 # __hDllInstance_base = hInst;
7453 # /* ltdll.c ends here */
7454 # This is a source program that is used to create import libraries
7455 # on Windows for dlls which lack them. Don't remove nor modify the
7456 # starting and closing comments
7457 # /* impgen.c starts here */
7458 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7460 # This file is part of GNU libtool.
7462 # This program is free software; you can redistribute it and/or modify
7463 # it under the terms of the GNU General Public License as published by
7464 # the Free Software Foundation; either version 2 of the License, or
7465 # (at your option) any later version.
7467 # This program is distributed in the hope that it will be useful,
7468 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7469 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7470 # GNU General Public License for more details.
7472 # You should have received a copy of the GNU General Public License
7473 # along with this program; if not, write to the Free Software
7474 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7477 # #include <stdio.h> /* for printf() */
7478 # #include <unistd.h> /* for open(), lseek(), read() */
7479 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7480 # #include <string.h> /* for strdup() */
7482 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7484 # #define O_BINARY 0
7487 # static unsigned int
7488 # pe_get16 (fd, offset)
7492 # unsigned char b[2];
7493 # lseek (fd, offset, SEEK_SET);
7495 # return b[0] + (b[1]<<8);
7498 # static unsigned int
7499 # pe_get32 (fd, offset)
7503 # unsigned char b[4];
7504 # lseek (fd, offset, SEEK_SET);
7506 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7509 # static unsigned int
7513 # unsigned char *b = ptr;
7514 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7523 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7524 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7525 # unsigned long name_rvas, nexp;
7526 # unsigned char *expdata, *erva;
7527 # char *filename, *dll_name;
7529 # filename = argv[1];
7531 # dll = open(filename, O_RDONLY|O_BINARY);
7535 # dll_name = filename;
7537 # for (i=0; filename[i]; i++)
7538 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7539 # dll_name = filename + i +1;
7541 # pe_header_offset = pe_get32 (dll, 0x3c);
7542 # opthdr_ofs = pe_header_offset + 4 + 20;
7543 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7545 # if (num_entries < 1) /* no exports */
7548 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7549 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7550 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7551 # secptr = (pe_header_offset + 4 + 20 +
7552 # pe_get16 (dll, pe_header_offset + 4 + 16));
7555 # for (i = 0; i < nsections; i++)
7558 # unsigned long secptr1 = secptr + 40 * i;
7559 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7560 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7561 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7562 # lseek(dll, secptr1, SEEK_SET);
7563 # read(dll, sname, 8);
7564 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7566 # expptr = fptr + (export_rva - vaddr);
7567 # if (export_rva + export_size > vaddr + vsize)
7568 # export_size = vsize - (export_rva - vaddr);
7573 # expdata = (unsigned char*)malloc(export_size);
7574 # lseek (dll, expptr, SEEK_SET);
7575 # read (dll, expdata, export_size);
7576 # erva = expdata - export_rva;
7578 # nexp = pe_as32 (expdata+24);
7579 # name_rvas = pe_as32 (expdata+32);
7581 # printf ("EXPORTS\n");
7582 # for (i = 0; i<nexp; i++)
7584 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7585 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7590 # /* impgen.c ends here */
7596 # We use sed instead of cat because bash on DJGPP gets confused if
7597 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7598 # text mode, it properly converts lines to CR/LF. This bash problem
7599 # is reportedly fixed, but why not run on old versions too?
7600 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7602 mv -f "${ofile}T" "$ofile" || \
7603 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7611 # This can be used to rebuild libtool when needed
7612 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7614 # Always use our own libtool.
7615 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7617 # Prevent multiple expansion
7621 for ac_prog in mawk gawk nawk awk
7623 # Extract the first word of "$ac_prog", so it can be a program name with args.
7624 set dummy $ac_prog; ac_word=$2
7625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7626 echo "configure:7627: checking for $ac_word" >&5
7627 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
7628 echo $ac_n "(cached) $ac_c" 1>&6
7630 if test -n "$AWK"; then
7631 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7635 for ac_dir in $ac_dummy; do
7636 test -z "$ac_dir" && ac_dir=.
7637 if test -f $ac_dir/$ac_word; then
7638 ac_cv_prog_AWK="$ac_prog"
7645 AWK="$ac_cv_prog_AWK"
7646 if test -n "$AWK"; then
7647 echo "$ac_t""$AWK" 1>&6
7649 echo "$ac_t""no" 1>&6
7652 test -n "$AWK" && break
7655 # test for ln hardlink support
7656 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7657 echo "configure:7658: checking whether ln works" >&5
7658 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7659 echo $ac_n "(cached) $ac_c" 1>&6
7661 rm -f conftest.src conftest.dst
7662 echo "conftest" > conftest.src
7663 if ln conftest.src conftest.dst 2>/dev/null
7665 ol_cv_prog_LN_H="ln"
7667 ol_cv_prog_LN_H="cp"
7669 rm -f conftest.src conftest.dst
7672 LN_H="$ol_cv_prog_LN_H"
7673 if test "$ol_cv_prog_LN_H" = "ln"; then
7674 echo "$ac_t""yes" 1>&6
7676 echo "$ac_t""no" 1>&6
7679 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7680 echo "configure:7681: checking whether ln -s works" >&5
7681 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7682 echo $ac_n "(cached) $ac_c" 1>&6
7685 if ln -s X conftestdata 2>/dev/null
7688 ac_cv_prog_LN_S="ln -s"
7693 LN_S="$ac_cv_prog_LN_S"
7694 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7695 echo "$ac_t""yes" 1>&6
7697 echo "$ac_t""no" 1>&6
7701 # Extract the first word of "sendmail", so it can be a program name with args.
7702 set dummy sendmail; ac_word=$2
7703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7704 echo "configure:7705: checking for $ac_word" >&5
7705 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7706 echo $ac_n "(cached) $ac_c" 1>&6
7710 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7713 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7717 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7718 for ac_dir in $ac_dummy; do
7719 test -z "$ac_dir" && ac_dir=.
7720 if test -f $ac_dir/$ac_word; then
7721 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7726 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7730 SENDMAIL="$ac_cv_path_SENDMAIL"
7731 if test -n "$SENDMAIL"; then
7732 echo "$ac_t""$SENDMAIL" 1>&6
7734 echo "$ac_t""no" 1>&6
7737 # Extract the first word of "vi", so it can be a program name with args.
7738 set dummy vi; ac_word=$2
7739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7740 echo "configure:7741: checking for $ac_word" >&5
7741 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7742 echo $ac_n "(cached) $ac_c" 1>&6
7746 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7749 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7753 ac_dummy="$PATH:/usr/ucb"
7754 for ac_dir in $ac_dummy; do
7755 test -z "$ac_dir" && ac_dir=.
7756 if test -f $ac_dir/$ac_word; then
7757 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7762 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7766 EDITOR="$ac_cv_path_EDITOR"
7767 if test -n "$EDITOR"; then
7768 echo "$ac_t""$EDITOR" 1>&6
7770 echo "$ac_t""no" 1>&6
7775 if test $ol_enable_perl != no ; then
7776 # Extract the first word of "perl", so it can be a program name with args.
7777 set dummy perl; ac_word=$2
7778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7779 echo "configure:7780: checking for $ac_word" >&5
7780 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7781 echo $ac_n "(cached) $ac_c" 1>&6
7785 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7788 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7793 for ac_dir in $ac_dummy; do
7794 test -z "$ac_dir" && ac_dir=.
7795 if test -f $ac_dir/$ac_word; then
7796 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7801 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7805 PERLBIN="$ac_cv_path_PERLBIN"
7806 if test -n "$PERLBIN"; then
7807 echo "$ac_t""$PERLBIN" 1>&6
7809 echo "$ac_t""no" 1>&6
7813 if test "no$PERLBIN" = "no" ; then
7814 if test $ol_enable_perl = yes ; then
7815 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7819 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7820 if test x"$ol_with_perl_module" = "xstatic" ; then
7821 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7823 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7829 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7830 echo "configure:7831: checking how to run the C preprocessor" >&5
7831 # On Suns, sometimes $CPP names a directory.
7832 if test -n "$CPP" && test -d "$CPP"; then
7835 if test -z "$CPP"; then
7836 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7837 echo $ac_n "(cached) $ac_c" 1>&6
7839 # This must be in double quotes, not single quotes, because CPP may get
7840 # substituted into the Makefile and "${CC-cc}" will confuse make.
7842 # On the NeXT, cc -E runs the code through the compiler's parser,
7843 # not just through cpp.
7844 cat > conftest.$ac_ext <<EOF
7845 #line 7846 "configure"
7846 #include "confdefs.h"
7850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7851 { (eval echo configure:7852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7853 if test -z "$ac_err"; then
7857 echo "configure: failed program was:" >&5
7858 cat conftest.$ac_ext >&5
7860 CPP="${CC-cc} -E -traditional-cpp"
7861 cat > conftest.$ac_ext <<EOF
7862 #line 7863 "configure"
7863 #include "confdefs.h"
7867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7868 { (eval echo configure:7869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7870 if test -z "$ac_err"; then
7874 echo "configure: failed program was:" >&5
7875 cat conftest.$ac_ext >&5
7877 CPP="${CC-cc} -nologo -E"
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7885 { (eval echo configure:7886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7887 if test -z "$ac_err"; then
7891 echo "configure: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7901 ac_cv_prog_CPP="$CPP"
7903 CPP="$ac_cv_prog_CPP"
7905 ac_cv_prog_CPP="$CPP"
7907 echo "$ac_t""$CPP" 1>&6
7910 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7911 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7913 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7914 echo "configure: warning: programs compiled here do run here..." 1>&2
7915 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7917 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7918 echo "configure: warning: programs compiled here do not run here..." 1>&2
7919 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7923 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7924 echo "configure:7925: checking for Cygwin environment" >&5
7925 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7935 #define __CYGWIN__ __CYGWIN32__
7940 if { (eval echo configure:7941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7944 echo "configure: failed program was:" >&5
7945 cat conftest.$ac_ext >&5
7952 echo "$ac_t""$ac_cv_cygwin" 1>&6
7954 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7955 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7956 echo "configure:7957: checking for mingw32 environment" >&5
7957 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7958 echo $ac_n "(cached) $ac_c" 1>&6
7960 cat > conftest.$ac_ext <<EOF
7961 #line 7962 "configure"
7962 #include "confdefs.h"
7968 if { (eval echo configure:7969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7972 echo "configure: failed program was:" >&5
7973 cat conftest.$ac_ext >&5
7980 echo "$ac_t""$ac_cv_mingw32" 1>&6
7982 test "$ac_cv_mingw32" = yes && MINGW32=yes
7986 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7987 echo "configure:7988: checking for executable suffix" >&5
7988 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7989 echo $ac_n "(cached) $ac_c" 1>&6
7991 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7995 echo 'int main () { return 0; }' > conftest.$ac_ext
7997 if { (eval echo configure:7998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7998 for file in conftest.*; do
8000 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8001 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8005 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8008 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8013 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8014 echo "$ac_t""${ac_cv_exeext}" 1>&6
8017 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8018 echo "configure:8019: checking for object suffix" >&5
8019 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8020 echo $ac_n "(cached) $ac_c" 1>&6
8023 echo 'int i = 1;' > conftest.$ac_ext
8024 if { (eval echo configure:8025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8025 for ac_file in conftest.*; do
8028 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8032 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8037 echo "$ac_t""$ac_cv_objext" 1>&6
8038 OBJEXT=$ac_cv_objext
8039 ac_objext=$ac_cv_objext
8042 cat >> confdefs.h <<EOF
8043 #define EXEEXT "${EXEEXT}"
8047 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8048 echo "configure:8049: checking for be_app in -lbe" >&5
8049 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8050 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8051 echo $ac_n "(cached) $ac_c" 1>&6
8053 ac_save_LIBS="$LIBS"
8054 LIBS="-lbe -lroot -lnet $LIBS"
8055 cat > conftest.$ac_ext <<EOF
8056 #line 8057 "configure"
8057 #include "confdefs.h"
8058 /* Override any gcc2 internal prototype to avoid an error. */
8059 /* We use char because int might match the return type of a gcc2
8060 builtin and then its argument prototype would still apply. */
8067 if { (eval echo configure:8068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8069 eval "ac_cv_lib_$ac_lib_var=yes"
8071 echo "configure: failed program was:" >&5
8072 cat conftest.$ac_ext >&5
8074 eval "ac_cv_lib_$ac_lib_var=no"
8077 LIBS="$ac_save_LIBS"
8080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8081 echo "$ac_t""yes" 1>&6
8082 LIBS="$LIBS -lbe -lroot -lnet"
8084 echo "$ac_t""no" 1>&6
8092 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8093 echo "configure:8094: checking for ${CC-cc} option to accept ANSI C" >&5
8094 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8097 am_cv_prog_cc_stdc=no
8099 # Don't try gcc -ansi; that turns off useful extensions and
8100 # breaks some systems' header files.
8101 # AIX -qlanglvl=ansi
8102 # Ultrix and OSF/1 -std1
8103 # HP-UX 10.20 and later -Ae
8104 # HP-UX older versions -Aa -D_HPUX_SOURCE
8105 # SVR4 -Xc -D__EXTENSIONS__
8106 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8108 CC="$ac_save_CC $ac_arg"
8109 cat > conftest.$ac_ext <<EOF
8110 #line 8111 "configure"
8111 #include "confdefs.h"
8114 #include <sys/types.h>
8115 #include <sys/stat.h>
8116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8117 struct buf { int x; };
8118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8119 static char *e (p, i)
8125 static char *f (char * (*g) (char **, int), char **p, ...)
8130 s = g (p, va_arg (v,int));
8134 int test (int i, double x);
8135 struct s1 {int (*f) (int a);};
8136 struct s2 {int (*f) (double a);};
8137 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8143 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8147 if { (eval echo configure:8148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8149 am_cv_prog_cc_stdc="$ac_arg"; break
8151 echo "configure: failed program was:" >&5
8152 cat conftest.$ac_ext >&5
8160 if test -z "$am_cv_prog_cc_stdc"; then
8161 echo "$ac_t""none needed" 1>&6
8163 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8165 case "x$am_cv_prog_cc_stdc" in
8167 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8170 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8171 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8174 # test for make depend flag
8177 if test -z "${MKDEP}"; then
8179 if test -z "${MKDEP_FLAGS}"; then
8180 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8181 echo "configure:8182: checking for ${OL_MKDEP} depend flag" >&5
8182 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8183 echo $ac_n "(cached) $ac_c" 1>&6
8187 for flag in "-M" "-xM"; do
8188 cat > conftest.c <<EOF
8191 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8192 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8194 if test ! -f conftest."${ac_object}" ; then
8196 OL_MKDEP_FLAGS="$flag"
8205 echo "$ac_t""$ol_cv_mkdep" 1>&6
8208 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8213 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8218 if test "${ol_cv_mkdep}" = no ; then
8219 # this will soon become an error
8220 echo "configure: warning: do not know how to generate dependencies" 1>&2
8223 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8224 echo "configure:8225: checking for afopen in -ls" >&5
8225 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8226 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8229 ac_save_LIBS="$LIBS"
8231 cat > conftest.$ac_ext <<EOF
8232 #line 8233 "configure"
8233 #include "confdefs.h"
8234 /* Override any gcc2 internal prototype to avoid an error. */
8235 /* We use char because int might match the return type of a gcc2
8236 builtin and then its argument prototype would still apply. */
8243 if { (eval echo configure:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8245 eval "ac_cv_lib_$ac_lib_var=yes"
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8250 eval "ac_cv_lib_$ac_lib_var=no"
8253 LIBS="$ac_save_LIBS"
8256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8257 echo "$ac_t""yes" 1>&6
8260 cat >> confdefs.h <<\EOF
8261 #define HAVE_AIX_SECURITY 1
8266 echo "$ac_t""no" 1>&6
8272 ac_cv_func_getopt=no
8273 cat >> confdefs.h <<\EOF
8274 #define BOTH_STRINGS_H 1
8281 if test $ol_enable_modules != no ; then
8282 for ac_hdr in ltdl.h
8284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8286 echo "configure:8287: checking for $ac_hdr" >&5
8287 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8288 echo $ac_n "(cached) $ac_c" 1>&6
8290 cat > conftest.$ac_ext <<EOF
8291 #line 8292 "configure"
8292 #include "confdefs.h"
8295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8296 { (eval echo configure:8297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8298 if test -z "$ac_err"; then
8300 eval "ac_cv_header_$ac_safe=yes"
8303 echo "configure: failed program was:" >&5
8304 cat conftest.$ac_ext >&5
8306 eval "ac_cv_header_$ac_safe=no"
8310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8311 echo "$ac_t""yes" 1>&6
8312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8313 cat >> confdefs.h <<EOF
8314 #define $ac_tr_hdr 1
8318 echo "$ac_t""no" 1>&6
8323 if test $ac_cv_header_ltdl_h = no ; then
8324 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8327 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8328 echo "configure:8329: checking for lt_dlinit in -lltdl" >&5
8329 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8330 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8333 ac_save_LIBS="$LIBS"
8335 cat > conftest.$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 /* Override any gcc2 internal prototype to avoid an error. */
8339 /* We use char because int might match the return type of a gcc2
8340 builtin and then its argument prototype would still apply. */
8347 if { (eval echo configure:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8349 eval "ac_cv_lib_$ac_lib_var=yes"
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8354 eval "ac_cv_lib_$ac_lib_var=no"
8357 LIBS="$ac_save_LIBS"
8360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8361 echo "$ac_t""yes" 1>&6
8364 cat >> confdefs.h <<\EOF
8365 #define HAVE_LIBLTDL 1
8370 echo "$ac_t""no" 1>&6
8374 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8375 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8379 ol_with_bdb_module=static
8380 ol_with_dnssrv_module=static
8381 ol_with_ldap_module=static
8382 ol_with_ldbm_module=static
8383 ol_with_meta_module=static
8384 ol_with_monitor_module=static
8385 ol_with_null_module=static
8386 ol_with_passwd_module=static
8387 ol_with_perl_module=static
8388 ol_with_shell_module=static
8389 ol_with_sql_module=static
8393 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8394 echo "configure:8395: checking for EBCDIC" >&5
8395 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8396 echo $ac_n "(cached) $ac_c" 1>&6
8399 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8404 #include <__ASCII__/generate_error.h>
8408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8409 { (eval echo configure:8410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8411 if test -z "$ac_err"; then
8413 ol_cv_cpp_ebcdic=yes
8416 echo "configure: failed program was:" >&5
8417 cat conftest.$ac_ext >&5
8424 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8425 if test $ol_cv_cpp_ebcdic = yes ; then
8426 cat >> confdefs.h <<\EOF
8427 #define HAVE_EBCDIC 1
8432 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8433 echo "configure:8434: checking for ANSI C header files" >&5
8434 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8435 echo $ac_n "(cached) $ac_c" 1>&6
8437 cat > conftest.$ac_ext <<EOF
8438 #line 8439 "configure"
8439 #include "confdefs.h"
8445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8446 { (eval echo configure:8447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8448 if test -z "$ac_err"; then
8450 ol_cv_header_stdc=yes
8453 echo "configure: failed program was:" >&5
8454 cat conftest.$ac_ext >&5
8456 ol_cv_header_stdc=no
8460 if test $ol_cv_header_stdc = yes; then
8461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8462 cat > conftest.$ac_ext <<EOF
8463 #line 8464 "configure"
8464 #include "confdefs.h"
8467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8468 egrep "memchr" >/dev/null 2>&1; then
8472 ol_cv_header_stdc=no
8478 if test $ol_cv_header_stdc = yes; then
8479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8480 cat > conftest.$ac_ext <<EOF
8481 #line 8482 "configure"
8482 #include "confdefs.h"
8485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8486 egrep "free" >/dev/null 2>&1; then
8490 ol_cv_header_stdc=no
8496 if test $ol_cv_header_stdc = yes; then
8497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8498 if test "$cross_compiling" = yes; then
8501 cat > conftest.$ac_ext <<EOF
8502 #line 8503 "configure"
8503 #include "confdefs.h"
8506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8509 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8510 || ('j' <= (c) && (c) <= 'r') \
8511 || ('s' <= (c) && (c) <= 'z'))
8512 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8515 int main () { int i; for (i = 0; i < 256; i++)
8516 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8520 if { (eval echo configure:8521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8524 echo "configure: failed program was:" >&5
8525 cat conftest.$ac_ext >&5
8527 ol_cv_header_stdc=no
8535 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8536 if test $ol_cv_header_stdc = yes; then
8537 cat >> confdefs.h <<\EOF
8538 #define STDC_HEADERS 1
8542 ac_cv_header_stdc=disable
8545 if test $ol_cv_header_stdc != yes; then
8546 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8550 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8552 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8553 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8554 echo "configure:8555: checking for $ac_hdr that defines DIR" >&5
8555 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8556 echo $ac_n "(cached) $ac_c" 1>&6
8558 cat > conftest.$ac_ext <<EOF
8559 #line 8560 "configure"
8560 #include "confdefs.h"
8561 #include <sys/types.h>
8567 if { (eval echo configure:8568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8569 eval "ac_cv_header_dirent_$ac_safe=yes"
8571 echo "configure: failed program was:" >&5
8572 cat conftest.$ac_ext >&5
8574 eval "ac_cv_header_dirent_$ac_safe=no"
8578 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8579 echo "$ac_t""yes" 1>&6
8580 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8581 cat >> confdefs.h <<EOF
8582 #define $ac_tr_hdr 1
8584 ac_header_dirent=$ac_hdr; break
8586 echo "$ac_t""no" 1>&6
8589 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8590 if test $ac_header_dirent = dirent.h; then
8591 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8592 echo "configure:8593: checking for opendir in -ldir" >&5
8593 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8594 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8595 echo $ac_n "(cached) $ac_c" 1>&6
8597 ac_save_LIBS="$LIBS"
8599 cat > conftest.$ac_ext <<EOF
8600 #line 8601 "configure"
8601 #include "confdefs.h"
8602 /* Override any gcc2 internal prototype to avoid an error. */
8603 /* We use char because int might match the return type of a gcc2
8604 builtin and then its argument prototype would still apply. */
8611 if { (eval echo configure:8612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8613 eval "ac_cv_lib_$ac_lib_var=yes"
8615 echo "configure: failed program was:" >&5
8616 cat conftest.$ac_ext >&5
8618 eval "ac_cv_lib_$ac_lib_var=no"
8621 LIBS="$ac_save_LIBS"
8624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8625 echo "$ac_t""yes" 1>&6
8628 echo "$ac_t""no" 1>&6
8632 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8633 echo "configure:8634: checking for opendir in -lx" >&5
8634 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8635 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8636 echo $ac_n "(cached) $ac_c" 1>&6
8638 ac_save_LIBS="$LIBS"
8640 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8643 /* Override any gcc2 internal prototype to avoid an error. */
8644 /* We use char because int might match the return type of a gcc2
8645 builtin and then its argument prototype would still apply. */
8652 if { (eval echo configure:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8654 eval "ac_cv_lib_$ac_lib_var=yes"
8656 echo "configure: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8659 eval "ac_cv_lib_$ac_lib_var=no"
8662 LIBS="$ac_save_LIBS"
8665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8666 echo "$ac_t""yes" 1>&6
8669 echo "$ac_t""no" 1>&6
8674 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8675 echo "configure:8676: checking for sys/wait.h that is POSIX.1 compatible" >&5
8676 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8677 echo $ac_n "(cached) $ac_c" 1>&6
8679 cat > conftest.$ac_ext <<EOF
8680 #line 8681 "configure"
8681 #include "confdefs.h"
8682 #include <sys/types.h>
8683 #include <sys/wait.h>
8685 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8688 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8693 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8696 if { (eval echo configure:8697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8698 ac_cv_header_sys_wait_h=yes
8700 echo "configure: failed program was:" >&5
8701 cat conftest.$ac_ext >&5
8703 ac_cv_header_sys_wait_h=no
8708 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8709 if test $ac_cv_header_sys_wait_h = yes; then
8710 cat >> confdefs.h <<\EOF
8711 #define HAVE_SYS_WAIT_H 1
8716 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8717 echo "configure:8718: checking POSIX termios" >&5
8718 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8719 echo $ac_n "(cached) $ac_c" 1>&6
8721 cat > conftest.$ac_ext <<EOF
8722 #line 8723 "configure"
8723 #include "confdefs.h"
8724 #include <sys/types.h>
8726 #include <termios.h>
8728 /* SunOS 4.0.3 has termios.h but not the library calls. */
8732 if { (eval echo configure:8733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8734 am_cv_sys_posix_termios=yes
8736 echo "configure: failed program was:" >&5
8737 cat conftest.$ac_ext >&5
8739 am_cv_sys_posix_termios=no
8744 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8747 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8748 echo "configure:8749: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8749 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8750 echo $ac_n "(cached) $ac_c" 1>&6
8752 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8754 gwinsz_in_termios_h=no
8755 if test $am_cv_sys_posix_termios = yes; then
8756 cat > conftest.$ac_ext <<EOF
8757 #line 8758 "configure"
8758 #include "confdefs.h"
8759 #include <sys/types.h>
8760 # include <termios.h>
8766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8767 egrep "yes" >/dev/null 2>&1; then
8769 gwinsz_in_termios_h=yes
8775 if test $gwinsz_in_termios_h = no; then
8776 cat > conftest.$ac_ext <<EOF
8777 #line 8778 "configure"
8778 #include "confdefs.h"
8779 #include <sys/types.h>
8780 # include <sys/ioctl.h>
8786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8787 egrep "yes" >/dev/null 2>&1; then
8789 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8797 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8798 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8799 cat >> confdefs.h <<\EOF
8800 #define GWINSZ_IN_SYS_IOCTL 1
8805 if test $am_cv_sys_posix_termios = yes ; then
8806 cat >> confdefs.h <<\EOF
8807 #define HAVE_POSIX_TERMIOS 1
8859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8861 echo "configure:8862: checking for $ac_hdr" >&5
8862 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8863 echo $ac_n "(cached) $ac_c" 1>&6
8865 cat > conftest.$ac_ext <<EOF
8866 #line 8867 "configure"
8867 #include "confdefs.h"
8870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8871 { (eval echo configure:8872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8873 if test -z "$ac_err"; then
8875 eval "ac_cv_header_$ac_safe=yes"
8878 echo "configure: failed program was:" >&5
8879 cat conftest.$ac_ext >&5
8881 eval "ac_cv_header_$ac_safe=no"
8885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8886 echo "$ac_t""yes" 1>&6
8887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8888 cat >> confdefs.h <<EOF
8889 #define $ac_tr_hdr 1
8893 echo "$ac_t""no" 1>&6
8900 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8901 echo "configure:8902: checking for dlopen" >&5
8902 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8903 echo $ac_n "(cached) $ac_c" 1>&6
8905 cat > conftest.$ac_ext <<EOF
8906 #line 8907 "configure"
8907 #include "confdefs.h"
8908 /* System header to define __stub macros and hopefully few prototypes,
8909 which can conflict with char dlopen(); below. */
8911 /* Override any gcc2 internal prototype to avoid an error. */
8912 /* We use char because int might match the return type of a gcc2
8913 builtin and then its argument prototype would still apply. */
8919 /* The GNU C library defines this for functions which it implements
8920 to always fail with ENOSYS. Some functions are actually named
8921 something starting with __ and the normal name is an alias. */
8922 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8930 if { (eval echo configure:8931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8932 eval "ac_cv_func_dlopen=yes"
8934 echo "configure: failed program was:" >&5
8935 cat conftest.$ac_ext >&5
8937 eval "ac_cv_func_dlopen=no"
8942 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8943 echo "$ac_t""yes" 1>&6
8946 echo "$ac_t""no" 1>&6
8947 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8948 echo "configure:8949: checking for dlopen in -ldl" >&5
8949 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8950 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8951 echo $ac_n "(cached) $ac_c" 1>&6
8953 ac_save_LIBS="$LIBS"
8955 cat > conftest.$ac_ext <<EOF
8956 #line 8957 "configure"
8957 #include "confdefs.h"
8958 /* Override any gcc2 internal prototype to avoid an error. */
8959 /* We use char because int might match the return type of a gcc2
8960 builtin and then its argument prototype would still apply. */
8967 if { (eval echo configure:8968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8969 eval "ac_cv_lib_$ac_lib_var=yes"
8971 echo "configure: failed program was:" >&5
8972 cat conftest.$ac_ext >&5
8974 eval "ac_cv_lib_$ac_lib_var=no"
8977 LIBS="$ac_save_LIBS"
8980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8981 echo "$ac_t""yes" 1>&6
8982 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8983 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8984 cat >> confdefs.h <<EOF
8985 #define $ac_tr_lib 1
8991 echo "$ac_t""no" 1>&6
8997 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8998 echo "configure:8999: checking for sigset in -lV3" >&5
8999 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9000 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9001 echo $ac_n "(cached) $ac_c" 1>&6
9003 ac_save_LIBS="$LIBS"
9005 cat > conftest.$ac_ext <<EOF
9006 #line 9007 "configure"
9007 #include "confdefs.h"
9008 /* Override any gcc2 internal prototype to avoid an error. */
9009 /* We use char because int might match the return type of a gcc2
9010 builtin and then its argument prototype would still apply. */
9017 if { (eval echo configure:9018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9019 eval "ac_cv_lib_$ac_lib_var=yes"
9021 echo "configure: failed program was:" >&5
9022 cat conftest.$ac_ext >&5
9024 eval "ac_cv_lib_$ac_lib_var=no"
9027 LIBS="$ac_save_LIBS"
9030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9031 echo "$ac_t""yes" 1>&6
9032 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9033 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9034 cat >> confdefs.h <<EOF
9035 #define $ac_tr_lib 1
9041 echo "$ac_t""no" 1>&6
9045 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9046 echo "configure:9047: checking for winsock" >&5
9048 for curlib in ws2_32 wsock32; do
9049 LIBS="$LIBS -l$curlib"
9050 cat > conftest.$ac_ext <<EOF
9051 #line 9052 "configure"
9052 #include "confdefs.h"
9056 char closesocket@4();
9057 char gethostname@8();
9068 if { (eval echo configure:9069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9072 echo "configure: failed program was:" >&5
9073 cat conftest.$ac_ext >&5
9079 if test $have_winsock = yes; then
9080 cat >> confdefs.h <<\EOF
9081 #define HAVE_WINSOCK 1
9084 ac_cv_func_socket=yes
9085 ac_cv_func_select=yes
9086 ac_cv_func_closesocket=yes
9087 ac_cv_func_gethostname=yes
9088 if test $curlib = ws2_32; then
9089 have_winsock=winsock2
9090 cat >> confdefs.h <<\EOF
9091 #define HAVE_WINSOCK2 1
9099 echo "$ac_t""$have_winsock" 1>&6
9102 echo $ac_n "checking for socket""... $ac_c" 1>&6
9103 echo "configure:9104: checking for socket" >&5
9104 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9105 echo $ac_n "(cached) $ac_c" 1>&6
9107 cat > conftest.$ac_ext <<EOF
9108 #line 9109 "configure"
9109 #include "confdefs.h"
9110 /* System header to define __stub macros and hopefully few prototypes,
9111 which can conflict with char socket(); below. */
9113 /* Override any gcc2 internal prototype to avoid an error. */
9114 /* We use char because int might match the return type of a gcc2
9115 builtin and then its argument prototype would still apply. */
9121 /* The GNU C library defines this for functions which it implements
9122 to always fail with ENOSYS. Some functions are actually named
9123 something starting with __ and the normal name is an alias. */
9124 #if defined (__stub_socket) || defined (__stub___socket)
9132 if { (eval echo configure:9133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9134 eval "ac_cv_func_socket=yes"
9136 echo "configure: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9139 eval "ac_cv_func_socket=no"
9144 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9145 echo "$ac_t""yes" 1>&6
9148 echo "$ac_t""no" 1>&6
9150 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9151 echo "configure:9152: checking for main in -lsocket" >&5
9152 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9153 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9154 echo $ac_n "(cached) $ac_c" 1>&6
9156 ac_save_LIBS="$LIBS"
9157 LIBS="-lsocket $LIBS"
9158 cat > conftest.$ac_ext <<EOF
9159 #line 9160 "configure"
9160 #include "confdefs.h"
9166 if { (eval echo configure:9167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9168 eval "ac_cv_lib_$ac_lib_var=yes"
9170 echo "configure: failed program was:" >&5
9171 cat conftest.$ac_ext >&5
9173 eval "ac_cv_lib_$ac_lib_var=no"
9176 LIBS="$ac_save_LIBS"
9179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9180 echo "$ac_t""yes" 1>&6
9181 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9182 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9183 cat >> confdefs.h <<EOF
9184 #define $ac_tr_lib 1
9187 LIBS="-lsocket $LIBS"
9190 echo "$ac_t""no" 1>&6
9193 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9194 echo "configure:9195: checking for main in -lnet" >&5
9195 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9196 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9197 echo $ac_n "(cached) $ac_c" 1>&6
9199 ac_save_LIBS="$LIBS"
9201 cat > conftest.$ac_ext <<EOF
9202 #line 9203 "configure"
9203 #include "confdefs.h"
9209 if { (eval echo configure:9210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9211 eval "ac_cv_lib_$ac_lib_var=yes"
9213 echo "configure: failed program was:" >&5
9214 cat conftest.$ac_ext >&5
9216 eval "ac_cv_lib_$ac_lib_var=no"
9219 LIBS="$ac_save_LIBS"
9222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9223 echo "$ac_t""yes" 1>&6
9224 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9225 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9226 cat >> confdefs.h <<EOF
9227 #define $ac_tr_lib 1
9233 echo "$ac_t""no" 1>&6
9236 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9237 echo "configure:9238: checking for main in -lnsl_s" >&5
9238 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9239 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9240 echo $ac_n "(cached) $ac_c" 1>&6
9242 ac_save_LIBS="$LIBS"
9243 LIBS="-lnsl_s $LIBS"
9244 cat > conftest.$ac_ext <<EOF
9245 #line 9246 "configure"
9246 #include "confdefs.h"
9252 if { (eval echo configure:9253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9254 eval "ac_cv_lib_$ac_lib_var=yes"
9256 echo "configure: failed program was:" >&5
9257 cat conftest.$ac_ext >&5
9259 eval "ac_cv_lib_$ac_lib_var=no"
9262 LIBS="$ac_save_LIBS"
9265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9266 echo "$ac_t""yes" 1>&6
9267 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9268 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9269 cat >> confdefs.h <<EOF
9270 #define $ac_tr_lib 1
9273 LIBS="-lnsl_s $LIBS"
9276 echo "$ac_t""no" 1>&6
9279 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9280 echo "configure:9281: checking for main in -lnsl" >&5
9281 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9282 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9283 echo $ac_n "(cached) $ac_c" 1>&6
9285 ac_save_LIBS="$LIBS"
9287 cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9295 if { (eval echo configure:9296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9297 eval "ac_cv_lib_$ac_lib_var=yes"
9299 echo "configure: failed program was:" >&5
9300 cat conftest.$ac_ext >&5
9302 eval "ac_cv_lib_$ac_lib_var=no"
9305 LIBS="$ac_save_LIBS"
9308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9309 echo "$ac_t""yes" 1>&6
9310 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9311 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9312 cat >> confdefs.h <<EOF
9313 #define $ac_tr_lib 1
9319 echo "$ac_t""no" 1>&6
9322 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9323 echo "configure:9324: checking for socket in -linet" >&5
9324 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9325 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9326 echo $ac_n "(cached) $ac_c" 1>&6
9328 ac_save_LIBS="$LIBS"
9330 cat > conftest.$ac_ext <<EOF
9331 #line 9332 "configure"
9332 #include "confdefs.h"
9333 /* Override any gcc2 internal prototype to avoid an error. */
9334 /* We use char because int might match the return type of a gcc2
9335 builtin and then its argument prototype would still apply. */
9342 if { (eval echo configure:9343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9344 eval "ac_cv_lib_$ac_lib_var=yes"
9346 echo "configure: failed program was:" >&5
9347 cat conftest.$ac_ext >&5
9349 eval "ac_cv_lib_$ac_lib_var=no"
9352 LIBS="$ac_save_LIBS"
9355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9356 echo "$ac_t""yes" 1>&6
9357 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9358 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9359 cat >> confdefs.h <<EOF
9360 #define $ac_tr_lib 1
9366 echo "$ac_t""no" 1>&6
9369 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9370 echo "configure:9371: checking for main in -lgen" >&5
9371 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9372 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9373 echo $ac_n "(cached) $ac_c" 1>&6
9375 ac_save_LIBS="$LIBS"
9377 cat > conftest.$ac_ext <<EOF
9378 #line 9379 "configure"
9379 #include "confdefs.h"
9385 if { (eval echo configure:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9387 eval "ac_cv_lib_$ac_lib_var=yes"
9389 echo "configure: failed program was:" >&5
9390 cat conftest.$ac_ext >&5
9392 eval "ac_cv_lib_$ac_lib_var=no"
9395 LIBS="$ac_save_LIBS"
9398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9399 echo "$ac_t""yes" 1>&6
9400 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9401 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9402 cat >> confdefs.h <<EOF
9403 #define $ac_tr_lib 1
9409 echo "$ac_t""no" 1>&6
9416 echo $ac_n "checking for select""... $ac_c" 1>&6
9417 echo "configure:9418: checking for select" >&5
9418 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9419 echo $ac_n "(cached) $ac_c" 1>&6
9421 cat > conftest.$ac_ext <<EOF
9422 #line 9423 "configure"
9423 #include "confdefs.h"
9424 /* System header to define __stub macros and hopefully few prototypes,
9425 which can conflict with char select(); below. */
9427 /* Override any gcc2 internal prototype to avoid an error. */
9428 /* We use char because int might match the return type of a gcc2
9429 builtin and then its argument prototype would still apply. */
9435 /* The GNU C library defines this for functions which it implements
9436 to always fail with ENOSYS. Some functions are actually named
9437 something starting with __ and the normal name is an alias. */
9438 #if defined (__stub_select) || defined (__stub___select)
9446 if { (eval echo configure:9447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9448 eval "ac_cv_func_select=yes"
9450 echo "configure: failed program was:" >&5
9451 cat conftest.$ac_ext >&5
9453 eval "ac_cv_func_select=no"
9458 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9459 echo "$ac_t""yes" 1>&6
9462 echo "$ac_t""no" 1>&6
9463 { echo "configure: error: select() required." 1>&2; exit 1; }
9467 if test "${ac_cv_header_winsock_h}" != yes; then
9468 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9469 echo "configure:9470: checking types of arguments for select()" >&5
9470 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9471 echo $ac_n "(cached) $ac_c" 1>&6
9473 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9474 echo $ac_n "(cached) $ac_c" 1>&6
9476 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
9479 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9480 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9481 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9482 cat > conftest.$ac_ext <<EOF
9483 #line 9484 "configure"
9484 #include "confdefs.h"
9485 #ifdef HAVE_SYS_TYPES_H
9486 #include <sys/types.h>
9488 #ifdef HAVE_SYS_TIME_H
9489 #include <sys/time.h>
9491 #ifdef HAVE_SYS_SELECT_H
9492 #include <sys/select.h>
9494 #ifdef HAVE_SYS_SOCKET_H
9495 #include <sys/socket.h>
9497 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);
9502 if { (eval echo configure:9503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9504 ac_not_found=no ; break 3
9506 echo "configure: failed program was:" >&5
9507 cat conftest.$ac_ext >&5
9521 if test "$ac_not_found" = yes; then
9522 ac_cv_func_select_arg1=int
9523 ac_cv_func_select_arg234='int *'
9524 ac_cv_func_select_arg5='struct timeval *'
9526 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9527 cat >> confdefs.h <<EOF
9528 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9531 cat >> confdefs.h <<EOF
9532 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9535 cat >> confdefs.h <<EOF
9536 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9543 for ac_hdr in regex.h
9545 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9547 echo "configure:9548: checking for $ac_hdr" >&5
9548 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9549 echo $ac_n "(cached) $ac_c" 1>&6
9551 cat > conftest.$ac_ext <<EOF
9552 #line 9553 "configure"
9553 #include "confdefs.h"
9556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9557 { (eval echo configure:9558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9559 if test -z "$ac_err"; then
9561 eval "ac_cv_header_$ac_safe=yes"
9564 echo "configure: failed program was:" >&5
9565 cat conftest.$ac_ext >&5
9567 eval "ac_cv_header_$ac_safe=no"
9571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9572 echo "$ac_t""yes" 1>&6
9573 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9574 cat >> confdefs.h <<EOF
9575 #define $ac_tr_hdr 1
9579 echo "$ac_t""no" 1>&6
9583 if test "$ac_cv_header_regex_h" != yes ; then
9584 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9587 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9588 echo "configure:9589: checking for library containing regfree" >&5
9589 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9590 echo $ac_n "(cached) $ac_c" 1>&6
9592 ac_func_search_save_LIBS="$LIBS"
9593 ac_cv_search_regfree="no"
9594 cat > conftest.$ac_ext <<EOF
9595 #line 9596 "configure"
9596 #include "confdefs.h"
9597 /* Override any gcc2 internal prototype to avoid an error. */
9598 /* We use char because int might match the return type of a gcc2
9599 builtin and then its argument prototype would still apply. */
9606 if { (eval echo configure:9607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9608 ac_cv_search_regfree="none required"
9610 echo "configure: failed program was:" >&5
9611 cat conftest.$ac_ext >&5
9614 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9616 cat > conftest.$ac_ext <<EOF
9617 #line 9618 "configure"
9618 #include "confdefs.h"
9619 /* Override any gcc2 internal prototype to avoid an error. */
9620 /* We use char because int might match the return type of a gcc2
9621 builtin and then its argument prototype would still apply. */
9628 if { (eval echo configure:9629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9630 ac_cv_search_regfree="-l$ac_lib"
9633 echo "configure: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9638 LIBS="$ac_func_search_save_LIBS"
9641 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9642 if test "$ac_cv_search_regfree" != "no"; then
9643 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9646 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9650 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9651 echo "configure:9652: checking for compatible POSIX regex" >&5
9652 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9653 echo $ac_n "(cached) $ac_c" 1>&6
9656 if test "$cross_compiling" = yes; then
9657 ol_cv_c_posix_regex=cross
9659 cat > conftest.$ac_ext <<EOF
9660 #line 9661 "configure"
9661 #include "confdefs.h"
9663 #include <sys/types.h>
9665 static char *pattern, *string;
9673 if(regcomp(&re, pattern, 0)) {
9677 string = "ALL MATCH";
9679 rc = regexec(&re, string, 0, (void*)0, 0);
9686 if { (eval echo configure:9687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9688 ol_cv_c_posix_regex=yes
9690 echo "configure: failed program was:" >&5
9691 cat conftest.$ac_ext >&5
9693 ol_cv_c_posix_regex=no
9700 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9702 if test "$ol_cv_c_posix_regex" = no ; then
9703 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9708 for ac_hdr in sys/uuid.h
9710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9712 echo "configure:9713: checking for $ac_hdr" >&5
9713 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9714 echo $ac_n "(cached) $ac_c" 1>&6
9716 cat > conftest.$ac_ext <<EOF
9717 #line 9718 "configure"
9718 #include "confdefs.h"
9721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9722 { (eval echo configure:9723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9724 if test -z "$ac_err"; then
9726 eval "ac_cv_header_$ac_safe=yes"
9729 echo "configure: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9732 eval "ac_cv_header_$ac_safe=no"
9736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9737 echo "$ac_t""yes" 1>&6
9738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9739 cat >> confdefs.h <<EOF
9740 #define $ac_tr_hdr 1
9744 echo "$ac_t""no" 1>&6
9748 if test $ac_cv_header_sys_uuid_h = yes ; then
9751 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9752 echo "configure:9753: checking for library containing uuid_to_str" >&5
9753 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9754 echo $ac_n "(cached) $ac_c" 1>&6
9756 ac_func_search_save_LIBS="$LIBS"
9757 ac_cv_search_uuid_to_str="no"
9758 cat > conftest.$ac_ext <<EOF
9759 #line 9760 "configure"
9760 #include "confdefs.h"
9761 /* Override any gcc2 internal prototype to avoid an error. */
9762 /* We use char because int might match the return type of a gcc2
9763 builtin and then its argument prototype would still apply. */
9770 if { (eval echo configure:9771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9772 ac_cv_search_uuid_to_str="none required"
9774 echo "configure: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9778 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9780 cat > conftest.$ac_ext <<EOF
9781 #line 9782 "configure"
9782 #include "confdefs.h"
9783 /* Override any gcc2 internal prototype to avoid an error. */
9784 /* We use char because int might match the return type of a gcc2
9785 builtin and then its argument prototype would still apply. */
9792 if { (eval echo configure:9793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9794 ac_cv_search_uuid_to_str="-l$ac_lib"
9797 echo "configure: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9802 LIBS="$ac_func_search_save_LIBS"
9805 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9806 if test "$ac_cv_search_uuid_to_str" != "no"; then
9807 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9814 if test have_uuid = yes ; then
9815 cat >> confdefs.h <<\EOF
9816 #define HAVE_UUID_TO_STR 1
9820 test "$ac_cv_search_uuid_to_str" = "none required" || \
9821 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9825 if test $have_uuid = no ; then
9826 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9827 echo "configure:9828: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9829 LIBS="$LIBS -lrpcrt4"
9830 cat > conftest.$ac_ext <<EOF
9831 #line 9832 "configure"
9832 #include "confdefs.h"
9834 char UuidCreate@4();
9835 char UuidToStringA@8();
9844 if { (eval echo configure:9845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9848 echo "configure: failed program was:" >&5
9849 cat conftest.$ac_ext >&5
9854 if test $need_rpcrt = yes; then
9855 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9858 echo "$ac_t""$need_rpcrt" 1>&6
9862 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9863 echo "configure:9864: checking for res_query" >&5
9864 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9865 echo $ac_n "(cached) $ac_c" 1>&6
9867 cat > conftest.$ac_ext <<EOF
9868 #line 9869 "configure"
9869 #include "confdefs.h"
9870 /* System header to define __stub macros and hopefully few prototypes,
9871 which can conflict with char res_query(); below. */
9873 /* Override any gcc2 internal prototype to avoid an error. */
9874 /* We use char because int might match the return type of a gcc2
9875 builtin and then its argument prototype would still apply. */
9881 /* The GNU C library defines this for functions which it implements
9882 to always fail with ENOSYS. Some functions are actually named
9883 something starting with __ and the normal name is an alias. */
9884 #if defined (__stub_res_query) || defined (__stub___res_query)
9892 if { (eval echo configure:9893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9894 eval "ac_cv_func_res_query=yes"
9896 echo "configure: failed program was:" >&5
9897 cat conftest.$ac_ext >&5
9899 eval "ac_cv_func_res_query=no"
9904 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9905 echo "$ac_t""yes" 1>&6
9908 echo "$ac_t""no" 1>&6
9911 if test $ac_cv_func_res_query = no ; then
9912 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9913 echo "configure:9914: checking for __res_query" >&5
9914 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9917 cat > conftest.$ac_ext <<EOF
9918 #line 9919 "configure"
9919 #include "confdefs.h"
9920 /* System header to define __stub macros and hopefully few prototypes,
9921 which can conflict with char __res_query(); below. */
9923 /* Override any gcc2 internal prototype to avoid an error. */
9924 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9931 /* The GNU C library defines this for functions which it implements
9932 to always fail with ENOSYS. Some functions are actually named
9933 something starting with __ and the normal name is an alias. */
9934 #if defined (__stub___res_query) || defined (__stub_____res_query)
9942 if { (eval echo configure:9943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9944 eval "ac_cv_func___res_query=yes"
9946 echo "configure: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9949 eval "ac_cv_func___res_query=no"
9954 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9955 echo "$ac_t""yes" 1>&6
9958 echo "$ac_t""no" 1>&6
9961 ac_cv_func_res_query=$ac_cv_func___res_query
9964 if test $ac_cv_func_res_query = no ; then
9965 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9966 echo "configure:9967: checking for res_query in -lbind" >&5
9967 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9968 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9971 ac_save_LIBS="$LIBS"
9973 cat > conftest.$ac_ext <<EOF
9974 #line 9975 "configure"
9975 #include "confdefs.h"
9976 /* Override any gcc2 internal prototype to avoid an error. */
9977 /* We use char because int might match the return type of a gcc2
9978 builtin and then its argument prototype would still apply. */
9985 if { (eval echo configure:9986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9987 eval "ac_cv_lib_$ac_lib_var=yes"
9989 echo "configure: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9992 eval "ac_cv_lib_$ac_lib_var=no"
9995 LIBS="$ac_save_LIBS"
9998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9999 echo "$ac_t""yes" 1>&6
10000 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10001 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10002 cat >> confdefs.h <<EOF
10003 #define $ac_tr_lib 1
10006 LIBS="-lbind $LIBS"
10009 echo "$ac_t""no" 1>&6
10012 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10015 if test $ac_cv_func_res_query = no ; then
10016 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10017 echo "configure:10018: checking for __res_query in -lbind" >&5
10018 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10019 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10022 ac_save_LIBS="$LIBS"
10023 LIBS="-lbind $LIBS"
10024 cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10027 /* Override any gcc2 internal prototype to avoid an error. */
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10030 char __res_query();
10036 if { (eval echo configure:10037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10038 eval "ac_cv_lib_$ac_lib_var=yes"
10040 echo "configure: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10043 eval "ac_cv_lib_$ac_lib_var=no"
10046 LIBS="$ac_save_LIBS"
10049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10050 echo "$ac_t""yes" 1>&6
10051 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10052 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10053 cat >> confdefs.h <<EOF
10054 #define $ac_tr_lib 1
10057 LIBS="-lbind $LIBS"
10060 echo "$ac_t""no" 1>&6
10063 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10066 if test $ac_cv_func_res_query = no ; then
10067 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10068 echo "configure:10069: checking for res_query in -lresolv" >&5
10069 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10070 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10071 echo $ac_n "(cached) $ac_c" 1>&6
10073 ac_save_LIBS="$LIBS"
10074 LIBS="-lresolv $LIBS"
10075 cat > conftest.$ac_ext <<EOF
10076 #line 10077 "configure"
10077 #include "confdefs.h"
10078 /* Override any gcc2 internal prototype to avoid an error. */
10079 /* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */
10087 if { (eval echo configure:10088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10089 eval "ac_cv_lib_$ac_lib_var=yes"
10091 echo "configure: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10094 eval "ac_cv_lib_$ac_lib_var=no"
10097 LIBS="$ac_save_LIBS"
10100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10101 echo "$ac_t""yes" 1>&6
10102 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10103 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10104 cat >> confdefs.h <<EOF
10105 #define $ac_tr_lib 1
10108 LIBS="-lresolv $LIBS"
10111 echo "$ac_t""no" 1>&6
10114 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10117 if test $ac_cv_func_res_query = no ; then
10118 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10119 echo "configure:10120: checking for __res_query in -lresolv" >&5
10120 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10121 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10122 echo $ac_n "(cached) $ac_c" 1>&6
10124 ac_save_LIBS="$LIBS"
10125 LIBS="-lresolv $LIBS"
10126 cat > conftest.$ac_ext <<EOF
10127 #line 10128 "configure"
10128 #include "confdefs.h"
10129 /* Override any gcc2 internal prototype to avoid an error. */
10130 /* We use char because int might match the return type of a gcc2
10131 builtin and then its argument prototype would still apply. */
10132 char __res_query();
10138 if { (eval echo configure:10139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10140 eval "ac_cv_lib_$ac_lib_var=yes"
10142 echo "configure: failed program was:" >&5
10143 cat conftest.$ac_ext >&5
10145 eval "ac_cv_lib_$ac_lib_var=no"
10148 LIBS="$ac_save_LIBS"
10151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10152 echo "$ac_t""yes" 1>&6
10153 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10154 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10155 cat >> confdefs.h <<EOF
10156 #define $ac_tr_lib 1
10159 LIBS="-lresolv $LIBS"
10162 echo "$ac_t""no" 1>&6
10165 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10168 if test "$ac_cv_func_res_query" = yes ; then
10169 cat >> confdefs.h <<\EOF
10170 #define HAVE_RES_QUERY 1
10174 if test $ol_enable_dnssrv != no ; then
10179 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10180 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10183 for ac_func in getaddrinfo gai_strerror inet_ntop
10185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10186 echo "configure:10187: checking for $ac_func" >&5
10187 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10188 echo $ac_n "(cached) $ac_c" 1>&6
10190 cat > conftest.$ac_ext <<EOF
10191 #line 10192 "configure"
10192 #include "confdefs.h"
10193 /* System header to define __stub macros and hopefully few prototypes,
10194 which can conflict with char $ac_func(); below. */
10195 #include <assert.h>
10196 /* Override any gcc2 internal prototype to avoid an error. */
10197 /* We use char because int might match the return type of a gcc2
10198 builtin and then its argument prototype would still apply. */
10204 /* The GNU C library defines this for functions which it implements
10205 to always fail with ENOSYS. Some functions are actually named
10206 something starting with __ and the normal name is an alias. */
10207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10215 if { (eval echo configure:10216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10217 eval "ac_cv_func_$ac_func=yes"
10219 echo "configure: failed program was:" >&5
10220 cat conftest.$ac_ext >&5
10222 eval "ac_cv_func_$ac_func=no"
10227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10228 echo "$ac_t""yes" 1>&6
10229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10230 cat >> confdefs.h <<EOF
10231 #define $ac_tr_func 1
10235 echo "$ac_t""no" 1>&6
10241 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10242 if test $ol_enable_ipv6 = yes ; then
10243 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10245 elif test $ol_enable_ipv6 != no ; then
10246 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10247 echo "configure:10248: checking INET6_ADDRSTRLEN" >&5
10248 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10249 echo $ac_n "(cached) $ac_c" 1>&6
10252 cat > conftest.$ac_ext <<EOF
10253 #line 10254 "configure"
10254 #include "confdefs.h"
10256 # include <netinet/in.h>
10257 # ifdef INET6_ADDRSTRLEN
10258 __has_inet6_addrstrlen__;
10262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10263 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10265 ol_cv_inet6_addrstrlen=yes
10268 ol_cv_inet6_addrstrlen=no
10274 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10277 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10278 echo "configure:10279: checking struct sockaddr_storage" >&5
10279 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10280 echo $ac_n "(cached) $ac_c" 1>&6
10283 cat > conftest.$ac_ext <<EOF
10284 #line 10285 "configure"
10285 #include "confdefs.h"
10287 #include <sys/types.h>
10288 #include <sys/socket.h>
10292 struct sockaddr_storage ss;
10296 if { (eval echo configure:10297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10298 ol_cv_struct_sockaddr_storage=yes
10300 echo "configure: failed program was:" >&5
10301 cat conftest.$ac_ext >&5
10303 ol_cv_struct_sockaddr_storage=no
10308 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10310 if test $ol_cv_inet6_addrstrlen = yes \
10311 -a $ol_cv_struct_sockaddr_storage = yes ; then
10313 elif test $ol_enable_ipv6 = yes \
10314 -a $ol_cv_inet6_addrstrlen = no ; then
10315 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10316 elif test $ol_enable_ipv6 = yes \
10317 -a $ol_cv_struct_sockaddr_storage = no ; then
10318 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10322 if test $ol_enable_local != no ; then
10323 for ac_hdr in sys/un.h
10325 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10326 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10327 echo "configure:10328: checking for $ac_hdr" >&5
10328 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10329 echo $ac_n "(cached) $ac_c" 1>&6
10331 cat > conftest.$ac_ext <<EOF
10332 #line 10333 "configure"
10333 #include "confdefs.h"
10336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10337 { (eval echo configure:10338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10339 if test -z "$ac_err"; then
10341 eval "ac_cv_header_$ac_safe=yes"
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10347 eval "ac_cv_header_$ac_safe=no"
10351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10352 echo "$ac_t""yes" 1>&6
10353 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10354 cat >> confdefs.h <<EOF
10355 #define $ac_tr_hdr 1
10359 echo "$ac_t""no" 1>&6
10364 if test $ol_enable_local = auto ; then
10365 ol_enable_local=$ac_cv_header_sys_un_h
10366 elif test $ac_cv_header_sys_un_h = no ; then
10367 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10376 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10377 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10378 -o $ol_with_kerberos = k425 ; then
10380 for ac_hdr in krb5.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
10421 if test $ac_cv_header_krb5_h = yes ; then
10422 for ac_hdr in heim_err.h
10424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10426 echo "configure:10427: checking for $ac_hdr" >&5
10427 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10428 echo $ac_n "(cached) $ac_c" 1>&6
10430 cat > conftest.$ac_ext <<EOF
10431 #line 10432 "configure"
10432 #include "confdefs.h"
10435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10436 { (eval echo configure:10437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10438 if test -z "$ac_err"; then
10440 eval "ac_cv_header_$ac_safe=yes"
10443 echo "configure: failed program was:" >&5
10444 cat conftest.$ac_ext >&5
10446 eval "ac_cv_header_$ac_safe=no"
10450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10451 echo "$ac_t""yes" 1>&6
10452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10453 cat >> confdefs.h <<EOF
10454 #define $ac_tr_hdr 1
10458 echo "$ac_t""no" 1>&6
10462 if test $ac_cv_header_heim_err_h = yes ; then
10468 if test $krb5_impl = mit; then
10469 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10470 echo "configure:10471: checking for main in -lk5crypto" >&5
10471 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10472 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10473 echo $ac_n "(cached) $ac_c" 1>&6
10475 ac_save_LIBS="$LIBS"
10476 LIBS="-lk5crypto $LIBS"
10477 cat > conftest.$ac_ext <<EOF
10478 #line 10479 "configure"
10479 #include "confdefs.h"
10485 if { (eval echo configure:10486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10487 eval "ac_cv_lib_$ac_lib_var=yes"
10489 echo "configure: failed program was:" >&5
10490 cat conftest.$ac_ext >&5
10492 eval "ac_cv_lib_$ac_lib_var=no"
10495 LIBS="$ac_save_LIBS"
10498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10499 echo "$ac_t""yes" 1>&6
10500 krb5crypto=k5crypto
10502 echo "$ac_t""no" 1>&6
10507 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10508 echo "configure:10509: checking for main in -lkrb5" >&5
10509 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10510 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10511 echo $ac_n "(cached) $ac_c" 1>&6
10513 ac_save_LIBS="$LIBS"
10514 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10515 cat > conftest.$ac_ext <<EOF
10516 #line 10517 "configure"
10517 #include "confdefs.h"
10523 if { (eval echo configure:10524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10525 eval "ac_cv_lib_$ac_lib_var=yes"
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10530 eval "ac_cv_lib_$ac_lib_var=no"
10533 LIBS="$ac_save_LIBS"
10536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10537 echo "$ac_t""yes" 1>&6
10539 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10541 echo "$ac_t""no" 1>&6
10546 elif test $krb5_impl = heimdal; then
10547 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10548 echo "configure:10549: checking for main in -ldes" >&5
10549 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10550 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10551 echo $ac_n "(cached) $ac_c" 1>&6
10553 ac_save_LIBS="$LIBS"
10555 cat > conftest.$ac_ext <<EOF
10556 #line 10557 "configure"
10557 #include "confdefs.h"
10563 if { (eval echo configure:10564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10565 eval "ac_cv_lib_$ac_lib_var=yes"
10567 echo "configure: failed program was:" >&5
10568 cat conftest.$ac_ext >&5
10570 eval "ac_cv_lib_$ac_lib_var=no"
10573 LIBS="$ac_save_LIBS"
10576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10577 echo "$ac_t""yes" 1>&6
10580 echo "$ac_t""no" 1>&6
10585 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10586 echo "configure:10587: checking for main in -lkrb5" >&5
10587 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10588 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10589 echo $ac_n "(cached) $ac_c" 1>&6
10591 ac_save_LIBS="$LIBS"
10592 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10593 cat > conftest.$ac_ext <<EOF
10594 #line 10595 "configure"
10595 #include "confdefs.h"
10601 if { (eval echo configure:10602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10603 eval "ac_cv_lib_$ac_lib_var=yes"
10605 echo "configure: failed program was:" >&5
10606 cat conftest.$ac_ext >&5
10608 eval "ac_cv_lib_$ac_lib_var=no"
10611 LIBS="$ac_save_LIBS"
10614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10615 echo "$ac_t""yes" 1>&6
10617 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10619 echo "$ac_t""no" 1>&6
10624 cat >> confdefs.h <<\EOF
10625 #define HAVE_HEIMDAL_KERBEROS 1
10631 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10634 if test $have_krb5 = yes ; then
10637 cat >> confdefs.h <<\EOF
10638 #define HAVE_KRB5 1
10642 if test $ol_enable_kpasswd != no ; then
10643 ol_link_kpasswd=yes;
10646 if test $ol_with_kerberos = k5only ; then
10647 ol_with_kerberos=found
10650 elif test $ol_with_kerberos != auto ; then
10651 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10657 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10658 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10660 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10664 echo "configure:10665: checking for $ac_hdr" >&5
10665 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10666 echo $ac_n "(cached) $ac_c" 1>&6
10668 cat > conftest.$ac_ext <<EOF
10669 #line 10670 "configure"
10670 #include "confdefs.h"
10673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10674 { (eval echo configure:10675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10676 if test -z "$ac_err"; then
10678 eval "ac_cv_header_$ac_safe=yes"
10681 echo "configure: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10684 eval "ac_cv_header_$ac_safe=no"
10688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10689 echo "$ac_t""yes" 1>&6
10690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10691 cat >> confdefs.h <<EOF
10692 #define $ac_tr_hdr 1
10696 echo "$ac_t""no" 1>&6
10701 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10702 if test $krb5_impl = mit; then
10703 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10704 echo "configure:10705: checking for main in -lkrb4" >&5
10705 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10706 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10707 echo $ac_n "(cached) $ac_c" 1>&6
10709 ac_save_LIBS="$LIBS"
10710 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10711 cat > conftest.$ac_ext <<EOF
10712 #line 10713 "configure"
10713 #include "confdefs.h"
10719 if { (eval echo configure:10720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10721 eval "ac_cv_lib_$ac_lib_var=yes"
10723 echo "configure: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10726 eval "ac_cv_lib_$ac_lib_var=no"
10729 LIBS="$ac_save_LIBS"
10732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10733 echo "$ac_t""yes" 1>&6
10735 KRB4_LIBS="-lkrb4 -ldes425"
10737 echo "$ac_t""no" 1>&6
10742 elif test $krb5_impl = heimdal; then
10743 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10744 echo "configure:10745: checking for main in -lkrb4" >&5
10745 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10746 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10747 echo $ac_n "(cached) $ac_c" 1>&6
10749 ac_save_LIBS="$LIBS"
10750 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10751 cat > conftest.$ac_ext <<EOF
10752 #line 10753 "configure"
10753 #include "confdefs.h"
10759 if { (eval echo configure:10760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10761 eval "ac_cv_lib_$ac_lib_var=yes"
10763 echo "configure: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10766 eval "ac_cv_lib_$ac_lib_var=no"
10769 LIBS="$ac_save_LIBS"
10772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10773 echo "$ac_t""yes" 1>&6
10777 echo "$ac_t""no" 1>&6
10784 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10787 if test $have_k425 = yes ; then
10788 ol_with_kerberos=found
10791 cat >> confdefs.h <<\EOF
10792 #define HAVE_KRB425 1
10795 cat >> confdefs.h <<\EOF
10796 #define HAVE_KRB4 1
10800 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10801 echo "configure:10802: checking for des_debug in Kerberos libraries" >&5
10802 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10803 echo $ac_n "(cached) $ac_c" 1>&6
10807 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10808 cat > conftest.$ac_ext <<EOF
10809 #line 10810 "configure"
10810 #include "confdefs.h"
10812 #include <kerberosIV/krb.h>
10813 #include <kerberosIV/des.h>
10814 extern int des_debug;
10822 if { (eval echo configure:10823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10824 ol_cv_var_des_debug=yes
10826 echo "configure: failed program was:" >&5
10827 cat conftest.$ac_ext >&5
10829 ol_cv_var_des_debug=no
10836 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10838 if test $ol_cv_var_des_debug = yes ; then
10839 cat >> confdefs.h <<\EOF
10840 #define HAVE_DES_DEBUG 1
10850 if test $ol_link_krb5 = yes ; then
10851 ol_with_kerberos=found
10854 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10855 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10857 for ac_hdr in krb.h des.h krb-archaeology.h
10859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10861 echo "configure:10862: checking for $ac_hdr" >&5
10862 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10863 echo $ac_n "(cached) $ac_c" 1>&6
10865 cat > conftest.$ac_ext <<EOF
10866 #line 10867 "configure"
10867 #include "confdefs.h"
10870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10871 { (eval echo configure:10872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10873 if test -z "$ac_err"; then
10875 eval "ac_cv_header_$ac_safe=yes"
10878 echo "configure: failed program was:" >&5
10879 cat conftest.$ac_ext >&5
10881 eval "ac_cv_header_$ac_safe=no"
10885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10886 echo "$ac_t""yes" 1>&6
10887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10888 cat >> confdefs.h <<EOF
10889 #define $ac_tr_hdr 1
10893 echo "$ac_t""no" 1>&6
10898 if test $ac_cv_header_krb_h = yes ; then
10899 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10900 echo "configure:10901: checking for main in -lkrb" >&5
10901 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10902 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10903 echo $ac_n "(cached) $ac_c" 1>&6
10905 ac_save_LIBS="$LIBS"
10906 LIBS="-lkrb -ldes $LIBS"
10907 cat > conftest.$ac_ext <<EOF
10908 #line 10909 "configure"
10909 #include "confdefs.h"
10915 if { (eval echo configure:10916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10917 eval "ac_cv_lib_$ac_lib_var=yes"
10919 echo "configure: failed program was:" >&5
10920 cat conftest.$ac_ext >&5
10922 eval "ac_cv_lib_$ac_lib_var=no"
10925 LIBS="$ac_save_LIBS"
10928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10929 echo "$ac_t""yes" 1>&6
10932 echo "$ac_t""no" 1>&6
10937 if test $have_k4 = yes ; then
10938 ol_with_kerberos=found
10941 cat >> confdefs.h <<\EOF
10942 #define HAVE_KRB4 1
10946 KRB4_LIBS="-lkrb -ldes"
10948 if test $ac_cv_header_krb_archaeology_h = yes ; then
10949 cat >> confdefs.h <<\EOF
10950 #define HAVE_KTH_KERBEROS 1
10958 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10959 ol_link_kpasswd=yes
10962 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10965 elif test $ol_enable_kbind = yes ; then
10966 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10969 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10970 cat >> confdefs.h <<\EOF
10971 #define HAVE_KERBEROS 1
10975 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10976 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10980 if test $ol_with_tls != no ; then
10981 for ac_hdr in openssl/ssl.h ssl.h
10983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10985 echo "configure:10986: checking for $ac_hdr" >&5
10986 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10987 echo $ac_n "(cached) $ac_c" 1>&6
10989 cat > conftest.$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10995 { (eval echo configure:10996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10997 if test -z "$ac_err"; then
10999 eval "ac_cv_header_$ac_safe=yes"
11002 echo "configure: failed program was:" >&5
11003 cat conftest.$ac_ext >&5
11005 eval "ac_cv_header_$ac_safe=no"
11009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11010 echo "$ac_t""yes" 1>&6
11011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11012 cat >> confdefs.h <<EOF
11013 #define $ac_tr_hdr 1
11017 echo "$ac_t""no" 1>&6
11022 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
11023 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11024 echo "configure:11025: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11025 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11026 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11027 echo $ac_n "(cached) $ac_c" 1>&6
11029 ac_save_LIBS="$LIBS"
11030 LIBS="-lssl -lcrypto $LIBS"
11031 cat > conftest.$ac_ext <<EOF
11032 #line 11033 "configure"
11033 #include "confdefs.h"
11034 /* Override any gcc2 internal prototype to avoid an error. */
11035 /* We use char because int might match the return type of a gcc2
11036 builtin and then its argument prototype would still apply. */
11037 char SSLeay_add_ssl_algorithms();
11040 SSLeay_add_ssl_algorithms()
11043 if { (eval echo configure:11044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11045 eval "ac_cv_lib_$ac_lib_var=yes"
11047 echo "configure: failed program was:" >&5
11048 cat conftest.$ac_ext >&5
11050 eval "ac_cv_lib_$ac_lib_var=no"
11053 LIBS="$ac_save_LIBS"
11056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11057 echo "$ac_t""yes" 1>&6
11061 echo "$ac_t""no" 1>&6
11066 if test $have_ssleay = no ; then
11067 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11068 echo "configure:11069: checking for SSL_library_init in -lssl" >&5
11069 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11070 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11071 echo $ac_n "(cached) $ac_c" 1>&6
11073 ac_save_LIBS="$LIBS"
11074 LIBS="-lssl -lcrypto $LIBS"
11075 cat > conftest.$ac_ext <<EOF
11076 #line 11077 "configure"
11077 #include "confdefs.h"
11078 /* Override any gcc2 internal prototype to avoid an error. */
11079 /* We use char because int might match the return type of a gcc2
11080 builtin and then its argument prototype would still apply. */
11081 char SSL_library_init();
11087 if { (eval echo configure:11088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11089 eval "ac_cv_lib_$ac_lib_var=yes"
11091 echo "configure: failed program was:" >&5
11092 cat conftest.$ac_ext >&5
11094 eval "ac_cv_lib_$ac_lib_var=no"
11097 LIBS="$ac_save_LIBS"
11100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11101 echo "$ac_t""yes" 1>&6
11105 echo "$ac_t""no" 1>&6
11111 if test $have_ssleay = no ; then
11112 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11113 echo "configure:11114: checking for ssl3_accept in -lssl" >&5
11114 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11115 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11116 echo $ac_n "(cached) $ac_c" 1>&6
11118 ac_save_LIBS="$LIBS"
11119 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11120 cat > conftest.$ac_ext <<EOF
11121 #line 11122 "configure"
11122 #include "confdefs.h"
11123 /* Override any gcc2 internal prototype to avoid an error. */
11124 /* We use char because int might match the return type of a gcc2
11125 builtin and then its argument prototype would still apply. */
11126 char ssl3_accept();
11132 if { (eval echo configure:11133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11134 eval "ac_cv_lib_$ac_lib_var=yes"
11136 echo "configure: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11139 eval "ac_cv_lib_$ac_lib_var=no"
11142 LIBS="$ac_save_LIBS"
11145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11146 echo "$ac_t""yes" 1>&6
11150 echo "$ac_t""no" 1>&6
11156 if test $have_ssleay = yes ; then
11160 cat >> confdefs.h <<\EOF
11161 #define HAVE_SSLEAY 1
11165 if test $need_rsaref = yes; then
11166 cat >> confdefs.h <<\EOF
11167 #define HAVE_RSAREF 1
11171 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11173 TLS_LIBS="-lssl -lcrypto"
11179 echo "configure: warning: TLS data protection not supported!" 1>&2
11182 if test $ol_link_tls = yes ; then
11183 cat >> confdefs.h <<\EOF
11188 elif test $ol_with_tls = auto ; then
11189 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11190 echo "configure: warning: TLS data protection not supported!" 1>&2
11192 elif test $ol_with_tls != no ; then
11193 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11196 if test $ol_enable_lmpasswd != no; then
11197 if test $ol_link_tls != yes ; then
11198 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11201 cat >> confdefs.h <<\EOF
11202 #define SLAPD_LMHASH 1
11209 gethostbyname_r gethostbyaddr_r \
11212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11213 echo "configure:11214: checking for $ac_func" >&5
11214 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11215 echo $ac_n "(cached) $ac_c" 1>&6
11217 cat > conftest.$ac_ext <<EOF
11218 #line 11219 "configure"
11219 #include "confdefs.h"
11220 /* System header to define __stub macros and hopefully few prototypes,
11221 which can conflict with char $ac_func(); below. */
11222 #include <assert.h>
11223 /* Override any gcc2 internal prototype to avoid an error. */
11224 /* We use char because int might match the return type of a gcc2
11225 builtin and then its argument prototype would still apply. */
11231 /* The GNU C library defines this for functions which it implements
11232 to always fail with ENOSYS. Some functions are actually named
11233 something starting with __ and the normal name is an alias. */
11234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11242 if { (eval echo configure:11243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11244 eval "ac_cv_func_$ac_func=yes"
11246 echo "configure: failed program was:" >&5
11247 cat conftest.$ac_ext >&5
11249 eval "ac_cv_func_$ac_func=no"
11254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11255 echo "$ac_t""yes" 1>&6
11256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11257 cat >> confdefs.h <<EOF
11258 #define $ac_tr_func 1
11262 echo "$ac_t""no" 1>&6
11267 if test "$ac_cv_func_ctime_r" = no ; then
11268 ol_cv_func_ctime_r_nargs=0
11270 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11271 echo "configure:11272: checking number of arguments of ctime_r" >&5
11272 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11273 echo $ac_n "(cached) $ac_c" 1>&6
11275 cat > conftest.$ac_ext <<EOF
11276 #line 11277 "configure"
11277 #include "confdefs.h"
11280 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11283 if { (eval echo configure:11284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11285 ol_cv_func_ctime_r_nargs3=yes
11287 echo "configure: failed program was:" >&5
11288 cat conftest.$ac_ext >&5
11290 ol_cv_func_ctime_r_nargs3=no
11294 cat > conftest.$ac_ext <<EOF
11295 #line 11296 "configure"
11296 #include "confdefs.h"
11299 time_t ti; char *buffer; ctime_r(&ti,buffer);
11302 if { (eval echo configure:11303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11304 ol_cv_func_ctime_r_nargs2=yes
11306 echo "configure: failed program was:" >&5
11307 cat conftest.$ac_ext >&5
11309 ol_cv_func_ctime_r_nargs2=no
11313 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11314 $ol_cv_func_ctime_r_nargs2 = no ; then
11316 ol_cv_func_ctime_r_nargs=3
11318 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11319 $ol_cv_func_ctime_r_nargs2 = yes ; then
11321 ol_cv_func_ctime_r_nargs=2
11324 ol_cv_func_ctime_r_nargs=0
11329 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11331 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11332 cat >> confdefs.h <<EOF
11333 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11340 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11341 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11342 echo "configure:11343: checking number of arguments of gethostbyname_r" >&5
11343 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11344 echo $ac_n "(cached) $ac_c" 1>&6
11346 cat > conftest.$ac_ext <<EOF
11347 #line 11348 "configure"
11348 #include "confdefs.h"
11349 #include <sys/types.h>
11350 #include <sys/socket.h>
11351 #include <netinet/in.h>
11353 #define BUFSIZE (sizeof(struct hostent)+10)
11355 struct hostent hent; char buffer[BUFSIZE];
11356 int bufsize=BUFSIZE;int h_errno;
11357 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11358 buffer, bufsize, &h_errno);
11361 if { (eval echo configure:11362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11363 ol_cv_func_gethostbyname_r_nargs5=yes
11365 echo "configure: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11368 ol_cv_func_gethostbyname_r_nargs5=no
11372 cat > conftest.$ac_ext <<EOF
11373 #line 11374 "configure"
11374 #include "confdefs.h"
11375 #include <sys/types.h>
11376 #include <sys/socket.h>
11377 #include <netinet/in.h>
11379 #define BUFSIZE (sizeof(struct hostent)+10)
11381 struct hostent hent;struct hostent *rhent;
11382 char buffer[BUFSIZE];
11383 int bufsize=BUFSIZE;int h_errno;
11384 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11388 if { (eval echo configure:11389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11390 ol_cv_func_gethostbyname_r_nargs6=yes
11392 echo "configure: failed program was:" >&5
11393 cat conftest.$ac_ext >&5
11395 ol_cv_func_gethostbyname_r_nargs6=no
11399 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11400 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11402 ol_cv_func_gethostbyname_r_nargs=5
11404 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11405 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11407 ol_cv_func_gethostbyname_r_nargs=6
11410 ol_cv_func_gethostbyname_r_nargs=0
11415 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11416 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11417 cat >> confdefs.h <<EOF
11418 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11424 ol_cv_func_gethostbyname_r_nargs=0
11427 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11428 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11429 echo "configure:11430: checking number of arguments of gethostbyaddr_r" >&5
11430 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11431 echo $ac_n "(cached) $ac_c" 1>&6
11433 cat > conftest.$ac_ext <<EOF
11434 #line 11435 "configure"
11435 #include "confdefs.h"
11436 #include <sys/types.h>
11437 #include <sys/socket.h>
11438 #include <netinet/in.h>
11440 #define BUFSIZE (sizeof(struct hostent)+10)
11442 struct hostent hent; char buffer[BUFSIZE];
11443 struct in_addr add;
11444 size_t alen=sizeof(struct in_addr);
11445 int bufsize=BUFSIZE;int h_errno;
11446 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11447 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11450 if { (eval echo configure:11451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11452 ol_cv_func_gethostbyaddr_r_nargs7=yes
11454 echo "configure: failed program was:" >&5
11455 cat conftest.$ac_ext >&5
11457 ol_cv_func_gethostbyaddr_r_nargs7=no
11461 cat > conftest.$ac_ext <<EOF
11462 #line 11463 "configure"
11463 #include "confdefs.h"
11464 #include <sys/types.h>
11465 #include <sys/socket.h>
11466 #include <netinet/in.h>
11468 #define BUFSIZE (sizeof(struct hostent)+10)
11470 struct hostent hent;
11471 struct hostent *rhent; char buffer[BUFSIZE];
11472 struct in_addr add;
11473 size_t alen=sizeof(struct in_addr);
11474 int bufsize=BUFSIZE;int h_errno;
11475 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11476 alen, AF_INET, &hent, buffer, bufsize,
11480 if { (eval echo configure:11481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11482 ol_cv_func_gethostbyaddr_r_nargs8=yes
11484 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11487 ol_cv_func_gethostbyaddr_r_nargs8=no
11491 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11492 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11494 ol_cv_func_gethostbyaddr_r_nargs=7
11496 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11497 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11499 ol_cv_func_gethostbyaddr_r_nargs=8
11502 ol_cv_func_gethostbyaddr_r_nargs=0
11507 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11508 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11509 cat >> confdefs.h <<EOF
11510 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11516 ol_cv_func_gethostbyaddr_r_nargs=0
11519 if test "$ac_cv_func_ctime_r" = yes \
11520 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11521 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11522 -a "$ac_cv_func_gethostbyname_r" = yes \
11523 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11524 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11525 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11526 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11527 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11530 cat >> confdefs.h <<\EOF
11531 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11538 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11539 -o $ol_with_threads = nt ; then
11542 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11543 echo "configure:11544: checking for _beginthread" >&5
11544 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11545 echo $ac_n "(cached) $ac_c" 1>&6
11547 cat > conftest.$ac_ext <<EOF
11548 #line 11549 "configure"
11549 #include "confdefs.h"
11550 /* System header to define __stub macros and hopefully few prototypes,
11551 which can conflict with char _beginthread(); below. */
11552 #include <assert.h>
11553 /* Override any gcc2 internal prototype to avoid an error. */
11554 /* We use char because int might match the return type of a gcc2
11555 builtin and then its argument prototype would still apply. */
11556 char _beginthread();
11561 /* The GNU C library defines this for functions which it implements
11562 to always fail with ENOSYS. Some functions are actually named
11563 something starting with __ and the normal name is an alias. */
11564 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11572 if { (eval echo configure:11573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11574 eval "ac_cv_func__beginthread=yes"
11576 echo "configure: failed program was:" >&5
11577 cat conftest.$ac_ext >&5
11579 eval "ac_cv_func__beginthread=no"
11584 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11585 echo "$ac_t""yes" 1>&6
11588 echo "$ac_t""no" 1>&6
11592 if test $ac_cv_func__beginthread = yes ; then
11593 cat >> confdefs.h <<\EOF
11594 #define HAVE_NT_THREADS 1
11597 ol_cv_nt_threads=yes
11601 if test "$ol_cv_nt_threads" = yes ; then
11603 ol_with_threads=found
11604 ol_with_yielding_select=yes
11606 cat >> confdefs.h <<\EOF
11607 #define HAVE_NT_SERVICE_MANAGER 1
11610 cat >> confdefs.h <<\EOF
11611 #define HAVE_NT_EVENT_LOG 1
11616 if test $ol_with_threads = nt ; then
11617 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11621 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11622 -o $ol_with_threads = posix ; then
11624 for ac_hdr in pthread.h
11626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11628 echo "configure:11629: checking for $ac_hdr" >&5
11629 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11630 echo $ac_n "(cached) $ac_c" 1>&6
11632 cat > conftest.$ac_ext <<EOF
11633 #line 11634 "configure"
11634 #include "confdefs.h"
11637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11638 { (eval echo configure:11639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11640 if test -z "$ac_err"; then
11642 eval "ac_cv_header_$ac_safe=yes"
11645 echo "configure: failed program was:" >&5
11646 cat conftest.$ac_ext >&5
11648 eval "ac_cv_header_$ac_safe=no"
11652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11653 echo "$ac_t""yes" 1>&6
11654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11655 cat >> confdefs.h <<EOF
11656 #define $ac_tr_hdr 1
11660 echo "$ac_t""no" 1>&6
11665 if test $ac_cv_header_pthread_h = yes ; then
11666 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11667 echo "configure:11668: checking POSIX thread version" >&5
11668 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11669 echo $ac_n "(cached) $ac_c" 1>&6
11672 cat > conftest.$ac_ext <<EOF
11673 #line 11674 "configure"
11674 #include "confdefs.h"
11676 # include <pthread.h>
11680 int i = PTHREAD_CREATE_JOINABLE;
11684 if { (eval echo configure:11685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11687 cat > conftest.$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11690 #include <pthread.h>
11692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11693 egrep "pthread_detach" >/dev/null 2>&1; then
11695 ol_cv_pthread_version=10
11698 ol_cv_pthread_version=8
11703 echo "configure: failed program was:" >&5
11704 cat conftest.$ac_ext >&5
11707 cat > conftest.$ac_ext <<EOF
11708 #line 11709 "configure"
11709 #include "confdefs.h"
11711 # include <pthread.h>
11712 # ifdef PTHREAD_CREATE_UNDETACHED
11717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11718 egrep "draft7" >/dev/null 2>&1; then
11720 ol_cv_pthread_version=7
11724 cat > conftest.$ac_ext <<EOF
11725 #line 11726 "configure"
11726 #include "confdefs.h"
11727 #include <pthread.h>
11729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11730 egrep "pthread_attr_init" >/dev/null 2>&1; then
11732 ol_cv_pthread_version=6
11736 cat > conftest.$ac_ext <<EOF
11737 #line 11738 "configure"
11738 #include "confdefs.h"
11740 # include <pthread.h>
11741 #ifdef PTHREAD_MUTEX_INITIALIZER
11746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11747 egrep "draft5" >/dev/null 2>&1; then
11749 ol_cv_pthread_version=5
11752 ol_cv_pthread_version=4
11767 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11770 if test $ol_cv_pthread_version != 0 ; then
11771 cat >> confdefs.h <<EOF
11772 #define HAVE_PTHREADS $ol_cv_pthread_version
11776 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11779 # consider threads found
11780 ol_with_threads=found
11783 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11784 echo "configure:11785: checking for LinuxThreads pthread.h" >&5
11785 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11786 echo $ac_n "(cached) $ac_c" 1>&6
11788 cat > conftest.$ac_ext <<EOF
11789 #line 11790 "configure"
11790 #include "confdefs.h"
11791 #include <pthread.h>
11793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11794 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11796 ol_cv_header_linux_threads=yes
11799 ol_cv_header_linux_threads=no
11806 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11807 if test $ol_cv_header_linux_threads = yes; then
11808 cat >> confdefs.h <<\EOF
11809 #define HAVE_LINUX_THREADS 1
11815 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11816 echo "configure:11817: checking for GNU Pth pthread.h" >&5
11817 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11818 echo $ac_n "(cached) $ac_c" 1>&6
11820 cat > conftest.$ac_ext <<EOF
11821 #line 11822 "configure"
11822 #include "confdefs.h"
11823 #include <pthread.h>
11824 #ifdef _POSIX_THREAD_IS_GNU_PTH
11829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11830 egrep "__gnu_pth__" >/dev/null 2>&1; then
11832 ol_cv_header_gnu_pth_pthread_h=yes
11835 ol_cv_header_gnu_pth_pthread_h=no
11842 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11845 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11846 for ac_hdr in sched.h
11848 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11849 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11850 echo "configure:11851: checking for $ac_hdr" >&5
11851 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11852 echo $ac_n "(cached) $ac_c" 1>&6
11854 cat > conftest.$ac_ext <<EOF
11855 #line 11856 "configure"
11856 #include "confdefs.h"
11859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11860 { (eval echo configure:11861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11862 if test -z "$ac_err"; then
11864 eval "ac_cv_header_$ac_safe=yes"
11867 echo "configure: failed program was:" >&5
11868 cat conftest.$ac_ext >&5
11870 eval "ac_cv_header_$ac_safe=no"
11874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11875 echo "$ac_t""yes" 1>&6
11876 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11877 cat >> confdefs.h <<EOF
11878 #define $ac_tr_hdr 1
11882 echo "$ac_t""no" 1>&6
11889 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11890 echo "configure:11891: checking for pthread_create in default libraries" >&5
11891 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11892 echo $ac_n "(cached) $ac_c" 1>&6
11895 if test "$cross_compiling" = yes; then
11896 cat > conftest.$ac_ext <<EOF
11897 #line 11898 "configure"
11898 #include "confdefs.h"
11899 /* pthread test headers */
11900 #include <pthread.h>
11901 #if HAVE_PTHREADS < 7
11905 #define NULL (void*)0
11908 static void *task(p)
11911 return (void *) (p == NULL);
11916 /* pthread test function */
11917 #ifndef PTHREAD_CREATE_DETACHED
11918 #define PTHREAD_CREATE_DETACHED 1
11922 int detach = PTHREAD_CREATE_DETACHED;
11924 #if HAVE_PTHREADS > 4
11925 /* Final pthreads */
11926 pthread_attr_t attr;
11928 status = pthread_attr_init(&attr);
11929 if( status ) return status;
11931 #if HAVE_PTHREADS < 7
11932 status = pthread_attr_setdetachstate(&attr, &detach);
11933 if( status < 0 ) status = errno;
11935 status = pthread_attr_setdetachstate(&attr, detach);
11937 if( status ) return status;
11938 status = pthread_create( &t, &attr, task, NULL );
11939 #if HAVE_PTHREADS < 7
11940 if( status < 0 ) status = errno;
11942 if( status ) return status;
11944 /* Draft 4 pthreads */
11945 status = pthread_create( &t, pthread_attr_default, task, NULL );
11946 if( status ) return errno;
11948 /* give thread a chance to complete */
11949 /* it should remain joinable and hence detachable */
11952 status = pthread_detach( &t );
11953 if( status ) return errno;
11956 #ifdef HAVE_LINUX_THREADS
11957 pthread_kill_other_threads_np();
11964 if { (eval echo configure:11965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11966 ol_cv_pthread_create=yes
11968 echo "configure: failed program was:" >&5
11969 cat conftest.$ac_ext >&5
11971 ol_cv_pthread_create=no
11975 cat > conftest.$ac_ext <<EOF
11976 #line 11977 "configure"
11977 #include "confdefs.h"
11978 /* pthread test headers */
11979 #include <pthread.h>
11980 #if HAVE_PTHREADS < 7
11984 #define NULL (void*)0
11987 static void *task(p)
11990 return (void *) (p == NULL);
11994 int main(argc, argv)
11999 /* pthread test function */
12000 #ifndef PTHREAD_CREATE_DETACHED
12001 #define PTHREAD_CREATE_DETACHED 1
12005 int detach = PTHREAD_CREATE_DETACHED;
12007 #if HAVE_PTHREADS > 4
12008 /* Final pthreads */
12009 pthread_attr_t attr;
12011 status = pthread_attr_init(&attr);
12012 if( status ) return status;
12014 #if HAVE_PTHREADS < 7
12015 status = pthread_attr_setdetachstate(&attr, &detach);
12016 if( status < 0 ) status = errno;
12018 status = pthread_attr_setdetachstate(&attr, detach);
12020 if( status ) return status;
12021 status = pthread_create( &t, &attr, task, NULL );
12022 #if HAVE_PTHREADS < 7
12023 if( status < 0 ) status = errno;
12025 if( status ) return status;
12027 /* Draft 4 pthreads */
12028 status = pthread_create( &t, pthread_attr_default, task, NULL );
12029 if( status ) return errno;
12031 /* give thread a chance to complete */
12032 /* it should remain joinable and hence detachable */
12035 status = pthread_detach( &t );
12036 if( status ) return errno;
12039 #ifdef HAVE_LINUX_THREADS
12040 pthread_kill_other_threads_np();
12048 if { (eval echo configure:12049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12050 ol_cv_pthread_create=yes
12052 echo "configure: failed program was:" >&5
12053 cat conftest.$ac_ext >&5
12055 ol_cv_pthread_create=no
12062 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12064 if test $ol_cv_pthread_create != no ; then
12065 ol_link_threads=posix
12066 ol_link_pthreads=""
12069 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12070 if test "$ol_link_threads" = no ; then
12072 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12073 echo "configure:12074: checking for pthread link with -kthread" >&5
12074 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12075 echo $ac_n "(cached) $ac_c" 1>&6
12080 LIBS="-kthread $LIBS"
12082 if test "$cross_compiling" = yes; then
12083 cat > conftest.$ac_ext <<EOF
12084 #line 12085 "configure"
12085 #include "confdefs.h"
12086 /* pthread test headers */
12087 #include <pthread.h>
12088 #if HAVE_PTHREADS < 7
12092 #define NULL (void*)0
12095 static void *task(p)
12098 return (void *) (p == NULL);
12103 /* pthread test function */
12104 #ifndef PTHREAD_CREATE_DETACHED
12105 #define PTHREAD_CREATE_DETACHED 1
12109 int detach = PTHREAD_CREATE_DETACHED;
12111 #if HAVE_PTHREADS > 4
12112 /* Final pthreads */
12113 pthread_attr_t attr;
12115 status = pthread_attr_init(&attr);
12116 if( status ) return status;
12118 #if HAVE_PTHREADS < 7
12119 status = pthread_attr_setdetachstate(&attr, &detach);
12120 if( status < 0 ) status = errno;
12122 status = pthread_attr_setdetachstate(&attr, detach);
12124 if( status ) return status;
12125 status = pthread_create( &t, &attr, task, NULL );
12126 #if HAVE_PTHREADS < 7
12127 if( status < 0 ) status = errno;
12129 if( status ) return status;
12131 /* Draft 4 pthreads */
12132 status = pthread_create( &t, pthread_attr_default, task, NULL );
12133 if( status ) return errno;
12135 /* give thread a chance to complete */
12136 /* it should remain joinable and hence detachable */
12139 status = pthread_detach( &t );
12140 if( status ) return errno;
12143 #ifdef HAVE_LINUX_THREADS
12144 pthread_kill_other_threads_np();
12151 if { (eval echo configure:12152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12153 ol_cv_pthread_kthread=yes
12155 echo "configure: failed program was:" >&5
12156 cat conftest.$ac_ext >&5
12158 ol_cv_pthread_kthread=no
12162 cat > conftest.$ac_ext <<EOF
12163 #line 12164 "configure"
12164 #include "confdefs.h"
12165 /* pthread test headers */
12166 #include <pthread.h>
12167 #if HAVE_PTHREADS < 7
12171 #define NULL (void*)0
12174 static void *task(p)
12177 return (void *) (p == NULL);
12181 int main(argc, argv)
12186 /* pthread test function */
12187 #ifndef PTHREAD_CREATE_DETACHED
12188 #define PTHREAD_CREATE_DETACHED 1
12192 int detach = PTHREAD_CREATE_DETACHED;
12194 #if HAVE_PTHREADS > 4
12195 /* Final pthreads */
12196 pthread_attr_t attr;
12198 status = pthread_attr_init(&attr);
12199 if( status ) return status;
12201 #if HAVE_PTHREADS < 7
12202 status = pthread_attr_setdetachstate(&attr, &detach);
12203 if( status < 0 ) status = errno;
12205 status = pthread_attr_setdetachstate(&attr, detach);
12207 if( status ) return status;
12208 status = pthread_create( &t, &attr, task, NULL );
12209 #if HAVE_PTHREADS < 7
12210 if( status < 0 ) status = errno;
12212 if( status ) return status;
12214 /* Draft 4 pthreads */
12215 status = pthread_create( &t, pthread_attr_default, task, NULL );
12216 if( status ) return errno;
12218 /* give thread a chance to complete */
12219 /* it should remain joinable and hence detachable */
12222 status = pthread_detach( &t );
12223 if( status ) return errno;
12226 #ifdef HAVE_LINUX_THREADS
12227 pthread_kill_other_threads_np();
12235 if { (eval echo configure:12236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12237 ol_cv_pthread_kthread=yes
12239 echo "configure: failed program was:" >&5
12240 cat conftest.$ac_ext >&5
12242 ol_cv_pthread_kthread=no
12253 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12255 if test $ol_cv_pthread_kthread = yes ; then
12256 ol_link_pthreads="-kthread"
12257 ol_link_threads=posix
12261 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12262 if test "$ol_link_threads" = no ; then
12264 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12265 echo "configure:12266: checking for pthread link with -pthread" >&5
12266 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12267 echo $ac_n "(cached) $ac_c" 1>&6
12272 LIBS="-pthread $LIBS"
12274 if test "$cross_compiling" = yes; then
12275 cat > conftest.$ac_ext <<EOF
12276 #line 12277 "configure"
12277 #include "confdefs.h"
12278 /* pthread test headers */
12279 #include <pthread.h>
12280 #if HAVE_PTHREADS < 7
12284 #define NULL (void*)0
12287 static void *task(p)
12290 return (void *) (p == NULL);
12295 /* pthread test function */
12296 #ifndef PTHREAD_CREATE_DETACHED
12297 #define PTHREAD_CREATE_DETACHED 1
12301 int detach = PTHREAD_CREATE_DETACHED;
12303 #if HAVE_PTHREADS > 4
12304 /* Final pthreads */
12305 pthread_attr_t attr;
12307 status = pthread_attr_init(&attr);
12308 if( status ) return status;
12310 #if HAVE_PTHREADS < 7
12311 status = pthread_attr_setdetachstate(&attr, &detach);
12312 if( status < 0 ) status = errno;
12314 status = pthread_attr_setdetachstate(&attr, detach);
12316 if( status ) return status;
12317 status = pthread_create( &t, &attr, task, NULL );
12318 #if HAVE_PTHREADS < 7
12319 if( status < 0 ) status = errno;
12321 if( status ) return status;
12323 /* Draft 4 pthreads */
12324 status = pthread_create( &t, pthread_attr_default, task, NULL );
12325 if( status ) return errno;
12327 /* give thread a chance to complete */
12328 /* it should remain joinable and hence detachable */
12331 status = pthread_detach( &t );
12332 if( status ) return errno;
12335 #ifdef HAVE_LINUX_THREADS
12336 pthread_kill_other_threads_np();
12343 if { (eval echo configure:12344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12345 ol_cv_pthread_pthread=yes
12347 echo "configure: failed program was:" >&5
12348 cat conftest.$ac_ext >&5
12350 ol_cv_pthread_pthread=no
12354 cat > conftest.$ac_ext <<EOF
12355 #line 12356 "configure"
12356 #include "confdefs.h"
12357 /* pthread test headers */
12358 #include <pthread.h>
12359 #if HAVE_PTHREADS < 7
12363 #define NULL (void*)0
12366 static void *task(p)
12369 return (void *) (p == NULL);
12373 int main(argc, argv)
12378 /* pthread test function */
12379 #ifndef PTHREAD_CREATE_DETACHED
12380 #define PTHREAD_CREATE_DETACHED 1
12384 int detach = PTHREAD_CREATE_DETACHED;
12386 #if HAVE_PTHREADS > 4
12387 /* Final pthreads */
12388 pthread_attr_t attr;
12390 status = pthread_attr_init(&attr);
12391 if( status ) return status;
12393 #if HAVE_PTHREADS < 7
12394 status = pthread_attr_setdetachstate(&attr, &detach);
12395 if( status < 0 ) status = errno;
12397 status = pthread_attr_setdetachstate(&attr, detach);
12399 if( status ) return status;
12400 status = pthread_create( &t, &attr, task, NULL );
12401 #if HAVE_PTHREADS < 7
12402 if( status < 0 ) status = errno;
12404 if( status ) return status;
12406 /* Draft 4 pthreads */
12407 status = pthread_create( &t, pthread_attr_default, task, NULL );
12408 if( status ) return errno;
12410 /* give thread a chance to complete */
12411 /* it should remain joinable and hence detachable */
12414 status = pthread_detach( &t );
12415 if( status ) return errno;
12418 #ifdef HAVE_LINUX_THREADS
12419 pthread_kill_other_threads_np();
12427 if { (eval echo configure:12428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12429 ol_cv_pthread_pthread=yes
12431 echo "configure: failed program was:" >&5
12432 cat conftest.$ac_ext >&5
12434 ol_cv_pthread_pthread=no
12445 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12447 if test $ol_cv_pthread_pthread = yes ; then
12448 ol_link_pthreads="-pthread"
12449 ol_link_threads=posix
12453 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12454 if test "$ol_link_threads" = no ; then
12456 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12457 echo "configure:12458: checking for pthread link with -pthreads" >&5
12458 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12459 echo $ac_n "(cached) $ac_c" 1>&6
12464 LIBS="-pthreads $LIBS"
12466 if test "$cross_compiling" = yes; then
12467 cat > conftest.$ac_ext <<EOF
12468 #line 12469 "configure"
12469 #include "confdefs.h"
12470 /* pthread test headers */
12471 #include <pthread.h>
12472 #if HAVE_PTHREADS < 7
12476 #define NULL (void*)0
12479 static void *task(p)
12482 return (void *) (p == NULL);
12487 /* pthread test function */
12488 #ifndef PTHREAD_CREATE_DETACHED
12489 #define PTHREAD_CREATE_DETACHED 1
12493 int detach = PTHREAD_CREATE_DETACHED;
12495 #if HAVE_PTHREADS > 4
12496 /* Final pthreads */
12497 pthread_attr_t attr;
12499 status = pthread_attr_init(&attr);
12500 if( status ) return status;
12502 #if HAVE_PTHREADS < 7
12503 status = pthread_attr_setdetachstate(&attr, &detach);
12504 if( status < 0 ) status = errno;
12506 status = pthread_attr_setdetachstate(&attr, detach);
12508 if( status ) return status;
12509 status = pthread_create( &t, &attr, task, NULL );
12510 #if HAVE_PTHREADS < 7
12511 if( status < 0 ) status = errno;
12513 if( status ) return status;
12515 /* Draft 4 pthreads */
12516 status = pthread_create( &t, pthread_attr_default, task, NULL );
12517 if( status ) return errno;
12519 /* give thread a chance to complete */
12520 /* it should remain joinable and hence detachable */
12523 status = pthread_detach( &t );
12524 if( status ) return errno;
12527 #ifdef HAVE_LINUX_THREADS
12528 pthread_kill_other_threads_np();
12535 if { (eval echo configure:12536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12537 ol_cv_pthread_pthreads=yes
12539 echo "configure: failed program was:" >&5
12540 cat conftest.$ac_ext >&5
12542 ol_cv_pthread_pthreads=no
12546 cat > conftest.$ac_ext <<EOF
12547 #line 12548 "configure"
12548 #include "confdefs.h"
12549 /* pthread test headers */
12550 #include <pthread.h>
12551 #if HAVE_PTHREADS < 7
12555 #define NULL (void*)0
12558 static void *task(p)
12561 return (void *) (p == NULL);
12565 int main(argc, argv)
12570 /* pthread test function */
12571 #ifndef PTHREAD_CREATE_DETACHED
12572 #define PTHREAD_CREATE_DETACHED 1
12576 int detach = PTHREAD_CREATE_DETACHED;
12578 #if HAVE_PTHREADS > 4
12579 /* Final pthreads */
12580 pthread_attr_t attr;
12582 status = pthread_attr_init(&attr);
12583 if( status ) return status;
12585 #if HAVE_PTHREADS < 7
12586 status = pthread_attr_setdetachstate(&attr, &detach);
12587 if( status < 0 ) status = errno;
12589 status = pthread_attr_setdetachstate(&attr, detach);
12591 if( status ) return status;
12592 status = pthread_create( &t, &attr, task, NULL );
12593 #if HAVE_PTHREADS < 7
12594 if( status < 0 ) status = errno;
12596 if( status ) return status;
12598 /* Draft 4 pthreads */
12599 status = pthread_create( &t, pthread_attr_default, task, NULL );
12600 if( status ) return errno;
12602 /* give thread a chance to complete */
12603 /* it should remain joinable and hence detachable */
12606 status = pthread_detach( &t );
12607 if( status ) return errno;
12610 #ifdef HAVE_LINUX_THREADS
12611 pthread_kill_other_threads_np();
12619 if { (eval echo configure:12620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12621 ol_cv_pthread_pthreads=yes
12623 echo "configure: failed program was:" >&5
12624 cat conftest.$ac_ext >&5
12626 ol_cv_pthread_pthreads=no
12637 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12639 if test $ol_cv_pthread_pthreads = yes ; then
12640 ol_link_pthreads="-pthreads"
12641 ol_link_threads=posix
12645 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12646 if test "$ol_link_threads" = no ; then
12648 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12649 echo "configure:12650: checking for pthread link with -mthreads" >&5
12650 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12651 echo $ac_n "(cached) $ac_c" 1>&6
12656 LIBS="-mthreads $LIBS"
12658 if test "$cross_compiling" = yes; then
12659 cat > conftest.$ac_ext <<EOF
12660 #line 12661 "configure"
12661 #include "confdefs.h"
12662 /* pthread test headers */
12663 #include <pthread.h>
12664 #if HAVE_PTHREADS < 7
12668 #define NULL (void*)0
12671 static void *task(p)
12674 return (void *) (p == NULL);
12679 /* pthread test function */
12680 #ifndef PTHREAD_CREATE_DETACHED
12681 #define PTHREAD_CREATE_DETACHED 1
12685 int detach = PTHREAD_CREATE_DETACHED;
12687 #if HAVE_PTHREADS > 4
12688 /* Final pthreads */
12689 pthread_attr_t attr;
12691 status = pthread_attr_init(&attr);
12692 if( status ) return status;
12694 #if HAVE_PTHREADS < 7
12695 status = pthread_attr_setdetachstate(&attr, &detach);
12696 if( status < 0 ) status = errno;
12698 status = pthread_attr_setdetachstate(&attr, detach);
12700 if( status ) return status;
12701 status = pthread_create( &t, &attr, task, NULL );
12702 #if HAVE_PTHREADS < 7
12703 if( status < 0 ) status = errno;
12705 if( status ) return status;
12707 /* Draft 4 pthreads */
12708 status = pthread_create( &t, pthread_attr_default, task, NULL );
12709 if( status ) return errno;
12711 /* give thread a chance to complete */
12712 /* it should remain joinable and hence detachable */
12715 status = pthread_detach( &t );
12716 if( status ) return errno;
12719 #ifdef HAVE_LINUX_THREADS
12720 pthread_kill_other_threads_np();
12727 if { (eval echo configure:12728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12729 ol_cv_pthread_mthreads=yes
12731 echo "configure: failed program was:" >&5
12732 cat conftest.$ac_ext >&5
12734 ol_cv_pthread_mthreads=no
12738 cat > conftest.$ac_ext <<EOF
12739 #line 12740 "configure"
12740 #include "confdefs.h"
12741 /* pthread test headers */
12742 #include <pthread.h>
12743 #if HAVE_PTHREADS < 7
12747 #define NULL (void*)0
12750 static void *task(p)
12753 return (void *) (p == NULL);
12757 int main(argc, argv)
12762 /* pthread test function */
12763 #ifndef PTHREAD_CREATE_DETACHED
12764 #define PTHREAD_CREATE_DETACHED 1
12768 int detach = PTHREAD_CREATE_DETACHED;
12770 #if HAVE_PTHREADS > 4
12771 /* Final pthreads */
12772 pthread_attr_t attr;
12774 status = pthread_attr_init(&attr);
12775 if( status ) return status;
12777 #if HAVE_PTHREADS < 7
12778 status = pthread_attr_setdetachstate(&attr, &detach);
12779 if( status < 0 ) status = errno;
12781 status = pthread_attr_setdetachstate(&attr, detach);
12783 if( status ) return status;
12784 status = pthread_create( &t, &attr, task, NULL );
12785 #if HAVE_PTHREADS < 7
12786 if( status < 0 ) status = errno;
12788 if( status ) return status;
12790 /* Draft 4 pthreads */
12791 status = pthread_create( &t, pthread_attr_default, task, NULL );
12792 if( status ) return errno;
12794 /* give thread a chance to complete */
12795 /* it should remain joinable and hence detachable */
12798 status = pthread_detach( &t );
12799 if( status ) return errno;
12802 #ifdef HAVE_LINUX_THREADS
12803 pthread_kill_other_threads_np();
12811 if { (eval echo configure:12812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12813 ol_cv_pthread_mthreads=yes
12815 echo "configure: failed program was:" >&5
12816 cat conftest.$ac_ext >&5
12818 ol_cv_pthread_mthreads=no
12829 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12831 if test $ol_cv_pthread_mthreads = yes ; then
12832 ol_link_pthreads="-mthreads"
12833 ol_link_threads=posix
12837 # Pthread try link: -thread (ol_cv_pthread_thread)
12838 if test "$ol_link_threads" = no ; then
12840 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12841 echo "configure:12842: checking for pthread link with -thread" >&5
12842 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12843 echo $ac_n "(cached) $ac_c" 1>&6
12848 LIBS="-thread $LIBS"
12850 if test "$cross_compiling" = yes; then
12851 cat > conftest.$ac_ext <<EOF
12852 #line 12853 "configure"
12853 #include "confdefs.h"
12854 /* pthread test headers */
12855 #include <pthread.h>
12856 #if HAVE_PTHREADS < 7
12860 #define NULL (void*)0
12863 static void *task(p)
12866 return (void *) (p == NULL);
12871 /* pthread test function */
12872 #ifndef PTHREAD_CREATE_DETACHED
12873 #define PTHREAD_CREATE_DETACHED 1
12877 int detach = PTHREAD_CREATE_DETACHED;
12879 #if HAVE_PTHREADS > 4
12880 /* Final pthreads */
12881 pthread_attr_t attr;
12883 status = pthread_attr_init(&attr);
12884 if( status ) return status;
12886 #if HAVE_PTHREADS < 7
12887 status = pthread_attr_setdetachstate(&attr, &detach);
12888 if( status < 0 ) status = errno;
12890 status = pthread_attr_setdetachstate(&attr, detach);
12892 if( status ) return status;
12893 status = pthread_create( &t, &attr, task, NULL );
12894 #if HAVE_PTHREADS < 7
12895 if( status < 0 ) status = errno;
12897 if( status ) return status;
12899 /* Draft 4 pthreads */
12900 status = pthread_create( &t, pthread_attr_default, task, NULL );
12901 if( status ) return errno;
12903 /* give thread a chance to complete */
12904 /* it should remain joinable and hence detachable */
12907 status = pthread_detach( &t );
12908 if( status ) return errno;
12911 #ifdef HAVE_LINUX_THREADS
12912 pthread_kill_other_threads_np();
12919 if { (eval echo configure:12920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12921 ol_cv_pthread_thread=yes
12923 echo "configure: failed program was:" >&5
12924 cat conftest.$ac_ext >&5
12926 ol_cv_pthread_thread=no
12930 cat > conftest.$ac_ext <<EOF
12931 #line 12932 "configure"
12932 #include "confdefs.h"
12933 /* pthread test headers */
12934 #include <pthread.h>
12935 #if HAVE_PTHREADS < 7
12939 #define NULL (void*)0
12942 static void *task(p)
12945 return (void *) (p == NULL);
12949 int main(argc, argv)
12954 /* pthread test function */
12955 #ifndef PTHREAD_CREATE_DETACHED
12956 #define PTHREAD_CREATE_DETACHED 1
12960 int detach = PTHREAD_CREATE_DETACHED;
12962 #if HAVE_PTHREADS > 4
12963 /* Final pthreads */
12964 pthread_attr_t attr;
12966 status = pthread_attr_init(&attr);
12967 if( status ) return status;
12969 #if HAVE_PTHREADS < 7
12970 status = pthread_attr_setdetachstate(&attr, &detach);
12971 if( status < 0 ) status = errno;
12973 status = pthread_attr_setdetachstate(&attr, detach);
12975 if( status ) return status;
12976 status = pthread_create( &t, &attr, task, NULL );
12977 #if HAVE_PTHREADS < 7
12978 if( status < 0 ) status = errno;
12980 if( status ) return status;
12982 /* Draft 4 pthreads */
12983 status = pthread_create( &t, pthread_attr_default, task, NULL );
12984 if( status ) return errno;
12986 /* give thread a chance to complete */
12987 /* it should remain joinable and hence detachable */
12990 status = pthread_detach( &t );
12991 if( status ) return errno;
12994 #ifdef HAVE_LINUX_THREADS
12995 pthread_kill_other_threads_np();
13003 if { (eval echo configure:13004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13005 ol_cv_pthread_thread=yes
13007 echo "configure: failed program was:" >&5
13008 cat conftest.$ac_ext >&5
13010 ol_cv_pthread_thread=no
13021 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13023 if test $ol_cv_pthread_thread = yes ; then
13024 ol_link_pthreads="-thread"
13025 ol_link_threads=posix
13030 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13031 if test "$ol_link_threads" = no ; then
13032 # try -lpthread -lmach -lexc -lc_r
13033 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13034 echo "configure:13035: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13035 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13036 echo $ac_n "(cached) $ac_c" 1>&6
13041 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13043 if test "$cross_compiling" = yes; then
13044 cat > conftest.$ac_ext <<EOF
13045 #line 13046 "configure"
13046 #include "confdefs.h"
13047 /* pthread test headers */
13048 #include <pthread.h>
13049 #if HAVE_PTHREADS < 7
13053 #define NULL (void*)0
13056 static void *task(p)
13059 return (void *) (p == NULL);
13064 /* pthread test function */
13065 #ifndef PTHREAD_CREATE_DETACHED
13066 #define PTHREAD_CREATE_DETACHED 1
13070 int detach = PTHREAD_CREATE_DETACHED;
13072 #if HAVE_PTHREADS > 4
13073 /* Final pthreads */
13074 pthread_attr_t attr;
13076 status = pthread_attr_init(&attr);
13077 if( status ) return status;
13079 #if HAVE_PTHREADS < 7
13080 status = pthread_attr_setdetachstate(&attr, &detach);
13081 if( status < 0 ) status = errno;
13083 status = pthread_attr_setdetachstate(&attr, detach);
13085 if( status ) return status;
13086 status = pthread_create( &t, &attr, task, NULL );
13087 #if HAVE_PTHREADS < 7
13088 if( status < 0 ) status = errno;
13090 if( status ) return status;
13092 /* Draft 4 pthreads */
13093 status = pthread_create( &t, pthread_attr_default, task, NULL );
13094 if( status ) return errno;
13096 /* give thread a chance to complete */
13097 /* it should remain joinable and hence detachable */
13100 status = pthread_detach( &t );
13101 if( status ) return errno;
13104 #ifdef HAVE_LINUX_THREADS
13105 pthread_kill_other_threads_np();
13112 if { (eval echo configure:13113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13114 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13116 echo "configure: failed program was:" >&5
13117 cat conftest.$ac_ext >&5
13119 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13123 cat > conftest.$ac_ext <<EOF
13124 #line 13125 "configure"
13125 #include "confdefs.h"
13126 /* pthread test headers */
13127 #include <pthread.h>
13128 #if HAVE_PTHREADS < 7
13132 #define NULL (void*)0
13135 static void *task(p)
13138 return (void *) (p == NULL);
13142 int main(argc, argv)
13147 /* pthread test function */
13148 #ifndef PTHREAD_CREATE_DETACHED
13149 #define PTHREAD_CREATE_DETACHED 1
13153 int detach = PTHREAD_CREATE_DETACHED;
13155 #if HAVE_PTHREADS > 4
13156 /* Final pthreads */
13157 pthread_attr_t attr;
13159 status = pthread_attr_init(&attr);
13160 if( status ) return status;
13162 #if HAVE_PTHREADS < 7
13163 status = pthread_attr_setdetachstate(&attr, &detach);
13164 if( status < 0 ) status = errno;
13166 status = pthread_attr_setdetachstate(&attr, detach);
13168 if( status ) return status;
13169 status = pthread_create( &t, &attr, task, NULL );
13170 #if HAVE_PTHREADS < 7
13171 if( status < 0 ) status = errno;
13173 if( status ) return status;
13175 /* Draft 4 pthreads */
13176 status = pthread_create( &t, pthread_attr_default, task, NULL );
13177 if( status ) return errno;
13179 /* give thread a chance to complete */
13180 /* it should remain joinable and hence detachable */
13183 status = pthread_detach( &t );
13184 if( status ) return errno;
13187 #ifdef HAVE_LINUX_THREADS
13188 pthread_kill_other_threads_np();
13196 if { (eval echo configure:13197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13198 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13200 echo "configure: failed program was:" >&5
13201 cat conftest.$ac_ext >&5
13203 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13214 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13216 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13217 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13218 ol_link_threads=posix
13222 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13223 if test "$ol_link_threads" = no ; then
13224 # try -lpthread -lmach -lexc
13225 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13226 echo "configure:13227: checking for pthread link with -lpthread -lmach -lexc" >&5
13227 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13228 echo $ac_n "(cached) $ac_c" 1>&6
13233 LIBS="-lpthread -lmach -lexc $LIBS"
13235 if test "$cross_compiling" = yes; then
13236 cat > conftest.$ac_ext <<EOF
13237 #line 13238 "configure"
13238 #include "confdefs.h"
13239 /* pthread test headers */
13240 #include <pthread.h>
13241 #if HAVE_PTHREADS < 7
13245 #define NULL (void*)0
13248 static void *task(p)
13251 return (void *) (p == NULL);
13256 /* pthread test function */
13257 #ifndef PTHREAD_CREATE_DETACHED
13258 #define PTHREAD_CREATE_DETACHED 1
13262 int detach = PTHREAD_CREATE_DETACHED;
13264 #if HAVE_PTHREADS > 4
13265 /* Final pthreads */
13266 pthread_attr_t attr;
13268 status = pthread_attr_init(&attr);
13269 if( status ) return status;
13271 #if HAVE_PTHREADS < 7
13272 status = pthread_attr_setdetachstate(&attr, &detach);
13273 if( status < 0 ) status = errno;
13275 status = pthread_attr_setdetachstate(&attr, detach);
13277 if( status ) return status;
13278 status = pthread_create( &t, &attr, task, NULL );
13279 #if HAVE_PTHREADS < 7
13280 if( status < 0 ) status = errno;
13282 if( status ) return status;
13284 /* Draft 4 pthreads */
13285 status = pthread_create( &t, pthread_attr_default, task, NULL );
13286 if( status ) return errno;
13288 /* give thread a chance to complete */
13289 /* it should remain joinable and hence detachable */
13292 status = pthread_detach( &t );
13293 if( status ) return errno;
13296 #ifdef HAVE_LINUX_THREADS
13297 pthread_kill_other_threads_np();
13304 if { (eval echo configure:13305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13306 ol_cv_pthread_lpthread_lmach_lexc=yes
13308 echo "configure: failed program was:" >&5
13309 cat conftest.$ac_ext >&5
13311 ol_cv_pthread_lpthread_lmach_lexc=no
13315 cat > conftest.$ac_ext <<EOF
13316 #line 13317 "configure"
13317 #include "confdefs.h"
13318 /* pthread test headers */
13319 #include <pthread.h>
13320 #if HAVE_PTHREADS < 7
13324 #define NULL (void*)0
13327 static void *task(p)
13330 return (void *) (p == NULL);
13334 int main(argc, argv)
13339 /* pthread test function */
13340 #ifndef PTHREAD_CREATE_DETACHED
13341 #define PTHREAD_CREATE_DETACHED 1
13345 int detach = PTHREAD_CREATE_DETACHED;
13347 #if HAVE_PTHREADS > 4
13348 /* Final pthreads */
13349 pthread_attr_t attr;
13351 status = pthread_attr_init(&attr);
13352 if( status ) return status;
13354 #if HAVE_PTHREADS < 7
13355 status = pthread_attr_setdetachstate(&attr, &detach);
13356 if( status < 0 ) status = errno;
13358 status = pthread_attr_setdetachstate(&attr, detach);
13360 if( status ) return status;
13361 status = pthread_create( &t, &attr, task, NULL );
13362 #if HAVE_PTHREADS < 7
13363 if( status < 0 ) status = errno;
13365 if( status ) return status;
13367 /* Draft 4 pthreads */
13368 status = pthread_create( &t, pthread_attr_default, task, NULL );
13369 if( status ) return errno;
13371 /* give thread a chance to complete */
13372 /* it should remain joinable and hence detachable */
13375 status = pthread_detach( &t );
13376 if( status ) return errno;
13379 #ifdef HAVE_LINUX_THREADS
13380 pthread_kill_other_threads_np();
13388 if { (eval echo configure:13389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13390 ol_cv_pthread_lpthread_lmach_lexc=yes
13392 echo "configure: failed program was:" >&5
13393 cat conftest.$ac_ext >&5
13395 ol_cv_pthread_lpthread_lmach_lexc=no
13406 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13408 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13409 ol_link_pthreads="-lpthread -lmach -lexc"
13410 ol_link_threads=posix
13415 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13416 if test "$ol_link_threads" = no ; then
13417 # try -lpthread -Wl,-woff,85
13418 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13419 echo "configure:13420: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13420 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13421 echo $ac_n "(cached) $ac_c" 1>&6
13426 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13428 if test "$cross_compiling" = yes; then
13429 cat > conftest.$ac_ext <<EOF
13430 #line 13431 "configure"
13431 #include "confdefs.h"
13432 /* pthread test headers */
13433 #include <pthread.h>
13434 #if HAVE_PTHREADS < 7
13438 #define NULL (void*)0
13441 static void *task(p)
13444 return (void *) (p == NULL);
13449 /* pthread test function */
13450 #ifndef PTHREAD_CREATE_DETACHED
13451 #define PTHREAD_CREATE_DETACHED 1
13455 int detach = PTHREAD_CREATE_DETACHED;
13457 #if HAVE_PTHREADS > 4
13458 /* Final pthreads */
13459 pthread_attr_t attr;
13461 status = pthread_attr_init(&attr);
13462 if( status ) return status;
13464 #if HAVE_PTHREADS < 7
13465 status = pthread_attr_setdetachstate(&attr, &detach);
13466 if( status < 0 ) status = errno;
13468 status = pthread_attr_setdetachstate(&attr, detach);
13470 if( status ) return status;
13471 status = pthread_create( &t, &attr, task, NULL );
13472 #if HAVE_PTHREADS < 7
13473 if( status < 0 ) status = errno;
13475 if( status ) return status;
13477 /* Draft 4 pthreads */
13478 status = pthread_create( &t, pthread_attr_default, task, NULL );
13479 if( status ) return errno;
13481 /* give thread a chance to complete */
13482 /* it should remain joinable and hence detachable */
13485 status = pthread_detach( &t );
13486 if( status ) return errno;
13489 #ifdef HAVE_LINUX_THREADS
13490 pthread_kill_other_threads_np();
13497 if { (eval echo configure:13498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13499 ol_cv_pthread_lib_lpthread_woff=yes
13501 echo "configure: failed program was:" >&5
13502 cat conftest.$ac_ext >&5
13504 ol_cv_pthread_lib_lpthread_woff=no
13508 cat > conftest.$ac_ext <<EOF
13509 #line 13510 "configure"
13510 #include "confdefs.h"
13511 /* pthread test headers */
13512 #include <pthread.h>
13513 #if HAVE_PTHREADS < 7
13517 #define NULL (void*)0
13520 static void *task(p)
13523 return (void *) (p == NULL);
13527 int main(argc, argv)
13532 /* pthread test function */
13533 #ifndef PTHREAD_CREATE_DETACHED
13534 #define PTHREAD_CREATE_DETACHED 1
13538 int detach = PTHREAD_CREATE_DETACHED;
13540 #if HAVE_PTHREADS > 4
13541 /* Final pthreads */
13542 pthread_attr_t attr;
13544 status = pthread_attr_init(&attr);
13545 if( status ) return status;
13547 #if HAVE_PTHREADS < 7
13548 status = pthread_attr_setdetachstate(&attr, &detach);
13549 if( status < 0 ) status = errno;
13551 status = pthread_attr_setdetachstate(&attr, detach);
13553 if( status ) return status;
13554 status = pthread_create( &t, &attr, task, NULL );
13555 #if HAVE_PTHREADS < 7
13556 if( status < 0 ) status = errno;
13558 if( status ) return status;
13560 /* Draft 4 pthreads */
13561 status = pthread_create( &t, pthread_attr_default, task, NULL );
13562 if( status ) return errno;
13564 /* give thread a chance to complete */
13565 /* it should remain joinable and hence detachable */
13568 status = pthread_detach( &t );
13569 if( status ) return errno;
13572 #ifdef HAVE_LINUX_THREADS
13573 pthread_kill_other_threads_np();
13581 if { (eval echo configure:13582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13583 ol_cv_pthread_lib_lpthread_woff=yes
13585 echo "configure: failed program was:" >&5
13586 cat conftest.$ac_ext >&5
13588 ol_cv_pthread_lib_lpthread_woff=no
13599 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13601 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13602 ol_link_pthreads="-lpthread -Wl,-woff,85"
13603 ol_link_threads=posix
13608 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13609 if test "$ol_link_threads" = no ; then
13611 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13612 echo "configure:13613: checking for pthread link with -lpthread" >&5
13613 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13614 echo $ac_n "(cached) $ac_c" 1>&6
13619 LIBS="-lpthread $LIBS"
13621 if test "$cross_compiling" = yes; then
13622 cat > conftest.$ac_ext <<EOF
13623 #line 13624 "configure"
13624 #include "confdefs.h"
13625 /* pthread test headers */
13626 #include <pthread.h>
13627 #if HAVE_PTHREADS < 7
13631 #define NULL (void*)0
13634 static void *task(p)
13637 return (void *) (p == NULL);
13642 /* pthread test function */
13643 #ifndef PTHREAD_CREATE_DETACHED
13644 #define PTHREAD_CREATE_DETACHED 1
13648 int detach = PTHREAD_CREATE_DETACHED;
13650 #if HAVE_PTHREADS > 4
13651 /* Final pthreads */
13652 pthread_attr_t attr;
13654 status = pthread_attr_init(&attr);
13655 if( status ) return status;
13657 #if HAVE_PTHREADS < 7
13658 status = pthread_attr_setdetachstate(&attr, &detach);
13659 if( status < 0 ) status = errno;
13661 status = pthread_attr_setdetachstate(&attr, detach);
13663 if( status ) return status;
13664 status = pthread_create( &t, &attr, task, NULL );
13665 #if HAVE_PTHREADS < 7
13666 if( status < 0 ) status = errno;
13668 if( status ) return status;
13670 /* Draft 4 pthreads */
13671 status = pthread_create( &t, pthread_attr_default, task, NULL );
13672 if( status ) return errno;
13674 /* give thread a chance to complete */
13675 /* it should remain joinable and hence detachable */
13678 status = pthread_detach( &t );
13679 if( status ) return errno;
13682 #ifdef HAVE_LINUX_THREADS
13683 pthread_kill_other_threads_np();
13690 if { (eval echo configure:13691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13692 ol_cv_pthread_lpthread=yes
13694 echo "configure: failed program was:" >&5
13695 cat conftest.$ac_ext >&5
13697 ol_cv_pthread_lpthread=no
13701 cat > conftest.$ac_ext <<EOF
13702 #line 13703 "configure"
13703 #include "confdefs.h"
13704 /* pthread test headers */
13705 #include <pthread.h>
13706 #if HAVE_PTHREADS < 7
13710 #define NULL (void*)0
13713 static void *task(p)
13716 return (void *) (p == NULL);
13720 int main(argc, argv)
13725 /* pthread test function */
13726 #ifndef PTHREAD_CREATE_DETACHED
13727 #define PTHREAD_CREATE_DETACHED 1
13731 int detach = PTHREAD_CREATE_DETACHED;
13733 #if HAVE_PTHREADS > 4
13734 /* Final pthreads */
13735 pthread_attr_t attr;
13737 status = pthread_attr_init(&attr);
13738 if( status ) return status;
13740 #if HAVE_PTHREADS < 7
13741 status = pthread_attr_setdetachstate(&attr, &detach);
13742 if( status < 0 ) status = errno;
13744 status = pthread_attr_setdetachstate(&attr, detach);
13746 if( status ) return status;
13747 status = pthread_create( &t, &attr, task, NULL );
13748 #if HAVE_PTHREADS < 7
13749 if( status < 0 ) status = errno;
13751 if( status ) return status;
13753 /* Draft 4 pthreads */
13754 status = pthread_create( &t, pthread_attr_default, task, NULL );
13755 if( status ) return errno;
13757 /* give thread a chance to complete */
13758 /* it should remain joinable and hence detachable */
13761 status = pthread_detach( &t );
13762 if( status ) return errno;
13765 #ifdef HAVE_LINUX_THREADS
13766 pthread_kill_other_threads_np();
13774 if { (eval echo configure:13775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13776 ol_cv_pthread_lpthread=yes
13778 echo "configure: failed program was:" >&5
13779 cat conftest.$ac_ext >&5
13781 ol_cv_pthread_lpthread=no
13792 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13794 if test $ol_cv_pthread_lpthread = yes ; then
13795 ol_link_pthreads="-lpthread"
13796 ol_link_threads=posix
13800 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13801 if test "$ol_link_threads" = no ; then
13803 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13804 echo "configure:13805: checking for pthread link with -lc_r" >&5
13805 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13806 echo $ac_n "(cached) $ac_c" 1>&6
13813 if test "$cross_compiling" = yes; then
13814 cat > conftest.$ac_ext <<EOF
13815 #line 13816 "configure"
13816 #include "confdefs.h"
13817 /* pthread test headers */
13818 #include <pthread.h>
13819 #if HAVE_PTHREADS < 7
13823 #define NULL (void*)0
13826 static void *task(p)
13829 return (void *) (p == NULL);
13834 /* pthread test function */
13835 #ifndef PTHREAD_CREATE_DETACHED
13836 #define PTHREAD_CREATE_DETACHED 1
13840 int detach = PTHREAD_CREATE_DETACHED;
13842 #if HAVE_PTHREADS > 4
13843 /* Final pthreads */
13844 pthread_attr_t attr;
13846 status = pthread_attr_init(&attr);
13847 if( status ) return status;
13849 #if HAVE_PTHREADS < 7
13850 status = pthread_attr_setdetachstate(&attr, &detach);
13851 if( status < 0 ) status = errno;
13853 status = pthread_attr_setdetachstate(&attr, detach);
13855 if( status ) return status;
13856 status = pthread_create( &t, &attr, task, NULL );
13857 #if HAVE_PTHREADS < 7
13858 if( status < 0 ) status = errno;
13860 if( status ) return status;
13862 /* Draft 4 pthreads */
13863 status = pthread_create( &t, pthread_attr_default, task, NULL );
13864 if( status ) return errno;
13866 /* give thread a chance to complete */
13867 /* it should remain joinable and hence detachable */
13870 status = pthread_detach( &t );
13871 if( status ) return errno;
13874 #ifdef HAVE_LINUX_THREADS
13875 pthread_kill_other_threads_np();
13882 if { (eval echo configure:13883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13884 ol_cv_pthread_lc_r=yes
13886 echo "configure: failed program was:" >&5
13887 cat conftest.$ac_ext >&5
13889 ol_cv_pthread_lc_r=no
13893 cat > conftest.$ac_ext <<EOF
13894 #line 13895 "configure"
13895 #include "confdefs.h"
13896 /* pthread test headers */
13897 #include <pthread.h>
13898 #if HAVE_PTHREADS < 7
13902 #define NULL (void*)0
13905 static void *task(p)
13908 return (void *) (p == NULL);
13912 int main(argc, argv)
13917 /* pthread test function */
13918 #ifndef PTHREAD_CREATE_DETACHED
13919 #define PTHREAD_CREATE_DETACHED 1
13923 int detach = PTHREAD_CREATE_DETACHED;
13925 #if HAVE_PTHREADS > 4
13926 /* Final pthreads */
13927 pthread_attr_t attr;
13929 status = pthread_attr_init(&attr);
13930 if( status ) return status;
13932 #if HAVE_PTHREADS < 7
13933 status = pthread_attr_setdetachstate(&attr, &detach);
13934 if( status < 0 ) status = errno;
13936 status = pthread_attr_setdetachstate(&attr, detach);
13938 if( status ) return status;
13939 status = pthread_create( &t, &attr, task, NULL );
13940 #if HAVE_PTHREADS < 7
13941 if( status < 0 ) status = errno;
13943 if( status ) return status;
13945 /* Draft 4 pthreads */
13946 status = pthread_create( &t, pthread_attr_default, task, NULL );
13947 if( status ) return errno;
13949 /* give thread a chance to complete */
13950 /* it should remain joinable and hence detachable */
13953 status = pthread_detach( &t );
13954 if( status ) return errno;
13957 #ifdef HAVE_LINUX_THREADS
13958 pthread_kill_other_threads_np();
13966 if { (eval echo configure:13967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13968 ol_cv_pthread_lc_r=yes
13970 echo "configure: failed program was:" >&5
13971 cat conftest.$ac_ext >&5
13973 ol_cv_pthread_lc_r=no
13984 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13986 if test $ol_cv_pthread_lc_r = yes ; then
13987 ol_link_pthreads="-lc_r"
13988 ol_link_threads=posix
13993 # Pthread try link: -threads (ol_cv_pthread_threads)
13994 if test "$ol_link_threads" = no ; then
13996 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13997 echo "configure:13998: checking for pthread link with -threads" >&5
13998 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13999 echo $ac_n "(cached) $ac_c" 1>&6
14004 LIBS="-threads $LIBS"
14006 if test "$cross_compiling" = yes; then
14007 cat > conftest.$ac_ext <<EOF
14008 #line 14009 "configure"
14009 #include "confdefs.h"
14010 /* pthread test headers */
14011 #include <pthread.h>
14012 #if HAVE_PTHREADS < 7
14016 #define NULL (void*)0
14019 static void *task(p)
14022 return (void *) (p == NULL);
14027 /* pthread test function */
14028 #ifndef PTHREAD_CREATE_DETACHED
14029 #define PTHREAD_CREATE_DETACHED 1
14033 int detach = PTHREAD_CREATE_DETACHED;
14035 #if HAVE_PTHREADS > 4
14036 /* Final pthreads */
14037 pthread_attr_t attr;
14039 status = pthread_attr_init(&attr);
14040 if( status ) return status;
14042 #if HAVE_PTHREADS < 7
14043 status = pthread_attr_setdetachstate(&attr, &detach);
14044 if( status < 0 ) status = errno;
14046 status = pthread_attr_setdetachstate(&attr, detach);
14048 if( status ) return status;
14049 status = pthread_create( &t, &attr, task, NULL );
14050 #if HAVE_PTHREADS < 7
14051 if( status < 0 ) status = errno;
14053 if( status ) return status;
14055 /* Draft 4 pthreads */
14056 status = pthread_create( &t, pthread_attr_default, task, NULL );
14057 if( status ) return errno;
14059 /* give thread a chance to complete */
14060 /* it should remain joinable and hence detachable */
14063 status = pthread_detach( &t );
14064 if( status ) return errno;
14067 #ifdef HAVE_LINUX_THREADS
14068 pthread_kill_other_threads_np();
14075 if { (eval echo configure:14076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14077 ol_cv_pthread_threads=yes
14079 echo "configure: failed program was:" >&5
14080 cat conftest.$ac_ext >&5
14082 ol_cv_pthread_threads=no
14086 cat > conftest.$ac_ext <<EOF
14087 #line 14088 "configure"
14088 #include "confdefs.h"
14089 /* pthread test headers */
14090 #include <pthread.h>
14091 #if HAVE_PTHREADS < 7
14095 #define NULL (void*)0
14098 static void *task(p)
14101 return (void *) (p == NULL);
14105 int main(argc, argv)
14110 /* pthread test function */
14111 #ifndef PTHREAD_CREATE_DETACHED
14112 #define PTHREAD_CREATE_DETACHED 1
14116 int detach = PTHREAD_CREATE_DETACHED;
14118 #if HAVE_PTHREADS > 4
14119 /* Final pthreads */
14120 pthread_attr_t attr;
14122 status = pthread_attr_init(&attr);
14123 if( status ) return status;
14125 #if HAVE_PTHREADS < 7
14126 status = pthread_attr_setdetachstate(&attr, &detach);
14127 if( status < 0 ) status = errno;
14129 status = pthread_attr_setdetachstate(&attr, detach);
14131 if( status ) return status;
14132 status = pthread_create( &t, &attr, task, NULL );
14133 #if HAVE_PTHREADS < 7
14134 if( status < 0 ) status = errno;
14136 if( status ) return status;
14138 /* Draft 4 pthreads */
14139 status = pthread_create( &t, pthread_attr_default, task, NULL );
14140 if( status ) return errno;
14142 /* give thread a chance to complete */
14143 /* it should remain joinable and hence detachable */
14146 status = pthread_detach( &t );
14147 if( status ) return errno;
14150 #ifdef HAVE_LINUX_THREADS
14151 pthread_kill_other_threads_np();
14159 if { (eval echo configure:14160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14161 ol_cv_pthread_threads=yes
14163 echo "configure: failed program was:" >&5
14164 cat conftest.$ac_ext >&5
14166 ol_cv_pthread_threads=no
14177 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14179 if test $ol_cv_pthread_threads = yes ; then
14180 ol_link_pthreads="-threads"
14181 ol_link_threads=posix
14186 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14187 if test "$ol_link_threads" = no ; then
14188 # try -lpthreads -lmach -lexc -lc_r
14189 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14190 echo "configure:14191: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14191 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14192 echo $ac_n "(cached) $ac_c" 1>&6
14197 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14199 if test "$cross_compiling" = yes; then
14200 cat > conftest.$ac_ext <<EOF
14201 #line 14202 "configure"
14202 #include "confdefs.h"
14203 /* pthread test headers */
14204 #include <pthread.h>
14205 #if HAVE_PTHREADS < 7
14209 #define NULL (void*)0
14212 static void *task(p)
14215 return (void *) (p == NULL);
14220 /* pthread test function */
14221 #ifndef PTHREAD_CREATE_DETACHED
14222 #define PTHREAD_CREATE_DETACHED 1
14226 int detach = PTHREAD_CREATE_DETACHED;
14228 #if HAVE_PTHREADS > 4
14229 /* Final pthreads */
14230 pthread_attr_t attr;
14232 status = pthread_attr_init(&attr);
14233 if( status ) return status;
14235 #if HAVE_PTHREADS < 7
14236 status = pthread_attr_setdetachstate(&attr, &detach);
14237 if( status < 0 ) status = errno;
14239 status = pthread_attr_setdetachstate(&attr, detach);
14241 if( status ) return status;
14242 status = pthread_create( &t, &attr, task, NULL );
14243 #if HAVE_PTHREADS < 7
14244 if( status < 0 ) status = errno;
14246 if( status ) return status;
14248 /* Draft 4 pthreads */
14249 status = pthread_create( &t, pthread_attr_default, task, NULL );
14250 if( status ) return errno;
14252 /* give thread a chance to complete */
14253 /* it should remain joinable and hence detachable */
14256 status = pthread_detach( &t );
14257 if( status ) return errno;
14260 #ifdef HAVE_LINUX_THREADS
14261 pthread_kill_other_threads_np();
14268 if { (eval echo configure:14269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14270 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14272 echo "configure: failed program was:" >&5
14273 cat conftest.$ac_ext >&5
14275 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14279 cat > conftest.$ac_ext <<EOF
14280 #line 14281 "configure"
14281 #include "confdefs.h"
14282 /* pthread test headers */
14283 #include <pthread.h>
14284 #if HAVE_PTHREADS < 7
14288 #define NULL (void*)0
14291 static void *task(p)
14294 return (void *) (p == NULL);
14298 int main(argc, argv)
14303 /* pthread test function */
14304 #ifndef PTHREAD_CREATE_DETACHED
14305 #define PTHREAD_CREATE_DETACHED 1
14309 int detach = PTHREAD_CREATE_DETACHED;
14311 #if HAVE_PTHREADS > 4
14312 /* Final pthreads */
14313 pthread_attr_t attr;
14315 status = pthread_attr_init(&attr);
14316 if( status ) return status;
14318 #if HAVE_PTHREADS < 7
14319 status = pthread_attr_setdetachstate(&attr, &detach);
14320 if( status < 0 ) status = errno;
14322 status = pthread_attr_setdetachstate(&attr, detach);
14324 if( status ) return status;
14325 status = pthread_create( &t, &attr, task, NULL );
14326 #if HAVE_PTHREADS < 7
14327 if( status < 0 ) status = errno;
14329 if( status ) return status;
14331 /* Draft 4 pthreads */
14332 status = pthread_create( &t, pthread_attr_default, task, NULL );
14333 if( status ) return errno;
14335 /* give thread a chance to complete */
14336 /* it should remain joinable and hence detachable */
14339 status = pthread_detach( &t );
14340 if( status ) return errno;
14343 #ifdef HAVE_LINUX_THREADS
14344 pthread_kill_other_threads_np();
14352 if { (eval echo configure:14353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14354 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14356 echo "configure: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14359 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14370 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14372 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14373 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14374 ol_link_threads=posix
14378 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14379 if test "$ol_link_threads" = no ; then
14380 # try -lpthreads -lmach -lexc
14381 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14382 echo "configure:14383: checking for pthread link with -lpthreads -lmach -lexc" >&5
14383 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14384 echo $ac_n "(cached) $ac_c" 1>&6
14389 LIBS="-lpthreads -lmach -lexc $LIBS"
14391 if test "$cross_compiling" = yes; then
14392 cat > conftest.$ac_ext <<EOF
14393 #line 14394 "configure"
14394 #include "confdefs.h"
14395 /* pthread test headers */
14396 #include <pthread.h>
14397 #if HAVE_PTHREADS < 7
14401 #define NULL (void*)0
14404 static void *task(p)
14407 return (void *) (p == NULL);
14412 /* pthread test function */
14413 #ifndef PTHREAD_CREATE_DETACHED
14414 #define PTHREAD_CREATE_DETACHED 1
14418 int detach = PTHREAD_CREATE_DETACHED;
14420 #if HAVE_PTHREADS > 4
14421 /* Final pthreads */
14422 pthread_attr_t attr;
14424 status = pthread_attr_init(&attr);
14425 if( status ) return status;
14427 #if HAVE_PTHREADS < 7
14428 status = pthread_attr_setdetachstate(&attr, &detach);
14429 if( status < 0 ) status = errno;
14431 status = pthread_attr_setdetachstate(&attr, detach);
14433 if( status ) return status;
14434 status = pthread_create( &t, &attr, task, NULL );
14435 #if HAVE_PTHREADS < 7
14436 if( status < 0 ) status = errno;
14438 if( status ) return status;
14440 /* Draft 4 pthreads */
14441 status = pthread_create( &t, pthread_attr_default, task, NULL );
14442 if( status ) return errno;
14444 /* give thread a chance to complete */
14445 /* it should remain joinable and hence detachable */
14448 status = pthread_detach( &t );
14449 if( status ) return errno;
14452 #ifdef HAVE_LINUX_THREADS
14453 pthread_kill_other_threads_np();
14460 if { (eval echo configure:14461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14462 ol_cv_pthread_lpthreads_lmach_lexc=yes
14464 echo "configure: failed program was:" >&5
14465 cat conftest.$ac_ext >&5
14467 ol_cv_pthread_lpthreads_lmach_lexc=no
14471 cat > conftest.$ac_ext <<EOF
14472 #line 14473 "configure"
14473 #include "confdefs.h"
14474 /* pthread test headers */
14475 #include <pthread.h>
14476 #if HAVE_PTHREADS < 7
14480 #define NULL (void*)0
14483 static void *task(p)
14486 return (void *) (p == NULL);
14490 int main(argc, argv)
14495 /* pthread test function */
14496 #ifndef PTHREAD_CREATE_DETACHED
14497 #define PTHREAD_CREATE_DETACHED 1
14501 int detach = PTHREAD_CREATE_DETACHED;
14503 #if HAVE_PTHREADS > 4
14504 /* Final pthreads */
14505 pthread_attr_t attr;
14507 status = pthread_attr_init(&attr);
14508 if( status ) return status;
14510 #if HAVE_PTHREADS < 7
14511 status = pthread_attr_setdetachstate(&attr, &detach);
14512 if( status < 0 ) status = errno;
14514 status = pthread_attr_setdetachstate(&attr, detach);
14516 if( status ) return status;
14517 status = pthread_create( &t, &attr, task, NULL );
14518 #if HAVE_PTHREADS < 7
14519 if( status < 0 ) status = errno;
14521 if( status ) return status;
14523 /* Draft 4 pthreads */
14524 status = pthread_create( &t, pthread_attr_default, task, NULL );
14525 if( status ) return errno;
14527 /* give thread a chance to complete */
14528 /* it should remain joinable and hence detachable */
14531 status = pthread_detach( &t );
14532 if( status ) return errno;
14535 #ifdef HAVE_LINUX_THREADS
14536 pthread_kill_other_threads_np();
14544 if { (eval echo configure:14545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14546 ol_cv_pthread_lpthreads_lmach_lexc=yes
14548 echo "configure: failed program was:" >&5
14549 cat conftest.$ac_ext >&5
14551 ol_cv_pthread_lpthreads_lmach_lexc=no
14562 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14564 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14565 ol_link_pthreads="-lpthreads -lmach -lexc"
14566 ol_link_threads=posix
14570 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14571 if test "$ol_link_threads" = no ; then
14572 # try -lpthreads -lexc
14573 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14574 echo "configure:14575: checking for pthread link with -lpthreads -lexc" >&5
14575 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14576 echo $ac_n "(cached) $ac_c" 1>&6
14581 LIBS="-lpthreads -lexc $LIBS"
14583 if test "$cross_compiling" = yes; then
14584 cat > conftest.$ac_ext <<EOF
14585 #line 14586 "configure"
14586 #include "confdefs.h"
14587 /* pthread test headers */
14588 #include <pthread.h>
14589 #if HAVE_PTHREADS < 7
14593 #define NULL (void*)0
14596 static void *task(p)
14599 return (void *) (p == NULL);
14604 /* pthread test function */
14605 #ifndef PTHREAD_CREATE_DETACHED
14606 #define PTHREAD_CREATE_DETACHED 1
14610 int detach = PTHREAD_CREATE_DETACHED;
14612 #if HAVE_PTHREADS > 4
14613 /* Final pthreads */
14614 pthread_attr_t attr;
14616 status = pthread_attr_init(&attr);
14617 if( status ) return status;
14619 #if HAVE_PTHREADS < 7
14620 status = pthread_attr_setdetachstate(&attr, &detach);
14621 if( status < 0 ) status = errno;
14623 status = pthread_attr_setdetachstate(&attr, detach);
14625 if( status ) return status;
14626 status = pthread_create( &t, &attr, task, NULL );
14627 #if HAVE_PTHREADS < 7
14628 if( status < 0 ) status = errno;
14630 if( status ) return status;
14632 /* Draft 4 pthreads */
14633 status = pthread_create( &t, pthread_attr_default, task, NULL );
14634 if( status ) return errno;
14636 /* give thread a chance to complete */
14637 /* it should remain joinable and hence detachable */
14640 status = pthread_detach( &t );
14641 if( status ) return errno;
14644 #ifdef HAVE_LINUX_THREADS
14645 pthread_kill_other_threads_np();
14652 if { (eval echo configure:14653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14654 ol_cv_pthread_lpthreads_lexc=yes
14656 echo "configure: failed program was:" >&5
14657 cat conftest.$ac_ext >&5
14659 ol_cv_pthread_lpthreads_lexc=no
14663 cat > conftest.$ac_ext <<EOF
14664 #line 14665 "configure"
14665 #include "confdefs.h"
14666 /* pthread test headers */
14667 #include <pthread.h>
14668 #if HAVE_PTHREADS < 7
14672 #define NULL (void*)0
14675 static void *task(p)
14678 return (void *) (p == NULL);
14682 int main(argc, argv)
14687 /* pthread test function */
14688 #ifndef PTHREAD_CREATE_DETACHED
14689 #define PTHREAD_CREATE_DETACHED 1
14693 int detach = PTHREAD_CREATE_DETACHED;
14695 #if HAVE_PTHREADS > 4
14696 /* Final pthreads */
14697 pthread_attr_t attr;
14699 status = pthread_attr_init(&attr);
14700 if( status ) return status;
14702 #if HAVE_PTHREADS < 7
14703 status = pthread_attr_setdetachstate(&attr, &detach);
14704 if( status < 0 ) status = errno;
14706 status = pthread_attr_setdetachstate(&attr, detach);
14708 if( status ) return status;
14709 status = pthread_create( &t, &attr, task, NULL );
14710 #if HAVE_PTHREADS < 7
14711 if( status < 0 ) status = errno;
14713 if( status ) return status;
14715 /* Draft 4 pthreads */
14716 status = pthread_create( &t, pthread_attr_default, task, NULL );
14717 if( status ) return errno;
14719 /* give thread a chance to complete */
14720 /* it should remain joinable and hence detachable */
14723 status = pthread_detach( &t );
14724 if( status ) return errno;
14727 #ifdef HAVE_LINUX_THREADS
14728 pthread_kill_other_threads_np();
14736 if { (eval echo configure:14737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14738 ol_cv_pthread_lpthreads_lexc=yes
14740 echo "configure: failed program was:" >&5
14741 cat conftest.$ac_ext >&5
14743 ol_cv_pthread_lpthreads_lexc=no
14754 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14756 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14757 ol_link_pthreads="-lpthreads -lexc"
14758 ol_link_threads=posix
14763 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14764 if test "$ol_link_threads" = no ; then
14766 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14767 echo "configure:14768: checking for pthread link with -lpthreads" >&5
14768 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14769 echo $ac_n "(cached) $ac_c" 1>&6
14774 LIBS="-lpthreads $LIBS"
14776 if test "$cross_compiling" = yes; then
14777 cat > conftest.$ac_ext <<EOF
14778 #line 14779 "configure"
14779 #include "confdefs.h"
14780 /* pthread test headers */
14781 #include <pthread.h>
14782 #if HAVE_PTHREADS < 7
14786 #define NULL (void*)0
14789 static void *task(p)
14792 return (void *) (p == NULL);
14797 /* pthread test function */
14798 #ifndef PTHREAD_CREATE_DETACHED
14799 #define PTHREAD_CREATE_DETACHED 1
14803 int detach = PTHREAD_CREATE_DETACHED;
14805 #if HAVE_PTHREADS > 4
14806 /* Final pthreads */
14807 pthread_attr_t attr;
14809 status = pthread_attr_init(&attr);
14810 if( status ) return status;
14812 #if HAVE_PTHREADS < 7
14813 status = pthread_attr_setdetachstate(&attr, &detach);
14814 if( status < 0 ) status = errno;
14816 status = pthread_attr_setdetachstate(&attr, detach);
14818 if( status ) return status;
14819 status = pthread_create( &t, &attr, task, NULL );
14820 #if HAVE_PTHREADS < 7
14821 if( status < 0 ) status = errno;
14823 if( status ) return status;
14825 /* Draft 4 pthreads */
14826 status = pthread_create( &t, pthread_attr_default, task, NULL );
14827 if( status ) return errno;
14829 /* give thread a chance to complete */
14830 /* it should remain joinable and hence detachable */
14833 status = pthread_detach( &t );
14834 if( status ) return errno;
14837 #ifdef HAVE_LINUX_THREADS
14838 pthread_kill_other_threads_np();
14845 if { (eval echo configure:14846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14847 ol_cv_pthread_lib_lpthreads=yes
14849 echo "configure: failed program was:" >&5
14850 cat conftest.$ac_ext >&5
14852 ol_cv_pthread_lib_lpthreads=no
14856 cat > conftest.$ac_ext <<EOF
14857 #line 14858 "configure"
14858 #include "confdefs.h"
14859 /* pthread test headers */
14860 #include <pthread.h>
14861 #if HAVE_PTHREADS < 7
14865 #define NULL (void*)0
14868 static void *task(p)
14871 return (void *) (p == NULL);
14875 int main(argc, argv)
14880 /* pthread test function */
14881 #ifndef PTHREAD_CREATE_DETACHED
14882 #define PTHREAD_CREATE_DETACHED 1
14886 int detach = PTHREAD_CREATE_DETACHED;
14888 #if HAVE_PTHREADS > 4
14889 /* Final pthreads */
14890 pthread_attr_t attr;
14892 status = pthread_attr_init(&attr);
14893 if( status ) return status;
14895 #if HAVE_PTHREADS < 7
14896 status = pthread_attr_setdetachstate(&attr, &detach);
14897 if( status < 0 ) status = errno;
14899 status = pthread_attr_setdetachstate(&attr, detach);
14901 if( status ) return status;
14902 status = pthread_create( &t, &attr, task, NULL );
14903 #if HAVE_PTHREADS < 7
14904 if( status < 0 ) status = errno;
14906 if( status ) return status;
14908 /* Draft 4 pthreads */
14909 status = pthread_create( &t, pthread_attr_default, task, NULL );
14910 if( status ) return errno;
14912 /* give thread a chance to complete */
14913 /* it should remain joinable and hence detachable */
14916 status = pthread_detach( &t );
14917 if( status ) return errno;
14920 #ifdef HAVE_LINUX_THREADS
14921 pthread_kill_other_threads_np();
14929 if { (eval echo configure:14930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14931 ol_cv_pthread_lib_lpthreads=yes
14933 echo "configure: failed program was:" >&5
14934 cat conftest.$ac_ext >&5
14936 ol_cv_pthread_lib_lpthreads=no
14947 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14949 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14950 ol_link_pthreads="-lpthreads"
14951 ol_link_threads=posix
14956 if test $ol_link_threads != no ; then
14957 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14959 save_CPPFLAGS="$CPPFLAGS"
14961 LIBS="$LTHREAD_LIBS $LIBS"
14963 for ac_func in sched_yield pthread_yield
14965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14966 echo "configure:14967: checking for $ac_func" >&5
14967 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14968 echo $ac_n "(cached) $ac_c" 1>&6
14970 cat > conftest.$ac_ext <<EOF
14971 #line 14972 "configure"
14972 #include "confdefs.h"
14973 /* System header to define __stub macros and hopefully few prototypes,
14974 which can conflict with char $ac_func(); below. */
14975 #include <assert.h>
14976 /* Override any gcc2 internal prototype to avoid an error. */
14977 /* We use char because int might match the return type of a gcc2
14978 builtin and then its argument prototype would still apply. */
14984 /* The GNU C library defines this for functions which it implements
14985 to always fail with ENOSYS. Some functions are actually named
14986 something starting with __ and the normal name is an alias. */
14987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14995 if { (eval echo configure:14996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14997 eval "ac_cv_func_$ac_func=yes"
14999 echo "configure: failed program was:" >&5
15000 cat conftest.$ac_ext >&5
15002 eval "ac_cv_func_$ac_func=no"
15007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15008 echo "$ac_t""yes" 1>&6
15009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15010 cat >> confdefs.h <<EOF
15011 #define $ac_tr_func 1
15015 echo "$ac_t""no" 1>&6
15020 if test $ac_cv_func_sched_yield = no -a \
15021 $ac_cv_func_pthread_yield = no ; then
15022 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15023 echo "configure:15024: checking for sched_yield in -lrt" >&5
15024 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15025 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15026 echo $ac_n "(cached) $ac_c" 1>&6
15028 ac_save_LIBS="$LIBS"
15030 cat > conftest.$ac_ext <<EOF
15031 #line 15032 "configure"
15032 #include "confdefs.h"
15033 /* Override any gcc2 internal prototype to avoid an error. */
15034 /* We use char because int might match the return type of a gcc2
15035 builtin and then its argument prototype would still apply. */
15036 char sched_yield();
15042 if { (eval echo configure:15043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15044 eval "ac_cv_lib_$ac_lib_var=yes"
15046 echo "configure: failed program was:" >&5
15047 cat conftest.$ac_ext >&5
15049 eval "ac_cv_lib_$ac_lib_var=no"
15052 LIBS="$ac_save_LIBS"
15055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15056 echo "$ac_t""yes" 1>&6
15057 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15058 cat >> confdefs.h <<\EOF
15059 #define HAVE_SCHED_YIELD 1
15062 ac_cv_func_sched_yield=yes
15064 echo "$ac_t""no" 1>&6
15065 ac_cv_func_sched_yield=no
15069 if test $ac_cv_func_sched_yield = no -a \
15070 $ac_cv_func_pthread_yield = no ; then
15071 for ac_func in thr_yield
15073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15074 echo "configure:15075: checking for $ac_func" >&5
15075 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15076 echo $ac_n "(cached) $ac_c" 1>&6
15078 cat > conftest.$ac_ext <<EOF
15079 #line 15080 "configure"
15080 #include "confdefs.h"
15081 /* System header to define __stub macros and hopefully few prototypes,
15082 which can conflict with char $ac_func(); below. */
15083 #include <assert.h>
15084 /* Override any gcc2 internal prototype to avoid an error. */
15085 /* We use char because int might match the return type of a gcc2
15086 builtin and then its argument prototype would still apply. */
15092 /* The GNU C library defines this for functions which it implements
15093 to always fail with ENOSYS. Some functions are actually named
15094 something starting with __ and the normal name is an alias. */
15095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15103 if { (eval echo configure:15104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15105 eval "ac_cv_func_$ac_func=yes"
15107 echo "configure: failed program was:" >&5
15108 cat conftest.$ac_ext >&5
15110 eval "ac_cv_func_$ac_func=no"
15115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15116 echo "$ac_t""yes" 1>&6
15117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15118 cat >> confdefs.h <<EOF
15119 #define $ac_tr_func 1
15123 echo "$ac_t""no" 1>&6
15128 if test $ac_cv_func_sched_yield = no -a \
15129 $ac_cv_func_pthread_yield = no -a \
15130 "$ac_cv_func_thr_yield" = no ; then
15131 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15134 for ac_func in pthread_kill pthread_rwlock_destroy
15136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15137 echo "configure:15138: checking for $ac_func" >&5
15138 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15139 echo $ac_n "(cached) $ac_c" 1>&6
15141 cat > conftest.$ac_ext <<EOF
15142 #line 15143 "configure"
15143 #include "confdefs.h"
15144 /* System header to define __stub macros and hopefully few prototypes,
15145 which can conflict with char $ac_func(); below. */
15146 #include <assert.h>
15147 /* Override any gcc2 internal prototype to avoid an error. */
15148 /* We use char because int might match the return type of a gcc2
15149 builtin and then its argument prototype would still apply. */
15155 /* The GNU C library defines this for functions which it implements
15156 to always fail with ENOSYS. Some functions are actually named
15157 something starting with __ and the normal name is an alias. */
15158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15166 if { (eval echo configure:15167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15168 eval "ac_cv_func_$ac_func=yes"
15170 echo "configure: failed program was:" >&5
15171 cat conftest.$ac_ext >&5
15173 eval "ac_cv_func_$ac_func=no"
15178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15179 echo "$ac_t""yes" 1>&6
15180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15181 cat >> confdefs.h <<EOF
15182 #define $ac_tr_func 1
15186 echo "$ac_t""no" 1>&6
15191 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15192 echo "configure:15193: checking for pthread_detach with <pthread.h>" >&5
15193 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15194 echo $ac_n "(cached) $ac_c" 1>&6
15197 cat > conftest.$ac_ext <<EOF
15198 #line 15199 "configure"
15199 #include "confdefs.h"
15201 #include <pthread.h>
15203 #define NULL (void*)0
15207 pthread_detach(NULL);
15210 if { (eval echo configure:15211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15212 ol_cv_func_pthread_detach=yes
15214 echo "configure: failed program was:" >&5
15215 cat conftest.$ac_ext >&5
15217 ol_cv_func_pthread_detach=no
15223 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15225 if test $ol_cv_func_pthread_detach = no ; then
15226 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15229 cat >> confdefs.h <<\EOF
15230 #define HAVE_PTHREAD_DETACH 1
15235 pthread_setconcurrency \
15236 pthread_getconcurrency \
15237 thr_setconcurrency \
15238 thr_getconcurrency \
15241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15242 echo "configure:15243: checking for $ac_func" >&5
15243 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15244 echo $ac_n "(cached) $ac_c" 1>&6
15246 cat > conftest.$ac_ext <<EOF
15247 #line 15248 "configure"
15248 #include "confdefs.h"
15249 /* System header to define __stub macros and hopefully few prototypes,
15250 which can conflict with char $ac_func(); below. */
15251 #include <assert.h>
15252 /* Override any gcc2 internal prototype to avoid an error. */
15253 /* We use char because int might match the return type of a gcc2
15254 builtin and then its argument prototype would still apply. */
15260 /* The GNU C library defines this for functions which it implements
15261 to always fail with ENOSYS. Some functions are actually named
15262 something starting with __ and the normal name is an alias. */
15263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15271 if { (eval echo configure:15272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15273 eval "ac_cv_func_$ac_func=yes"
15275 echo "configure: failed program was:" >&5
15276 cat conftest.$ac_ext >&5
15278 eval "ac_cv_func_$ac_func=no"
15283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15284 echo "$ac_t""yes" 1>&6
15285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15286 cat >> confdefs.h <<EOF
15287 #define $ac_tr_func 1
15291 echo "$ac_t""no" 1>&6
15297 for ac_func in pthread_kill_other_threads_np
15299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15300 echo "configure:15301: checking for $ac_func" >&5
15301 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15302 echo $ac_n "(cached) $ac_c" 1>&6
15304 cat > conftest.$ac_ext <<EOF
15305 #line 15306 "configure"
15306 #include "confdefs.h"
15307 /* System header to define __stub macros and hopefully few prototypes,
15308 which can conflict with char $ac_func(); below. */
15309 #include <assert.h>
15310 /* Override any gcc2 internal prototype to avoid an error. */
15311 /* We use char because int might match the return type of a gcc2
15312 builtin and then its argument prototype would still apply. */
15318 /* The GNU C library defines this for functions which it implements
15319 to always fail with ENOSYS. Some functions are actually named
15320 something starting with __ and the normal name is an alias. */
15321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15329 if { (eval echo configure:15330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15331 eval "ac_cv_func_$ac_func=yes"
15333 echo "configure: failed program was:" >&5
15334 cat conftest.$ac_ext >&5
15336 eval "ac_cv_func_$ac_func=no"
15341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15342 echo "$ac_t""yes" 1>&6
15343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15344 cat >> confdefs.h <<EOF
15345 #define $ac_tr_func 1
15349 echo "$ac_t""no" 1>&6
15353 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15354 echo "configure:15355: checking for LinuxThreads implementation" >&5
15355 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15356 echo $ac_n "(cached) $ac_c" 1>&6
15358 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15361 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15366 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15367 echo "configure:15368: checking for LinuxThreads consistency" >&5
15368 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15369 echo $ac_n "(cached) $ac_c" 1>&6
15372 if test $ol_cv_header_linux_threads = yes -a \
15373 $ol_cv_sys_linux_threads = yes; then
15374 ol_cv_linux_threads=yes
15375 elif test $ol_cv_header_linux_threads = no -a \
15376 $ol_cv_sys_linux_threads = no; then
15377 ol_cv_linux_threads=no
15379 ol_cv_linux_threads=error
15384 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15387 if test $ol_cv_linux_threads = error; then
15388 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15391 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15392 echo "configure:15393: checking if pthread_create() works" >&5
15393 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15394 echo $ac_n "(cached) $ac_c" 1>&6
15397 if test "$cross_compiling" = yes; then
15398 ol_cv_pthread_create_works=yes
15400 cat > conftest.$ac_ext <<EOF
15401 #line 15402 "configure"
15402 #include "confdefs.h"
15403 /* pthread test headers */
15404 #include <pthread.h>
15405 #if HAVE_PTHREADS < 7
15409 #define NULL (void*)0
15412 static void *task(p)
15415 return (void *) (p == NULL);
15419 int main(argc, argv)
15424 /* pthread test function */
15425 #ifndef PTHREAD_CREATE_DETACHED
15426 #define PTHREAD_CREATE_DETACHED 1
15430 int detach = PTHREAD_CREATE_DETACHED;
15432 #if HAVE_PTHREADS > 4
15433 /* Final pthreads */
15434 pthread_attr_t attr;
15436 status = pthread_attr_init(&attr);
15437 if( status ) return status;
15439 #if HAVE_PTHREADS < 7
15440 status = pthread_attr_setdetachstate(&attr, &detach);
15441 if( status < 0 ) status = errno;
15443 status = pthread_attr_setdetachstate(&attr, detach);
15445 if( status ) return status;
15446 status = pthread_create( &t, &attr, task, NULL );
15447 #if HAVE_PTHREADS < 7
15448 if( status < 0 ) status = errno;
15450 if( status ) return status;
15452 /* Draft 4 pthreads */
15453 status = pthread_create( &t, pthread_attr_default, task, NULL );
15454 if( status ) return errno;
15456 /* give thread a chance to complete */
15457 /* it should remain joinable and hence detachable */
15460 status = pthread_detach( &t );
15461 if( status ) return errno;
15464 #ifdef HAVE_LINUX_THREADS
15465 pthread_kill_other_threads_np();
15473 if { (eval echo configure:15474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15475 ol_cv_pthread_create_works=yes
15477 echo "configure: failed program was:" >&5
15478 cat conftest.$ac_ext >&5
15480 ol_cv_pthread_create_works=no
15487 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15489 if test $ol_cv_pthread_create_works = no ; then
15490 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15493 if test $ol_with_yielding_select = auto ; then
15494 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15495 echo "configure:15496: checking if select yields when using pthreads" >&5
15496 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15497 echo $ac_n "(cached) $ac_c" 1>&6
15500 if test "$cross_compiling" = yes; then
15501 ol_cv_pthread_select_yields=cross
15503 cat > conftest.$ac_ext <<EOF
15504 #line 15505 "configure"
15505 #include "confdefs.h"
15507 #include <sys/types.h>
15508 #include <sys/time.h>
15509 #include <unistd.h>
15510 #include <pthread.h>
15512 #define NULL (void*) 0
15515 static int fildes[2];
15517 static void *task(p)
15529 FD_SET(fildes[0], &rfds);
15531 /* we're not interested in any fds */
15532 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15539 exit(0); /* if we exit here, the select blocked the whole process */
15542 int main(argc, argv)
15548 /* create a pipe to select */
15549 if(pipe(&fildes[0])) {
15554 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15555 (void) pthread_setconcurrency(2);
15557 #ifdef HAVE_THR_SETCONCURRENCY
15558 /* Set Solaris LWP concurrency to 2 */
15559 thr_setconcurrency(2);
15563 #if HAVE_PTHREADS < 6
15564 pthread_create(&t, pthread_attr_default, task, NULL);
15566 pthread_create(&t, NULL, task, NULL);
15569 #if HAVE_SCHED_YIELD
15570 sched_yield(); /* make sure task runs first */
15572 #ifdef HAVE_PTHREAD_YIELD
15573 pthread_yield(); /* make sure task runs first */
15580 if { (eval echo configure:15581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15582 ol_cv_pthread_select_yields=no
15584 echo "configure: failed program was:" >&5
15585 cat conftest.$ac_ext >&5
15587 ol_cv_pthread_select_yields=yes
15594 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15596 if test $ol_cv_pthread_select_yields = cross ; then
15597 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15600 if test $ol_cv_pthread_select_yields = yes ; then
15601 ol_with_yielding_select=yes
15605 CPPFLAGS="$save_CPPFLAGS"
15608 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15612 if test $ol_with_threads = posix ; then
15613 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15617 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15618 -o $ol_with_threads = mach ; then
15620 for ac_hdr in mach/cthreads.h cthreads.h
15622 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15624 echo "configure:15625: checking for $ac_hdr" >&5
15625 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15626 echo $ac_n "(cached) $ac_c" 1>&6
15628 cat > conftest.$ac_ext <<EOF
15629 #line 15630 "configure"
15630 #include "confdefs.h"
15633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15634 { (eval echo configure:15635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15636 if test -z "$ac_err"; then
15638 eval "ac_cv_header_$ac_safe=yes"
15641 echo "configure: failed program was:" >&5
15642 cat conftest.$ac_ext >&5
15644 eval "ac_cv_header_$ac_safe=no"
15648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15649 echo "$ac_t""yes" 1>&6
15650 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15651 cat >> confdefs.h <<EOF
15652 #define $ac_tr_hdr 1
15656 echo "$ac_t""no" 1>&6
15660 if test $ac_cv_header_mach_cthreads_h = yes ; then
15661 ol_with_threads=found
15663 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15664 echo "configure:15665: checking for cthread_fork" >&5
15665 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15666 echo $ac_n "(cached) $ac_c" 1>&6
15668 cat > conftest.$ac_ext <<EOF
15669 #line 15670 "configure"
15670 #include "confdefs.h"
15671 /* System header to define __stub macros and hopefully few prototypes,
15672 which can conflict with char cthread_fork(); below. */
15673 #include <assert.h>
15674 /* Override any gcc2 internal prototype to avoid an error. */
15675 /* We use char because int might match the return type of a gcc2
15676 builtin and then its argument prototype would still apply. */
15677 char cthread_fork();
15682 /* The GNU C library defines this for functions which it implements
15683 to always fail with ENOSYS. Some functions are actually named
15684 something starting with __ and the normal name is an alias. */
15685 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15693 if { (eval echo configure:15694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15695 eval "ac_cv_func_cthread_fork=yes"
15697 echo "configure: failed program was:" >&5
15698 cat conftest.$ac_ext >&5
15700 eval "ac_cv_func_cthread_fork=no"
15705 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15706 echo "$ac_t""yes" 1>&6
15707 ol_link_threads=yes
15709 echo "$ac_t""no" 1>&6
15713 if test $ol_link_threads = no ; then
15714 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15715 echo "configure:15716: checking for cthread_fork with -all_load" >&5
15716 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15717 echo $ac_n "(cached) $ac_c" 1>&6
15721 LIBS="-all_load $LIBS"
15722 cat > conftest.$ac_ext <<EOF
15723 #line 15724 "configure"
15724 #include "confdefs.h"
15725 #include <mach/cthreads.h>
15728 cthread_fork((void *)0, (void *)0);
15732 if { (eval echo configure:15733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15734 ol_cv_cthread_all_load=yes
15736 echo "configure: failed program was:" >&5
15737 cat conftest.$ac_ext >&5
15739 ol_cv_cthread_all_load=no
15746 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15748 if test $ol_cv_cthread_all_load = yes ; then
15749 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15750 ol_link_threads=mach
15751 ol_with_threads=found
15755 elif test $ac_cv_header_cthreads_h = yes ; then
15757 ol_with_threads=found
15760 LIBS="$LIBS -lthreads"
15761 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15762 echo "configure:15763: checking for cthread_fork" >&5
15763 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15764 echo $ac_n "(cached) $ac_c" 1>&6
15766 cat > conftest.$ac_ext <<EOF
15767 #line 15768 "configure"
15768 #include "confdefs.h"
15769 /* System header to define __stub macros and hopefully few prototypes,
15770 which can conflict with char cthread_fork(); below. */
15771 #include <assert.h>
15772 /* Override any gcc2 internal prototype to avoid an error. */
15773 /* We use char because int might match the return type of a gcc2
15774 builtin and then its argument prototype would still apply. */
15775 char cthread_fork();
15780 /* The GNU C library defines this for functions which it implements
15781 to always fail with ENOSYS. Some functions are actually named
15782 something starting with __ and the normal name is an alias. */
15783 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15791 if { (eval echo configure:15792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15793 eval "ac_cv_func_cthread_fork=yes"
15795 echo "configure: failed program was:" >&5
15796 cat conftest.$ac_ext >&5
15798 eval "ac_cv_func_cthread_fork=no"
15803 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15804 echo "$ac_t""yes" 1>&6
15805 ol_link_threads=yes
15807 echo "$ac_t""no" 1>&6
15812 if test $ol_link_threads = yes ; then
15813 LTHREAD_LIBS="-lthreads"
15814 ol_link_threads=mach
15815 ol_with_threads=found
15817 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15820 elif test $ol_with_threads = mach ; then
15821 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15824 if test $ol_link_threads = mach ; then
15825 cat >> confdefs.h <<\EOF
15826 #define HAVE_MACH_CTHREADS 1
15829 elif test $ol_with_threads = found ; then
15830 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15834 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15835 -o $ol_with_threads = pth ; then
15837 for ac_hdr in pth.h
15839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15841 echo "configure:15842: checking for $ac_hdr" >&5
15842 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15843 echo $ac_n "(cached) $ac_c" 1>&6
15845 cat > conftest.$ac_ext <<EOF
15846 #line 15847 "configure"
15847 #include "confdefs.h"
15850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15851 { (eval echo configure:15852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15853 if test -z "$ac_err"; then
15855 eval "ac_cv_header_$ac_safe=yes"
15858 echo "configure: failed program was:" >&5
15859 cat conftest.$ac_ext >&5
15861 eval "ac_cv_header_$ac_safe=no"
15865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15866 echo "$ac_t""yes" 1>&6
15867 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15868 cat >> confdefs.h <<EOF
15869 #define $ac_tr_hdr 1
15873 echo "$ac_t""no" 1>&6
15878 if test $ac_cv_header_pth_h = yes ; then
15879 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15880 echo "configure:15881: checking for pth_version in -lpth" >&5
15881 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15882 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15883 echo $ac_n "(cached) $ac_c" 1>&6
15885 ac_save_LIBS="$LIBS"
15887 cat > conftest.$ac_ext <<EOF
15888 #line 15889 "configure"
15889 #include "confdefs.h"
15890 /* Override any gcc2 internal prototype to avoid an error. */
15891 /* We use char because int might match the return type of a gcc2
15892 builtin and then its argument prototype would still apply. */
15893 char pth_version();
15899 if { (eval echo configure:15900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15901 eval "ac_cv_lib_$ac_lib_var=yes"
15903 echo "configure: failed program was:" >&5
15904 cat conftest.$ac_ext >&5
15906 eval "ac_cv_lib_$ac_lib_var=no"
15909 LIBS="$ac_save_LIBS"
15912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15913 echo "$ac_t""yes" 1>&6
15916 echo "$ac_t""no" 1>&6
15921 if test $have_pth = yes ; then
15922 cat >> confdefs.h <<\EOF
15923 #define HAVE_GNU_PTH 1
15926 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15927 ol_link_threads=pth
15928 ol_with_threads=found
15930 if test $ol_with_yielding_select = auto ; then
15931 ol_with_yielding_select=yes
15937 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15938 -o $ol_with_threads = lwp ; then
15940 for ac_hdr in thread.h synch.h
15942 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15944 echo "configure:15945: checking for $ac_hdr" >&5
15945 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15946 echo $ac_n "(cached) $ac_c" 1>&6
15948 cat > conftest.$ac_ext <<EOF
15949 #line 15950 "configure"
15950 #include "confdefs.h"
15953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15954 { (eval echo configure:15955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15956 if test -z "$ac_err"; then
15958 eval "ac_cv_header_$ac_safe=yes"
15961 echo "configure: failed program was:" >&5
15962 cat conftest.$ac_ext >&5
15964 eval "ac_cv_header_$ac_safe=no"
15968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15969 echo "$ac_t""yes" 1>&6
15970 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15971 cat >> confdefs.h <<EOF
15972 #define $ac_tr_hdr 1
15976 echo "$ac_t""no" 1>&6
15980 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15981 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15982 echo "configure:15983: checking for thr_create in -lthread" >&5
15983 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15985 echo $ac_n "(cached) $ac_c" 1>&6
15987 ac_save_LIBS="$LIBS"
15988 LIBS="-lthread $LIBS"
15989 cat > conftest.$ac_ext <<EOF
15990 #line 15991 "configure"
15991 #include "confdefs.h"
15992 /* Override any gcc2 internal prototype to avoid an error. */
15993 /* We use char because int might match the return type of a gcc2
15994 builtin and then its argument prototype would still apply. */
16001 if { (eval echo configure:16002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16003 eval "ac_cv_lib_$ac_lib_var=yes"
16005 echo "configure: failed program was:" >&5
16006 cat conftest.$ac_ext >&5
16008 eval "ac_cv_lib_$ac_lib_var=no"
16011 LIBS="$ac_save_LIBS"
16014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16015 echo "$ac_t""yes" 1>&6
16018 echo "$ac_t""no" 1>&6
16023 if test $have_thr = yes ; then
16024 cat >> confdefs.h <<\EOF
16028 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16029 ol_link_threads=thr
16031 if test $ol_with_yielding_select = auto ; then
16032 ol_with_yielding_select=yes
16036 thr_setconcurrency \
16037 thr_getconcurrency \
16040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16041 echo "configure:16042: checking for $ac_func" >&5
16042 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16043 echo $ac_n "(cached) $ac_c" 1>&6
16045 cat > conftest.$ac_ext <<EOF
16046 #line 16047 "configure"
16047 #include "confdefs.h"
16048 /* System header to define __stub macros and hopefully few prototypes,
16049 which can conflict with char $ac_func(); below. */
16050 #include <assert.h>
16051 /* Override any gcc2 internal prototype to avoid an error. */
16052 /* We use char because int might match the return type of a gcc2
16053 builtin and then its argument prototype would still apply. */
16059 /* The GNU C library defines this for functions which it implements
16060 to always fail with ENOSYS. Some functions are actually named
16061 something starting with __ and the normal name is an alias. */
16062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16070 if { (eval echo configure:16071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16072 eval "ac_cv_func_$ac_func=yes"
16074 echo "configure: failed program was:" >&5
16075 cat conftest.$ac_ext >&5
16077 eval "ac_cv_func_$ac_func=no"
16082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16083 echo "$ac_t""yes" 1>&6
16084 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16085 cat >> confdefs.h <<EOF
16086 #define $ac_tr_func 1
16090 echo "$ac_t""no" 1>&6
16097 for ac_hdr in lwp/lwp.h
16099 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16100 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16101 echo "configure:16102: checking for $ac_hdr" >&5
16102 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16103 echo $ac_n "(cached) $ac_c" 1>&6
16105 cat > conftest.$ac_ext <<EOF
16106 #line 16107 "configure"
16107 #include "confdefs.h"
16110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16111 { (eval echo configure:16112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16113 if test -z "$ac_err"; then
16115 eval "ac_cv_header_$ac_safe=yes"
16118 echo "configure: failed program was:" >&5
16119 cat conftest.$ac_ext >&5
16121 eval "ac_cv_header_$ac_safe=no"
16125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16126 echo "$ac_t""yes" 1>&6
16127 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16128 cat >> confdefs.h <<EOF
16129 #define $ac_tr_hdr 1
16133 echo "$ac_t""no" 1>&6
16137 if test $ac_cv_header_lwp_lwp_h = yes ; then
16138 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16139 echo "configure:16140: checking for lwp_create in -llwp" >&5
16140 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16141 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16142 echo $ac_n "(cached) $ac_c" 1>&6
16144 ac_save_LIBS="$LIBS"
16146 cat > conftest.$ac_ext <<EOF
16147 #line 16148 "configure"
16148 #include "confdefs.h"
16149 /* Override any gcc2 internal prototype to avoid an error. */
16150 /* We use char because int might match the return type of a gcc2
16151 builtin and then its argument prototype would still apply. */
16158 if { (eval echo configure:16159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16160 eval "ac_cv_lib_$ac_lib_var=yes"
16162 echo "configure: failed program was:" >&5
16163 cat conftest.$ac_ext >&5
16165 eval "ac_cv_lib_$ac_lib_var=no"
16168 LIBS="$ac_save_LIBS"
16171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16172 echo "$ac_t""yes" 1>&6
16175 echo "$ac_t""no" 1>&6
16180 if test $have_lwp = yes ; then
16181 cat >> confdefs.h <<\EOF
16185 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16186 ol_link_threads=lwp
16188 if test $ol_with_yielding_select = auto ; then
16189 ol_with_yielding_select=no
16195 if test $ol_with_yielding_select = yes ; then
16196 cat >> confdefs.h <<\EOF
16197 #define HAVE_YIELDING_SELECT 1
16202 if test $ol_with_threads = manual ; then
16203 ol_link_threads=yes
16205 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16207 for ac_hdr in pthread.h sched.h
16209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16211 echo "configure:16212: checking for $ac_hdr" >&5
16212 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16213 echo $ac_n "(cached) $ac_c" 1>&6
16215 cat > conftest.$ac_ext <<EOF
16216 #line 16217 "configure"
16217 #include "confdefs.h"
16220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16221 { (eval echo configure:16222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16223 if test -z "$ac_err"; then
16225 eval "ac_cv_header_$ac_safe=yes"
16228 echo "configure: failed program was:" >&5
16229 cat conftest.$ac_ext >&5
16231 eval "ac_cv_header_$ac_safe=no"
16235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16236 echo "$ac_t""yes" 1>&6
16237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16238 cat >> confdefs.h <<EOF
16239 #define $ac_tr_hdr 1
16243 echo "$ac_t""no" 1>&6
16247 for ac_func in sched_yield pthread_yield
16249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16250 echo "configure:16251: checking for $ac_func" >&5
16251 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16252 echo $ac_n "(cached) $ac_c" 1>&6
16254 cat > conftest.$ac_ext <<EOF
16255 #line 16256 "configure"
16256 #include "confdefs.h"
16257 /* System header to define __stub macros and hopefully few prototypes,
16258 which can conflict with char $ac_func(); below. */
16259 #include <assert.h>
16260 /* Override any gcc2 internal prototype to avoid an error. */
16261 /* We use char because int might match the return type of a gcc2
16262 builtin and then its argument prototype would still apply. */
16268 /* The GNU C library defines this for functions which it implements
16269 to always fail with ENOSYS. Some functions are actually named
16270 something starting with __ and the normal name is an alias. */
16271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16279 if { (eval echo configure:16280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16281 eval "ac_cv_func_$ac_func=yes"
16283 echo "configure: failed program was:" >&5
16284 cat conftest.$ac_ext >&5
16286 eval "ac_cv_func_$ac_func=no"
16291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16292 echo "$ac_t""yes" 1>&6
16293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16294 cat >> confdefs.h <<EOF
16295 #define $ac_tr_func 1
16299 echo "$ac_t""no" 1>&6
16304 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16305 echo "configure:16306: checking for LinuxThreads pthread.h" >&5
16306 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16307 echo $ac_n "(cached) $ac_c" 1>&6
16309 cat > conftest.$ac_ext <<EOF
16310 #line 16311 "configure"
16311 #include "confdefs.h"
16312 #include <pthread.h>
16314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16315 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16317 ol_cv_header_linux_threads=yes
16320 ol_cv_header_linux_threads=no
16327 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16328 if test $ol_cv_header_linux_threads = yes; then
16329 cat >> confdefs.h <<\EOF
16330 #define HAVE_LINUX_THREADS 1
16336 for ac_hdr in mach/cthreads.h
16338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16340 echo "configure:16341: checking for $ac_hdr" >&5
16341 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16342 echo $ac_n "(cached) $ac_c" 1>&6
16344 cat > conftest.$ac_ext <<EOF
16345 #line 16346 "configure"
16346 #include "confdefs.h"
16349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16350 { (eval echo configure:16351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16352 if test -z "$ac_err"; then
16354 eval "ac_cv_header_$ac_safe=yes"
16357 echo "configure: failed program was:" >&5
16358 cat conftest.$ac_ext >&5
16360 eval "ac_cv_header_$ac_safe=no"
16364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16365 echo "$ac_t""yes" 1>&6
16366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16367 cat >> confdefs.h <<EOF
16368 #define $ac_tr_hdr 1
16372 echo "$ac_t""no" 1>&6
16376 for ac_hdr in lwp/lwp.h
16378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16380 echo "configure:16381: checking for $ac_hdr" >&5
16381 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16382 echo $ac_n "(cached) $ac_c" 1>&6
16384 cat > conftest.$ac_ext <<EOF
16385 #line 16386 "configure"
16386 #include "confdefs.h"
16389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16390 { (eval echo configure:16391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16392 if test -z "$ac_err"; then
16394 eval "ac_cv_header_$ac_safe=yes"
16397 echo "configure: failed program was:" >&5
16398 cat conftest.$ac_ext >&5
16400 eval "ac_cv_header_$ac_safe=no"
16404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16405 echo "$ac_t""yes" 1>&6
16406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16407 cat >> confdefs.h <<EOF
16408 #define $ac_tr_hdr 1
16412 echo "$ac_t""no" 1>&6
16416 for ac_hdr in thread.h synch.h
16418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16420 echo "configure:16421: checking for $ac_hdr" >&5
16421 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16422 echo $ac_n "(cached) $ac_c" 1>&6
16424 cat > conftest.$ac_ext <<EOF
16425 #line 16426 "configure"
16426 #include "confdefs.h"
16429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16430 { (eval echo configure:16431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16432 if test -z "$ac_err"; then
16434 eval "ac_cv_header_$ac_safe=yes"
16437 echo "configure: failed program was:" >&5
16438 cat conftest.$ac_ext >&5
16440 eval "ac_cv_header_$ac_safe=no"
16444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16445 echo "$ac_t""yes" 1>&6
16446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16447 cat >> confdefs.h <<EOF
16448 #define $ac_tr_hdr 1
16452 echo "$ac_t""no" 1>&6
16458 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16459 cat >> confdefs.h <<\EOF
16460 #define REENTRANT 1
16463 cat >> confdefs.h <<\EOF
16464 #define _REENTRANT 1
16467 cat >> confdefs.h <<\EOF
16468 #define THREAD_SAFE 1
16471 cat >> confdefs.h <<\EOF
16472 #define _THREAD_SAFE 1
16475 cat >> confdefs.h <<\EOF
16476 #define THREADSAFE 1
16479 cat >> confdefs.h <<\EOF
16480 #define _THREADSAFE 1
16483 cat >> confdefs.h <<\EOF
16484 #define _SGI_MP_SOURCE 1
16488 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16489 echo "configure:16490: checking for thread specific errno" >&5
16490 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16491 echo $ac_n "(cached) $ac_c" 1>&6
16494 cat > conftest.$ac_ext <<EOF
16495 #line 16496 "configure"
16496 #include "confdefs.h"
16502 if { (eval echo configure:16503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16504 ol_cv_errno_thread_specific=yes
16506 echo "configure: failed program was:" >&5
16507 cat conftest.$ac_ext >&5
16509 ol_cv_errno_thread_specific=no
16515 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16517 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16518 echo "configure:16519: checking for thread specific h_errno" >&5
16519 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16520 echo $ac_n "(cached) $ac_c" 1>&6
16523 cat > conftest.$ac_ext <<EOF
16524 #line 16525 "configure"
16525 #include "confdefs.h"
16531 if { (eval echo configure:16532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16533 ol_cv_h_errno_thread_specific=yes
16535 echo "configure: failed program was:" >&5
16536 cat conftest.$ac_ext >&5
16538 ol_cv_h_errno_thread_specific=no
16544 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16546 if test $ol_cv_errno_thread_specific != yes \
16547 -o $ol_cv_h_errno_thread_specific != yes ; then
16548 LIBS="$LTHREAD_LIBS $LIBS"
16554 if test $ol_link_threads = no ; then
16555 if test $ol_with_threads = yes ; then
16556 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16559 if test $ol_with_threads = auto ; then
16560 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16564 cat >> confdefs.h <<\EOF
16565 #define NO_THREADS 1
16571 if test $ol_link_threads != no ; then
16572 cat >> confdefs.h <<\EOF
16573 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16580 if test $ol_with_ldbm_api = auto \
16581 -o $ol_with_ldbm_api = berkeley \
16582 -o $ol_with_ldbm_api = bcompat ; then
16584 if test $ol_with_ldbm_api = bcompat; then \
16585 for ac_hdr in db_185.h db.h
16587 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16589 echo "configure:16590: checking for $ac_hdr" >&5
16590 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16591 echo $ac_n "(cached) $ac_c" 1>&6
16593 cat > conftest.$ac_ext <<EOF
16594 #line 16595 "configure"
16595 #include "confdefs.h"
16598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16599 { (eval echo configure:16600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16601 if test -z "$ac_err"; then
16603 eval "ac_cv_header_$ac_safe=yes"
16606 echo "configure: failed program was:" >&5
16607 cat conftest.$ac_ext >&5
16609 eval "ac_cv_header_$ac_safe=no"
16613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16614 echo "$ac_t""yes" 1>&6
16615 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16616 cat >> confdefs.h <<EOF
16617 #define $ac_tr_hdr 1
16621 echo "$ac_t""no" 1>&6
16625 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16626 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16627 echo "configure:16628: checking if Berkeley DB header compatibility" >&5
16628 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16629 echo $ac_n "(cached) $ac_c" 1>&6
16632 cat > conftest.$ac_ext <<EOF
16633 #line 16634 "configure"
16634 #include "confdefs.h"
16637 # include <db_185.h>
16642 /* this check could be improved */
16643 #ifndef DB_VERSION_MAJOR
16644 # define DB_VERSION_MAJOR 1
16647 #if DB_VERSION_MAJOR == 1
16652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16653 egrep "__db_version_1" >/dev/null 2>&1; then
16655 ol_cv_header_db1=yes
16658 ol_cv_header_db1=no
16664 echo "$ac_t""$ol_cv_header_db1" 1>&6
16666 if test $ol_cv_header_db1 = yes ; then
16668 if test $ol_cv_lib_db = no ; then
16669 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16670 echo "configure:16671: checking for Berkeley DB link (default)" >&5
16671 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16672 echo $ac_n "(cached) $ac_c" 1>&6
16677 LIBS="$ol_DB_LIB $LIBS"
16679 cat > conftest.$ac_ext <<EOF
16680 #line 16681 "configure"
16681 #include "confdefs.h"
16683 #ifdef HAVE_DB_185_H
16684 # include <db_185.h>
16689 #ifndef DB_VERSION_MAJOR
16690 # define DB_VERSION_MAJOR 1
16694 #define NULL ((void*)0)
16699 #if DB_VERSION_MAJOR > 1
16702 int major, minor, patch;
16704 version = db_version( &major, &minor, &patch );
16706 if( major != DB_VERSION_MAJOR ||
16707 minor < DB_VERSION_MINOR )
16709 printf("Berkeley DB version mismatch\n"
16710 "\texpected: %s\n\tgot: %s\n",
16711 DB_VERSION_STRING, version);
16717 #if DB_VERSION_MAJOR > 2
16718 db_env_create( NULL, 0 );
16719 #elif DB_VERSION_MAJOR > 1
16720 db_appexit( NULL );
16722 (void) dbopen( NULL, 0, 0, 0, NULL);
16727 if { (eval echo configure:16728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16731 echo "configure: failed program was:" >&5
16732 cat conftest.$ac_ext >&5
16742 echo "$ac_t""$ol_cv_db_none" 1>&6
16744 if test $ol_cv_db_none = yes ; then
16749 if test $ol_cv_lib_db = no ; then
16750 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16751 echo "configure:16752: checking for Berkeley DB link (-ldb4)" >&5
16752 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16753 echo $ac_n "(cached) $ac_c" 1>&6
16758 LIBS="$ol_DB_LIB $LIBS"
16760 cat > conftest.$ac_ext <<EOF
16761 #line 16762 "configure"
16762 #include "confdefs.h"
16764 #ifdef HAVE_DB_185_H
16765 # include <db_185.h>
16770 #ifndef DB_VERSION_MAJOR
16771 # define DB_VERSION_MAJOR 1
16775 #define NULL ((void*)0)
16780 #if DB_VERSION_MAJOR > 1
16783 int major, minor, patch;
16785 version = db_version( &major, &minor, &patch );
16787 if( major != DB_VERSION_MAJOR ||
16788 minor < DB_VERSION_MINOR )
16790 printf("Berkeley DB version mismatch\n"
16791 "\texpected: %s\n\tgot: %s\n",
16792 DB_VERSION_STRING, version);
16798 #if DB_VERSION_MAJOR > 2
16799 db_env_create( NULL, 0 );
16800 #elif DB_VERSION_MAJOR > 1
16801 db_appexit( NULL );
16803 (void) dbopen( NULL, 0, 0, 0, NULL);
16808 if { (eval echo configure:16809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16812 echo "configure: failed program was:" >&5
16813 cat conftest.$ac_ext >&5
16823 echo "$ac_t""$ol_cv_db_db4" 1>&6
16825 if test $ol_cv_db_db4 = yes ; then
16830 if test $ol_cv_lib_db = no ; then
16831 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16832 echo "configure:16833: checking for Berkeley DB link (-ldb-4)" >&5
16833 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16834 echo $ac_n "(cached) $ac_c" 1>&6
16839 LIBS="$ol_DB_LIB $LIBS"
16841 cat > conftest.$ac_ext <<EOF
16842 #line 16843 "configure"
16843 #include "confdefs.h"
16845 #ifdef HAVE_DB_185_H
16846 # include <db_185.h>
16851 #ifndef DB_VERSION_MAJOR
16852 # define DB_VERSION_MAJOR 1
16856 #define NULL ((void*)0)
16861 #if DB_VERSION_MAJOR > 1
16864 int major, minor, patch;
16866 version = db_version( &major, &minor, &patch );
16868 if( major != DB_VERSION_MAJOR ||
16869 minor < DB_VERSION_MINOR )
16871 printf("Berkeley DB version mismatch\n"
16872 "\texpected: %s\n\tgot: %s\n",
16873 DB_VERSION_STRING, version);
16879 #if DB_VERSION_MAJOR > 2
16880 db_env_create( NULL, 0 );
16881 #elif DB_VERSION_MAJOR > 1
16882 db_appexit( NULL );
16884 (void) dbopen( NULL, 0, 0, 0, NULL);
16889 if { (eval echo configure:16890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16893 echo "configure: failed program was:" >&5
16894 cat conftest.$ac_ext >&5
16904 echo "$ac_t""$ol_cv_db_db_4" 1>&6
16906 if test $ol_cv_db_db_4 = yes ; then
16907 ol_cv_lib_db=-ldb-4
16911 if test $ol_cv_lib_db = no ; then
16912 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
16913 echo "configure:16914: checking for Berkeley DB link (-ldb)" >&5
16914 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
16915 echo $ac_n "(cached) $ac_c" 1>&6
16920 LIBS="$ol_DB_LIB $LIBS"
16922 cat > conftest.$ac_ext <<EOF
16923 #line 16924 "configure"
16924 #include "confdefs.h"
16926 #ifdef HAVE_DB_185_H
16927 # include <db_185.h>
16932 #ifndef DB_VERSION_MAJOR
16933 # define DB_VERSION_MAJOR 1
16937 #define NULL ((void*)0)
16942 #if DB_VERSION_MAJOR > 1
16945 int major, minor, patch;
16947 version = db_version( &major, &minor, &patch );
16949 if( major != DB_VERSION_MAJOR ||
16950 minor < DB_VERSION_MINOR )
16952 printf("Berkeley DB version mismatch\n"
16953 "\texpected: %s\n\tgot: %s\n",
16954 DB_VERSION_STRING, version);
16960 #if DB_VERSION_MAJOR > 2
16961 db_env_create( NULL, 0 );
16962 #elif DB_VERSION_MAJOR > 1
16963 db_appexit( NULL );
16965 (void) dbopen( NULL, 0, 0, 0, NULL);
16970 if { (eval echo configure:16971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16974 echo "configure: failed program was:" >&5
16975 cat conftest.$ac_ext >&5
16985 echo "$ac_t""$ol_cv_db_db" 1>&6
16987 if test $ol_cv_db_db = yes ; then
16992 if test $ol_cv_lib_db = no ; then
16993 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
16994 echo "configure:16995: checking for Berkeley DB link (-ldb3)" >&5
16995 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
16996 echo $ac_n "(cached) $ac_c" 1>&6
17001 LIBS="$ol_DB_LIB $LIBS"
17003 cat > conftest.$ac_ext <<EOF
17004 #line 17005 "configure"
17005 #include "confdefs.h"
17007 #ifdef HAVE_DB_185_H
17008 # include <db_185.h>
17013 #ifndef DB_VERSION_MAJOR
17014 # define DB_VERSION_MAJOR 1
17018 #define NULL ((void*)0)
17023 #if DB_VERSION_MAJOR > 1
17026 int major, minor, patch;
17028 version = db_version( &major, &minor, &patch );
17030 if( major != DB_VERSION_MAJOR ||
17031 minor < DB_VERSION_MINOR )
17033 printf("Berkeley DB version mismatch\n"
17034 "\texpected: %s\n\tgot: %s\n",
17035 DB_VERSION_STRING, version);
17041 #if DB_VERSION_MAJOR > 2
17042 db_env_create( NULL, 0 );
17043 #elif DB_VERSION_MAJOR > 1
17044 db_appexit( NULL );
17046 (void) dbopen( NULL, 0, 0, 0, NULL);
17051 if { (eval echo configure:17052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17055 echo "configure: failed program was:" >&5
17056 cat conftest.$ac_ext >&5
17066 echo "$ac_t""$ol_cv_db_db3" 1>&6
17068 if test $ol_cv_db_db3 = yes ; then
17073 if test $ol_cv_lib_db = no ; then
17074 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17075 echo "configure:17076: checking for Berkeley DB link (-ldb-3)" >&5
17076 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17077 echo $ac_n "(cached) $ac_c" 1>&6
17082 LIBS="$ol_DB_LIB $LIBS"
17084 cat > conftest.$ac_ext <<EOF
17085 #line 17086 "configure"
17086 #include "confdefs.h"
17088 #ifdef HAVE_DB_185_H
17089 # include <db_185.h>
17094 #ifndef DB_VERSION_MAJOR
17095 # define DB_VERSION_MAJOR 1
17099 #define NULL ((void*)0)
17104 #if DB_VERSION_MAJOR > 1
17107 int major, minor, patch;
17109 version = db_version( &major, &minor, &patch );
17111 if( major != DB_VERSION_MAJOR ||
17112 minor < DB_VERSION_MINOR )
17114 printf("Berkeley DB version mismatch\n"
17115 "\texpected: %s\n\tgot: %s\n",
17116 DB_VERSION_STRING, version);
17122 #if DB_VERSION_MAJOR > 2
17123 db_env_create( NULL, 0 );
17124 #elif DB_VERSION_MAJOR > 1
17125 db_appexit( NULL );
17127 (void) dbopen( NULL, 0, 0, 0, NULL);
17132 if { (eval echo configure:17133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17136 echo "configure: failed program was:" >&5
17137 cat conftest.$ac_ext >&5
17147 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17149 if test $ol_cv_db_db_3 = yes ; then
17150 ol_cv_lib_db=-ldb-3
17154 if test $ol_cv_lib_db = no ; then
17155 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17156 echo "configure:17157: checking for Berkeley DB link (-ldb2)" >&5
17157 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17158 echo $ac_n "(cached) $ac_c" 1>&6
17163 LIBS="$ol_DB_LIB $LIBS"
17165 cat > conftest.$ac_ext <<EOF
17166 #line 17167 "configure"
17167 #include "confdefs.h"
17169 #ifdef HAVE_DB_185_H
17170 # include <db_185.h>
17175 #ifndef DB_VERSION_MAJOR
17176 # define DB_VERSION_MAJOR 1
17180 #define NULL ((void*)0)
17185 #if DB_VERSION_MAJOR > 1
17188 int major, minor, patch;
17190 version = db_version( &major, &minor, &patch );
17192 if( major != DB_VERSION_MAJOR ||
17193 minor < DB_VERSION_MINOR )
17195 printf("Berkeley DB version mismatch\n"
17196 "\texpected: %s\n\tgot: %s\n",
17197 DB_VERSION_STRING, version);
17203 #if DB_VERSION_MAJOR > 2
17204 db_env_create( NULL, 0 );
17205 #elif DB_VERSION_MAJOR > 1
17206 db_appexit( NULL );
17208 (void) dbopen( NULL, 0, 0, 0, NULL);
17213 if { (eval echo configure:17214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17217 echo "configure: failed program was:" >&5
17218 cat conftest.$ac_ext >&5
17228 echo "$ac_t""$ol_cv_db_db2" 1>&6
17230 if test $ol_cv_db_db2 = yes ; then
17235 if test $ol_cv_lib_db = no ; then
17236 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17237 echo "configure:17238: checking for Berkeley DB link (-ldb-2)" >&5
17238 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17239 echo $ac_n "(cached) $ac_c" 1>&6
17244 LIBS="$ol_DB_LIB $LIBS"
17246 cat > conftest.$ac_ext <<EOF
17247 #line 17248 "configure"
17248 #include "confdefs.h"
17250 #ifdef HAVE_DB_185_H
17251 # include <db_185.h>
17256 #ifndef DB_VERSION_MAJOR
17257 # define DB_VERSION_MAJOR 1
17261 #define NULL ((void*)0)
17266 #if DB_VERSION_MAJOR > 1
17269 int major, minor, patch;
17271 version = db_version( &major, &minor, &patch );
17273 if( major != DB_VERSION_MAJOR ||
17274 minor < DB_VERSION_MINOR )
17276 printf("Berkeley DB version mismatch\n"
17277 "\texpected: %s\n\tgot: %s\n",
17278 DB_VERSION_STRING, version);
17284 #if DB_VERSION_MAJOR > 2
17285 db_env_create( NULL, 0 );
17286 #elif DB_VERSION_MAJOR > 1
17287 db_appexit( NULL );
17289 (void) dbopen( NULL, 0, 0, 0, NULL);
17294 if { (eval echo configure:17295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17298 echo "configure: failed program was:" >&5
17299 cat conftest.$ac_ext >&5
17309 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17311 if test $ol_cv_db_db_2 = yes ; then
17312 ol_cv_lib_db=-ldb-2
17316 if test $ol_cv_lib_db = no ; then
17317 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17318 echo "configure:17319: checking for Berkeley DB link (-ldb1)" >&5
17319 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17320 echo $ac_n "(cached) $ac_c" 1>&6
17325 LIBS="$ol_DB_LIB $LIBS"
17327 cat > conftest.$ac_ext <<EOF
17328 #line 17329 "configure"
17329 #include "confdefs.h"
17331 #ifdef HAVE_DB_185_H
17332 # include <db_185.h>
17337 #ifndef DB_VERSION_MAJOR
17338 # define DB_VERSION_MAJOR 1
17342 #define NULL ((void*)0)
17347 #if DB_VERSION_MAJOR > 1
17350 int major, minor, patch;
17352 version = db_version( &major, &minor, &patch );
17354 if( major != DB_VERSION_MAJOR ||
17355 minor < DB_VERSION_MINOR )
17357 printf("Berkeley DB version mismatch\n"
17358 "\texpected: %s\n\tgot: %s\n",
17359 DB_VERSION_STRING, version);
17365 #if DB_VERSION_MAJOR > 2
17366 db_env_create( NULL, 0 );
17367 #elif DB_VERSION_MAJOR > 1
17368 db_appexit( NULL );
17370 (void) dbopen( NULL, 0, 0, 0, NULL);
17375 if { (eval echo configure:17376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17379 echo "configure: failed program was:" >&5
17380 cat conftest.$ac_ext >&5
17390 echo "$ac_t""$ol_cv_db_db1" 1>&6
17392 if test $ol_cv_db_db1 = yes ; then
17397 if test $ol_cv_lib_db = no ; then
17398 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17399 echo "configure:17400: checking for Berkeley DB link (-ldb-1)" >&5
17400 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17401 echo $ac_n "(cached) $ac_c" 1>&6
17406 LIBS="$ol_DB_LIB $LIBS"
17408 cat > conftest.$ac_ext <<EOF
17409 #line 17410 "configure"
17410 #include "confdefs.h"
17412 #ifdef HAVE_DB_185_H
17413 # include <db_185.h>
17418 #ifndef DB_VERSION_MAJOR
17419 # define DB_VERSION_MAJOR 1
17423 #define NULL ((void*)0)
17428 #if DB_VERSION_MAJOR > 1
17431 int major, minor, patch;
17433 version = db_version( &major, &minor, &patch );
17435 if( major != DB_VERSION_MAJOR ||
17436 minor < DB_VERSION_MINOR )
17438 printf("Berkeley DB version mismatch\n"
17439 "\texpected: %s\n\tgot: %s\n",
17440 DB_VERSION_STRING, version);
17446 #if DB_VERSION_MAJOR > 2
17447 db_env_create( NULL, 0 );
17448 #elif DB_VERSION_MAJOR > 1
17449 db_appexit( NULL );
17451 (void) dbopen( NULL, 0, 0, 0, NULL);
17456 if { (eval echo configure:17457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17460 echo "configure: failed program was:" >&5
17461 cat conftest.$ac_ext >&5
17471 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17473 if test $ol_cv_db_db_1 = yes ; then
17474 ol_cv_lib_db=-ldb-1
17479 if test "$ol_cv_lib_db" != no ; then
17480 ol_cv_berkeley_db=yes
17486 ol_cv_berkeley_db=no
17489 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17490 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17491 echo "configure:17492: checking for $ac_hdr" >&5
17492 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17493 echo $ac_n "(cached) $ac_c" 1>&6
17495 cat > conftest.$ac_ext <<EOF
17496 #line 17497 "configure"
17497 #include "confdefs.h"
17500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17501 { (eval echo configure:17502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17503 if test -z "$ac_err"; then
17505 eval "ac_cv_header_$ac_safe=yes"
17508 echo "configure: failed program was:" >&5
17509 cat conftest.$ac_ext >&5
17511 eval "ac_cv_header_$ac_safe=no"
17515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17516 echo "$ac_t""yes" 1>&6
17517 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17518 cat >> confdefs.h <<EOF
17519 #define $ac_tr_hdr 1
17523 echo "$ac_t""no" 1>&6
17527 if test $ac_cv_header_db_h = yes; then
17529 if test $ol_cv_lib_db = no ; then
17530 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17531 echo "configure:17532: checking for Berkeley DB link (default)" >&5
17532 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17533 echo $ac_n "(cached) $ac_c" 1>&6
17538 LIBS="$ol_DB_LIB $LIBS"
17540 cat > conftest.$ac_ext <<EOF
17541 #line 17542 "configure"
17542 #include "confdefs.h"
17544 #ifdef HAVE_DB_185_H
17545 # include <db_185.h>
17550 #ifndef DB_VERSION_MAJOR
17551 # define DB_VERSION_MAJOR 1
17555 #define NULL ((void*)0)
17560 #if DB_VERSION_MAJOR > 1
17563 int major, minor, patch;
17565 version = db_version( &major, &minor, &patch );
17567 if( major != DB_VERSION_MAJOR ||
17568 minor < DB_VERSION_MINOR )
17570 printf("Berkeley DB version mismatch\n"
17571 "\texpected: %s\n\tgot: %s\n",
17572 DB_VERSION_STRING, version);
17578 #if DB_VERSION_MAJOR > 2
17579 db_env_create( NULL, 0 );
17580 #elif DB_VERSION_MAJOR > 1
17581 db_appexit( NULL );
17583 (void) dbopen( NULL, 0, 0, 0, NULL);
17588 if { (eval echo configure:17589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17592 echo "configure: failed program was:" >&5
17593 cat conftest.$ac_ext >&5
17603 echo "$ac_t""$ol_cv_db_none" 1>&6
17605 if test $ol_cv_db_none = yes ; then
17610 if test $ol_cv_lib_db = no ; then
17611 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17612 echo "configure:17613: checking for Berkeley DB link (-ldb4)" >&5
17613 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17614 echo $ac_n "(cached) $ac_c" 1>&6
17619 LIBS="$ol_DB_LIB $LIBS"
17621 cat > conftest.$ac_ext <<EOF
17622 #line 17623 "configure"
17623 #include "confdefs.h"
17625 #ifdef HAVE_DB_185_H
17626 # include <db_185.h>
17631 #ifndef DB_VERSION_MAJOR
17632 # define DB_VERSION_MAJOR 1
17636 #define NULL ((void*)0)
17641 #if DB_VERSION_MAJOR > 1
17644 int major, minor, patch;
17646 version = db_version( &major, &minor, &patch );
17648 if( major != DB_VERSION_MAJOR ||
17649 minor < DB_VERSION_MINOR )
17651 printf("Berkeley DB version mismatch\n"
17652 "\texpected: %s\n\tgot: %s\n",
17653 DB_VERSION_STRING, version);
17659 #if DB_VERSION_MAJOR > 2
17660 db_env_create( NULL, 0 );
17661 #elif DB_VERSION_MAJOR > 1
17662 db_appexit( NULL );
17664 (void) dbopen( NULL, 0, 0, 0, NULL);
17669 if { (eval echo configure:17670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17673 echo "configure: failed program was:" >&5
17674 cat conftest.$ac_ext >&5
17684 echo "$ac_t""$ol_cv_db_db4" 1>&6
17686 if test $ol_cv_db_db4 = yes ; then
17691 if test $ol_cv_lib_db = no ; then
17692 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17693 echo "configure:17694: checking for Berkeley DB link (-ldb-4)" >&5
17694 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17695 echo $ac_n "(cached) $ac_c" 1>&6
17700 LIBS="$ol_DB_LIB $LIBS"
17702 cat > conftest.$ac_ext <<EOF
17703 #line 17704 "configure"
17704 #include "confdefs.h"
17706 #ifdef HAVE_DB_185_H
17707 # include <db_185.h>
17712 #ifndef DB_VERSION_MAJOR
17713 # define DB_VERSION_MAJOR 1
17717 #define NULL ((void*)0)
17722 #if DB_VERSION_MAJOR > 1
17725 int major, minor, patch;
17727 version = db_version( &major, &minor, &patch );
17729 if( major != DB_VERSION_MAJOR ||
17730 minor < DB_VERSION_MINOR )
17732 printf("Berkeley DB version mismatch\n"
17733 "\texpected: %s\n\tgot: %s\n",
17734 DB_VERSION_STRING, version);
17740 #if DB_VERSION_MAJOR > 2
17741 db_env_create( NULL, 0 );
17742 #elif DB_VERSION_MAJOR > 1
17743 db_appexit( NULL );
17745 (void) dbopen( NULL, 0, 0, 0, NULL);
17750 if { (eval echo configure:17751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17754 echo "configure: failed program was:" >&5
17755 cat conftest.$ac_ext >&5
17765 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17767 if test $ol_cv_db_db_4 = yes ; then
17768 ol_cv_lib_db=-ldb-4
17772 if test $ol_cv_lib_db = no ; then
17773 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17774 echo "configure:17775: checking for Berkeley DB link (-ldb)" >&5
17775 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17776 echo $ac_n "(cached) $ac_c" 1>&6
17781 LIBS="$ol_DB_LIB $LIBS"
17783 cat > conftest.$ac_ext <<EOF
17784 #line 17785 "configure"
17785 #include "confdefs.h"
17787 #ifdef HAVE_DB_185_H
17788 # include <db_185.h>
17793 #ifndef DB_VERSION_MAJOR
17794 # define DB_VERSION_MAJOR 1
17798 #define NULL ((void*)0)
17803 #if DB_VERSION_MAJOR > 1
17806 int major, minor, patch;
17808 version = db_version( &major, &minor, &patch );
17810 if( major != DB_VERSION_MAJOR ||
17811 minor < DB_VERSION_MINOR )
17813 printf("Berkeley DB version mismatch\n"
17814 "\texpected: %s\n\tgot: %s\n",
17815 DB_VERSION_STRING, version);
17821 #if DB_VERSION_MAJOR > 2
17822 db_env_create( NULL, 0 );
17823 #elif DB_VERSION_MAJOR > 1
17824 db_appexit( NULL );
17826 (void) dbopen( NULL, 0, 0, 0, NULL);
17831 if { (eval echo configure:17832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17835 echo "configure: failed program was:" >&5
17836 cat conftest.$ac_ext >&5
17846 echo "$ac_t""$ol_cv_db_db" 1>&6
17848 if test $ol_cv_db_db = yes ; then
17853 if test $ol_cv_lib_db = no ; then
17854 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17855 echo "configure:17856: checking for Berkeley DB link (-ldb3)" >&5
17856 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17857 echo $ac_n "(cached) $ac_c" 1>&6
17862 LIBS="$ol_DB_LIB $LIBS"
17864 cat > conftest.$ac_ext <<EOF
17865 #line 17866 "configure"
17866 #include "confdefs.h"
17868 #ifdef HAVE_DB_185_H
17869 # include <db_185.h>
17874 #ifndef DB_VERSION_MAJOR
17875 # define DB_VERSION_MAJOR 1
17879 #define NULL ((void*)0)
17884 #if DB_VERSION_MAJOR > 1
17887 int major, minor, patch;
17889 version = db_version( &major, &minor, &patch );
17891 if( major != DB_VERSION_MAJOR ||
17892 minor < DB_VERSION_MINOR )
17894 printf("Berkeley DB version mismatch\n"
17895 "\texpected: %s\n\tgot: %s\n",
17896 DB_VERSION_STRING, version);
17902 #if DB_VERSION_MAJOR > 2
17903 db_env_create( NULL, 0 );
17904 #elif DB_VERSION_MAJOR > 1
17905 db_appexit( NULL );
17907 (void) dbopen( NULL, 0, 0, 0, NULL);
17912 if { (eval echo configure:17913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17916 echo "configure: failed program was:" >&5
17917 cat conftest.$ac_ext >&5
17927 echo "$ac_t""$ol_cv_db_db3" 1>&6
17929 if test $ol_cv_db_db3 = yes ; then
17934 if test $ol_cv_lib_db = no ; then
17935 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17936 echo "configure:17937: checking for Berkeley DB link (-ldb-3)" >&5
17937 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17938 echo $ac_n "(cached) $ac_c" 1>&6
17943 LIBS="$ol_DB_LIB $LIBS"
17945 cat > conftest.$ac_ext <<EOF
17946 #line 17947 "configure"
17947 #include "confdefs.h"
17949 #ifdef HAVE_DB_185_H
17950 # include <db_185.h>
17955 #ifndef DB_VERSION_MAJOR
17956 # define DB_VERSION_MAJOR 1
17960 #define NULL ((void*)0)
17965 #if DB_VERSION_MAJOR > 1
17968 int major, minor, patch;
17970 version = db_version( &major, &minor, &patch );
17972 if( major != DB_VERSION_MAJOR ||
17973 minor < DB_VERSION_MINOR )
17975 printf("Berkeley DB version mismatch\n"
17976 "\texpected: %s\n\tgot: %s\n",
17977 DB_VERSION_STRING, version);
17983 #if DB_VERSION_MAJOR > 2
17984 db_env_create( NULL, 0 );
17985 #elif DB_VERSION_MAJOR > 1
17986 db_appexit( NULL );
17988 (void) dbopen( NULL, 0, 0, 0, NULL);
17993 if { (eval echo configure:17994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17997 echo "configure: failed program was:" >&5
17998 cat conftest.$ac_ext >&5
18008 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18010 if test $ol_cv_db_db_3 = yes ; then
18011 ol_cv_lib_db=-ldb-3
18015 if test $ol_cv_lib_db = no ; then
18016 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18017 echo "configure:18018: checking for Berkeley DB link (-ldb2)" >&5
18018 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18019 echo $ac_n "(cached) $ac_c" 1>&6
18024 LIBS="$ol_DB_LIB $LIBS"
18026 cat > conftest.$ac_ext <<EOF
18027 #line 18028 "configure"
18028 #include "confdefs.h"
18030 #ifdef HAVE_DB_185_H
18031 # include <db_185.h>
18036 #ifndef DB_VERSION_MAJOR
18037 # define DB_VERSION_MAJOR 1
18041 #define NULL ((void*)0)
18046 #if DB_VERSION_MAJOR > 1
18049 int major, minor, patch;
18051 version = db_version( &major, &minor, &patch );
18053 if( major != DB_VERSION_MAJOR ||
18054 minor < DB_VERSION_MINOR )
18056 printf("Berkeley DB version mismatch\n"
18057 "\texpected: %s\n\tgot: %s\n",
18058 DB_VERSION_STRING, version);
18064 #if DB_VERSION_MAJOR > 2
18065 db_env_create( NULL, 0 );
18066 #elif DB_VERSION_MAJOR > 1
18067 db_appexit( NULL );
18069 (void) dbopen( NULL, 0, 0, 0, NULL);
18074 if { (eval echo configure:18075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18078 echo "configure: failed program was:" >&5
18079 cat conftest.$ac_ext >&5
18089 echo "$ac_t""$ol_cv_db_db2" 1>&6
18091 if test $ol_cv_db_db2 = yes ; then
18096 if test $ol_cv_lib_db = no ; then
18097 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18098 echo "configure:18099: checking for Berkeley DB link (-ldb-2)" >&5
18099 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18100 echo $ac_n "(cached) $ac_c" 1>&6
18105 LIBS="$ol_DB_LIB $LIBS"
18107 cat > conftest.$ac_ext <<EOF
18108 #line 18109 "configure"
18109 #include "confdefs.h"
18111 #ifdef HAVE_DB_185_H
18112 # include <db_185.h>
18117 #ifndef DB_VERSION_MAJOR
18118 # define DB_VERSION_MAJOR 1
18122 #define NULL ((void*)0)
18127 #if DB_VERSION_MAJOR > 1
18130 int major, minor, patch;
18132 version = db_version( &major, &minor, &patch );
18134 if( major != DB_VERSION_MAJOR ||
18135 minor < DB_VERSION_MINOR )
18137 printf("Berkeley DB version mismatch\n"
18138 "\texpected: %s\n\tgot: %s\n",
18139 DB_VERSION_STRING, version);
18145 #if DB_VERSION_MAJOR > 2
18146 db_env_create( NULL, 0 );
18147 #elif DB_VERSION_MAJOR > 1
18148 db_appexit( NULL );
18150 (void) dbopen( NULL, 0, 0, 0, NULL);
18155 if { (eval echo configure:18156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18159 echo "configure: failed program was:" >&5
18160 cat conftest.$ac_ext >&5
18170 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18172 if test $ol_cv_db_db_2 = yes ; then
18173 ol_cv_lib_db=-ldb-2
18177 if test $ol_cv_lib_db = no ; then
18178 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18179 echo "configure:18180: checking for Berkeley DB link (-ldb1)" >&5
18180 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18181 echo $ac_n "(cached) $ac_c" 1>&6
18186 LIBS="$ol_DB_LIB $LIBS"
18188 cat > conftest.$ac_ext <<EOF
18189 #line 18190 "configure"
18190 #include "confdefs.h"
18192 #ifdef HAVE_DB_185_H
18193 # include <db_185.h>
18198 #ifndef DB_VERSION_MAJOR
18199 # define DB_VERSION_MAJOR 1
18203 #define NULL ((void*)0)
18208 #if DB_VERSION_MAJOR > 1
18211 int major, minor, patch;
18213 version = db_version( &major, &minor, &patch );
18215 if( major != DB_VERSION_MAJOR ||
18216 minor < DB_VERSION_MINOR )
18218 printf("Berkeley DB version mismatch\n"
18219 "\texpected: %s\n\tgot: %s\n",
18220 DB_VERSION_STRING, version);
18226 #if DB_VERSION_MAJOR > 2
18227 db_env_create( NULL, 0 );
18228 #elif DB_VERSION_MAJOR > 1
18229 db_appexit( NULL );
18231 (void) dbopen( NULL, 0, 0, 0, NULL);
18236 if { (eval echo configure:18237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18240 echo "configure: failed program was:" >&5
18241 cat conftest.$ac_ext >&5
18251 echo "$ac_t""$ol_cv_db_db1" 1>&6
18253 if test $ol_cv_db_db1 = yes ; then
18258 if test $ol_cv_lib_db = no ; then
18259 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18260 echo "configure:18261: checking for Berkeley DB link (-ldb-1)" >&5
18261 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18262 echo $ac_n "(cached) $ac_c" 1>&6
18267 LIBS="$ol_DB_LIB $LIBS"
18269 cat > conftest.$ac_ext <<EOF
18270 #line 18271 "configure"
18271 #include "confdefs.h"
18273 #ifdef HAVE_DB_185_H
18274 # include <db_185.h>
18279 #ifndef DB_VERSION_MAJOR
18280 # define DB_VERSION_MAJOR 1
18284 #define NULL ((void*)0)
18289 #if DB_VERSION_MAJOR > 1
18292 int major, minor, patch;
18294 version = db_version( &major, &minor, &patch );
18296 if( major != DB_VERSION_MAJOR ||
18297 minor < DB_VERSION_MINOR )
18299 printf("Berkeley DB version mismatch\n"
18300 "\texpected: %s\n\tgot: %s\n",
18301 DB_VERSION_STRING, version);
18307 #if DB_VERSION_MAJOR > 2
18308 db_env_create( NULL, 0 );
18309 #elif DB_VERSION_MAJOR > 1
18310 db_appexit( NULL );
18312 (void) dbopen( NULL, 0, 0, 0, NULL);
18317 if { (eval echo configure:18318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18321 echo "configure: failed program was:" >&5
18322 cat conftest.$ac_ext >&5
18332 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18334 if test $ol_cv_db_db_1 = yes ; then
18335 ol_cv_lib_db=-ldb-1
18340 if test "$ol_cv_lib_db" != no ; then
18341 ol_cv_berkeley_db=yes
18342 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18343 echo "configure:18344: checking for Berkeley DB thread support" >&5
18344 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18345 echo $ac_n "(cached) $ac_c" 1>&6
18349 if test $ol_cv_lib_db != yes ; then
18350 LIBS="$ol_cv_lib_db"
18353 if test "$cross_compiling" = yes; then
18354 ol_cv_berkeley_db_thread=cross
18356 cat > conftest.$ac_ext <<EOF
18357 #line 18358 "configure"
18358 #include "confdefs.h"
18360 #ifdef HAVE_DB_185_H
18366 #define NULL ((void *)0)
18371 u_int32_t flags = DB_CREATE |
18377 #if DB_VERSION_MAJOR > 2
18378 DB_ENV *env = NULL;
18380 rc = db_env_create( &env, 0 );
18382 flags |= DB_INIT_MPOOL;
18383 #ifdef DB_MPOOL_PRIVATE
18384 flags |= DB_MPOOL_PRIVATE;
18388 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18392 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18393 rc = env->open( env, NULL, flags, 0 );
18395 rc = env->open( env, NULL, NULL, flags, 0 );
18399 rc = env->close( env, 0 );
18403 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18409 memset( &env, '\0', sizeof(env) );
18411 rc = db_appinit( NULL, NULL, &env, flags );
18414 db_appexit( &env );
18417 unlink("__db_mpool.share");
18418 unlink("__db_lock.share");
18424 if { (eval echo configure:18425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18426 ol_cv_berkeley_db_thread=yes
18428 echo "configure: failed program was:" >&5
18429 cat conftest.$ac_ext >&5
18431 ol_cv_berkeley_db_thread=no
18439 if test $ol_cv_berkeley_db_thread != no ; then
18440 cat >> confdefs.h <<\EOF
18441 #define HAVE_BERKELEY_DB_THREAD 1
18448 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18454 if test $ol_cv_berkeley_db != no ; then
18455 cat >> confdefs.h <<\EOF
18456 #define HAVE_BERKELEY_DB 1
18460 ol_link_ldbm=berkeley
18461 ol_with_ldbm_api=berkeley
18463 if test $ol_with_ldbm_type = hash ; then
18464 cat >> confdefs.h <<\EOF
18465 #define LDBM_USE_DBHASH 1
18469 cat >> confdefs.h <<\EOF
18470 #define LDBM_USE_DBBTREE 1
18475 if test $ol_cv_lib_db != yes ; then
18476 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18481 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18482 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18483 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18484 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18485 echo "configure:18486: checking Berkeley DB version for BDB backend" >&5
18486 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18487 echo $ac_n "(cached) $ac_c" 1>&6
18490 cat > conftest.$ac_ext <<EOF
18491 #line 18492 "configure"
18492 #include "confdefs.h"
18496 /* this check could be improved */
18497 #ifndef DB_VERSION_MAJOR
18498 # define DB_VERSION_MAJOR 1
18501 /* require 4.0 or later */
18502 #if DB_VERSION_MAJOR >= 4
18503 __db_version_compat
18507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18508 egrep "__db_version_compat" >/dev/null 2>&1; then
18510 ol_cv_bdb_compat=yes
18513 ol_cv_bdb_compat=no
18519 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18522 if test $ol_cv_bdb_compat = yes ; then
18524 elif test $ol_enable_bdb = yes ; then
18525 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18531 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18532 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18533 ol_with_ldbm_api=none
18536 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18537 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18538 echo "configure:18539: checking for MDBM library" >&5
18539 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18540 echo $ac_n "(cached) $ac_c" 1>&6
18543 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18544 echo "configure:18545: checking for mdbm_set_chain" >&5
18545 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18546 echo $ac_n "(cached) $ac_c" 1>&6
18548 cat > conftest.$ac_ext <<EOF
18549 #line 18550 "configure"
18550 #include "confdefs.h"
18551 /* System header to define __stub macros and hopefully few prototypes,
18552 which can conflict with char mdbm_set_chain(); below. */
18553 #include <assert.h>
18554 /* Override any gcc2 internal prototype to avoid an error. */
18555 /* We use char because int might match the return type of a gcc2
18556 builtin and then its argument prototype would still apply. */
18557 char mdbm_set_chain();
18562 /* The GNU C library defines this for functions which it implements
18563 to always fail with ENOSYS. Some functions are actually named
18564 something starting with __ and the normal name is an alias. */
18565 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18568 f = mdbm_set_chain;
18573 if { (eval echo configure:18574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18575 eval "ac_cv_func_mdbm_set_chain=yes"
18577 echo "configure: failed program was:" >&5
18578 cat conftest.$ac_ext >&5
18580 eval "ac_cv_func_mdbm_set_chain=no"
18585 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18586 echo "$ac_t""yes" 1>&6
18589 echo "$ac_t""no" 1>&6
18591 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18592 echo "configure:18593: checking for mdbm_set_chain in -lmdbm" >&5
18593 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18594 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18595 echo $ac_n "(cached) $ac_c" 1>&6
18597 ac_save_LIBS="$LIBS"
18598 LIBS="-lmdbm $LIBS"
18599 cat > conftest.$ac_ext <<EOF
18600 #line 18601 "configure"
18601 #include "confdefs.h"
18602 /* Override any gcc2 internal prototype to avoid an error. */
18603 /* We use char because int might match the return type of a gcc2
18604 builtin and then its argument prototype would still apply. */
18605 char mdbm_set_chain();
18611 if { (eval echo configure:18612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18613 eval "ac_cv_lib_$ac_lib_var=yes"
18615 echo "configure: failed program was:" >&5
18616 cat conftest.$ac_ext >&5
18618 eval "ac_cv_lib_$ac_lib_var=no"
18621 LIBS="$ac_save_LIBS"
18624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18625 echo "$ac_t""yes" 1>&6
18626 ol_cv_lib_mdbm=-lmdbm
18628 echo "$ac_t""no" 1>&6
18639 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18642 for ac_hdr in mdbm.h
18644 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18645 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18646 echo "configure:18647: checking for $ac_hdr" >&5
18647 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18648 echo $ac_n "(cached) $ac_c" 1>&6
18650 cat > conftest.$ac_ext <<EOF
18651 #line 18652 "configure"
18652 #include "confdefs.h"
18655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18656 { (eval echo configure:18657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18658 if test -z "$ac_err"; then
18660 eval "ac_cv_header_$ac_safe=yes"
18663 echo "configure: failed program was:" >&5
18664 cat conftest.$ac_ext >&5
18666 eval "ac_cv_header_$ac_safe=no"
18670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18671 echo "$ac_t""yes" 1>&6
18672 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18673 cat >> confdefs.h <<EOF
18674 #define $ac_tr_hdr 1
18678 echo "$ac_t""no" 1>&6
18682 echo $ac_n "checking for db""... $ac_c" 1>&6
18683 echo "configure:18684: checking for db" >&5
18684 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18685 echo $ac_n "(cached) $ac_c" 1>&6
18688 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18696 echo "$ac_t""$ol_cv_mdbm" 1>&6
18697 if test $ol_cv_mdbm = yes ; then
18698 cat >> confdefs.h <<\EOF
18699 #define HAVE_MDBM 1
18705 if test $ol_cv_mdbm = yes ; then
18707 ol_with_ldbm_api=mdbm
18708 if test $ol_cv_lib_mdbm != yes ; then
18709 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18714 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18715 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18716 echo "configure:18717: checking for GDBM library" >&5
18717 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18718 echo $ac_n "(cached) $ac_c" 1>&6
18721 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18722 echo "configure:18723: checking for gdbm_open" >&5
18723 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
18724 echo $ac_n "(cached) $ac_c" 1>&6
18726 cat > conftest.$ac_ext <<EOF
18727 #line 18728 "configure"
18728 #include "confdefs.h"
18729 /* System header to define __stub macros and hopefully few prototypes,
18730 which can conflict with char gdbm_open(); below. */
18731 #include <assert.h>
18732 /* Override any gcc2 internal prototype to avoid an error. */
18733 /* We use char because int might match the return type of a gcc2
18734 builtin and then its argument prototype would still apply. */
18740 /* The GNU C library defines this for functions which it implements
18741 to always fail with ENOSYS. Some functions are actually named
18742 something starting with __ and the normal name is an alias. */
18743 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18751 if { (eval echo configure:18752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18753 eval "ac_cv_func_gdbm_open=yes"
18755 echo "configure: failed program was:" >&5
18756 cat conftest.$ac_ext >&5
18758 eval "ac_cv_func_gdbm_open=no"
18763 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18764 echo "$ac_t""yes" 1>&6
18767 echo "$ac_t""no" 1>&6
18769 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18770 echo "configure:18771: checking for gdbm_open in -lgdbm" >&5
18771 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18772 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18773 echo $ac_n "(cached) $ac_c" 1>&6
18775 ac_save_LIBS="$LIBS"
18776 LIBS="-lgdbm $LIBS"
18777 cat > conftest.$ac_ext <<EOF
18778 #line 18779 "configure"
18779 #include "confdefs.h"
18780 /* Override any gcc2 internal prototype to avoid an error. */
18781 /* We use char because int might match the return type of a gcc2
18782 builtin and then its argument prototype would still apply. */
18789 if { (eval echo configure:18790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18791 eval "ac_cv_lib_$ac_lib_var=yes"
18793 echo "configure: failed program was:" >&5
18794 cat conftest.$ac_ext >&5
18796 eval "ac_cv_lib_$ac_lib_var=no"
18799 LIBS="$ac_save_LIBS"
18802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18803 echo "$ac_t""yes" 1>&6
18804 ol_cv_lib_gdbm=-lgdbm
18806 echo "$ac_t""no" 1>&6
18817 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18820 for ac_hdr in gdbm.h
18822 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18823 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18824 echo "configure:18825: checking for $ac_hdr" >&5
18825 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18826 echo $ac_n "(cached) $ac_c" 1>&6
18828 cat > conftest.$ac_ext <<EOF
18829 #line 18830 "configure"
18830 #include "confdefs.h"
18833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18834 { (eval echo configure:18835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18836 if test -z "$ac_err"; then
18838 eval "ac_cv_header_$ac_safe=yes"
18841 echo "configure: failed program was:" >&5
18842 cat conftest.$ac_ext >&5
18844 eval "ac_cv_header_$ac_safe=no"
18848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18849 echo "$ac_t""yes" 1>&6
18850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18851 cat >> confdefs.h <<EOF
18852 #define $ac_tr_hdr 1
18856 echo "$ac_t""no" 1>&6
18860 echo $ac_n "checking for db""... $ac_c" 1>&6
18861 echo "configure:18862: checking for db" >&5
18862 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18863 echo $ac_n "(cached) $ac_c" 1>&6
18866 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18874 echo "$ac_t""$ol_cv_gdbm" 1>&6
18875 if test $ol_cv_gdbm = yes ; then
18876 cat >> confdefs.h <<\EOF
18877 #define HAVE_GDBM 1
18883 if test $ol_cv_gdbm = yes ; then
18885 ol_with_ldbm_api=gdbm
18887 if test $ol_cv_lib_gdbm != yes ; then
18888 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
18893 if test $ol_with_ldbm_api = ndbm ; then
18894 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
18895 echo "configure:18896: checking for NDBM library" >&5
18896 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
18897 echo $ac_n "(cached) $ac_c" 1>&6
18900 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
18901 echo "configure:18902: checking for dbm_open" >&5
18902 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
18903 echo $ac_n "(cached) $ac_c" 1>&6
18905 cat > conftest.$ac_ext <<EOF
18906 #line 18907 "configure"
18907 #include "confdefs.h"
18908 /* System header to define __stub macros and hopefully few prototypes,
18909 which can conflict with char dbm_open(); below. */
18910 #include <assert.h>
18911 /* Override any gcc2 internal prototype to avoid an error. */
18912 /* We use char because int might match the return type of a gcc2
18913 builtin and then its argument prototype would still apply. */
18919 /* The GNU C library defines this for functions which it implements
18920 to always fail with ENOSYS. Some functions are actually named
18921 something starting with __ and the normal name is an alias. */
18922 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
18930 if { (eval echo configure:18931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18932 eval "ac_cv_func_dbm_open=yes"
18934 echo "configure: failed program was:" >&5
18935 cat conftest.$ac_ext >&5
18937 eval "ac_cv_func_dbm_open=no"
18942 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
18943 echo "$ac_t""yes" 1>&6
18946 echo "$ac_t""no" 1>&6
18948 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
18949 echo "configure:18950: checking for dbm_open in -lndbm" >&5
18950 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18951 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18952 echo $ac_n "(cached) $ac_c" 1>&6
18954 ac_save_LIBS="$LIBS"
18955 LIBS="-lndbm $LIBS"
18956 cat > conftest.$ac_ext <<EOF
18957 #line 18958 "configure"
18958 #include "confdefs.h"
18959 /* Override any gcc2 internal prototype to avoid an error. */
18960 /* We use char because int might match the return type of a gcc2
18961 builtin and then its argument prototype would still apply. */
18968 if { (eval echo configure:18969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18970 eval "ac_cv_lib_$ac_lib_var=yes"
18972 echo "configure: failed program was:" >&5
18973 cat conftest.$ac_ext >&5
18975 eval "ac_cv_lib_$ac_lib_var=no"
18978 LIBS="$ac_save_LIBS"
18981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18982 echo "$ac_t""yes" 1>&6
18983 ol_cv_lib_ndbm=-lndbm
18985 echo "$ac_t""no" 1>&6
18987 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
18988 echo "configure:18989: checking for dbm_open in -ldbm" >&5
18989 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18990 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18991 echo $ac_n "(cached) $ac_c" 1>&6
18993 ac_save_LIBS="$LIBS"
18995 cat > conftest.$ac_ext <<EOF
18996 #line 18997 "configure"
18997 #include "confdefs.h"
18998 /* Override any gcc2 internal prototype to avoid an error. */
18999 /* We use char because int might match the return type of a gcc2
19000 builtin and then its argument prototype would still apply. */
19007 if { (eval echo configure:19008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19009 eval "ac_cv_lib_$ac_lib_var=yes"
19011 echo "configure: failed program was:" >&5
19012 cat conftest.$ac_ext >&5
19014 eval "ac_cv_lib_$ac_lib_var=no"
19017 LIBS="$ac_save_LIBS"
19020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19021 echo "$ac_t""yes" 1>&6
19022 ol_cv_lib_ndbm=-ldbm
19024 echo "$ac_t""no" 1>&6
19037 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19040 for ac_hdr in ndbm.h
19042 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19044 echo "configure:19045: checking for $ac_hdr" >&5
19045 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19046 echo $ac_n "(cached) $ac_c" 1>&6
19048 cat > conftest.$ac_ext <<EOF
19049 #line 19050 "configure"
19050 #include "confdefs.h"
19053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19054 { (eval echo configure:19055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19056 if test -z "$ac_err"; then
19058 eval "ac_cv_header_$ac_safe=yes"
19061 echo "configure: failed program was:" >&5
19062 cat conftest.$ac_ext >&5
19064 eval "ac_cv_header_$ac_safe=no"
19068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19069 echo "$ac_t""yes" 1>&6
19070 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19071 cat >> confdefs.h <<EOF
19072 #define $ac_tr_hdr 1
19076 echo "$ac_t""no" 1>&6
19080 echo $ac_n "checking for db""... $ac_c" 1>&6
19081 echo "configure:19082: checking for db" >&5
19082 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19083 echo $ac_n "(cached) $ac_c" 1>&6
19086 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19094 echo "$ac_t""$ol_cv_ndbm" 1>&6
19095 if test $ol_cv_ndbm = yes ; then
19096 cat >> confdefs.h <<\EOF
19097 #define HAVE_NDBM 1
19103 if test $ol_cv_ndbm = yes ; then
19105 ol_with_ldbm_api=ndbm
19107 if test $ol_cv_lib_ndbm != yes ; then
19108 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19113 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19114 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19115 if test $ol_enable_ldbm = yes ; then
19116 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19119 echo "configure: warning: disabling LDBM" 1>&2
19123 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19124 BUILD_LIBS_DYNAMIC=shared
19125 cat >> confdefs.h <<\EOF
19126 #define LDAP_LIBS_DYNAMIC 1
19130 BUILD_LIBS_DYNAMIC=static
19133 if test $ol_enable_wrappers != no ; then
19134 for ac_hdr in tcpd.h
19136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19138 echo "configure:19139: checking for $ac_hdr" >&5
19139 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19140 echo $ac_n "(cached) $ac_c" 1>&6
19142 cat > conftest.$ac_ext <<EOF
19143 #line 19144 "configure"
19144 #include "confdefs.h"
19147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19148 { (eval echo configure:19149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19150 if test -z "$ac_err"; then
19152 eval "ac_cv_header_$ac_safe=yes"
19155 echo "configure: failed program was:" >&5
19156 cat conftest.$ac_ext >&5
19158 eval "ac_cv_header_$ac_safe=no"
19162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19163 echo "$ac_t""yes" 1>&6
19164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19165 cat >> confdefs.h <<EOF
19166 #define $ac_tr_hdr 1
19169 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19170 echo "configure:19171: checking for TCP wrappers library" >&5
19172 LIBS="$LIBS -lwrap"
19173 cat > conftest.$ac_ext <<EOF
19174 #line 19175 "configure"
19175 #include "confdefs.h"
19178 int allow_severity = 0;
19179 int deny_severity = 0;
19181 struct request_info *req;
19189 if { (eval echo configure:19190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19191 echo "$ac_t""-lwrap" 1>&6
19195 echo "configure: failed program was:" >&5
19196 cat conftest.$ac_ext >&5
19200 cat > conftest.$ac_ext <<EOF
19201 #line 19202 "configure"
19202 #include "confdefs.h"
19205 int allow_severity = 0;
19206 int deny_severity = 0;
19208 struct request_info *req;
19216 if { (eval echo configure:19217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19218 echo "$ac_t""-lwrap -lnsl" 1>&6
19220 LIBS="$save_LIBS -lnsl"
19222 echo "configure: failed program was:" >&5
19223 cat conftest.$ac_ext >&5
19226 echo "$ac_t""no" 1>&6
19234 echo "$ac_t""no" 1>&6
19240 if test $have_wrappers = yes ; then
19241 cat >> confdefs.h <<\EOF
19242 #define HAVE_TCPD 1
19246 elif test $ol_enable_wrappers = yes ; then
19247 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19249 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19254 if test $ol_enable_syslog != no ; then
19255 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19256 echo "configure:19257: checking for openlog" >&5
19257 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19258 echo $ac_n "(cached) $ac_c" 1>&6
19260 cat > conftest.$ac_ext <<EOF
19261 #line 19262 "configure"
19262 #include "confdefs.h"
19263 /* System header to define __stub macros and hopefully few prototypes,
19264 which can conflict with char openlog(); below. */
19265 #include <assert.h>
19266 /* Override any gcc2 internal prototype to avoid an error. */
19267 /* We use char because int might match the return type of a gcc2
19268 builtin and then its argument prototype would still apply. */
19274 /* The GNU C library defines this for functions which it implements
19275 to always fail with ENOSYS. Some functions are actually named
19276 something starting with __ and the normal name is an alias. */
19277 #if defined (__stub_openlog) || defined (__stub___openlog)
19285 if { (eval echo configure:19286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19287 eval "ac_cv_func_openlog=yes"
19289 echo "configure: failed program was:" >&5
19290 cat conftest.$ac_ext >&5
19292 eval "ac_cv_func_openlog=no"
19297 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19298 echo "$ac_t""yes" 1>&6
19301 echo "$ac_t""no" 1>&6
19304 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19305 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19307 ol_enable_syslog=$ac_cv_func_openlog
19312 if test $ol_enable_sql != no ; then
19313 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19314 echo "configure:19315: checking for SQLDriverConnect in -liodbc" >&5
19315 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19316 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19317 echo $ac_n "(cached) $ac_c" 1>&6
19319 ac_save_LIBS="$LIBS"
19320 LIBS="-liodbc $LIBS"
19321 cat > conftest.$ac_ext <<EOF
19322 #line 19323 "configure"
19323 #include "confdefs.h"
19324 /* Override any gcc2 internal prototype to avoid an error. */
19325 /* We use char because int might match the return type of a gcc2
19326 builtin and then its argument prototype would still apply. */
19327 char SQLDriverConnect();
19333 if { (eval echo configure:19334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19335 eval "ac_cv_lib_$ac_lib_var=yes"
19337 echo "configure: failed program was:" >&5
19338 cat conftest.$ac_ext >&5
19340 eval "ac_cv_lib_$ac_lib_var=no"
19343 LIBS="$ac_save_LIBS"
19346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19347 echo "$ac_t""yes" 1>&6
19350 echo "$ac_t""no" 1>&6
19354 if test $have_iodbc = yes ; then
19355 ol_link_sql="-liodbc"
19357 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19358 echo "configure:19359: checking for SQLDriverConnect in -lodbc" >&5
19359 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19360 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19361 echo $ac_n "(cached) $ac_c" 1>&6
19363 ac_save_LIBS="$LIBS"
19364 LIBS="-lodbc $LIBS"
19365 cat > conftest.$ac_ext <<EOF
19366 #line 19367 "configure"
19367 #include "confdefs.h"
19368 /* Override any gcc2 internal prototype to avoid an error. */
19369 /* We use char because int might match the return type of a gcc2
19370 builtin and then its argument prototype would still apply. */
19371 char SQLDriverConnect();
19377 if { (eval echo configure:19378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19379 eval "ac_cv_lib_$ac_lib_var=yes"
19381 echo "configure: failed program was:" >&5
19382 cat conftest.$ac_ext >&5
19384 eval "ac_cv_lib_$ac_lib_var=no"
19387 LIBS="$ac_save_LIBS"
19390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19391 echo "$ac_t""yes" 1>&6
19394 echo "$ac_t""no" 1>&6
19398 if test $have_odbc = yes ; then
19399 ol_link_sql="-lodbc"
19403 if test $ol_link_sql != no ; then
19404 SLAPD_SQL_LIBS="$ol_link_sql"
19406 elif test $ol_enable_sql != auto ; then
19407 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19412 for ac_hdr in termcap.h ncurses.h
19414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19416 echo "configure:19417: checking for $ac_hdr" >&5
19417 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19418 echo $ac_n "(cached) $ac_c" 1>&6
19420 cat > conftest.$ac_ext <<EOF
19421 #line 19422 "configure"
19422 #include "confdefs.h"
19425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19426 { (eval echo configure:19427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19428 if test -z "$ac_err"; then
19430 eval "ac_cv_header_$ac_safe=yes"
19433 echo "configure: failed program was:" >&5
19434 cat conftest.$ac_ext >&5
19436 eval "ac_cv_header_$ac_safe=no"
19440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19441 echo "$ac_t""yes" 1>&6
19442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19443 cat >> confdefs.h <<EOF
19444 #define $ac_tr_hdr 1
19448 echo "$ac_t""no" 1>&6
19453 if test $ol_link_termcap = no ; then
19454 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19455 echo "configure:19456: checking for tputs in -ltermcap" >&5
19456 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19457 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19458 echo $ac_n "(cached) $ac_c" 1>&6
19460 ac_save_LIBS="$LIBS"
19461 LIBS="-ltermcap $LIBS"
19462 cat > conftest.$ac_ext <<EOF
19463 #line 19464 "configure"
19464 #include "confdefs.h"
19465 /* Override any gcc2 internal prototype to avoid an error. */
19466 /* We use char because int might match the return type of a gcc2
19467 builtin and then its argument prototype would still apply. */
19474 if { (eval echo configure:19475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19476 eval "ac_cv_lib_$ac_lib_var=yes"
19478 echo "configure: failed program was:" >&5
19479 cat conftest.$ac_ext >&5
19481 eval "ac_cv_lib_$ac_lib_var=no"
19484 LIBS="$ac_save_LIBS"
19487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19488 echo "$ac_t""yes" 1>&6
19491 echo "$ac_t""no" 1>&6
19495 if test $have_termcap = yes ; then
19496 cat >> confdefs.h <<\EOF
19497 #define HAVE_TERMCAP 1
19500 ol_link_termcap=yes
19501 TERMCAP_LIBS=-ltermcap
19505 if test $ol_link_termcap = no ; then
19506 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19507 echo "configure:19508: checking for initscr in -lncurses" >&5
19508 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19509 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19510 echo $ac_n "(cached) $ac_c" 1>&6
19512 ac_save_LIBS="$LIBS"
19513 LIBS="-lncurses $LIBS"
19514 cat > conftest.$ac_ext <<EOF
19515 #line 19516 "configure"
19516 #include "confdefs.h"
19517 /* Override any gcc2 internal prototype to avoid an error. */
19518 /* We use char because int might match the return type of a gcc2
19519 builtin and then its argument prototype would still apply. */
19526 if { (eval echo configure:19527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19528 eval "ac_cv_lib_$ac_lib_var=yes"
19530 echo "configure: failed program was:" >&5
19531 cat conftest.$ac_ext >&5
19533 eval "ac_cv_lib_$ac_lib_var=no"
19536 LIBS="$ac_save_LIBS"
19539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19540 echo "$ac_t""yes" 1>&6
19543 echo "$ac_t""no" 1>&6
19547 if test $have_ncurses = yes ; then
19548 cat >> confdefs.h <<\EOF
19549 #define HAVE_NCURSES 1
19552 ol_link_termcap=yes
19553 TERMCAP_LIBS=-lncurses
19557 if test $ol_link_termcap = no ; then
19558 cat >> confdefs.h <<\EOF
19559 #define NO_TERMCAP 1
19567 if test $ol_with_cyrus_sasl != no ; then
19568 for ac_hdr in sasl/sasl.h sasl.h
19570 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19571 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19572 echo "configure:19573: checking for $ac_hdr" >&5
19573 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19574 echo $ac_n "(cached) $ac_c" 1>&6
19576 cat > conftest.$ac_ext <<EOF
19577 #line 19578 "configure"
19578 #include "confdefs.h"
19581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19582 { (eval echo configure:19583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19584 if test -z "$ac_err"; then
19586 eval "ac_cv_header_$ac_safe=yes"
19589 echo "configure: failed program was:" >&5
19590 cat conftest.$ac_ext >&5
19592 eval "ac_cv_header_$ac_safe=no"
19596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19597 echo "$ac_t""yes" 1>&6
19598 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19599 cat >> confdefs.h <<EOF
19600 #define $ac_tr_hdr 1
19604 echo "$ac_t""no" 1>&6
19609 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
19610 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19611 echo "configure:19612: checking for sasl_client_init in -lsasl2" >&5
19612 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19613 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19614 echo $ac_n "(cached) $ac_c" 1>&6
19616 ac_save_LIBS="$LIBS"
19617 LIBS="-lsasl2 $LIBS"
19618 cat > conftest.$ac_ext <<EOF
19619 #line 19620 "configure"
19620 #include "confdefs.h"
19621 /* Override any gcc2 internal prototype to avoid an error. */
19622 /* We use char because int might match the return type of a gcc2
19623 builtin and then its argument prototype would still apply. */
19624 char sasl_client_init();
19630 if { (eval echo configure:19631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19632 eval "ac_cv_lib_$ac_lib_var=yes"
19634 echo "configure: failed program was:" >&5
19635 cat conftest.$ac_ext >&5
19637 eval "ac_cv_lib_$ac_lib_var=no"
19640 LIBS="$ac_save_LIBS"
19643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19644 echo "$ac_t""yes" 1>&6
19645 ol_link_sasl="-lsasl2"
19647 echo "$ac_t""no" 1>&6
19648 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19649 echo "configure:19650: checking for sasl_client_init in -lsasl" >&5
19650 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19651 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19652 echo $ac_n "(cached) $ac_c" 1>&6
19654 ac_save_LIBS="$LIBS"
19655 LIBS="-lsasl $LIBS"
19656 cat > conftest.$ac_ext <<EOF
19657 #line 19658 "configure"
19658 #include "confdefs.h"
19659 /* Override any gcc2 internal prototype to avoid an error. */
19660 /* We use char because int might match the return type of a gcc2
19661 builtin and then its argument prototype would still apply. */
19662 char sasl_client_init();
19668 if { (eval echo configure:19669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19670 eval "ac_cv_lib_$ac_lib_var=yes"
19672 echo "configure: failed program was:" >&5
19673 cat conftest.$ac_ext >&5
19675 eval "ac_cv_lib_$ac_lib_var=no"
19678 LIBS="$ac_save_LIBS"
19681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19682 echo "$ac_t""yes" 1>&6
19683 ol_link_sasl="-lsasl"
19685 echo "$ac_t""no" 1>&6
19692 if test $ol_link_sasl = no ; then
19693 if test $ol_with_cyrus_sasl != auto ; then
19694 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19696 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19697 echo "configure: warning: SASL authentication not supported!" 1>&2
19698 if test $ol_link_tls = no ; then
19699 echo "configure: warning: Strong authentication not supported!" 1>&2
19703 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
19704 echo "configure:19705: checking Cyrus SASL library version" >&5
19705 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
19706 echo $ac_n "(cached) $ac_c" 1>&6
19709 cat > conftest.$ac_ext <<EOF
19710 #line 19711 "configure"
19711 #include "confdefs.h"
19713 #ifdef HAVE_SASL_SASL_H
19714 #include <sasl/sasl.h>
19719 /* require 2.1.3 or later */
19720 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
19721 char *__sasl_compat = "1.5.x okay";
19722 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
19723 __sasl_compat "2.2+ or better okay (we guess)";
19724 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
19725 && SASL_VERSION_STEP >=3
19726 __sasl_compat = "2.1.3+ or better okay";
19730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19731 egrep "__sasl_compat" >/dev/null 2>&1; then
19733 ol_cv_sasl_compat=yes
19736 ol_cv_sasl_compat=no
19742 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
19744 if test $ol_cv_sasl_compat = no ; then
19746 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
19749 cat >> confdefs.h <<\EOF
19750 #define HAVE_CYRUS_SASL 1
19753 SASL_LIBS="$ol_link_sasl"
19754 if test $ol_enable_spasswd != no ; then
19755 ol_link_spasswd=yes
19758 ac_save_LIBS="$LIBS"
19759 LIBS="$LIBS $ol_link_sasl"
19760 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
19761 echo "configure:19762: checking for sasl_version" >&5
19762 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
19763 echo $ac_n "(cached) $ac_c" 1>&6
19765 cat > conftest.$ac_ext <<EOF
19766 #line 19767 "configure"
19767 #include "confdefs.h"
19768 /* System header to define __stub macros and hopefully few prototypes,
19769 which can conflict with char sasl_version(); below. */
19770 #include <assert.h>
19771 /* Override any gcc2 internal prototype to avoid an error. */
19772 /* We use char because int might match the return type of a gcc2
19773 builtin and then its argument prototype would still apply. */
19774 char sasl_version();
19779 /* The GNU C library defines this for functions which it implements
19780 to always fail with ENOSYS. Some functions are actually named
19781 something starting with __ and the normal name is an alias. */
19782 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
19790 if { (eval echo configure:19791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19792 eval "ac_cv_func_sasl_version=yes"
19794 echo "configure: failed program was:" >&5
19795 cat conftest.$ac_ext >&5
19797 eval "ac_cv_func_sasl_version=no"
19802 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
19803 echo "$ac_t""yes" 1>&6
19804 cat >> confdefs.h <<\EOF
19805 #define HAVE_SASL_VERSION 1
19809 echo "$ac_t""no" 1>&6
19812 LIBS="$ac_save_LIBS"
19816 echo "configure: warning: SASL authentication not supported!" 1>&2
19817 if test $ol_link_tls = no ; then
19818 echo "configure: warning: Strong authentication not supported!" 1>&2
19822 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
19824 if test -r /dev/urandom ; then
19825 dev="/dev/urandom";
19826 elif test -r /idev/urandom ; then
19827 dev="/idev/urandom";
19828 elif test -r /dev/srandom ; then
19829 dev="/dev/srandom";
19830 elif test -r /dev/random ; then
19832 elif test -r /idev/random ; then
19833 dev="/idev/random";
19836 if test $dev != no ; then
19837 cat >> confdefs.h <<EOF
19838 #define URANDOM_DEVICE "$dev"
19845 if test $ol_with_fetch != no ; then
19847 LIBS="-lfetch -lcom_err $LIBS"
19848 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
19849 echo "configure:19850: checking fetch(3) library" >&5
19850 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
19851 echo $ac_n "(cached) $ac_c" 1>&6
19854 cat > conftest.$ac_ext <<EOF
19855 #line 19856 "configure"
19856 #include "confdefs.h"
19858 #include <sys/param.h>
19862 struct url *u = fetchParseURL("file:///");
19865 if { (eval echo configure:19866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19867 ol_cv_lib_fetch=yes
19869 echo "configure: failed program was:" >&5
19870 cat conftest.$ac_ext >&5
19877 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
19879 if test $ol_cv_lib_fetch != no ; then
19880 ol_link_fetch="-lfetch -lcom_err"
19881 cat >> confdefs.h <<\EOF
19882 #define HAVE_FETCH 1
19888 if test $ol_cv_lib_fetch != no ; then
19889 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
19890 ol_link_fetch=freebsd
19892 elif test $ol_with_fetch != auto ; then
19893 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
19897 ol_link_readline=no
19898 if test $ol_with_readline != no ; then
19899 for ac_hdr in readline/readline.h readline/history.h
19901 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19902 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19903 echo "configure:19904: checking for $ac_hdr" >&5
19904 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19905 echo $ac_n "(cached) $ac_c" 1>&6
19907 cat > conftest.$ac_ext <<EOF
19908 #line 19909 "configure"
19909 #include "confdefs.h"
19912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19913 { (eval echo configure:19914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19915 if test -z "$ac_err"; then
19917 eval "ac_cv_header_$ac_safe=yes"
19920 echo "configure: failed program was:" >&5
19921 cat conftest.$ac_ext >&5
19923 eval "ac_cv_header_$ac_safe=no"
19927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19928 echo "$ac_t""yes" 1>&6
19929 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19930 cat >> confdefs.h <<EOF
19931 #define $ac_tr_hdr 1
19935 echo "$ac_t""no" 1>&6
19940 if test $ac_cv_header_readline_readline_h = yes ; then
19942 LIBS="$TERMCAP_LIBS $LIBS"
19943 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
19944 echo "configure:19945: checking for readline in -lreadline" >&5
19945 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
19946 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19947 echo $ac_n "(cached) $ac_c" 1>&6
19949 ac_save_LIBS="$LIBS"
19950 LIBS="-lreadline $LIBS"
19951 cat > conftest.$ac_ext <<EOF
19952 #line 19953 "configure"
19953 #include "confdefs.h"
19954 /* Override any gcc2 internal prototype to avoid an error. */
19955 /* We use char because int might match the return type of a gcc2
19956 builtin and then its argument prototype would still apply. */
19963 if { (eval echo configure:19964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19965 eval "ac_cv_lib_$ac_lib_var=yes"
19967 echo "configure: failed program was:" >&5
19968 cat conftest.$ac_ext >&5
19970 eval "ac_cv_lib_$ac_lib_var=no"
19973 LIBS="$ac_save_LIBS"
19976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19977 echo "$ac_t""yes" 1>&6
19980 echo "$ac_t""no" 1>&6
19986 if test $have_readline = yes ; then
19987 ol_with_readline=found
19988 ol_link_readline=yes
19990 READLINE_LIBS="-lreadline"
19995 if test $ol_link_readline = yes ; then
19996 cat >> confdefs.h <<\EOF
19997 #define HAVE_READLINE 1
20003 if test $ol_enable_crypt != no ; then
20004 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20005 echo "configure:20006: checking for crypt" >&5
20006 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20007 echo $ac_n "(cached) $ac_c" 1>&6
20009 cat > conftest.$ac_ext <<EOF
20010 #line 20011 "configure"
20011 #include "confdefs.h"
20012 /* System header to define __stub macros and hopefully few prototypes,
20013 which can conflict with char crypt(); below. */
20014 #include <assert.h>
20015 /* Override any gcc2 internal prototype to avoid an error. */
20016 /* We use char because int might match the return type of a gcc2
20017 builtin and then its argument prototype would still apply. */
20023 /* The GNU C library defines this for functions which it implements
20024 to always fail with ENOSYS. Some functions are actually named
20025 something starting with __ and the normal name is an alias. */
20026 #if defined (__stub_crypt) || defined (__stub___crypt)
20034 if { (eval echo configure:20035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20036 eval "ac_cv_func_crypt=yes"
20038 echo "configure: failed program was:" >&5
20039 cat conftest.$ac_ext >&5
20041 eval "ac_cv_func_crypt=no"
20046 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20047 echo "$ac_t""yes" 1>&6
20050 echo "$ac_t""no" 1>&6
20052 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20053 echo "configure:20054: checking for crypt in -lcrypt" >&5
20054 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20055 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20056 echo $ac_n "(cached) $ac_c" 1>&6
20058 ac_save_LIBS="$LIBS"
20059 LIBS="-lcrypt $LIBS"
20060 cat > conftest.$ac_ext <<EOF
20061 #line 20062 "configure"
20062 #include "confdefs.h"
20063 /* Override any gcc2 internal prototype to avoid an error. */
20064 /* We use char because int might match the return type of a gcc2
20065 builtin and then its argument prototype would still apply. */
20072 if { (eval echo configure:20073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20074 eval "ac_cv_lib_$ac_lib_var=yes"
20076 echo "configure: failed program was:" >&5
20077 cat conftest.$ac_ext >&5
20079 eval "ac_cv_lib_$ac_lib_var=no"
20082 LIBS="$ac_save_LIBS"
20085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20086 echo "$ac_t""yes" 1>&6
20087 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20090 echo "$ac_t""no" 1>&6
20097 if test $have_crypt = yes ; then
20098 cat >> confdefs.h <<\EOF
20099 #define HAVE_CRYPT 1
20103 echo "configure: warning: could not find crypt" 1>&2
20104 if test $ol_enable_crypt = yes ; then
20105 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20108 echo "configure: warning: disabling crypt support" 1>&2
20113 if test $ol_enable_proctitle != no ; then
20114 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20115 echo "configure:20116: checking for setproctitle" >&5
20116 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20117 echo $ac_n "(cached) $ac_c" 1>&6
20119 cat > conftest.$ac_ext <<EOF
20120 #line 20121 "configure"
20121 #include "confdefs.h"
20122 /* System header to define __stub macros and hopefully few prototypes,
20123 which can conflict with char setproctitle(); below. */
20124 #include <assert.h>
20125 /* Override any gcc2 internal prototype to avoid an error. */
20126 /* We use char because int might match the return type of a gcc2
20127 builtin and then its argument prototype would still apply. */
20128 char setproctitle();
20133 /* The GNU C library defines this for functions which it implements
20134 to always fail with ENOSYS. Some functions are actually named
20135 something starting with __ and the normal name is an alias. */
20136 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20144 if { (eval echo configure:20145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20146 eval "ac_cv_func_setproctitle=yes"
20148 echo "configure: failed program was:" >&5
20149 cat conftest.$ac_ext >&5
20151 eval "ac_cv_func_setproctitle=no"
20156 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20157 echo "$ac_t""yes" 1>&6
20158 have_setproctitle=yes
20160 echo "$ac_t""no" 1>&6
20162 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20163 echo "configure:20164: checking for setproctitle in -lutil" >&5
20164 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20165 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20166 echo $ac_n "(cached) $ac_c" 1>&6
20168 ac_save_LIBS="$LIBS"
20169 LIBS="-lutil $LIBS"
20170 cat > conftest.$ac_ext <<EOF
20171 #line 20172 "configure"
20172 #include "confdefs.h"
20173 /* Override any gcc2 internal prototype to avoid an error. */
20174 /* We use char because int might match the return type of a gcc2
20175 builtin and then its argument prototype would still apply. */
20176 char setproctitle();
20182 if { (eval echo configure:20183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20184 eval "ac_cv_lib_$ac_lib_var=yes"
20186 echo "configure: failed program was:" >&5
20187 cat conftest.$ac_ext >&5
20189 eval "ac_cv_lib_$ac_lib_var=no"
20192 LIBS="$ac_save_LIBS"
20195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20196 echo "$ac_t""yes" 1>&6
20197 have_setproctitle=yes
20198 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20200 echo "$ac_t""no" 1>&6
20201 have_setproctitle=no
20202 LIBOBJS="$LIBOBJS setproctitle.o"
20203 LIBSRCS="$LIBSRCS setproctitle.c"
20209 if test $have_setproctitle = yes ; then
20210 cat >> confdefs.h <<\EOF
20211 #define HAVE_SETPROCTITLE 1
20217 if test $ol_enable_slp != no ; then
20218 for ac_hdr in slp.h
20220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20222 echo "configure:20223: checking for $ac_hdr" >&5
20223 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20224 echo $ac_n "(cached) $ac_c" 1>&6
20226 cat > conftest.$ac_ext <<EOF
20227 #line 20228 "configure"
20228 #include "confdefs.h"
20231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20232 { (eval echo configure:20233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20234 if test -z "$ac_err"; then
20236 eval "ac_cv_header_$ac_safe=yes"
20239 echo "configure: failed program was:" >&5
20240 cat conftest.$ac_ext >&5
20242 eval "ac_cv_header_$ac_safe=no"
20246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20247 echo "$ac_t""yes" 1>&6
20248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20249 cat >> confdefs.h <<EOF
20250 #define $ac_tr_hdr 1
20254 echo "$ac_t""no" 1>&6
20259 if test $ac_cv_header_slp_h = yes ; then
20260 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20261 echo "configure:20262: checking for SLPOpen in -lslp" >&5
20262 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20263 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20264 echo $ac_n "(cached) $ac_c" 1>&6
20266 ac_save_LIBS="$LIBS"
20268 cat > conftest.$ac_ext <<EOF
20269 #line 20270 "configure"
20270 #include "confdefs.h"
20271 /* Override any gcc2 internal prototype to avoid an error. */
20272 /* We use char because int might match the return type of a gcc2
20273 builtin and then its argument prototype would still apply. */
20280 if { (eval echo configure:20281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20282 eval "ac_cv_lib_$ac_lib_var=yes"
20284 echo "configure: failed program was:" >&5
20285 cat conftest.$ac_ext >&5
20287 eval "ac_cv_lib_$ac_lib_var=no"
20290 LIBS="$ac_save_LIBS"
20293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20294 echo "$ac_t""yes" 1>&6
20297 echo "$ac_t""no" 1>&6
20301 if test $have_slp = yes ; then
20302 cat >> confdefs.h <<\EOF
20306 SLAPD_SLP_LIBS=-lslp
20309 elif test $ol_enable_slp = yes ; then
20310 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20314 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20315 echo "configure:20316: checking for ANSI C header files" >&5
20316 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20317 echo $ac_n "(cached) $ac_c" 1>&6
20319 cat > conftest.$ac_ext <<EOF
20320 #line 20321 "configure"
20321 #include "confdefs.h"
20322 #include <stdlib.h>
20323 #include <stdarg.h>
20324 #include <string.h>
20327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20328 { (eval echo configure:20329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20330 if test -z "$ac_err"; then
20332 ac_cv_header_stdc=yes
20335 echo "configure: failed program was:" >&5
20336 cat conftest.$ac_ext >&5
20338 ac_cv_header_stdc=no
20342 if test $ac_cv_header_stdc = yes; then
20343 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20344 cat > conftest.$ac_ext <<EOF
20345 #line 20346 "configure"
20346 #include "confdefs.h"
20347 #include <string.h>
20349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20350 egrep "memchr" >/dev/null 2>&1; then
20354 ac_cv_header_stdc=no
20360 if test $ac_cv_header_stdc = yes; then
20361 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20362 cat > conftest.$ac_ext <<EOF
20363 #line 20364 "configure"
20364 #include "confdefs.h"
20365 #include <stdlib.h>
20367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20368 egrep "free" >/dev/null 2>&1; then
20372 ac_cv_header_stdc=no
20378 if test $ac_cv_header_stdc = yes; then
20379 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20380 if test "$cross_compiling" = yes; then
20383 cat > conftest.$ac_ext <<EOF
20384 #line 20385 "configure"
20385 #include "confdefs.h"
20387 #if ((' ' & 0x0FF) == 0x020)
20388 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20389 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20391 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20392 || ('j' <= (c) && (c) <= 'r') \
20393 || ('s' <= (c) && (c) <= 'z'))
20394 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20397 int main () { int i; for (i = 0; i < 256; i++)
20398 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20402 if { (eval echo configure:20403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20406 echo "configure: failed program was:" >&5
20407 cat conftest.$ac_ext >&5
20409 ac_cv_header_stdc=no
20417 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20418 if test $ac_cv_header_stdc = yes; then
20419 cat >> confdefs.h <<\EOF
20420 #define STDC_HEADERS 1
20425 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20426 echo "configure:20427: checking for mode_t" >&5
20427 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20428 echo $ac_n "(cached) $ac_c" 1>&6
20430 cat > conftest.$ac_ext <<EOF
20431 #line 20432 "configure"
20432 #include "confdefs.h"
20433 #include <sys/types.h>
20435 #include <stdlib.h>
20436 #include <stddef.h>
20440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20441 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20443 eval "ac_cv_type_mode_t=yes"
20446 eval "ac_cv_type_mode_t=no"
20451 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20452 echo "$ac_t""yes" 1>&6
20454 echo "$ac_t""no" 1>&6
20455 cat >> confdefs.h <<EOF
20461 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20462 echo "configure:20463: checking for off_t" >&5
20463 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20464 echo $ac_n "(cached) $ac_c" 1>&6
20466 cat > conftest.$ac_ext <<EOF
20467 #line 20468 "configure"
20468 #include "confdefs.h"
20469 #include <sys/types.h>
20471 #include <stdlib.h>
20472 #include <stddef.h>
20476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20477 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20479 eval "ac_cv_type_off_t=yes"
20482 eval "ac_cv_type_off_t=no"
20487 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20488 echo "$ac_t""yes" 1>&6
20490 echo "$ac_t""no" 1>&6
20491 cat >> confdefs.h <<EOF
20497 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20498 echo "configure:20499: checking for pid_t" >&5
20499 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20500 echo $ac_n "(cached) $ac_c" 1>&6
20502 cat > conftest.$ac_ext <<EOF
20503 #line 20504 "configure"
20504 #include "confdefs.h"
20505 #include <sys/types.h>
20507 #include <stdlib.h>
20508 #include <stddef.h>
20512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20513 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20515 eval "ac_cv_type_pid_t=yes"
20518 eval "ac_cv_type_pid_t=no"
20523 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20524 echo "$ac_t""yes" 1>&6
20526 echo "$ac_t""no" 1>&6
20527 cat >> confdefs.h <<EOF
20533 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20534 echo "configure:20535: checking for ptrdiff_t" >&5
20535 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20536 echo $ac_n "(cached) $ac_c" 1>&6
20538 cat > conftest.$ac_ext <<EOF
20539 #line 20540 "configure"
20540 #include "confdefs.h"
20541 #include <stddef.h>
20546 if { (eval echo configure:20547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20548 am_cv_type_ptrdiff_t=yes
20550 echo "configure: failed program was:" >&5
20551 cat conftest.$ac_ext >&5
20553 am_cv_type_ptrdiff_t=no
20558 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20559 if test $am_cv_type_ptrdiff_t = yes; then
20560 cat >> confdefs.h <<\EOF
20561 #define HAVE_PTRDIFF_T 1
20566 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20567 echo "configure:20568: checking return type of signal handlers" >&5
20568 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20569 echo $ac_n "(cached) $ac_c" 1>&6
20571 cat > conftest.$ac_ext <<EOF
20572 #line 20573 "configure"
20573 #include "confdefs.h"
20574 #include <sys/types.h>
20575 #include <signal.h>
20580 extern "C" void (*signal (int, void (*)(int)))(int);
20582 void (*signal ()) ();
20589 if { (eval echo configure:20590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20591 ac_cv_type_signal=void
20593 echo "configure: failed program was:" >&5
20594 cat conftest.$ac_ext >&5
20596 ac_cv_type_signal=int
20601 echo "$ac_t""$ac_cv_type_signal" 1>&6
20602 cat >> confdefs.h <<EOF
20603 #define RETSIGTYPE $ac_cv_type_signal
20607 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20608 echo "configure:20609: checking for size_t" >&5
20609 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20610 echo $ac_n "(cached) $ac_c" 1>&6
20612 cat > conftest.$ac_ext <<EOF
20613 #line 20614 "configure"
20614 #include "confdefs.h"
20615 #include <sys/types.h>
20617 #include <stdlib.h>
20618 #include <stddef.h>
20622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20623 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20625 eval "ac_cv_type_size_t=yes"
20628 eval "ac_cv_type_size_t=no"
20633 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20634 echo "$ac_t""yes" 1>&6
20636 echo "$ac_t""no" 1>&6
20637 cat >> confdefs.h <<EOF
20638 #define size_t unsigned
20644 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20645 echo "configure:20646: checking for ssize_t" >&5
20646 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20647 echo $ac_n "(cached) $ac_c" 1>&6
20649 cat > conftest.$ac_ext <<EOF
20650 #line 20651 "configure"
20651 #include "confdefs.h"
20652 #include <sys/types.h>
20654 #include <stdlib.h>
20655 #include <stddef.h>
20659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20660 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20662 eval "ac_cv_type_ssize_t=yes"
20665 eval "ac_cv_type_ssize_t=no"
20670 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20671 echo "$ac_t""yes" 1>&6
20673 echo "$ac_t""no" 1>&6
20674 cat >> confdefs.h <<EOF
20675 #define ssize_t signed int
20680 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20681 echo "configure:20682: checking for caddr_t" >&5
20682 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20683 echo $ac_n "(cached) $ac_c" 1>&6
20685 cat > conftest.$ac_ext <<EOF
20686 #line 20687 "configure"
20687 #include "confdefs.h"
20688 #include <sys/types.h>
20690 #include <stdlib.h>
20691 #include <stddef.h>
20695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20696 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20698 eval "ac_cv_type_caddr_t=yes"
20701 eval "ac_cv_type_caddr_t=no"
20706 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20707 echo "$ac_t""yes" 1>&6
20709 echo "$ac_t""no" 1>&6
20710 cat >> confdefs.h <<EOF
20711 #define caddr_t char *
20717 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20718 echo "configure:20719: checking for socklen_t" >&5
20719 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20720 echo $ac_n "(cached) $ac_c" 1>&6
20722 cat > conftest.$ac_ext <<EOF
20723 #line 20724 "configure"
20724 #include "confdefs.h"
20726 #ifdef HAVE_SYS_TYPES_H
20727 #include <sys/types.h>
20729 #ifdef HAVE_SYS_SOCKET_H
20730 #include <sys/socket.h>
20737 if { (eval echo configure:20738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20739 ol_cv_type_socklen_t=yes
20741 echo "configure: failed program was:" >&5
20742 cat conftest.$ac_ext >&5
20744 ol_cv_type_socklen_t=no
20749 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20750 if test $ol_cv_type_socklen_t = no; then
20751 cat >> confdefs.h <<\EOF
20752 #define socklen_t int
20757 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20758 echo "configure:20759: checking for member st_blksize in aggregate type struct stat" >&5
20759 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20760 echo $ac_n "(cached) $ac_c" 1>&6
20762 cat > conftest.$ac_ext <<EOF
20763 #line 20764 "configure"
20764 #include "confdefs.h"
20765 #include <sys/types.h>
20766 #include <sys/stat.h>
20768 struct stat foo; foo.st_blksize;
20771 if { (eval echo configure:20772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20773 ac_cv_c_struct_member_st_blksize=yes
20775 echo "configure: failed program was:" >&5
20776 cat conftest.$ac_ext >&5
20778 ac_cv_c_struct_member_st_blksize=no
20783 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20784 st_blksize="$ac_cv_c_struct_member_st_blksize"
20785 if test $ac_cv_c_struct_member_st_blksize = yes; then
20786 cat >> confdefs.h <<\EOF
20787 #define HAVE_ST_BLKSIZE 1
20792 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
20793 echo "configure:20794: checking whether time.h and sys/time.h may both be included" >&5
20794 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
20795 echo $ac_n "(cached) $ac_c" 1>&6
20797 cat > conftest.$ac_ext <<EOF
20798 #line 20799 "configure"
20799 #include "confdefs.h"
20800 #include <sys/types.h>
20801 #include <sys/time.h>
20807 if { (eval echo configure:20808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20809 ac_cv_header_time=yes
20811 echo "configure: failed program was:" >&5
20812 cat conftest.$ac_ext >&5
20814 ac_cv_header_time=no
20819 echo "$ac_t""$ac_cv_header_time" 1>&6
20820 if test $ac_cv_header_time = yes; then
20821 cat >> confdefs.h <<\EOF
20822 #define TIME_WITH_SYS_TIME 1
20827 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
20828 echo "configure:20829: checking whether struct tm is in sys/time.h or time.h" >&5
20829 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
20830 echo $ac_n "(cached) $ac_c" 1>&6
20832 cat > conftest.$ac_ext <<EOF
20833 #line 20834 "configure"
20834 #include "confdefs.h"
20835 #include <sys/types.h>
20838 struct tm *tp; tp->tm_sec;
20841 if { (eval echo configure:20842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20843 ac_cv_struct_tm=time.h
20845 echo "configure: failed program was:" >&5
20846 cat conftest.$ac_ext >&5
20848 ac_cv_struct_tm=sys/time.h
20853 echo "$ac_t""$ac_cv_struct_tm" 1>&6
20854 if test $ac_cv_struct_tm = sys/time.h; then
20855 cat >> confdefs.h <<\EOF
20856 #define TM_IN_SYS_TIME 1
20861 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
20862 echo "configure:20863: checking for uid_t in sys/types.h" >&5
20863 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
20864 echo $ac_n "(cached) $ac_c" 1>&6
20866 cat > conftest.$ac_ext <<EOF
20867 #line 20868 "configure"
20868 #include "confdefs.h"
20869 #include <sys/types.h>
20871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20872 egrep "uid_t" >/dev/null 2>&1; then
20874 ac_cv_type_uid_t=yes
20877 ac_cv_type_uid_t=no
20883 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
20884 if test $ac_cv_type_uid_t = no; then
20885 cat >> confdefs.h <<\EOF
20889 cat >> confdefs.h <<\EOF
20895 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
20896 echo "configure:20897: checking for sig_atomic_t" >&5
20897 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
20898 echo $ac_n "(cached) $ac_c" 1>&6
20900 cat > conftest.$ac_ext <<EOF
20901 #line 20902 "configure"
20902 #include "confdefs.h"
20903 #include <signal.h>
20905 sig_atomic_t atomic;
20908 if { (eval echo configure:20909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20910 ol_cv_type_sig_atomic_t=yes
20912 echo "configure: failed program was:" >&5
20913 cat conftest.$ac_ext >&5
20915 ol_cv_type_sig_atomic_t=no
20920 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
20921 if test $ol_cv_type_sig_atomic_t = no; then
20922 cat >> confdefs.h <<\EOF
20923 #define sig_atomic_t int
20930 # test for pw_gecos in struct passwd
20931 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
20932 echo "configure:20933: checking struct passwd for pw_gecos" >&5
20933 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
20934 echo $ac_n "(cached) $ac_c" 1>&6
20937 cat > conftest.$ac_ext <<EOF
20938 #line 20939 "configure"
20939 #include "confdefs.h"
20944 pwd.pw_gecos = pwd.pw_name;
20948 if { (eval echo configure:20949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20950 ol_cv_struct_passwd_pw_gecos=yes
20952 echo "configure: failed program was:" >&5
20953 cat conftest.$ac_ext >&5
20955 ol_cv_struct_passwd_pw_gecos=no
20960 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
20961 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
20962 cat >> confdefs.h <<\EOF
20963 #define HAVE_PW_GECOS 1
20968 # test for pw_passwd in struct passwd
20969 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
20970 echo "configure:20971: checking struct passwd for pw_passwd" >&5
20971 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
20972 echo $ac_n "(cached) $ac_c" 1>&6
20975 cat > conftest.$ac_ext <<EOF
20976 #line 20977 "configure"
20977 #include "confdefs.h"
20982 pwd.pw_passwd = pwd.pw_name;
20986 if { (eval echo configure:20987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20988 ol_cv_struct_passwd_pw_passwd=yes
20990 echo "configure: failed program was:" >&5
20991 cat conftest.$ac_ext >&5
20993 ol_cv_struct_passwd_pw_passwd=no
20998 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
20999 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21000 cat >> confdefs.h <<\EOF
21001 #define HAVE_PW_PASSWD 1
21007 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21008 echo "configure:21009: checking if toupper() requires islower()" >&5
21009 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21010 echo $ac_n "(cached) $ac_c" 1>&6
21013 if test "$cross_compiling" = yes; then
21014 ol_cv_c_upper_lower=safe
21016 cat > conftest.$ac_ext <<EOF
21017 #line 21018 "configure"
21018 #include "confdefs.h"
21023 if ('C' == toupper('C'))
21029 if { (eval echo configure:21030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21031 ol_cv_c_upper_lower=no
21033 echo "configure: failed program was:" >&5
21034 cat conftest.$ac_ext >&5
21036 ol_cv_c_upper_lower=yes
21043 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21044 if test $ol_cv_c_upper_lower != no ; then
21045 cat >> confdefs.h <<\EOF
21046 #define C_UPPER_LOWER 1
21051 echo $ac_n "checking for working const""... $ac_c" 1>&6
21052 echo "configure:21053: checking for working const" >&5
21053 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21054 echo $ac_n "(cached) $ac_c" 1>&6
21056 cat > conftest.$ac_ext <<EOF
21057 #line 21058 "configure"
21058 #include "confdefs.h"
21062 /* Ultrix mips cc rejects this. */
21063 typedef int charset[2]; const charset x;
21064 /* SunOS 4.1.1 cc rejects this. */
21065 char const *const *ccp;
21067 /* NEC SVR4.0.2 mips cc rejects this. */
21068 struct point {int x, y;};
21069 static struct point const zero = {0,0};
21070 /* AIX XL C 1.02.0.0 rejects this.
21071 It does not let you subtract one const X* pointer from another in an arm
21072 of an if-expression whose if-part is not a constant expression */
21073 const char *g = "string";
21074 ccp = &g + (g ? g-g : 0);
21075 /* HPUX 7.0 cc rejects these. */
21078 ccp = (char const *const *) p;
21079 { /* SCO 3.2v4 cc rejects this. */
21081 char const *s = 0 ? (char *) 0 : (char const *) 0;
21085 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21086 int x[] = {25, 17};
21087 const int *foo = &x[0];
21090 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21091 typedef const int *iptr;
21095 { /* AIX XL C 1.02.0.0 rejects this saying
21096 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21097 struct s { int j; const int *ap[3]; };
21098 struct s *b; b->j = 5;
21100 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21101 const int foo = 10;
21106 if { (eval echo configure:21107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21110 echo "configure: failed program was:" >&5
21111 cat conftest.$ac_ext >&5
21118 echo "$ac_t""$ac_cv_c_const" 1>&6
21119 if test $ac_cv_c_const = no; then
21120 cat >> confdefs.h <<\EOF
21126 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21127 echo "configure:21128: checking if compiler understands volatile" >&5
21128 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21129 echo $ac_n "(cached) $ac_c" 1>&6
21131 cat > conftest.$ac_ext <<EOF
21132 #line 21133 "configure"
21133 #include "confdefs.h"
21136 volatile int a; int * volatile b = x ? &y : &z;
21137 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21141 if { (eval echo configure:21142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21143 ol_cv_c_volatile=yes
21145 echo "configure: failed program was:" >&5
21146 cat conftest.$ac_ext >&5
21148 ol_cv_c_volatile=no
21153 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21154 if test $ol_cv_c_volatile = yes; then
21157 cat >> confdefs.h <<\EOF
21164 if test $cross_compiling = yes ; then
21165 cat >> confdefs.h <<\EOF
21166 #define CROSS_COMPILING 1
21170 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21171 echo "configure:21172: checking whether byte ordering is bigendian" >&5
21172 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21173 echo $ac_n "(cached) $ac_c" 1>&6
21175 ac_cv_c_bigendian=unknown
21176 # See if sys/param.h defines the BYTE_ORDER macro.
21177 cat > conftest.$ac_ext <<EOF
21178 #line 21179 "configure"
21179 #include "confdefs.h"
21180 #include <sys/types.h>
21181 #include <sys/param.h>
21184 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21185 bogus endian macros
21189 if { (eval echo configure:21190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21191 # It does; now see whether it defined to BIG_ENDIAN or not.
21192 cat > conftest.$ac_ext <<EOF
21193 #line 21194 "configure"
21194 #include "confdefs.h"
21195 #include <sys/types.h>
21196 #include <sys/param.h>
21199 #if BYTE_ORDER != BIG_ENDIAN
21204 if { (eval echo configure:21205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21206 ac_cv_c_bigendian=yes
21208 echo "configure: failed program was:" >&5
21209 cat conftest.$ac_ext >&5
21211 ac_cv_c_bigendian=no
21215 echo "configure: failed program was:" >&5
21216 cat conftest.$ac_ext >&5
21219 if test $ac_cv_c_bigendian = unknown; then
21220 if test "$cross_compiling" = yes; then
21221 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21223 cat > conftest.$ac_ext <<EOF
21224 #line 21225 "configure"
21225 #include "confdefs.h"
21227 /* Are we little or big endian? From Harbison&Steele. */
21231 char c[sizeof (long)];
21234 exit (u.c[sizeof (long) - 1] == 1);
21237 if { (eval echo configure:21238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21239 ac_cv_c_bigendian=no
21241 echo "configure: failed program was:" >&5
21242 cat conftest.$ac_ext >&5
21244 ac_cv_c_bigendian=yes
21252 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21253 if test $ac_cv_c_bigendian = yes; then
21254 cat >> confdefs.h <<\EOF
21255 #define WORDS_BIGENDIAN 1
21262 echo $ac_n "checking size of short""... $ac_c" 1>&6
21263 echo "configure:21264: checking size of short" >&5
21264 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21265 echo $ac_n "(cached) $ac_c" 1>&6
21267 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21268 cat > conftest.$ac_ext <<EOF
21269 #line 21270 "configure"
21270 #include "confdefs.h"
21271 #include "confdefs.h"
21272 #include <sys/types.h>
21276 switch (0) case 0: case (sizeof (short) == $ac_size):;
21279 if { (eval echo configure:21280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21281 ac_cv_sizeof_short=$ac_size
21283 echo "configure: failed program was:" >&5
21284 cat conftest.$ac_ext >&5
21287 if test x$ac_cv_sizeof_short != x ; then break; fi
21292 if test x$ac_cv_sizeof_short = x ; then
21293 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21295 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21296 cat >> confdefs.h <<EOF
21297 #define SIZEOF_SHORT $ac_cv_sizeof_short
21301 echo $ac_n "checking size of int""... $ac_c" 1>&6
21302 echo "configure:21303: checking size of int" >&5
21303 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21304 echo $ac_n "(cached) $ac_c" 1>&6
21306 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21307 cat > conftest.$ac_ext <<EOF
21308 #line 21309 "configure"
21309 #include "confdefs.h"
21310 #include "confdefs.h"
21311 #include <sys/types.h>
21315 switch (0) case 0: case (sizeof (int) == $ac_size):;
21318 if { (eval echo configure:21319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21320 ac_cv_sizeof_int=$ac_size
21322 echo "configure: failed program was:" >&5
21323 cat conftest.$ac_ext >&5
21326 if test x$ac_cv_sizeof_int != x ; then break; fi
21331 if test x$ac_cv_sizeof_int = x ; then
21332 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21334 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21335 cat >> confdefs.h <<EOF
21336 #define SIZEOF_INT $ac_cv_sizeof_int
21340 echo $ac_n "checking size of long""... $ac_c" 1>&6
21341 echo "configure:21342: checking size of long" >&5
21342 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21343 echo $ac_n "(cached) $ac_c" 1>&6
21345 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21346 cat > conftest.$ac_ext <<EOF
21347 #line 21348 "configure"
21348 #include "confdefs.h"
21349 #include "confdefs.h"
21350 #include <sys/types.h>
21354 switch (0) case 0: case (sizeof (long) == $ac_size):;
21357 if { (eval echo configure:21358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21359 ac_cv_sizeof_long=$ac_size
21361 echo "configure: failed program was:" >&5
21362 cat conftest.$ac_ext >&5
21365 if test x$ac_cv_sizeof_long != x ; then break; fi
21370 if test x$ac_cv_sizeof_long = x ; then
21371 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21373 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21374 cat >> confdefs.h <<EOF
21375 #define SIZEOF_LONG $ac_cv_sizeof_long
21380 if test "$ac_cv_sizeof_int" -lt 4 ; then
21381 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21383 cat >> confdefs.h <<\EOF
21384 #define LBER_INT_T long
21388 cat >> confdefs.h <<\EOF
21389 #define LBER_INT_T int
21394 cat >> confdefs.h <<\EOF
21395 #define LBER_LEN_T long
21398 cat >> confdefs.h <<\EOF
21399 #define LBER_SOCKET_T int
21402 cat >> confdefs.h <<\EOF
21403 #define LBER_TAG_T long
21407 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21408 echo "configure:21409: checking for 8-bit clean memcmp" >&5
21409 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21410 echo $ac_n "(cached) $ac_c" 1>&6
21412 if test "$cross_compiling" = yes; then
21413 ac_cv_func_memcmp_clean=no
21415 cat > conftest.$ac_ext <<EOF
21416 #line 21417 "configure"
21417 #include "confdefs.h"
21421 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21422 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21426 if { (eval echo configure:21427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21428 ac_cv_func_memcmp_clean=yes
21430 echo "configure: failed program was:" >&5
21431 cat conftest.$ac_ext >&5
21433 ac_cv_func_memcmp_clean=no
21440 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21441 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21443 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21444 echo "configure:21445: checking for strftime" >&5
21445 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21446 echo $ac_n "(cached) $ac_c" 1>&6
21448 cat > conftest.$ac_ext <<EOF
21449 #line 21450 "configure"
21450 #include "confdefs.h"
21451 /* System header to define __stub macros and hopefully few prototypes,
21452 which can conflict with char strftime(); below. */
21453 #include <assert.h>
21454 /* Override any gcc2 internal prototype to avoid an error. */
21455 /* We use char because int might match the return type of a gcc2
21456 builtin and then its argument prototype would still apply. */
21462 /* The GNU C library defines this for functions which it implements
21463 to always fail with ENOSYS. Some functions are actually named
21464 something starting with __ and the normal name is an alias. */
21465 #if defined (__stub_strftime) || defined (__stub___strftime)
21473 if { (eval echo configure:21474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21475 eval "ac_cv_func_strftime=yes"
21477 echo "configure: failed program was:" >&5
21478 cat conftest.$ac_ext >&5
21480 eval "ac_cv_func_strftime=no"
21485 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21486 echo "$ac_t""yes" 1>&6
21487 cat >> confdefs.h <<\EOF
21488 #define HAVE_STRFTIME 1
21492 echo "$ac_t""no" 1>&6
21493 # strftime is in -lintl on SCO UNIX.
21494 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21495 echo "configure:21496: checking for strftime in -lintl" >&5
21496 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21497 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21498 echo $ac_n "(cached) $ac_c" 1>&6
21500 ac_save_LIBS="$LIBS"
21501 LIBS="-lintl $LIBS"
21502 cat > conftest.$ac_ext <<EOF
21503 #line 21504 "configure"
21504 #include "confdefs.h"
21505 /* Override any gcc2 internal prototype to avoid an error. */
21506 /* We use char because int might match the return type of a gcc2
21507 builtin and then its argument prototype would still apply. */
21514 if { (eval echo configure:21515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21516 eval "ac_cv_lib_$ac_lib_var=yes"
21518 echo "configure: failed program was:" >&5
21519 cat conftest.$ac_ext >&5
21521 eval "ac_cv_lib_$ac_lib_var=no"
21524 LIBS="$ac_save_LIBS"
21527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21528 echo "$ac_t""yes" 1>&6
21529 cat >> confdefs.h <<\EOF
21530 #define HAVE_STRFTIME 1
21533 LIBS="-lintl $LIBS"
21535 echo "$ac_t""no" 1>&6
21541 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21542 echo "configure:21543: checking for inet_aton()" >&5
21543 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21544 echo $ac_n "(cached) $ac_c" 1>&6
21546 cat > conftest.$ac_ext <<EOF
21547 #line 21548 "configure"
21548 #include "confdefs.h"
21550 #ifdef HAVE_SYS_TYPES_H
21551 # include <sys/types.h>
21553 #ifdef HAVE_SYS_SOCKET_H
21554 # include <sys/socket.h>
21555 # ifdef HAVE_SYS_SELECT_H
21556 # include <sys/select.h>
21558 # include <netinet/in.h>
21559 # ifdef HAVE_ARPA_INET_H
21560 # include <arpa/inet.h>
21566 int rc = inet_aton( "255.255.255.255", &in );
21569 if { (eval echo configure:21570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21571 ol_cv_func_inet_aton=yes
21573 echo "configure: failed program was:" >&5
21574 cat conftest.$ac_ext >&5
21576 ol_cv_func_inet_aton=no
21581 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21582 if test $ol_cv_func_inet_aton != no; then
21583 cat >> confdefs.h <<\EOF
21584 #define HAVE_INET_ATON 1
21590 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21591 echo "configure:21592: checking for _spawnlp" >&5
21592 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21593 echo $ac_n "(cached) $ac_c" 1>&6
21595 cat > conftest.$ac_ext <<EOF
21596 #line 21597 "configure"
21597 #include "confdefs.h"
21598 /* System header to define __stub macros and hopefully few prototypes,
21599 which can conflict with char _spawnlp(); below. */
21600 #include <assert.h>
21601 /* Override any gcc2 internal prototype to avoid an error. */
21602 /* We use char because int might match the return type of a gcc2
21603 builtin and then its argument prototype would still apply. */
21609 /* The GNU C library defines this for functions which it implements
21610 to always fail with ENOSYS. Some functions are actually named
21611 something starting with __ and the normal name is an alias. */
21612 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21620 if { (eval echo configure:21621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21622 eval "ac_cv_func__spawnlp=yes"
21624 echo "configure: failed program was:" >&5
21625 cat conftest.$ac_ext >&5
21627 eval "ac_cv_func__spawnlp=no"
21632 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21633 echo "$ac_t""yes" 1>&6
21634 cat >> confdefs.h <<\EOF
21635 #define HAVE_SPAWNLP 1
21639 echo "$ac_t""no" 1>&6
21643 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21644 echo "configure:21645: checking for _snprintf" >&5
21645 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21646 echo $ac_n "(cached) $ac_c" 1>&6
21648 cat > conftest.$ac_ext <<EOF
21649 #line 21650 "configure"
21650 #include "confdefs.h"
21651 /* System header to define __stub macros and hopefully few prototypes,
21652 which can conflict with char _snprintf(); below. */
21653 #include <assert.h>
21654 /* Override any gcc2 internal prototype to avoid an error. */
21655 /* We use char because int might match the return type of a gcc2
21656 builtin and then its argument prototype would still apply. */
21662 /* The GNU C library defines this for functions which it implements
21663 to always fail with ENOSYS. Some functions are actually named
21664 something starting with __ and the normal name is an alias. */
21665 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21673 if { (eval echo configure:21674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21675 eval "ac_cv_func__snprintf=yes"
21677 echo "configure: failed program was:" >&5
21678 cat conftest.$ac_ext >&5
21680 eval "ac_cv_func__snprintf=no"
21685 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21686 echo "$ac_t""yes" 1>&6
21687 ac_cv_func_snprintf=yes
21688 cat >> confdefs.h <<\EOF
21689 #define snprintf _snprintf
21694 echo "$ac_t""no" 1>&6
21698 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21699 echo "configure:21700: checking for _vsnprintf" >&5
21700 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21701 echo $ac_n "(cached) $ac_c" 1>&6
21703 cat > conftest.$ac_ext <<EOF
21704 #line 21705 "configure"
21705 #include "confdefs.h"
21706 /* System header to define __stub macros and hopefully few prototypes,
21707 which can conflict with char _vsnprintf(); below. */
21708 #include <assert.h>
21709 /* Override any gcc2 internal prototype to avoid an error. */
21710 /* We use char because int might match the return type of a gcc2
21711 builtin and then its argument prototype would still apply. */
21717 /* The GNU C library defines this for functions which it implements
21718 to always fail with ENOSYS. Some functions are actually named
21719 something starting with __ and the normal name is an alias. */
21720 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21728 if { (eval echo configure:21729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21730 eval "ac_cv_func__vsnprintf=yes"
21732 echo "configure: failed program was:" >&5
21733 cat conftest.$ac_ext >&5
21735 eval "ac_cv_func__vsnprintf=no"
21740 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21741 echo "$ac_t""yes" 1>&6
21742 ac_cv_func_vsnprintf=yes
21743 cat >> confdefs.h <<\EOF
21744 #define vsnprintf _vsnprintf
21749 echo "$ac_t""no" 1>&6
21753 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21754 echo "configure:21755: checking for vprintf" >&5
21755 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
21756 echo $ac_n "(cached) $ac_c" 1>&6
21758 cat > conftest.$ac_ext <<EOF
21759 #line 21760 "configure"
21760 #include "confdefs.h"
21761 /* System header to define __stub macros and hopefully few prototypes,
21762 which can conflict with char vprintf(); below. */
21763 #include <assert.h>
21764 /* Override any gcc2 internal prototype to avoid an error. */
21765 /* We use char because int might match the return type of a gcc2
21766 builtin and then its argument prototype would still apply. */
21772 /* The GNU C library defines this for functions which it implements
21773 to always fail with ENOSYS. Some functions are actually named
21774 something starting with __ and the normal name is an alias. */
21775 #if defined (__stub_vprintf) || defined (__stub___vprintf)
21783 if { (eval echo configure:21784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21785 eval "ac_cv_func_vprintf=yes"
21787 echo "configure: failed program was:" >&5
21788 cat conftest.$ac_ext >&5
21790 eval "ac_cv_func_vprintf=no"
21795 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
21796 echo "$ac_t""yes" 1>&6
21797 cat >> confdefs.h <<\EOF
21798 #define HAVE_VPRINTF 1
21802 echo "$ac_t""no" 1>&6
21805 if test "$ac_cv_func_vprintf" != yes; then
21806 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21807 echo "configure:21808: checking for _doprnt" >&5
21808 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
21809 echo $ac_n "(cached) $ac_c" 1>&6
21811 cat > conftest.$ac_ext <<EOF
21812 #line 21813 "configure"
21813 #include "confdefs.h"
21814 /* System header to define __stub macros and hopefully few prototypes,
21815 which can conflict with char _doprnt(); below. */
21816 #include <assert.h>
21817 /* Override any gcc2 internal prototype to avoid an error. */
21818 /* We use char because int might match the return type of a gcc2
21819 builtin and then its argument prototype would still apply. */
21825 /* The GNU C library defines this for functions which it implements
21826 to always fail with ENOSYS. Some functions are actually named
21827 something starting with __ and the normal name is an alias. */
21828 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21836 if { (eval echo configure:21837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21838 eval "ac_cv_func__doprnt=yes"
21840 echo "configure: failed program was:" >&5
21841 cat conftest.$ac_ext >&5
21843 eval "ac_cv_func__doprnt=no"
21848 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
21849 echo "$ac_t""yes" 1>&6
21850 cat >> confdefs.h <<\EOF
21851 #define HAVE_DOPRNT 1
21855 echo "$ac_t""no" 1>&6
21861 if test $ac_cv_func_vprintf = yes ; then
21862 for ac_func in snprintf vsnprintf
21864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21865 echo "configure:21866: checking for $ac_func" >&5
21866 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21867 echo $ac_n "(cached) $ac_c" 1>&6
21869 cat > conftest.$ac_ext <<EOF
21870 #line 21871 "configure"
21871 #include "confdefs.h"
21872 /* System header to define __stub macros and hopefully few prototypes,
21873 which can conflict with char $ac_func(); below. */
21874 #include <assert.h>
21875 /* Override any gcc2 internal prototype to avoid an error. */
21876 /* We use char because int might match the return type of a gcc2
21877 builtin and then its argument prototype would still apply. */
21883 /* The GNU C library defines this for functions which it implements
21884 to always fail with ENOSYS. Some functions are actually named
21885 something starting with __ and the normal name is an alias. */
21886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21894 if { (eval echo configure:21895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21896 eval "ac_cv_func_$ac_func=yes"
21898 echo "configure: failed program was:" >&5
21899 cat conftest.$ac_ext >&5
21901 eval "ac_cv_func_$ac_func=no"
21906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21907 echo "$ac_t""yes" 1>&6
21908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21909 cat >> confdefs.h <<EOF
21910 #define $ac_tr_func 1
21914 echo "$ac_t""no" 1>&6
21976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21977 echo "configure:21978: checking for $ac_func" >&5
21978 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21979 echo $ac_n "(cached) $ac_c" 1>&6
21981 cat > conftest.$ac_ext <<EOF
21982 #line 21983 "configure"
21983 #include "confdefs.h"
21984 /* System header to define __stub macros and hopefully few prototypes,
21985 which can conflict with char $ac_func(); below. */
21986 #include <assert.h>
21987 /* Override any gcc2 internal prototype to avoid an error. */
21988 /* We use char because int might match the return type of a gcc2
21989 builtin and then its argument prototype would still apply. */
21995 /* The GNU C library defines this for functions which it implements
21996 to always fail with ENOSYS. Some functions are actually named
21997 something starting with __ and the normal name is an alias. */
21998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22006 if { (eval echo configure:22007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22008 eval "ac_cv_func_$ac_func=yes"
22010 echo "configure: failed program was:" >&5
22011 cat conftest.$ac_ext >&5
22013 eval "ac_cv_func_$ac_func=no"
22018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22019 echo "$ac_t""yes" 1>&6
22020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22021 cat >> confdefs.h <<EOF
22022 #define $ac_tr_func 1
22026 echo "$ac_t""no" 1>&6
22031 for ac_func in getopt
22033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22034 echo "configure:22035: checking for $ac_func" >&5
22035 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22036 echo $ac_n "(cached) $ac_c" 1>&6
22038 cat > conftest.$ac_ext <<EOF
22039 #line 22040 "configure"
22040 #include "confdefs.h"
22041 /* System header to define __stub macros and hopefully few prototypes,
22042 which can conflict with char $ac_func(); below. */
22043 #include <assert.h>
22044 /* Override any gcc2 internal prototype to avoid an error. */
22045 /* We use char because int might match the return type of a gcc2
22046 builtin and then its argument prototype would still apply. */
22052 /* The GNU C library defines this for functions which it implements
22053 to always fail with ENOSYS. Some functions are actually named
22054 something starting with __ and the normal name is an alias. */
22055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22063 if { (eval echo configure:22064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22065 eval "ac_cv_func_$ac_func=yes"
22067 echo "configure: failed program was:" >&5
22068 cat conftest.$ac_ext >&5
22070 eval "ac_cv_func_$ac_func=no"
22075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22076 echo "$ac_t""yes" 1>&6
22077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22078 cat >> confdefs.h <<EOF
22079 #define $ac_tr_func 1
22083 echo "$ac_t""no" 1>&6
22084 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22090 if test "$ac_cv_func_getopt" != yes; then
22091 LIBSRCS="$LIBSRCS getopt.c"
22093 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22094 if test "$ac_cv_func_snprintf" != yes; then
22095 cat >> confdefs.h <<\EOF
22096 #define snprintf ber_pvt_snprintf
22100 if test "$ac_cv_func_vsnprintf" != yes; then
22101 cat >> confdefs.h <<\EOF
22102 #define vsnprintf ber_pvt_vsnprintf
22108 # Check Configuration
22109 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22110 echo "configure:22111: checking declaration of sys_errlist" >&5
22111 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22112 echo $ac_n "(cached) $ac_c" 1>&6
22115 cat > conftest.$ac_ext <<EOF
22116 #line 22117 "configure"
22117 #include "confdefs.h"
22120 #include <sys/types.h>
22123 #include <stdlib.h>
22126 char *c = (char *) *sys_errlist
22129 if { (eval echo configure:22130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22131 ol_cv_dcl_sys_errlist=yes
22132 ol_cv_have_sys_errlist=yes
22134 echo "configure: failed program was:" >&5
22135 cat conftest.$ac_ext >&5
22137 ol_cv_dcl_sys_errlist=no
22142 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22144 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22145 if test $ol_cv_dcl_sys_errlist = no ; then
22146 cat >> confdefs.h <<\EOF
22147 #define DECL_SYS_ERRLIST 1
22151 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22152 echo "configure:22153: checking existence of sys_errlist" >&5
22153 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22154 echo $ac_n "(cached) $ac_c" 1>&6
22157 cat > conftest.$ac_ext <<EOF
22158 #line 22159 "configure"
22159 #include "confdefs.h"
22162 char *c = (char *) *sys_errlist
22165 if { (eval echo configure:22166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22167 ol_cv_have_sys_errlist=yes
22169 echo "configure: failed program was:" >&5
22170 cat conftest.$ac_ext >&5
22172 ol_cv_have_sys_errlist=no
22177 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22179 if test $ol_cv_have_sys_errlist = yes ; then
22180 cat >> confdefs.h <<\EOF
22181 #define HAVE_SYS_ERRLIST 1
22188 if test "$ol_enable_debug" != no ; then
22189 cat >> confdefs.h <<\EOF
22190 #define LDAP_DEBUG 1
22194 if test "$ol_enable_syslog" = yes ; then
22195 cat >> confdefs.h <<\EOF
22196 #define LDAP_SYSLOG 1
22200 if test "$ol_enable_cache" = no ; then
22201 cat >> confdefs.h <<\EOF
22202 #define LDAP_NOCACHE 1
22206 if test "$ol_link_kbind" != no ; then
22207 cat >> confdefs.h <<\EOF
22208 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22212 if test "$ol_enable_proctitle" != no ; then
22213 cat >> confdefs.h <<\EOF
22214 #define LDAP_PROCTITLE 1
22218 if test "$ol_enable_referrals" != no ; then
22219 cat >> confdefs.h <<\EOF
22220 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22224 if test "$ol_enable_local" != no; then
22225 cat >> confdefs.h <<\EOF
22226 #define LDAP_PF_LOCAL 1
22230 if test "$ol_link_ipv6" != no; then
22231 cat >> confdefs.h <<\EOF
22232 #define LDAP_PF_INET6 1
22236 if test "$ol_enable_cleartext" != no ; then
22237 cat >> confdefs.h <<\EOF
22238 #define SLAPD_CLEARTEXT 1
22242 if test "$ol_enable_crypt" != no ; then
22243 cat >> confdefs.h <<\EOF
22244 #define SLAPD_CRYPT 1
22248 if test "$ol_link_kpasswd" != no ; then
22249 cat >> confdefs.h <<\EOF
22250 #define SLAPD_KPASSWD 1
22254 if test "$ol_link_spasswd" != no ; then
22255 cat >> confdefs.h <<\EOF
22256 #define SLAPD_SPASSWD 1
22260 if test "$ol_enable_multimaster" != no ; then
22261 cat >> confdefs.h <<\EOF
22262 #define SLAPD_MULTIMASTER 1
22266 if test "$ol_enable_phonetic" != no ; then
22267 cat >> confdefs.h <<\EOF
22268 #define SLAPD_PHONETIC 1
22272 if test "$ol_enable_rlookups" != no ; then
22273 cat >> confdefs.h <<\EOF
22274 #define SLAPD_RLOOKUPS 1
22278 if test "$ol_enable_aci" != no ; then
22279 cat >> confdefs.h <<\EOF
22280 #define SLAPD_ACI_ENABLED 1
22285 if test "$ol_link_modules" != no ; then
22286 cat >> confdefs.h <<\EOF
22287 #define SLAPD_MODULES 1
22291 SLAPD_MODULES_LDFLAGS="-dlopen self"
22294 if test "$ol_enable_bdb" != no ; then
22295 cat >> confdefs.h <<\EOF
22296 #define SLAPD_BDB 1
22301 if test "$ol_with_bdb_module" != static ; then
22302 cat >> confdefs.h <<\EOF
22303 #define SLAPD_BDB_DYNAMIC 1
22307 BUILD_BDB_DYNAMIC=shared
22308 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22310 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22314 if test "$ol_link_dnssrv" != no ; then
22315 cat >> confdefs.h <<\EOF
22316 #define SLAPD_DNSSRV 1
22321 if test "$ol_with_dnssrv_module" != static ; then
22322 cat >> confdefs.h <<\EOF
22323 #define SLAPD_DNSSRV_DYNAMIC 1
22327 BUILD_DNSSRV_DYNAMIC=shared
22328 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22330 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22334 if test "$ol_enable_ldap" != no ; then
22335 cat >> confdefs.h <<\EOF
22336 #define SLAPD_LDAP 1
22341 if test "$ol_with_ldap_module" != static ; then
22342 cat >> confdefs.h <<\EOF
22343 #define SLAPD_LDAP_DYNAMIC 1
22347 BUILD_LDAP_DYNAMIC=shared
22348 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22350 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22354 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22355 cat >> confdefs.h <<\EOF
22356 #define SLAPD_LDBM 1
22361 if test "$ol_with_ldbm_module" != static ; then
22362 cat >> confdefs.h <<\EOF
22363 #define SLAPD_LDBM_DYNAMIC 1
22367 BUILD_LDBM_DYNAMIC=shared
22368 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
22370 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
22374 if test "$ol_enable_meta" != no ; then
22375 if test "$ol_enable_ldap" = no ; then
22376 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22378 if test "$ol_enable_rewrite" = no ; then
22379 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22381 cat >> confdefs.h <<\EOF
22382 #define SLAPD_META 1
22389 if test "$ol_with_meta_module" != static ; then
22390 cat >> confdefs.h <<\EOF
22391 #define SLAPD_META_DYNAMIC 1
22395 BUILD_META_DYNAMIC=shared
22396 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22398 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22402 if test "$ol_enable_monitor" != no ; then
22403 cat >> confdefs.h <<\EOF
22404 #define SLAPD_MONITOR 1
22409 if test "$ol_with_monitor_module" != static ; then
22410 cat >> confdefs.h <<\EOF
22411 #define SLAPD_MONITOR_DYNAMIC 1
22415 BUILD_MONITOR_DYNAMIC=shared
22416 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22418 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22422 if test "$ol_enable_null" != no ; then
22423 cat >> confdefs.h <<\EOF
22424 #define SLAPD_NULL 1
22429 if test "$ol_with_null_module" != static ; then
22430 cat >> confdefs.h <<\EOF
22431 #define SLAPD_NULL_DYNAMIC 1
22435 BUILD_NULL_DYNAMIC=shared
22436 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
22438 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
22442 if test "$ol_enable_passwd" != no ; then
22443 cat >> confdefs.h <<\EOF
22444 #define SLAPD_PASSWD 1
22449 if test "$ol_with_passwd_module" != static ; then
22450 cat >> confdefs.h <<\EOF
22451 #define SLAPD_PASSWD_DYNAMIC 1
22455 BUILD_PASSWD_DYNAMIC=shared
22456 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22458 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22462 if test "$ol_link_perl" != no ; then
22463 cat >> confdefs.h <<\EOF
22464 #define SLAPD_PERL 1
22469 if test "$ol_with_perl_module" != static ; then
22470 cat >> confdefs.h <<\EOF
22471 #define SLAPD_PERL_DYNAMIC 1
22475 BUILD_PERL_DYNAMIC=shared
22476 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22478 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22482 if test "$ol_enable_shell" != no ; then
22483 cat >> confdefs.h <<\EOF
22484 #define SLAPD_SHELL 1
22489 if test "$ol_with_shell_module" != static ; then
22490 cat >> confdefs.h <<\EOF
22491 #define SLAPD_SHELL_DYNAMIC 1
22495 BUILD_SHELL_DYNAMIC=shared
22496 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22498 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22502 if test "$ol_link_sql" != no ; then
22503 cat >> confdefs.h <<\EOF
22504 #define SLAPD_SQL 1
22509 if test "$ol_with_sql_module" != static; then
22510 cat >> confdefs.h <<\EOF
22511 #define SLAPD_SQL_DYNAMIC 1
22515 BUILD_SQL_DYNAMIC=shared
22516 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22518 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22522 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22523 $BUILD_SLAPD = yes ; then
22527 if test "$ol_enable_rewrite" != no ; then
22528 cat >> confdefs.h <<\EOF
22529 #define ENABLE_REWRITE 1
22537 if test "$ac_cv_mingw32" = yes ; then
22539 SLAPD_MODULES_LDFLAGS=
22544 if test -z "$SLAPD_STATIC_BACKENDS"; then
22545 SLAPD_NO_STATIC='#'
22614 # Check whether --with-xxinstall or --without-xxinstall was given.
22615 if test "${with_xxinstall+set}" = set; then
22616 withval="$with_xxinstall"
22624 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22626 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22627 # Let make expand exec_prefix.
22628 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22630 # Any assignment to VPATH causes Sun make to only execute
22631 # the first set of double-colon rules, so remove it if not needed.
22632 # If there is a colon in the path, we need to keep it.
22633 if test "x$srcdir" = x.; then
22634 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22637 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22639 DEFS=-DHAVE_CONFIG_H
22641 # Without the "./", some shells look in PATH for config.status.
22642 : ${CONFIG_STATUS=./config.status}
22644 echo creating $CONFIG_STATUS
22645 rm -f $CONFIG_STATUS
22646 cat > $CONFIG_STATUS <<EOF
22648 # Generated automatically by configure.
22649 # Run this file to recreate the current configuration.
22650 # This directory was configured as follows,
22651 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22653 # $0 $ac_configure_args
22655 # Compiler output produced by configure, useful for debugging
22656 # configure, is in ./config.log if it exists.
22658 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22661 case "\$ac_option" in
22662 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22663 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22664 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22665 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22666 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22668 -help | --help | --hel | --he | --h)
22669 echo "\$ac_cs_usage"; exit 0 ;;
22670 *) echo "\$ac_cs_usage"; exit 1 ;;
22674 ac_given_srcdir=$srcdir
22675 ac_given_INSTALL="$INSTALL"
22677 trap 'rm -fr `echo "\
22678 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22679 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22680 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22681 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22682 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22683 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22684 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22685 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22686 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22687 include/Makefile:build/top.mk:include/Makefile.in \
22688 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22689 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22690 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22691 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22692 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22693 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22694 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22695 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22696 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22697 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22698 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22699 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22700 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22701 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22702 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22703 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22704 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22705 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22706 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22707 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22708 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22709 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22710 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22711 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22712 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22713 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22714 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22715 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22716 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22718 cat >> $CONFIG_STATUS <<EOF
22720 # Protect against being on the right side of a sed subst in config.status.
22721 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22722 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22726 s%@CFLAGS@%$CFLAGS%g
22727 s%@CPPFLAGS@%$CPPFLAGS%g
22728 s%@CXXFLAGS@%$CXXFLAGS%g
22729 s%@FFLAGS@%$FFLAGS%g
22731 s%@LDFLAGS@%$LDFLAGS%g
22733 s%@exec_prefix@%$exec_prefix%g
22734 s%@prefix@%$prefix%g
22735 s%@program_transform_name@%$program_transform_name%g
22736 s%@bindir@%$bindir%g
22737 s%@sbindir@%$sbindir%g
22738 s%@libexecdir@%$libexecdir%g
22739 s%@datadir@%$datadir%g
22740 s%@sysconfdir@%$sysconfdir%g
22741 s%@sharedstatedir@%$sharedstatedir%g
22742 s%@localstatedir@%$localstatedir%g
22743 s%@libdir@%$libdir%g
22744 s%@includedir@%$includedir%g
22745 s%@oldincludedir@%$oldincludedir%g
22746 s%@infodir@%$infodir%g
22747 s%@mandir@%$mandir%g
22749 s%@host_alias@%$host_alias%g
22750 s%@host_cpu@%$host_cpu%g
22751 s%@host_vendor@%$host_vendor%g
22752 s%@host_os@%$host_os%g
22753 s%@target@%$target%g
22754 s%@target_alias@%$target_alias%g
22755 s%@target_cpu@%$target_cpu%g
22756 s%@target_vendor@%$target_vendor%g
22757 s%@target_os@%$target_os%g
22759 s%@build_alias@%$build_alias%g
22760 s%@build_cpu@%$build_cpu%g
22761 s%@build_vendor@%$build_vendor%g
22762 s%@build_os@%$build_os%g
22763 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22764 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22765 s%@INSTALL_DATA@%$INSTALL_DATA%g
22766 s%@PACKAGE@%$PACKAGE%g
22767 s%@VERSION@%$VERSION%g
22768 s%@ACLOCAL@%$ACLOCAL%g
22769 s%@AUTOCONF@%$AUTOCONF%g
22770 s%@AUTOMAKE@%$AUTOMAKE%g
22771 s%@AUTOHEADER@%$AUTOHEADER%g
22772 s%@MAKEINFO@%$MAKEINFO%g
22773 s%@install_sh@%$install_sh%g
22776 s%@AMTARFLAGS@%$AMTARFLAGS%g
22777 s%@SET_MAKE@%$SET_MAKE%g
22778 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
22779 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
22780 s%@top_builddir@%$top_builddir%g
22781 s%@ldap_subdir@%$ldap_subdir%g
22785 s%@OBJEXT@%$OBJEXT%g
22786 s%@EXEEXT@%$EXEEXT%g
22788 s%@RANLIB@%$RANLIB%g
22790 s%@DLLTOOL@%$DLLTOOL%g
22792 s%@OBJDUMP@%$OBJDUMP%g
22794 s%@LIBTOOL@%$LIBTOOL%g
22796 s%@SENDMAIL@%$SENDMAIL%g
22797 s%@EDITOR@%$EDITOR%g
22798 s%@PERLBIN@%$PERLBIN%g
22799 s%@OL_MKDEP@%$OL_MKDEP%g
22800 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
22801 s%@LIBOBJS@%$LIBOBJS%g
22802 s%@LIBSRCS@%$LIBSRCS%g
22804 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
22805 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
22806 s%@BUILD_BDB@%$BUILD_BDB%g
22807 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
22808 s%@BUILD_LDAP@%$BUILD_LDAP%g
22809 s%@BUILD_LDBM@%$BUILD_LDBM%g
22810 s%@BUILD_META@%$BUILD_META%g
22811 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
22812 s%@BUILD_NULL@%$BUILD_NULL%g
22813 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
22814 s%@BUILD_PERL@%$BUILD_PERL%g
22815 s%@BUILD_SHELL@%$BUILD_SHELL%g
22816 s%@BUILD_SQL@%$BUILD_SQL%g
22817 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
22818 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
22819 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
22820 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
22821 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
22822 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
22823 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
22824 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
22825 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
22826 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
22827 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
22828 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
22829 s%@LDAP_LIBS@%$LDAP_LIBS%g
22830 s%@LDIF_LIBS@%$LDIF_LIBS%g
22831 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
22832 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
22833 s%@LDBM_LIBS@%$LDBM_LIBS%g
22834 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
22835 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
22836 s%@WRAP_LIBS@%$WRAP_LIBS%g
22837 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
22838 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
22839 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
22840 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
22841 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
22842 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
22843 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
22844 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
22845 s%@KRB4_LIBS@%$KRB4_LIBS%g
22846 s%@KRB5_LIBS@%$KRB5_LIBS%g
22847 s%@READLINE_LIBS@%$READLINE_LIBS%g
22848 s%@SASL_LIBS@%$SASL_LIBS%g
22849 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
22850 s%@TLS_LIBS@%$TLS_LIBS%g
22851 s%@MODULES_LIBS@%$MODULES_LIBS%g
22852 s%@AUTH_LIBS@%$AUTH_LIBS%g
22853 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
22854 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
22855 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
22856 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
22861 cat >> $CONFIG_STATUS <<\EOF
22863 # Split the substitutions into bite-sized pieces for seds with
22864 # small command number limits, like on Digital OSF/1 and HP-UX.
22865 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22866 ac_file=1 # Number of current file.
22867 ac_beg=1 # First line for current file.
22868 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22871 while $ac_more_lines; do
22872 if test $ac_beg -gt 1; then
22873 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22875 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22877 if test ! -s conftest.s$ac_file; then
22878 ac_more_lines=false
22879 rm -f conftest.s$ac_file
22881 if test -z "$ac_sed_cmds"; then
22882 ac_sed_cmds="sed -f conftest.s$ac_file"
22884 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22886 ac_file=`expr $ac_file + 1`
22888 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22891 if test -z "$ac_sed_cmds"; then
22896 cat >> $CONFIG_STATUS <<EOF
22898 CONFIG_FILES=\${CONFIG_FILES-"\
22899 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22900 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22901 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22902 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22903 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22904 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22905 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22906 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22907 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22908 include/Makefile:build/top.mk:include/Makefile.in \
22909 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22910 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22911 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22912 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22913 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22914 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22915 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22916 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22917 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22918 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22919 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22920 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22921 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22922 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22923 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22924 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22925 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22926 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22927 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22928 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22929 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22930 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22931 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22932 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22933 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22934 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22935 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22936 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22939 cat >> $CONFIG_STATUS <<\EOF
22940 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22941 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22943 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22944 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22945 *) ac_file_in="${ac_file}.in" ;;
22948 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22950 # Remove last slash and all that follows it. Not all systems have dirname.
22951 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22952 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22953 # The file is in a subdirectory.
22954 test ! -d "$ac_dir" && mkdir "$ac_dir"
22955 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22956 # A "../" for each directory in $ac_dir_suffix.
22957 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22959 ac_dir_suffix= ac_dots=
22962 case "$ac_given_srcdir" in
22964 if test -z "$ac_dots"; then top_srcdir=.
22965 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22966 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22967 *) # Relative path.
22968 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22969 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22972 case "$ac_given_INSTALL" in
22973 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22974 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22977 echo creating "$ac_file"
22979 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22981 *[Mm]akefile*) ac_comsub="1i\\
22982 # $configure_input" ;;
22986 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22988 s%@configure_input@%$configure_input%g
22989 s%@srcdir@%$srcdir%g
22990 s%@top_srcdir@%$top_srcdir%g
22991 s%@INSTALL@%$INSTALL%g
22992 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22996 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22997 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22999 # ac_d sets the value in "#define NAME VALUE" lines.
23000 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23001 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23004 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23005 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23006 ac_uB='\([ ]\)%\1#\2define\3'
23009 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23010 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23011 ac_eB='$%\1#\2define\3'
23015 if test "${CONFIG_HEADERS+set}" != set; then
23017 cat >> $CONFIG_STATUS <<EOF
23018 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23020 cat >> $CONFIG_STATUS <<\EOF
23022 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23023 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23025 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23026 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23027 *) ac_file_in="${ac_file}.in" ;;
23030 echo creating $ac_file
23032 rm -f conftest.frag conftest.in conftest.out
23033 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23034 cat $ac_file_inputs > conftest.in
23038 # Transform confdefs.h into a sed script conftest.vals that substitutes
23039 # the proper values into config.h.in to produce config.h. And first:
23040 # Protect against being on the right side of a sed subst in config.status.
23041 # Protect against being in an unquoted here document in config.status.
23042 rm -f conftest.vals
23043 cat > conftest.hdr <<\EOF
23046 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23050 sed -n -f conftest.hdr confdefs.h > conftest.vals
23053 # This sed command replaces #undef with comments. This is necessary, for
23054 # example, in the case of _POSIX_SOURCE, which is predefined and required
23055 # on some systems where configure will not decide to define it.
23056 cat >> conftest.vals <<\EOF
23057 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23060 # Break up conftest.vals because some shells have a limit on
23061 # the size of here documents, and old seds have small limits too.
23063 rm -f conftest.tail
23066 ac_lines=`grep -c . conftest.vals`
23067 # grep -c gives empty output for an empty file on some AIX systems.
23068 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23069 # Write a limited-size here document to conftest.frag.
23070 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23071 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23073 sed -f conftest.frag conftest.in > conftest.out
23075 mv conftest.out conftest.in
23076 ' >> $CONFIG_STATUS
23077 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23078 rm -f conftest.vals
23079 mv conftest.tail conftest.vals
23081 rm -f conftest.vals
23083 cat >> $CONFIG_STATUS <<\EOF
23084 rm -f conftest.frag conftest.h
23085 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23086 cat conftest.in >> conftest.h
23088 if cmp -s $ac_file conftest.h 2>/dev/null; then
23089 echo "$ac_file is unchanged"
23092 # Remove last slash and all that follows it. Not all systems have dirname.
23093 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23094 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23095 # The file is in a subdirectory.
23096 test ! -d "$ac_dir" && mkdir "$ac_dir"
23099 mv conftest.h $ac_file
23104 cat >> $CONFIG_STATUS <<EOF
23107 cat >> $CONFIG_STATUS <<\EOF
23110 echo Please run \"make depend\" to build dependencies
23114 chmod +x $CONFIG_STATUS
23115 rm -fr confdefs* $ac_clean_files
23116 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1