3 # from OpenLDAP: pkg/ldap/configure.in,v 1.451 2002/12/07 18:19:26 ando 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-slapi enable installation of slapi library [no]"
94 --enable-bdb enable Berkeley DB backend [yes]"
96 --with-bdb-module module type static|dynamic [static]"
98 --enable-dnssrv enable dnssrv backend [no]"
100 --with-dnssrv-module module type static|dynamic [static]"
102 --enable-ldap enable ldap backend [no]"
104 --with-ldap-module module type static|dynamic [static]"
106 --enable-ldbm enable ldbm backend [no]"
108 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
110 --with-ldbm-module module type static|dynamic [static]"
112 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
114 --enable-meta enable metadirectory backend [no]"
116 --with-meta-module module type static|dynamic [static]"
118 --enable-monitor enable monitor backend [no]"
120 --with-monitor-module module type static|dynamic [static]"
122 --enable-null enable null backend [no]"
124 --with-null-module module type static|dynamic [static]"
126 --enable-passwd enable passwd backend [no]"
128 --with-passwd-module module type static|dynamic [static]"
130 --enable-perl enable perl backend [no]"
132 --with-perl-module module type static|dynamic [static]"
134 --enable-shell enable shell backend [no]"
136 --with-shell-module module type static|dynamic [static]"
138 --enable-sql enable sql backend [no]"
140 --with-sql-module module type static|dynamic [static]"
142 --enable-tcl enable tcl backend [no]"
144 --with-tcl-module module type static|dynamic [static]"
147 SLURPD (Replication Daemon) Options:"
149 --enable-slurpd enable building slurpd [auto]"
152 Library Generation & Linking Options"
154 --enable-static[=PKGS] build static libraries [default=yes]"
156 --enable-shared[=PKGS] build shared libraries [default=yes]"
158 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
160 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
162 # Find the correct PATH separator. Usually this is `:', but
163 # DJGPP uses `;' like DOS.
164 if test "X${PATH_SEPARATOR+set}" != Xset; then
165 UNAME=${UNAME-`uname 2>/dev/null`}
167 *-DOS) lt_cv_sys_path_separator=';' ;;
168 *) lt_cv_sys_path_separator=':' ;;
170 PATH_SEPARATOR=$lt_cv_sys_path_separator
174 # Check that we are running under the correct shell.
175 SHELL=${CONFIG_SHELL-/bin/sh}
179 # Remove one level of quotation (which was required for Make).
180 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
185 if test "X$1" = X--no-reexec; then
186 # Discard the --no-reexec flag, and continue.
188 elif test "X$1" = X--fallback-echo; then
189 # Avoid inline document here, it may be left over
191 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
192 # Yippee, $echo works!
195 # Restart under the correct shell.
196 exec $SHELL "$0" --no-reexec ${1+"$@"}
199 if test "X$1" = X--fallback-echo; then
200 # used as fallback echo
208 # The HP-UX ksh and POSIX shell print the target directory to stdout
210 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
212 if test -z "$ECHO"; then
213 if test "X${echo_test_string+set}" != Xset; then
214 # find a string as large as possible, as long as the shell can cope with it
215 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
216 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
217 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
218 echo_test_string="`eval $cmd`" &&
219 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
226 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
227 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
228 test "X$echo_testing_string" = "X$echo_test_string"; then
231 # The Solaris, AIX, and Digital Unix default echo programs unquote
232 # backslashes. This makes it impossible to quote backslashes using
233 # echo "$something" | sed 's/\\/\\\\/g'
235 # So, first we look for a working echo in the user's PATH.
237 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
238 for dir in $PATH /usr/ucb; do
239 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
240 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
241 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
242 test "X$echo_testing_string" = "X$echo_test_string"; then
249 if test "X$echo" = Xecho; then
250 # We didn't find a better echo, so look for alternatives.
251 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
252 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
253 test "X$echo_testing_string" = "X$echo_test_string"; then
254 # This shell has a builtin print -r that does the trick.
256 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
257 test "X$CONFIG_SHELL" != X/bin/ksh; then
258 # If we have ksh, try running configure again with it.
259 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
260 export ORIGINAL_CONFIG_SHELL
261 CONFIG_SHELL=/bin/ksh
263 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
267 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
268 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
269 test "X$echo_testing_string" = "X$echo_test_string"; then
272 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
273 test "X$echo_testing_string" = 'X\t' &&
274 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
275 test "X$echo_testing_string" = "X$echo_test_string"; then
276 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
278 SHELL="$CONFIG_SHELL"
280 echo="$CONFIG_SHELL $0 --fallback-echo"
281 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
282 test "X$echo_testing_string" = 'X\t' &&
283 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
284 test "X$echo_testing_string" = "X$echo_test_string"; then
285 echo="$CONFIG_SHELL $0 --fallback-echo"
287 # maybe with a smaller string...
290 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
291 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
298 if test "$prev" != 'sed 50q "$0"'; then
299 echo_test_string=`eval $prev`
300 export echo_test_string
301 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
303 # Oops. We lost completely, so just stick with echo.
312 # Copy echo and quote the copy suitably for passing to libtool from
313 # the Makefile, instead of quoting the original, which is used later.
315 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
316 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
321 --disable-libtool-lock avoid locking (might break parallel builds)"
323 --with-pic try to use only PIC/non-PIC objects [default=use both]"
326 See INSTALL file for further details."
328 # Initialize some variables set by options.
329 # The variables have the same names as the options, with
330 # dashes changed to underlines.
332 cache_file=./config.cache
341 program_transform_name=s,x,x,
349 bindir='${exec_prefix}/bin'
350 sbindir='${exec_prefix}/sbin'
351 libexecdir='${exec_prefix}/libexec'
352 datadir='${prefix}/share'
353 sysconfdir='${prefix}/etc'
354 sharedstatedir='${prefix}/com'
355 localstatedir='${prefix}/var'
356 libdir='${exec_prefix}/lib'
357 includedir='${prefix}/include'
358 oldincludedir='/usr/include'
359 infodir='${prefix}/info'
360 mandir='${prefix}/man'
362 # Initialize some other variables.
365 SHELL=${CONFIG_SHELL-/bin/sh}
366 # Maximum number of lines to put in a shell here document.
373 # If the previous option needs an argument, assign it.
374 if test -n "$ac_prev"; then
375 eval "$ac_prev=\$ac_option"
381 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
385 # Accept the important Cygnus configure options, so we can diagnose typos.
389 -bindir | --bindir | --bindi | --bind | --bin | --bi)
391 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
392 bindir="$ac_optarg" ;;
394 -build | --build | --buil | --bui | --bu)
396 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
397 build="$ac_optarg" ;;
399 -cache-file | --cache-file | --cache-fil | --cache-fi \
400 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
401 ac_prev=cache_file ;;
402 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
403 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
404 cache_file="$ac_optarg" ;;
406 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
408 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
410 datadir="$ac_optarg" ;;
412 -disable-* | --disable-*)
413 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
418 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
419 eval "enable_${ac_feature}=no" ;;
421 -enable-* | --enable-*)
422 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
425 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
427 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
432 eval "enable_${ac_feature}='$ac_optarg'" ;;
434 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
435 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
436 | --exec | --exe | --ex)
437 ac_prev=exec_prefix ;;
438 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
439 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
440 | --exec=* | --exe=* | --ex=*)
441 exec_prefix="$ac_optarg" ;;
443 -gas | --gas | --ga | --g)
444 # Obsolete; use --with-gas.
447 -help | --help | --hel | --he)
448 # Omit some internal or obsolete options to make the list less imposing.
449 # This message is too long to be a string in the A/UX 3.1 sh.
451 Usage: configure [options] [host]
452 Options: [defaults in brackets after descriptions]
454 --cache-file=FILE cache test results in FILE
455 --help print this message
456 --no-create do not create output files
457 --quiet, --silent do not print \`checking...' messages
458 --version print the version of autoconf that created configure
459 Directory and file names:
460 --prefix=PREFIX install architecture-independent files in PREFIX
462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
464 --bindir=DIR user executables in DIR [EPREFIX/bin]
465 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
466 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
467 --datadir=DIR read-only architecture-independent data in DIR
469 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
470 --sharedstatedir=DIR modifiable architecture-independent data in DIR
472 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
473 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
474 --includedir=DIR C header files in DIR [PREFIX/include]
475 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
476 --infodir=DIR info documentation in DIR [PREFIX/info]
477 --mandir=DIR man documentation in DIR [PREFIX/man]
478 --srcdir=DIR find the sources in DIR [configure dir or ..]
479 --program-prefix=PREFIX prepend PREFIX to installed program names
480 --program-suffix=SUFFIX append SUFFIX to installed program names
481 --program-transform-name=PROGRAM
482 run sed PROGRAM on installed program names
486 --build=BUILD configure for building on BUILD [BUILD=HOST]
487 --host=HOST configure for HOST [guessed]
488 --target=TARGET configure for TARGET [TARGET=HOST]
489 Features and packages:
490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
494 --x-includes=DIR X include files are in DIR
495 --x-libraries=DIR X library files are in DIR
497 if test -n "$ac_help"; then
498 echo "--enable and --with options recognized:$ac_help"
502 -host | --host | --hos | --ho)
504 -host=* | --host=* | --hos=* | --ho=*)
507 -includedir | --includedir | --includedi | --included | --include \
508 | --includ | --inclu | --incl | --inc)
509 ac_prev=includedir ;;
510 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
511 | --includ=* | --inclu=* | --incl=* | --inc=*)
512 includedir="$ac_optarg" ;;
514 -infodir | --infodir | --infodi | --infod | --info | --inf)
516 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
517 infodir="$ac_optarg" ;;
519 -libdir | --libdir | --libdi | --libd)
521 -libdir=* | --libdir=* | --libdi=* | --libd=*)
522 libdir="$ac_optarg" ;;
524 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
525 | --libexe | --libex | --libe)
526 ac_prev=libexecdir ;;
527 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
528 | --libexe=* | --libex=* | --libe=*)
529 libexecdir="$ac_optarg" ;;
531 -localstatedir | --localstatedir | --localstatedi | --localstated \
532 | --localstate | --localstat | --localsta | --localst \
533 | --locals | --local | --loca | --loc | --lo)
534 ac_prev=localstatedir ;;
535 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
536 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
537 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
538 localstatedir="$ac_optarg" ;;
540 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
542 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
543 mandir="$ac_optarg" ;;
546 # Obsolete; use --without-fp.
549 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
553 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
554 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
557 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
558 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
559 | --oldin | --oldi | --old | --ol | --o)
560 ac_prev=oldincludedir ;;
561 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
562 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
563 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
564 oldincludedir="$ac_optarg" ;;
566 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
568 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
569 prefix="$ac_optarg" ;;
571 -program-prefix | --program-prefix | --program-prefi | --program-pref \
572 | --program-pre | --program-pr | --program-p)
573 ac_prev=program_prefix ;;
574 -program-prefix=* | --program-prefix=* | --program-prefi=* \
575 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
576 program_prefix="$ac_optarg" ;;
578 -program-suffix | --program-suffix | --program-suffi | --program-suff \
579 | --program-suf | --program-su | --program-s)
580 ac_prev=program_suffix ;;
581 -program-suffix=* | --program-suffix=* | --program-suffi=* \
582 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
583 program_suffix="$ac_optarg" ;;
585 -program-transform-name | --program-transform-name \
586 | --program-transform-nam | --program-transform-na \
587 | --program-transform-n | --program-transform- \
588 | --program-transform | --program-transfor \
589 | --program-transfo | --program-transf \
590 | --program-trans | --program-tran \
591 | --progr-tra | --program-tr | --program-t)
592 ac_prev=program_transform_name ;;
593 -program-transform-name=* | --program-transform-name=* \
594 | --program-transform-nam=* | --program-transform-na=* \
595 | --program-transform-n=* | --program-transform-=* \
596 | --program-transform=* | --program-transfor=* \
597 | --program-transfo=* | --program-transf=* \
598 | --program-trans=* | --program-tran=* \
599 | --progr-tra=* | --program-tr=* | --program-t=*)
600 program_transform_name="$ac_optarg" ;;
602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
603 | -silent | --silent | --silen | --sile | --sil)
606 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
608 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
610 sbindir="$ac_optarg" ;;
612 -sharedstatedir | --sharedstatedir | --sharedstatedi \
613 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
614 | --sharedst | --shareds | --shared | --share | --shar \
616 ac_prev=sharedstatedir ;;
617 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
618 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
619 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
621 sharedstatedir="$ac_optarg" ;;
623 -site | --site | --sit)
625 -site=* | --site=* | --sit=*)
628 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
630 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
631 srcdir="$ac_optarg" ;;
633 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
634 | --syscon | --sysco | --sysc | --sys | --sy)
635 ac_prev=sysconfdir ;;
636 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
637 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
638 sysconfdir="$ac_optarg" ;;
640 -target | --target | --targe | --targ | --tar | --ta | --t)
642 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
643 target="$ac_optarg" ;;
645 -v | -verbose | --verbose | --verbos | --verbo | --verb)
648 -version | --version | --versio | --versi | --vers)
649 echo "configure generated by autoconf version 2.13.1"
653 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
654 # Reject names that are not valid shell variable names.
655 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
656 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
658 ac_package=`echo $ac_package| sed 's/-/_/g'`
663 eval "with_${ac_package}='$ac_optarg'" ;;
665 -without-* | --without-*)
666 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
667 # Reject names that are not valid shell variable names.
668 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
669 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
671 ac_package=`echo $ac_package| sed 's/-/_/g'`
672 eval "with_${ac_package}=no" ;;
675 # Obsolete; use --with-x.
678 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
679 | --x-incl | --x-inc | --x-in | --x-i)
680 ac_prev=x_includes ;;
681 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
682 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
683 x_includes="$ac_optarg" ;;
685 -x-libraries | --x-libraries | --x-librarie | --x-librari \
686 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
687 ac_prev=x_libraries ;;
688 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
689 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
690 x_libraries="$ac_optarg" ;;
692 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
696 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
697 echo "configure: warning: $ac_option: invalid host type" 1>&2
699 if test "x$nonopt" != xNONE; then
700 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
708 if test -n "$ac_prev"; then
709 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
712 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
714 # File descriptor usage:
717 # 2 errors and warnings
718 # 3 some systems may open it to /dev/tty
719 # 4 used on the Kubota Titan
720 # 6 checking for... messages and results
721 # 5 compiler messages saved in config.log
722 if test "$silent" = yes; then
730 This file contains any messages produced by compilers while
731 running configure, to aid debugging if configure makes a mistake.
734 # Strip out --no-create and --no-recursion so they do not pile up.
735 # Also quote any args containing shell metacharacters.
740 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
741 | --no-cr | --no-c) ;;
742 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
743 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
744 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
745 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
746 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
751 # Only set these to C if already set. These must not be set unconditionally
752 # because not all systems understand e.g. LANG=C (notably SCO).
753 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
754 # Non-C LC_CTYPE values break the ctype check.
755 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
756 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
757 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
758 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
761 rm -rf conftest* confdefs.h
762 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
765 # A filename unique to this package, relative to the directory that
766 # configure is in, which we can look for to find out if srcdir is correct.
767 ac_unique_file=build/version.sh
769 # Find the source files, if location was not specified.
770 if test -z "$srcdir"; then
771 ac_srcdir_defaulted=yes
772 # Try the directory containing this script, then its parent.
774 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
775 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
777 if test ! -r $srcdir/$ac_unique_file; then
781 ac_srcdir_defaulted=no
783 if test ! -r $srcdir/$ac_unique_file; then
784 if test "$ac_srcdir_defaulted" = yes; then
785 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
787 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
790 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
792 # Prefer explicitly selected file to automatically selected ones.
793 if test -z "$CONFIG_SITE"; then
794 if test "x$prefix" != xNONE; then
795 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
797 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
800 for ac_site_file in $CONFIG_SITE; do
801 if test -r "$ac_site_file"; then
802 echo "loading site script $ac_site_file"
809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
810 ac_cpp='$CPP $CPPFLAGS'
811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
813 cross_compiling=$ac_cv_prog_cc_cross
817 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
818 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
819 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
826 ac_n= ac_c='\c' ac_t=
830 # set unset (borrowed from autoconf 2.49c)
831 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
837 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
840 for ac_dir in build $srcdir/build; do
841 if test -f $ac_dir/install-sh; then
843 ac_install_sh="$ac_aux_dir/install-sh -c"
845 elif test -f $ac_dir/install.sh; then
847 ac_install_sh="$ac_aux_dir/install.sh -c"
849 elif test -f $ac_dir/shtool; then
851 ac_install_sh="$ac_aux_dir/shtool install -c"
855 if test -z "$ac_aux_dir"; then
856 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
858 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
859 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
860 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
862 eval `$ac_aux_dir/version.sh`
863 if test -z "$OL_STRING"; then
864 { echo "configure: error: could not determine version" 1>&2; exit 1; }
867 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
868 ac_cv_shtool="$ac_aux_dir/shtool"
870 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
873 SHTOOL="$ac_cv_shtool"
875 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
876 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
879 if test -d $ac_aux_dir/CVS; then
880 OPENLDAP_CVS="(from CVS sources) "
883 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
886 echo $ac_n "checking host system type""... $ac_c" 1>&6
887 echo "configure:888: checking host system type" >&5
888 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
890 # Make sure we can run config.sub.
891 if $ac_config_sub sun4 >/dev/null 2>&1; then :
892 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
895 ac_cv_host_alias=$host
896 case "$ac_cv_host_alias" in
900 if ac_cv_host_alias=`$ac_config_guess`; then :
901 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
903 *) ac_cv_host_alias=$nonopt ;;
907 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
908 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
909 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
910 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
912 echo $ac_n "(cached) $ac_c" 1>&6
915 echo "$ac_t""$ac_cv_host" 1>&6
918 host_alias=$ac_cv_host_alias
919 host_cpu=$ac_cv_host_cpu
920 host_vendor=$ac_cv_host_vendor
921 host_os=$ac_cv_host_os
927 echo $ac_n "checking target system type""... $ac_c" 1>&6
928 echo "configure:929: checking target system type" >&5
929 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
931 # Make sure we can run config.sub.
932 if $ac_config_sub sun4 >/dev/null 2>&1; then :
933 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
936 ac_cv_target_alias=$target
937 case "$ac_cv_target_alias" in
941 ac_cv_target_alias=$host_alias ;;
943 *) ac_cv_target_alias=$nonopt ;;
947 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
948 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
949 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
950 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
952 echo $ac_n "(cached) $ac_c" 1>&6
955 echo "$ac_t""$ac_cv_target" 1>&6
958 target_alias=$ac_cv_target_alias
959 target_cpu=$ac_cv_target_cpu
960 target_vendor=$ac_cv_target_vendor
961 target_os=$ac_cv_target_os
967 echo $ac_n "checking build system type""... $ac_c" 1>&6
968 echo "configure:969: checking build system type" >&5
969 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
971 # Make sure we can run config.sub.
972 if $ac_config_sub sun4 >/dev/null 2>&1; then :
973 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
976 ac_cv_build_alias=$build
977 case "$ac_cv_build_alias" in
981 ac_cv_build_alias=$host_alias ;;
983 *) ac_cv_build_alias=$nonopt ;;
987 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
988 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
989 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
990 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992 echo $ac_n "(cached) $ac_c" 1>&6
995 echo "$ac_t""$ac_cv_build" 1>&6
998 build_alias=$ac_cv_build_alias
999 build_cpu=$ac_cv_build_cpu
1000 build_vendor=$ac_cv_build_vendor
1001 build_os=$ac_cv_build_os
1007 # Do some error checking and defaulting for the host and target type.
1009 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1012 # 1. You are not allowed to specify --host, --target, and nonopt at the
1014 # 2. Host defaults to nonopt.
1015 # 3. If nonopt is not specified, then host defaults to the current host,
1016 # as determined by config.guess.
1017 # 4. Target and build default to nonopt.
1018 # 5. If nonopt is not specified, then target and build default to host.
1020 # The aliases save the names the user supplied, while $host etc.
1021 # will get canonicalized.
1022 case $host---$target---$nonopt in
1023 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1024 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1027 test "$host_alias" != "$target_alias" &&
1028 test "$program_prefix$program_suffix$program_transform_name" = \
1030 program_prefix=${target_alias}-
1033 # Find a good install program. We prefer a C program (faster),
1034 # so one script is as good as another. But avoid the broken or
1035 # incompatible versions:
1036 # SysV /etc/install, /usr/sbin/install
1037 # SunOS /usr/etc/install
1038 # IRIX /sbin/install
1040 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1041 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1042 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1043 # ./install, which can be erroneously created by make from ./install.sh.
1044 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1045 echo "configure:1046: checking for a BSD compatible install" >&5
1046 if test -z "$INSTALL"; then
1047 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1051 for ac_dir in $PATH; do
1052 # Account for people who put trailing slashes in PATH elements.
1054 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1056 # OSF1 and SCO ODT 3.0 have their own names for install.
1057 # Don't use installbsd from OSF since it installs stuff as root
1059 for ac_prog in ginstall scoinst install; do
1060 if test -f $ac_dir/$ac_prog; then
1061 if test $ac_prog = install &&
1062 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1063 # AIX install. It has an incompatible calling convention.
1065 elif test $ac_prog = install &&
1066 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1067 # program-specific install script used by HP pwplus--don't use.
1070 ac_cv_path_install="$ac_dir/$ac_prog -c"
1081 if test "${ac_cv_path_install+set}" = set; then
1082 INSTALL="$ac_cv_path_install"
1084 # As a last resort, use the slow shell script. We don't cache a
1085 # path for INSTALL within a source directory, because that will
1086 # break other packages using the cache if that directory is
1087 # removed, or if the path is relative.
1088 INSTALL="$ac_install_sh"
1091 echo "$ac_t""$INSTALL" 1>&6
1093 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1094 # It thinks the first close brace ends the variable substitution.
1095 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1097 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1099 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1101 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1102 echo "configure:1103: checking whether build environment is sane" >&5
1105 echo timestamp > conftestfile
1106 # Do `set' in a subshell so we don't clobber the current shell's
1107 # arguments. Must try -L first in case configure is actually a
1108 # symlink; some systems play weird games with the mod time of symlinks
1109 # (eg FreeBSD returns the mod time of the symlink's containing
1112 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1113 if test "$*" = "X"; then
1115 set X `ls -t $srcdir/configure conftestfile`
1117 if test "$*" != "X $srcdir/configure conftestfile" \
1118 && test "$*" != "X conftestfile $srcdir/configure"; then
1120 # If neither matched, then we have a broken ls. This can happen
1121 # if, for instance, CONFIG_SHELL is bash and it inherits a
1122 # broken ls alias from the environment. This has actually
1123 # happened. Such a system could not be considered "sane".
1124 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1125 alias in your environment" 1>&2; exit 1; }
1128 test "$2" = conftestfile
1134 { echo "configure: error: newly created file is older than distributed files!
1135 Check your system clock" 1>&2; exit 1; }
1138 echo "$ac_t""yes" 1>&6
1139 if test "$program_transform_name" = s,x,x,; then
1140 program_transform_name=
1142 # Double any \ or $. echo might interpret backslashes.
1143 cat <<\EOF_SED > conftestsed
1144 s,\\,\\\\,g; s,\$,$$,g
1146 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1149 test "$program_prefix" != NONE &&
1150 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1151 # Use a double $ so make ignores it.
1152 test "$program_suffix" != NONE &&
1153 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1155 # sed with no file args requires a program.
1156 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1158 for ac_prog in mawk gawk nawk awk
1160 # Extract the first word of "$ac_prog", so it can be a program name with args.
1161 set dummy $ac_prog; ac_word=$2
1162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1163 echo "configure:1164: checking for $ac_word" >&5
1164 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 if test -n "$AWK"; then
1168 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1172 for ac_dir in $ac_dummy; do
1173 test -z "$ac_dir" && ac_dir=.
1174 if test -f $ac_dir/$ac_word; then
1175 ac_cv_prog_AWK="$ac_prog"
1182 AWK="$ac_cv_prog_AWK"
1183 if test -n "$AWK"; then
1184 echo "$ac_t""$AWK" 1>&6
1186 echo "$ac_t""no" 1>&6
1189 test -n "$AWK" && break
1192 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether ${MAKE-make} sets \${MAKE}" >&5
1194 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1195 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 cat > conftestmake <<\EOF
1200 @echo 'ac_maketemp="${MAKE}"'
1202 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1203 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1204 if test -n "$ac_maketemp"; then
1205 eval ac_cv_prog_make_${ac_make}_set=yes
1207 eval ac_cv_prog_make_${ac_make}_set=no
1211 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1215 echo "$ac_t""no" 1>&6
1216 SET_MAKE="MAKE=${MAKE-make}"
1225 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1226 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1231 missing_dir=`cd $ac_aux_dir && pwd`
1232 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1233 echo "configure:1234: checking for working aclocal" >&5
1234 # Run test in a subshell; some versions of sh will print an error if
1235 # an executable is not found, even if stderr is redirected.
1236 # Redirect stdin to placate older versions of autoconf. Sigh.
1237 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1239 echo "$ac_t""found" 1>&6
1241 ACLOCAL="$missing_dir/missing aclocal"
1242 echo "$ac_t""missing" 1>&6
1245 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1246 echo "configure:1247: checking for working autoconf" >&5
1247 # Run test in a subshell; some versions of sh will print an error if
1248 # an executable is not found, even if stderr is redirected.
1249 # Redirect stdin to placate older versions of autoconf. Sigh.
1250 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1252 echo "$ac_t""found" 1>&6
1254 AUTOCONF="$missing_dir/missing autoconf"
1255 echo "$ac_t""missing" 1>&6
1258 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1259 echo "configure:1260: checking for working automake" >&5
1260 # Run test in a subshell; some versions of sh will print an error if
1261 # an executable is not found, even if stderr is redirected.
1262 # Redirect stdin to placate older versions of autoconf. Sigh.
1263 if (automake --version) < /dev/null > /dev/null 2>&1; then
1265 echo "$ac_t""found" 1>&6
1267 AUTOMAKE="$missing_dir/missing automake"
1268 echo "$ac_t""missing" 1>&6
1271 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1272 echo "configure:1273: checking for working autoheader" >&5
1273 # Run test in a subshell; some versions of sh will print an error if
1274 # an executable is not found, even if stderr is redirected.
1275 # Redirect stdin to placate older versions of autoconf. Sigh.
1276 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1277 AUTOHEADER=autoheader
1278 echo "$ac_t""found" 1>&6
1280 AUTOHEADER="$missing_dir/missing autoheader"
1281 echo "$ac_t""missing" 1>&6
1284 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1285 echo "configure:1286: checking for working makeinfo" >&5
1286 # Run test in a subshell; some versions of sh will print an error if
1287 # an executable is not found, even if stderr is redirected.
1288 # Redirect stdin to placate older versions of autoconf. Sigh.
1289 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1291 echo "$ac_t""found" 1>&6
1293 MAKEINFO="$missing_dir/missing makeinfo"
1294 echo "$ac_t""missing" 1>&6
1297 install_sh="$missing_dir/install-sh"
1298 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1300 for ac_prog in gnutar gtar tar
1302 # Extract the first word of "$ac_prog", so it can be a program name with args.
1303 set dummy $ac_prog; ac_word=$2
1304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1305 echo "configure:1306: checking for $ac_word" >&5
1306 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 if test -n "$AMTAR"; then
1310 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1314 for ac_dir in $ac_dummy; do
1315 test -z "$ac_dir" && ac_dir=.
1316 if test -f $ac_dir/$ac_word; then
1317 ac_cv_prog_AMTAR="$ac_prog"
1324 AMTAR="$ac_cv_prog_AMTAR"
1325 if test -n "$AMTAR"; then
1326 echo "$ac_t""$AMTAR" 1>&6
1328 echo "$ac_t""no" 1>&6
1331 test -n "$AMTAR" && break
1336 if test -n "$AMTAR"; then
1337 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1342 cat >> confdefs.h <<EOF
1343 #define OPENLDAP_PACKAGE "$PACKAGE"
1346 cat >> confdefs.h <<EOF
1347 #define OPENLDAP_VERSION "$VERSION"
1351 cat >> confdefs.h <<EOF
1352 #define LDAP_VENDOR_VERSION $OL_API_INC
1355 cat >> confdefs.h <<EOF
1356 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1359 cat >> confdefs.h <<EOF
1360 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1363 cat >> confdefs.h <<EOF
1364 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1368 OPENLDAP_LIBVERSION=$OL_API_LIB
1370 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1374 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1375 echo "configure:1376: checking configure arguments" >&5
1380 ldap_subdir="/openldap"
1382 # Check whether --with-subdir or --without-subdir was given.
1383 if test "${with_subdir+set}" = set; then
1384 withval="$with_subdir"
1391 ldap_subdir="$withval"
1394 ldap_subdir="/$withval"
1401 # OpenLDAP --enable-debug
1402 # Check whether --enable-debug or --disable-debug was given.
1403 if test "${enable_debug+set}" = set; then
1404 enableval="$enable_debug"
1407 for ol_val in auto yes no ; do
1408 if test "$enableval" = "$ol_val" ; then
1412 if test "$ol_arg" = "invalid" ; then
1413 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1415 ol_enable_debug="$ol_arg"
1418 ol_enable_debug="yes"
1420 # end --enable-debug
1421 # OpenLDAP --enable-syslog
1422 # Check whether --enable-syslog or --disable-syslog was given.
1423 if test "${enable_syslog+set}" = set; then
1424 enableval="$enable_syslog"
1427 for ol_val in auto yes no ; do
1428 if test "$enableval" = "$ol_val" ; then
1432 if test "$ol_arg" = "invalid" ; then
1433 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1435 ol_enable_syslog="$ol_arg"
1438 ol_enable_syslog="auto"
1440 # end --enable-syslog
1441 # OpenLDAP --enable-proctitle
1442 # Check whether --enable-proctitle or --disable-proctitle was given.
1443 if test "${enable_proctitle+set}" = set; then
1444 enableval="$enable_proctitle"
1447 for ol_val in auto yes no ; do
1448 if test "$enableval" = "$ol_val" ; then
1452 if test "$ol_arg" = "invalid" ; then
1453 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1455 ol_enable_proctitle="$ol_arg"
1458 ol_enable_proctitle="yes"
1460 # end --enable-proctitle
1461 # OpenLDAP --enable-cache
1462 # Check whether --enable-cache or --disable-cache was given.
1463 if test "${enable_cache+set}" = set; then
1464 enableval="$enable_cache"
1467 for ol_val in auto yes no ; do
1468 if test "$enableval" = "$ol_val" ; then
1472 if test "$ol_arg" = "invalid" ; then
1473 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1475 ol_enable_cache="$ol_arg"
1478 ol_enable_cache="no"
1480 # end --enable-cache
1481 # OpenLDAP --enable-referrals
1482 # Check whether --enable-referrals or --disable-referrals was given.
1483 if test "${enable_referrals+set}" = set; then
1484 enableval="$enable_referrals"
1487 for ol_val in auto yes no ; do
1488 if test "$enableval" = "$ol_val" ; then
1492 if test "$ol_arg" = "invalid" ; then
1493 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1495 ol_enable_referrals="$ol_arg"
1498 ol_enable_referrals="no"
1500 # end --enable-referrals
1501 ol_enable_kbind=${ol_enable_kbind-no}
1502 # OpenLDAP --enable-ipv6
1503 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1504 if test "${enable_ipv6+set}" = set; then
1505 enableval="$enable_ipv6"
1508 for ol_val in auto yes no ; do
1509 if test "$enableval" = "$ol_val" ; then
1513 if test "$ol_arg" = "invalid" ; then
1514 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1516 ol_enable_ipv6="$ol_arg"
1519 ol_enable_ipv6="auto"
1522 # OpenLDAP --enable-local
1523 # Check whether --enable-local or --disable-local was given.
1524 if test "${enable_local+set}" = set; then
1525 enableval="$enable_local"
1528 for ol_val in auto yes no ; do
1529 if test "$enableval" = "$ol_val" ; then
1533 if test "$ol_arg" = "invalid" ; then
1534 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1536 ol_enable_local="$ol_arg"
1539 ol_enable_local="auto"
1541 # end --enable-local
1542 # OpenLDAP --enable-x_compile
1543 # Check whether --enable-x_compile or --disable-x_compile was given.
1544 if test "${enable_x_compile+set}" = set; then
1545 enableval="$enable_x_compile"
1548 for ol_val in yes no ; do
1549 if test "$enableval" = "$ol_val" ; then
1553 if test "$ol_arg" = "invalid" ; then
1554 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1556 ol_enable_x_compile="$ol_arg"
1559 ol_enable_x_compile="no"
1561 # end --enable-x_compile
1564 # OpenLDAP --with-cyrus_sasl
1565 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1566 if test "${with_cyrus_sasl+set}" = set; then
1567 withval="$with_cyrus_sasl"
1570 for ol_val in auto yes no ; do
1571 if test "$withval" = "$ol_val" ; then
1575 if test "$ol_arg" = "invalid" ; then
1576 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1578 ol_with_cyrus_sasl="$ol_arg"
1581 ol_with_cyrus_sasl="auto"
1583 # end --with-cyrus_sasl
1585 # OpenLDAP --with-fetch
1586 # Check whether --with-fetch or --without-fetch was given.
1587 if test "${with_fetch+set}" = set; then
1588 withval="$with_fetch"
1591 for ol_val in auto yes no ; do
1592 if test "$withval" = "$ol_val" ; then
1596 if test "$ol_arg" = "invalid" ; then
1597 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1599 ol_with_fetch="$ol_arg"
1602 ol_with_fetch="auto"
1606 # OpenLDAP --with-kerberos
1607 # Check whether --with-kerberos or --without-kerberos was given.
1608 if test "${with_kerberos+set}" = set; then
1609 withval="$with_kerberos"
1612 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1613 if test "$withval" = "$ol_val" ; then
1617 if test "$ol_arg" = "invalid" ; then
1618 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1620 ol_with_kerberos="$ol_arg"
1623 ol_with_kerberos="auto"
1625 # end --with-kerberos
1627 # OpenLDAP --with-readline
1628 # Check whether --with-readline or --without-readline was given.
1629 if test "${with_readline+set}" = set; then
1630 withval="$with_readline"
1633 for ol_val in auto yes no ; do
1634 if test "$withval" = "$ol_val" ; then
1638 if test "$ol_arg" = "invalid" ; then
1639 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1641 ol_with_readline="$ol_arg"
1644 ol_with_readline="auto"
1646 # end --with-readline
1648 # OpenLDAP --with-threads
1649 # Check whether --with-threads or --without-threads was given.
1650 if test "${with_threads+set}" = set; then
1651 withval="$with_threads"
1654 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1655 if test "$withval" = "$ol_val" ; then
1659 if test "$ol_arg" = "invalid" ; then
1660 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1662 ol_with_threads="$ol_arg"
1665 ol_with_threads="auto"
1667 # end --with-threads
1669 # OpenLDAP --with-tls
1670 # Check whether --with-tls or --without-tls was given.
1671 if test "${with_tls+set}" = set; then
1675 for ol_val in auto ssleay openssl yes no ; do
1676 if test "$withval" = "$ol_val" ; then
1680 if test "$ol_arg" = "invalid" ; then
1681 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1683 ol_with_tls="$ol_arg"
1690 # OpenLDAP --with-yielding_select
1691 # Check whether --with-yielding_select or --without-yielding_select was given.
1692 if test "${with_yielding_select+set}" = set; then
1693 withval="$with_yielding_select"
1696 for ol_val in auto yes no manual ; do
1697 if test "$withval" = "$ol_val" ; then
1701 if test "$ol_arg" = "invalid" ; then
1702 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1704 ol_with_yielding_select="$ol_arg"
1707 ol_with_yielding_select="auto"
1709 # end --with-yielding_select
1713 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1714 if test "${with_xxslapdoptions+set}" = set; then
1715 withval="$with_xxslapdoptions"
1719 # OpenLDAP --enable-slapd
1720 # Check whether --enable-slapd or --disable-slapd was given.
1721 if test "${enable_slapd+set}" = set; then
1722 enableval="$enable_slapd"
1725 for ol_val in auto yes no ; do
1726 if test "$enableval" = "$ol_val" ; then
1730 if test "$ol_arg" = "invalid" ; then
1731 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1733 ol_enable_slapd="$ol_arg"
1736 ol_enable_slapd="yes"
1738 # end --enable-slapd
1739 # OpenLDAP --enable-aci
1740 # Check whether --enable-aci or --disable-aci was given.
1741 if test "${enable_aci+set}" = set; then
1742 enableval="$enable_aci"
1745 for ol_val in auto yes no ; do
1746 if test "$enableval" = "$ol_val" ; then
1750 if test "$ol_arg" = "invalid" ; then
1751 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1753 ol_enable_aci="$ol_arg"
1759 # OpenLDAP --enable-cleartext
1760 # Check whether --enable-cleartext or --disable-cleartext was given.
1761 if test "${enable_cleartext+set}" = set; then
1762 enableval="$enable_cleartext"
1765 for ol_val in auto yes no ; do
1766 if test "$enableval" = "$ol_val" ; then
1770 if test "$ol_arg" = "invalid" ; then
1771 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1773 ol_enable_cleartext="$ol_arg"
1776 ol_enable_cleartext="yes"
1778 # end --enable-cleartext
1779 # OpenLDAP --enable-crypt
1780 # Check whether --enable-crypt or --disable-crypt was given.
1781 if test "${enable_crypt+set}" = set; then
1782 enableval="$enable_crypt"
1785 for ol_val in auto yes no ; do
1786 if test "$enableval" = "$ol_val" ; then
1790 if test "$ol_arg" = "invalid" ; then
1791 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1793 ol_enable_crypt="$ol_arg"
1796 ol_enable_crypt="no"
1798 # end --enable-crypt
1799 # OpenLDAP --enable-dynamic
1800 # Check whether --enable-dynamic or --disable-dynamic was given.
1801 if test "${enable_dynamic+set}" = set; then
1802 enableval="$enable_dynamic"
1805 for ol_val in auto yes no ; do
1806 if test "$enableval" = "$ol_val" ; then
1810 if test "$ol_arg" = "invalid" ; then
1811 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1813 ol_enable_dynamic="$ol_arg"
1816 ol_enable_dynamic="no"
1818 # end --enable-dynamic
1819 # OpenLDAP --enable-kpasswd
1820 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1821 if test "${enable_kpasswd+set}" = set; then
1822 enableval="$enable_kpasswd"
1825 for ol_val in auto yes no ; do
1826 if test "$enableval" = "$ol_val" ; then
1830 if test "$ol_arg" = "invalid" ; then
1831 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1833 ol_enable_kpasswd="$ol_arg"
1836 ol_enable_kpasswd="no"
1838 # end --enable-kpasswd
1839 # OpenLDAP --enable-lmpasswd
1840 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1841 if test "${enable_lmpasswd+set}" = set; then
1842 enableval="$enable_lmpasswd"
1845 for ol_val in auto yes no ; do
1846 if test "$enableval" = "$ol_val" ; then
1850 if test "$ol_arg" = "invalid" ; then
1851 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1853 ol_enable_lmpasswd="$ol_arg"
1856 ol_enable_lmpasswd="no"
1858 # end --enable-lmpasswd
1859 # OpenLDAP --enable-spasswd
1860 # Check whether --enable-spasswd or --disable-spasswd was given.
1861 if test "${enable_spasswd+set}" = set; then
1862 enableval="$enable_spasswd"
1865 for ol_val in auto yes no ; do
1866 if test "$enableval" = "$ol_val" ; then
1870 if test "$ol_arg" = "invalid" ; then
1871 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1873 ol_enable_spasswd="$ol_arg"
1876 ol_enable_spasswd="no"
1878 # end --enable-spasswd
1879 # OpenLDAP --enable-modules
1880 # Check whether --enable-modules or --disable-modules was given.
1881 if test "${enable_modules+set}" = set; then
1882 enableval="$enable_modules"
1885 for ol_val in auto yes no ; do
1886 if test "$enableval" = "$ol_val" ; then
1890 if test "$ol_arg" = "invalid" ; then
1891 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1893 ol_enable_modules="$ol_arg"
1896 ol_enable_modules="no"
1898 # end --enable-modules
1899 ol_enable_multimaster=${ol_enable_multimaster-no}
1900 # OpenLDAP --enable-phonetic
1901 # Check whether --enable-phonetic or --disable-phonetic was given.
1902 if test "${enable_phonetic+set}" = set; then
1903 enableval="$enable_phonetic"
1906 for ol_val in auto yes no ; do
1907 if test "$enableval" = "$ol_val" ; then
1911 if test "$ol_arg" = "invalid" ; then
1912 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1914 ol_enable_phonetic="$ol_arg"
1917 ol_enable_phonetic="no"
1919 # end --enable-phonetic
1920 # OpenLDAP --enable-rewrite
1921 # Check whether --enable-rewrite or --disable-rewrite was given.
1922 if test "${enable_rewrite+set}" = set; then
1923 enableval="$enable_rewrite"
1926 for ol_val in auto yes no ; do
1927 if test "$enableval" = "$ol_val" ; then
1931 if test "$ol_arg" = "invalid" ; then
1932 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1934 ol_enable_rewrite="$ol_arg"
1937 ol_enable_rewrite="no"
1939 # end --enable-rewrite
1940 # OpenLDAP --enable-rlookups
1941 # Check whether --enable-rlookups or --disable-rlookups was given.
1942 if test "${enable_rlookups+set}" = set; then
1943 enableval="$enable_rlookups"
1946 for ol_val in auto yes no ; do
1947 if test "$enableval" = "$ol_val" ; then
1951 if test "$ol_arg" = "invalid" ; then
1952 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1954 ol_enable_rlookups="$ol_arg"
1957 ol_enable_rlookups="no"
1959 # end --enable-rlookups
1960 # OpenLDAP --enable-slp
1961 # Check whether --enable-slp or --disable-slp was given.
1962 if test "${enable_slp+set}" = set; then
1963 enableval="$enable_slp"
1966 for ol_val in auto yes no ; do
1967 if test "$enableval" = "$ol_val" ; then
1971 if test "$ol_arg" = "invalid" ; then
1972 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1974 ol_enable_slp="$ol_arg"
1980 # OpenLDAP --enable-wrappers
1981 # Check whether --enable-wrappers or --disable-wrappers was given.
1982 if test "${enable_wrappers+set}" = set; then
1983 enableval="$enable_wrappers"
1986 for ol_val in auto yes no ; do
1987 if test "$enableval" = "$ol_val" ; then
1991 if test "$ol_arg" = "invalid" ; then
1992 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1994 ol_enable_wrappers="$ol_arg"
1997 ol_enable_wrappers="no"
1999 # end --enable-wrappers
2001 # OpenLDAP --enable-slapi
2002 # Check whether --enable-slapi or --disable-slapi was given.
2003 if test "${enable_slapi+set}" = set; then
2004 enableval="$enable_slapi"
2007 for ol_val in auto yes no ; do
2008 if test "$enableval" = "$ol_val" ; then
2012 if test "$ol_arg" = "invalid" ; then
2013 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
2015 ol_enable_slapi="$ol_arg"
2018 ol_enable_slapi="no"
2020 # end --enable-slapi
2022 # OpenLDAP --enable-bdb
2023 # Check whether --enable-bdb or --disable-bdb was given.
2024 if test "${enable_bdb+set}" = set; then
2025 enableval="$enable_bdb"
2028 for ol_val in auto yes no ; do
2029 if test "$enableval" = "$ol_val" ; then
2033 if test "$ol_arg" = "invalid" ; then
2034 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2036 ol_enable_bdb="$ol_arg"
2042 # OpenLDAP --with-bdb_module
2043 # Check whether --with-bdb_module or --without-bdb_module was given.
2044 if test "${with_bdb_module+set}" = set; then
2045 withval="$with_bdb_module"
2048 for ol_val in static dynamic ; do
2049 if test "$withval" = "$ol_val" ; then
2053 if test "$ol_arg" = "invalid" ; then
2054 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2056 ol_with_bdb_module="$ol_arg"
2059 ol_with_bdb_module="static"
2061 # end --with-bdb_module
2063 # OpenLDAP --enable-dnssrv
2064 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2065 if test "${enable_dnssrv+set}" = set; then
2066 enableval="$enable_dnssrv"
2069 for ol_val in auto yes no ; do
2070 if test "$enableval" = "$ol_val" ; then
2074 if test "$ol_arg" = "invalid" ; then
2075 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2077 ol_enable_dnssrv="$ol_arg"
2080 ol_enable_dnssrv="no"
2082 # end --enable-dnssrv
2083 # OpenLDAP --with-dnssrv_module
2084 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2085 if test "${with_dnssrv_module+set}" = set; then
2086 withval="$with_dnssrv_module"
2089 for ol_val in static dynamic ; do
2090 if test "$withval" = "$ol_val" ; then
2094 if test "$ol_arg" = "invalid" ; then
2095 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2097 ol_with_dnssrv_module="$ol_arg"
2100 ol_with_dnssrv_module="static"
2102 # end --with-dnssrv_module
2104 # OpenLDAP --enable-ldap
2105 # Check whether --enable-ldap or --disable-ldap was given.
2106 if test "${enable_ldap+set}" = set; then
2107 enableval="$enable_ldap"
2110 for ol_val in auto yes no ; do
2111 if test "$enableval" = "$ol_val" ; then
2115 if test "$ol_arg" = "invalid" ; then
2116 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2118 ol_enable_ldap="$ol_arg"
2124 # OpenLDAP --with-ldap_module
2125 # Check whether --with-ldap_module or --without-ldap_module was given.
2126 if test "${with_ldap_module+set}" = set; then
2127 withval="$with_ldap_module"
2130 for ol_val in static dynamic ; do
2131 if test "$withval" = "$ol_val" ; then
2135 if test "$ol_arg" = "invalid" ; then
2136 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2138 ol_with_ldap_module="$ol_arg"
2141 ol_with_ldap_module="static"
2143 # end --with-ldap_module
2145 # OpenLDAP --enable-ldbm
2146 # Check whether --enable-ldbm or --disable-ldbm was given.
2147 if test "${enable_ldbm+set}" = set; then
2148 enableval="$enable_ldbm"
2151 for ol_val in auto yes no ; do
2152 if test "$enableval" = "$ol_val" ; then
2156 if test "$ol_arg" = "invalid" ; then
2157 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2159 ol_enable_ldbm="$ol_arg"
2165 # OpenLDAP --with-ldbm_api
2166 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2167 if test "${with_ldbm_api+set}" = set; then
2168 withval="$with_ldbm_api"
2171 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2172 if test "$withval" = "$ol_val" ; then
2176 if test "$ol_arg" = "invalid" ; then
2177 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2179 ol_with_ldbm_api="$ol_arg"
2182 ol_with_ldbm_api="auto"
2184 # end --with-ldbm_api
2186 # OpenLDAP --with-ldbm_module
2187 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2188 if test "${with_ldbm_module+set}" = set; then
2189 withval="$with_ldbm_module"
2192 for ol_val in static dynamic ; do
2193 if test "$withval" = "$ol_val" ; then
2197 if test "$ol_arg" = "invalid" ; then
2198 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2200 ol_with_ldbm_module="$ol_arg"
2203 ol_with_ldbm_module="static"
2205 # end --with-ldbm_module
2207 # OpenLDAP --with-ldbm_type
2208 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2209 if test "${with_ldbm_type+set}" = set; then
2210 withval="$with_ldbm_type"
2213 for ol_val in auto btree hash ; do
2214 if test "$withval" = "$ol_val" ; then
2218 if test "$ol_arg" = "invalid" ; then
2219 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2221 ol_with_ldbm_type="$ol_arg"
2224 ol_with_ldbm_type="auto"
2226 # end --with-ldbm_type
2228 # OpenLDAP --enable-meta
2229 # Check whether --enable-meta or --disable-meta was given.
2230 if test "${enable_meta+set}" = set; then
2231 enableval="$enable_meta"
2234 for ol_val in auto yes no ; do
2235 if test "$enableval" = "$ol_val" ; then
2239 if test "$ol_arg" = "invalid" ; then
2240 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2242 ol_enable_meta="$ol_arg"
2248 # OpenLDAP --with-meta_module
2249 # Check whether --with-meta_module or --without-meta_module was given.
2250 if test "${with_meta_module+set}" = set; then
2251 withval="$with_meta_module"
2254 for ol_val in static dynamic ; do
2255 if test "$withval" = "$ol_val" ; then
2259 if test "$ol_arg" = "invalid" ; then
2260 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2262 ol_with_meta_module="$ol_arg"
2265 ol_with_meta_module="static"
2267 # end --with-meta_module
2269 # OpenLDAP --enable-monitor
2270 # Check whether --enable-monitor or --disable-monitor was given.
2271 if test "${enable_monitor+set}" = set; then
2272 enableval="$enable_monitor"
2275 for ol_val in auto yes no ; do
2276 if test "$enableval" = "$ol_val" ; then
2280 if test "$ol_arg" = "invalid" ; then
2281 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2283 ol_enable_monitor="$ol_arg"
2286 ol_enable_monitor="no"
2288 # end --enable-monitor
2289 # OpenLDAP --with-monitor_module
2290 # Check whether --with-monitor_module or --without-monitor_module was given.
2291 if test "${with_monitor_module+set}" = set; then
2292 withval="$with_monitor_module"
2295 for ol_val in static dynamic ; do
2296 if test "$withval" = "$ol_val" ; then
2300 if test "$ol_arg" = "invalid" ; then
2301 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2303 ol_with_monitor_module="$ol_arg"
2306 ol_with_monitor_module="static"
2308 # end --with-monitor_module
2310 # OpenLDAP --enable-null
2311 # Check whether --enable-null or --disable-null was given.
2312 if test "${enable_null+set}" = set; then
2313 enableval="$enable_null"
2316 for ol_val in auto yes no ; do
2317 if test "$enableval" = "$ol_val" ; then
2321 if test "$ol_arg" = "invalid" ; then
2322 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2324 ol_enable_null="$ol_arg"
2330 # OpenLDAP --with-null_module
2331 # Check whether --with-null_module or --without-null_module was given.
2332 if test "${with_null_module+set}" = set; then
2333 withval="$with_null_module"
2336 for ol_val in static dynamic ; do
2337 if test "$withval" = "$ol_val" ; then
2341 if test "$ol_arg" = "invalid" ; then
2342 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2344 ol_with_null_module="$ol_arg"
2347 ol_with_null_module="static"
2349 # end --with-null_module
2351 # OpenLDAP --enable-passwd
2352 # Check whether --enable-passwd or --disable-passwd was given.
2353 if test "${enable_passwd+set}" = set; then
2354 enableval="$enable_passwd"
2357 for ol_val in auto yes no ; do
2358 if test "$enableval" = "$ol_val" ; then
2362 if test "$ol_arg" = "invalid" ; then
2363 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2365 ol_enable_passwd="$ol_arg"
2368 ol_enable_passwd="no"
2370 # end --enable-passwd
2371 # OpenLDAP --with-passwd_module
2372 # Check whether --with-passwd_module or --without-passwd_module was given.
2373 if test "${with_passwd_module+set}" = set; then
2374 withval="$with_passwd_module"
2377 for ol_val in static dynamic ; do
2378 if test "$withval" = "$ol_val" ; then
2382 if test "$ol_arg" = "invalid" ; then
2383 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2385 ol_with_passwd_module="$ol_arg"
2388 ol_with_passwd_module="static"
2390 # end --with-passwd_module
2392 # OpenLDAP --enable-perl
2393 # Check whether --enable-perl or --disable-perl was given.
2394 if test "${enable_perl+set}" = set; then
2395 enableval="$enable_perl"
2398 for ol_val in auto yes no ; do
2399 if test "$enableval" = "$ol_val" ; then
2403 if test "$ol_arg" = "invalid" ; then
2404 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2406 ol_enable_perl="$ol_arg"
2412 # OpenLDAP --with-perl_module
2413 # Check whether --with-perl_module or --without-perl_module was given.
2414 if test "${with_perl_module+set}" = set; then
2415 withval="$with_perl_module"
2418 for ol_val in static dynamic ; do
2419 if test "$withval" = "$ol_val" ; then
2423 if test "$ol_arg" = "invalid" ; then
2424 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2426 ol_with_perl_module="$ol_arg"
2429 ol_with_perl_module="static"
2431 # end --with-perl_module
2433 # OpenLDAP --enable-shell
2434 # Check whether --enable-shell or --disable-shell was given.
2435 if test "${enable_shell+set}" = set; then
2436 enableval="$enable_shell"
2439 for ol_val in auto yes no ; do
2440 if test "$enableval" = "$ol_val" ; then
2444 if test "$ol_arg" = "invalid" ; then
2445 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2447 ol_enable_shell="$ol_arg"
2450 ol_enable_shell="no"
2452 # end --enable-shell
2453 # OpenLDAP --with-shell_module
2454 # Check whether --with-shell_module or --without-shell_module was given.
2455 if test "${with_shell_module+set}" = set; then
2456 withval="$with_shell_module"
2459 for ol_val in static dynamic ; do
2460 if test "$withval" = "$ol_val" ; then
2464 if test "$ol_arg" = "invalid" ; then
2465 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2467 ol_with_shell_module="$ol_arg"
2470 ol_with_shell_module="static"
2472 # end --with-shell_module
2474 # OpenLDAP --enable-sql
2475 # Check whether --enable-sql or --disable-sql was given.
2476 if test "${enable_sql+set}" = set; then
2477 enableval="$enable_sql"
2480 for ol_val in auto yes no ; do
2481 if test "$enableval" = "$ol_val" ; then
2485 if test "$ol_arg" = "invalid" ; then
2486 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2488 ol_enable_sql="$ol_arg"
2494 # OpenLDAP --with-sql_module
2495 # Check whether --with-sql_module or --without-sql_module was given.
2496 if test "${with_sql_module+set}" = set; then
2497 withval="$with_sql_module"
2500 for ol_val in static dynamic ; do
2501 if test "$withval" = "$ol_val" ; then
2505 if test "$ol_arg" = "invalid" ; then
2506 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2508 ol_with_sql_module="$ol_arg"
2511 ol_with_sql_module="static"
2513 # end --with-sql_module
2515 # OpenLDAP --enable-tcl
2516 # Check whether --enable-tcl or --disable-tcl was given.
2517 if test "${enable_tcl+set}" = set; then
2518 enableval="$enable_tcl"
2521 for ol_val in auto yes no ; do
2522 if test "$enableval" = "$ol_val" ; then
2526 if test "$ol_arg" = "invalid" ; then
2527 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2529 ol_enable_tcl="$ol_arg"
2535 # OpenLDAP --with-tcl_module
2536 # Check whether --with-tcl_module or --without-tcl_module was given.
2537 if test "${with_tcl_module+set}" = set; then
2538 withval="$with_tcl_module"
2541 for ol_val in static dynamic ; do
2542 if test "$withval" = "$ol_val" ; then
2546 if test "$ol_arg" = "invalid" ; then
2547 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2549 ol_with_tcl_module="$ol_arg"
2552 ol_with_tcl_module="static"
2554 # end --with-tcl_module
2557 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2558 if test "${with_xxslurpdoptions+set}" = set; then
2559 withval="$with_xxslurpdoptions"
2563 # OpenLDAP --enable-slurpd
2564 # Check whether --enable-slurpd or --disable-slurpd was given.
2565 if test "${enable_slurpd+set}" = set; then
2566 enableval="$enable_slurpd"
2569 for ol_val in auto yes no ; do
2570 if test "$enableval" = "$ol_val" ; then
2574 if test "$ol_arg" = "invalid" ; then
2575 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2577 ol_enable_slurpd="$ol_arg"
2580 ol_enable_slurpd="auto"
2582 # end --enable-slurpd
2584 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2585 if test "${with_xxliboptions+set}" = set; then
2586 withval="$with_xxliboptions"
2590 # Check whether --enable-static or --disable-static was given.
2591 if test "${enable_static+set}" = set; then
2592 enableval="$enable_static"
2593 p=${PACKAGE-default}
2595 yes) enable_static=yes ;;
2596 no) enable_static=no ;;
2599 # Look at the argument we got. We use all the common list separators.
2600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2601 for pkg in $enableval; do
2602 if test "X$pkg" = "X$p"; then
2613 # Check whether --enable-shared or --disable-shared was given.
2614 if test "${enable_shared+set}" = set; then
2615 enableval="$enable_shared"
2616 p=${PACKAGE-default}
2618 yes) enable_shared=yes ;;
2619 no) enable_shared=no ;;
2622 # Look at the argument we got. We use all the common list separators.
2623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2624 for pkg in $enableval; do
2625 if test "X$pkg" = "X$p"; then
2639 if test $ol_enable_slapd = no ; then
2640 if test $ol_enable_slapi = yes ; then
2641 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2643 if test $ol_enable_bdb = yes ; then
2644 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2646 if test $ol_enable_dnssrv = yes ; then
2647 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2649 if test $ol_enable_ldap = yes ; then
2650 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2652 if test $ol_enable_ldbm = yes ; then
2653 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2655 if test $ol_enable_meta = yes ; then
2656 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2658 if test $ol_enable_monitor = yes ; then
2659 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2661 if test $ol_enable_null = yes ; then
2662 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2664 if test $ol_enable_passwd = yes ; then
2665 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2667 if test $ol_enable_perl = yes ; then
2668 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2670 if test $ol_enable_shell = yes ; then
2671 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2673 if test $ol_enable_tcl = yes ; then
2674 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2676 if test $ol_enable_sql = yes ; then
2677 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2679 if test $ol_enable_modules = yes ; then
2680 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2682 if test $ol_enable_multimaster = yes ; then
2683 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2685 if test $ol_enable_wrappers = yes ; then
2686 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2688 if test $ol_enable_phonetic = yes ; then
2689 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2691 if test $ol_enable_rlookups = yes ; then
2692 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2694 if test $ol_enable_aci = yes ; then
2695 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2697 if test $ol_with_ldbm_api != auto ; then
2698 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2700 if test $ol_with_ldbm_type != auto ; then
2701 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2703 if test $ol_with_bdb_module != static ; then
2704 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2706 if test $ol_with_dnssrv_module != static ; then
2707 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2709 if test $ol_with_ldap_module != static ; then
2710 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2712 if test $ol_with_ldbm_module != static ; then
2713 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2715 if test $ol_with_meta_module != static ; then
2716 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2718 if test $ol_with_monitor_module != static ; then
2719 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2721 if test $ol_with_null_module != static ; then
2722 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2724 if test $ol_with_passwd_module != static ; then
2725 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2727 if test $ol_with_perl_module != static ; then
2728 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2730 if test $ol_with_shell_module != static ; then
2731 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2733 if test $ol_with_tcl_module != static ; then
2734 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2736 if test $ol_with_sql_module != static ; then
2737 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2739 if test $ol_enable_slurpd = yes ; then
2740 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2742 if test $ol_enable_rewrite = yes ; then
2743 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2746 # force settings to no
2753 ol_enable_monitor=no
2761 ol_enable_modules=no
2762 ol_enable_multimaster=no
2763 ol_enable_phonetic=no
2764 ol_enable_rlookups=no
2766 ol_enable_wrappers=no
2767 ol_enable_dynamic=no
2770 ol_with_ldbm_type=no
2772 ol_with_bdb_module=static
2773 ol_with_dnssrv_module=static
2774 ol_with_ldap_module=static
2775 ol_with_ldbm_module=static
2776 ol_with_meta_module=static
2777 ol_with_monitor_module=static
2778 ol_with_null_module=static
2779 ol_with_passwd_module=static
2780 ol_with_perl_module=static
2781 ol_with_shell_module=static
2782 ol_with_tcl_module=static
2783 ol_with_sql_module=static
2787 ol_enable_rewrite=no
2789 elif test $ol_enable_ldbm = no ; then
2791 if test $ol_with_ldbm_api != auto ; then
2792 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2795 if test $ol_with_ldbm_type != auto ; then
2796 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2799 if test $ol_with_ldbm_module != static ; then
2800 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2803 if test $ol_enable_modules != yes -a \
2804 $ol_enable_bdb = no -a \
2805 $ol_enable_dnssrv = no -a \
2806 $ol_enable_ldap = no -a \
2807 $ol_enable_meta = no -a \
2808 $ol_enable_monitor = no -a \
2809 $ol_enable_null = no -a \
2810 $ol_enable_passwd = no -a \
2811 $ol_enable_perl = no -a \
2812 $ol_enable_shell = no -a \
2813 $ol_enable_sql = no -a \
2814 $ol_enable_tcl = no ; then
2816 if test $ol_enable_slapd = yes ; then
2817 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2819 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2825 ol_with_ldbm_type=no
2826 ol_with_ldbm_module=static
2828 if test $ol_enable_bdb != no ; then
2829 ol_with_ldbm_api=berkeley
2833 if test $ol_with_ldbm_api = gdbm -a \
2834 $ol_with_ldbm_type = btree ; then
2835 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2837 if test $ol_with_ldbm_api = mdbm -a \
2838 $ol_with_ldbm_type = btree ; then
2839 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2841 if test $ol_with_ldbm_api = ndbm -a \
2842 $ol_with_ldbm_type = btree ; then
2843 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2846 if test $ol_enable_bdb = yes ; then
2847 if test $ol_with_ldbm_api = auto ; then
2848 ol_with_ldbm_api=berkeley
2849 elif test $ol_with_ldbm_api != berkeley ; then
2850 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2853 elif test $ol_enable_bdb = auto ; then
2854 if test $ol_with_ldbm_api != berkeley \
2855 -o $ol_with_ldbm_api != auto ; then
2856 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2862 if test $ol_enable_slurpd = yes ; then
2863 if test $ol_with_threads = no ; then
2864 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2868 if test $ol_enable_lmpasswd = yes ; then
2869 if test $ol_with_tls = no ; then
2870 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2874 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2875 if test $ol_with_kerberos = no ; then
2876 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2877 elif test $ol_with_kerberos = auto ; then
2878 ol_with_kerberos=yes
2881 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2882 if test $ol_with_kerberos = auto ; then
2884 elif test $ol_with_kerberos != no ; then
2885 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2890 if test $ol_enable_spasswd = yes ; then
2891 if test $ol_with_cyrus_sasl = no ; then
2892 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2894 ol_with_cyrus_sasl=yes
2897 echo "$ac_t""done" 1>&6
2929 BUILD_BDB_DYNAMIC=static
2930 BUILD_DNSSRV_DYNAMIC=static
2931 BUILD_LDAP_DYNAMIC=static
2932 BUILD_LDBM_DYNAMIC=static
2933 BUILD_META_DYNAMIC=static
2934 BUILD_MONITOR_DYNAMIC=static
2935 BUILD_NULL_DYNAMIC=static
2936 BUILD_PASSWD_DYNAMIC=static
2937 BUILD_PERL_DYNAMIC=static
2938 BUILD_SHELL_DYNAMIC=static
2939 BUILD_TCL_DYNAMIC=static
2940 BUILD_SQL_DYNAMIC=static
2942 SLAPD_MODULES_LDFLAGS=
2943 SLAPD_MODULES_CPPFLAGS=
2945 SLAPD_STATIC_BACKENDS=
2946 SLAPD_DYNAMIC_BACKENDS=
2972 # Find a good install program. We prefer a C program (faster),
2973 # so one script is as good as another. But avoid the broken or
2974 # incompatible versions:
2975 # SysV /etc/install, /usr/sbin/install
2976 # SunOS /usr/etc/install
2977 # IRIX /sbin/install
2979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2982 # ./install, which can be erroneously created by make from ./install.sh.
2983 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2984 echo "configure:2985: checking for a BSD compatible install" >&5
2985 if test -z "$INSTALL"; then
2986 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2990 for ac_dir in $PATH; do
2991 # Account for people who put trailing slashes in PATH elements.
2993 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2995 # OSF1 and SCO ODT 3.0 have their own names for install.
2996 # Don't use installbsd from OSF since it installs stuff as root
2998 for ac_prog in ginstall scoinst install; do
2999 if test -f $ac_dir/$ac_prog; then
3000 if test $ac_prog = install &&
3001 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3002 # AIX install. It has an incompatible calling convention.
3004 elif test $ac_prog = install &&
3005 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
3006 # program-specific install script used by HP pwplus--don't use.
3009 ac_cv_path_install="$ac_dir/$ac_prog -c"
3020 if test "${ac_cv_path_install+set}" = set; then
3021 INSTALL="$ac_cv_path_install"
3023 # As a last resort, use the slow shell script. We don't cache a
3024 # path for INSTALL within a source directory, because that will
3025 # break other packages using the cache if that directory is
3026 # removed, or if the path is relative.
3027 INSTALL="$ac_install_sh"
3030 echo "$ac_t""$INSTALL" 1>&6
3032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3033 # It thinks the first close brace ends the variable substitution.
3034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3041 cat >> confdefs.h <<\EOF
3042 #define HAVE_MKVERSION 1
3050 *-*-aix*) if test -z "$CC" ; then
3051 case "$ol_with_threads" in
3052 auto | yes | posix) ol_aix_threads=yes ;;
3058 if test $ol_aix_threads = yes ; then
3059 if test -z "${CC}" ; then
3060 for ac_prog in cc_r xlc_r cc
3062 # Extract the first word of "$ac_prog", so it can be a program name with args.
3063 set dummy $ac_prog; ac_word=$2
3064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3065 echo "configure:3066: checking for $ac_word" >&5
3066 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3074 for ac_dir in $ac_dummy; do
3075 test -z "$ac_dir" && ac_dir=.
3076 if test -f $ac_dir/$ac_word; then
3077 ac_cv_prog_CC="$ac_prog"
3085 if test -n "$CC"; then
3086 echo "$ac_t""$CC" 1>&6
3088 echo "$ac_t""no" 1>&6
3091 test -n "$CC" && break
3095 if test "$CC" = cc ; then
3096 if test $ol_with_threads != auto ; then
3097 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3099 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3105 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3106 ol_with_threads=posix
3107 ol_cv_pthread_create=yes
3111 if test -z "${CC}"; then
3112 for ac_prog in cc gcc
3114 # Extract the first word of "$ac_prog", so it can be a program name with args.
3115 set dummy $ac_prog; ac_word=$2
3116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3117 echo "configure:3118: checking for $ac_word" >&5
3118 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3126 for ac_dir in $ac_dummy; do
3127 test -z "$ac_dir" && ac_dir=.
3128 if test -f $ac_dir/$ac_word; then
3129 ac_cv_prog_CC="$ac_prog"
3137 if test -n "$CC"; then
3138 echo "$ac_t""$CC" 1>&6
3140 echo "$ac_t""no" 1>&6
3143 test -n "$CC" && break
3145 test -n "$CC" || CC="missing"
3148 if test "${CC}" = "missing" ; then
3149 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3153 if test -z "${AR}"; then
3154 for ac_prog in ar gar
3156 # Extract the first word of "$ac_prog", so it can be a program name with args.
3157 set dummy $ac_prog; ac_word=$2
3158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3159 echo "configure:3160: checking for $ac_word" >&5
3160 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3161 echo $ac_n "(cached) $ac_c" 1>&6
3163 if test -n "$AR"; then
3164 ac_cv_prog_AR="$AR" # Let the user override the test.
3166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3168 for ac_dir in $ac_dummy; do
3169 test -z "$ac_dir" && ac_dir=.
3170 if test -f $ac_dir/$ac_word; then
3171 ac_cv_prog_AR="$ac_prog"
3179 if test -n "$AR"; then
3180 echo "$ac_t""$AR" 1>&6
3182 echo "$ac_t""no" 1>&6
3185 test -n "$AR" && break
3187 test -n "$AR" || AR="missing"
3190 if test "${AR}" = "missing" ; then
3191 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3197 # Find the correct PATH separator. Usually this is `:', but
3198 # DJGPP uses `;' like DOS.
3199 if test "X${PATH_SEPARATOR+set}" != Xset; then
3200 UNAME=${UNAME-`uname 2>/dev/null`}
3202 *-DOS) lt_cv_sys_path_separator=';' ;;
3203 *) lt_cv_sys_path_separator=':' ;;
3205 PATH_SEPARATOR=$lt_cv_sys_path_separator
3208 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3209 echo "configure:3210: checking for Cygwin environment" >&5
3210 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3220 #define __CYGWIN__ __CYGWIN32__
3225 if { (eval echo configure:3226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3237 echo "$ac_t""$ac_cv_cygwin" 1>&6
3239 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3240 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3241 echo "configure:3242: checking for mingw32 environment" >&5
3242 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3253 if { (eval echo configure:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3265 echo "$ac_t""$ac_cv_mingw32" 1>&6
3267 test "$ac_cv_mingw32" = yes && MINGW32=yes
3268 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3269 echo "configure:3270: checking for EMX OS/2 environment" >&5
3270 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3281 if { (eval echo configure:3282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3285 echo "configure: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3293 echo "$ac_t""$ac_cv_emxos2" 1>&6
3295 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3296 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3297 echo "configure:3298: checking how to run the C preprocessor" >&5
3298 # On Suns, sometimes $CPP names a directory.
3299 if test -n "$CPP" && test -d "$CPP"; then
3302 if test -z "$CPP"; then
3303 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3304 echo $ac_n "(cached) $ac_c" 1>&6
3306 # This must be in double quotes, not single quotes, because CPP may get
3307 # substituted into the Makefile and "${CC-cc}" will confuse make.
3309 # On the NeXT, cc -E runs the code through the compiler's parser,
3310 # not just through cpp.
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3318 { (eval echo configure:3319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3320 if test -z "$ac_err"; then
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3327 CPP="${CC-cc} -E -traditional-cpp"
3328 cat > conftest.$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3335 { (eval echo configure:3336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3337 if test -z "$ac_err"; then
3341 echo "configure: failed program was:" >&5
3342 cat conftest.$ac_ext >&5
3344 CPP="${CC-cc} -nologo -E"
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3352 { (eval echo configure:3353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3354 if test -z "$ac_err"; then
3358 echo "configure: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3368 ac_cv_prog_CPP="$CPP"
3370 CPP="$ac_cv_prog_CPP"
3372 ac_cv_prog_CPP="$CPP"
3374 echo "$ac_t""$CPP" 1>&6
3376 # Check whether --enable-fast-install or --disable-fast-install was given.
3377 if test "${enable_fast_install+set}" = set; then
3378 enableval="$enable_fast_install"
3379 p=${PACKAGE-default}
3381 yes) enable_fast_install=yes ;;
3382 no) enable_fast_install=no ;;
3384 enable_fast_install=no
3385 # Look at the argument we got. We use all the common list separators.
3386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3387 for pkg in $enableval; do
3388 if test "X$pkg" = "X$p"; then
3389 enable_fast_install=yes
3396 enable_fast_install=yes
3399 # Extract the first word of "gcc", so it can be a program name with args.
3400 set dummy gcc; ac_word=$2
3401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3402 echo "configure:3403: checking for $ac_word" >&5
3403 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 if test -n "$CC"; then
3407 ac_cv_prog_CC="$CC" # Let the user override the test.
3409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3411 for ac_dir in $ac_dummy; do
3412 test -z "$ac_dir" && ac_dir=.
3413 if test -f $ac_dir/$ac_word; then
3422 if test -n "$CC"; then
3423 echo "$ac_t""$CC" 1>&6
3425 echo "$ac_t""no" 1>&6
3428 if test -z "$CC"; then
3429 # Extract the first word of "cc", so it can be a program name with args.
3430 set dummy cc; ac_word=$2
3431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3432 echo "configure:3433: checking for $ac_word" >&5
3433 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 if test -n "$CC"; then
3437 ac_cv_prog_CC="$CC" # Let the user override the test.
3439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3442 for ac_dir in $ac_dummy; do
3443 test -z "$ac_dir" && ac_dir=.
3444 if test -f $ac_dir/$ac_word; then
3445 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3446 ac_prog_rejected=yes
3454 if test $ac_prog_rejected = yes; then
3455 # We found a bogon in the path, so make sure we never use it.
3456 set dummy $ac_cv_prog_CC
3458 if test $# -gt 0; then
3459 # We chose a different compiler from the bogus one.
3460 # However, it has the same basename, so the bogon will be chosen
3461 # first if we set CC to just the basename; use the full file name.
3463 set dummy "$ac_dir/$ac_word" "$@"
3471 if test -n "$CC"; then
3472 echo "$ac_t""$CC" 1>&6
3474 echo "$ac_t""no" 1>&6
3477 if test -z "$CC"; then
3478 case "`uname -s`" in
3479 *win32* | *WIN32* | *CYGWIN*)
3480 # Extract the first word of "cl", so it can be a program name with args.
3481 set dummy cl; ac_word=$2
3482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3483 echo "configure:3484: checking for $ac_word" >&5
3484 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 if test -n "$CC"; then
3488 ac_cv_prog_CC="$CC" # Let the user override the test.
3490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3492 for ac_dir in $ac_dummy; do
3493 test -z "$ac_dir" && ac_dir=.
3494 if test -f $ac_dir/$ac_word; then
3503 if test -n "$CC"; then
3504 echo "$ac_t""$CC" 1>&6
3506 echo "$ac_t""no" 1>&6
3511 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3514 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3515 echo "configure:3516: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3522 cross_compiling=$ac_cv_prog_cc_cross
3524 cat > conftest.$ac_ext << EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3531 if { (eval echo configure:3532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3532 ac_cv_prog_cc_works=yes
3533 # If we can't run a trivial program, we are probably using a cross compiler.
3534 if (./conftest; exit) 2>/dev/null; then
3535 ac_cv_prog_cc_cross=no
3537 ac_cv_prog_cc_cross=yes
3540 echo "configure: failed program was:" >&5
3541 cat conftest.$ac_ext >&5
3542 ac_cv_prog_cc_works=no
3546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3549 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3550 cross_compiling=$ac_cv_prog_cc_cross
3552 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3553 if test $ac_cv_prog_cc_works = no; then
3554 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3556 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3557 echo "configure:3558: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3558 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3559 cross_compiling=$ac_cv_prog_cc_cross
3561 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3562 echo "configure:3563: checking whether we are using GNU C" >&5
3563 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 cat > conftest.c <<EOF
3571 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3578 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3580 if test $ac_cv_prog_gcc = yes; then
3586 ac_test_CFLAGS="${CFLAGS+set}"
3587 ac_save_CFLAGS="$CFLAGS"
3589 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3590 echo "configure:3591: checking whether ${CC-cc} accepts -g" >&5
3591 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3594 echo 'void f(){}' > conftest.c
3595 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3604 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3605 if test "$ac_test_CFLAGS" = set; then
3606 CFLAGS="$ac_save_CFLAGS"
3607 elif test $ac_cv_prog_cc_g = yes; then
3608 if test "$GCC" = yes; then
3614 if test "$GCC" = yes; then
3621 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3622 if test "${with_gnu_ld+set}" = set; then
3623 withval="$with_gnu_ld"
3624 test "$withval" = no || with_gnu_ld=yes
3630 if test "$GCC" = yes; then
3631 # Check if gcc -print-prog-name=ld gives a path.
3632 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3633 echo "configure:3634: checking for ld used by GCC" >&5
3636 # gcc leaves a trailing carriage return which upsets mingw
3637 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3639 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3642 # Accept absolute paths.
3643 [\\/]* | [A-Za-z]:[\\/]*)
3644 re_direlt='/[^/][^/]*/\.\./'
3645 # Canonicalize the path of ld
3646 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3647 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3648 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3650 test -z "$LD" && LD="$ac_prog"
3653 # If it fails, then pretend we aren't using GCC.
3657 # If it is relative, then search for the first ld in PATH.
3661 elif test "$with_gnu_ld" = yes; then
3662 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3663 echo "configure:3664: checking for GNU ld" >&5
3665 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3666 echo "configure:3667: checking for non-GNU ld" >&5
3668 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3671 if test -z "$LD"; then
3672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3673 for ac_dir in $PATH; do
3674 test -z "$ac_dir" && ac_dir=.
3675 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3676 lt_cv_path_LD="$ac_dir/$ac_prog"
3677 # Check to see if the program is GNU ld. I'd rather use --version,
3678 # but apparently some GNU ld's only accept -v.
3679 # Break only if it was the GNU/non-GNU ld that we prefer.
3680 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3681 test "$with_gnu_ld" != no && break
3683 test "$with_gnu_ld" != yes && break
3689 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3694 if test -n "$LD"; then
3695 echo "$ac_t""$LD" 1>&6
3697 echo "$ac_t""no" 1>&6
3699 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3700 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3701 echo "configure:3702: checking if the linker ($LD) is GNU ld" >&5
3702 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3705 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3706 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3707 lt_cv_prog_gnu_ld=yes
3709 lt_cv_prog_gnu_ld=no
3713 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3714 with_gnu_ld=$lt_cv_prog_gnu_ld
3717 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3718 echo "configure:3719: checking for $LD option to reload object files" >&5
3719 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3720 echo $ac_n "(cached) $ac_c" 1>&6
3722 lt_cv_ld_reload_flag='-r'
3725 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3726 reload_flag=$lt_cv_ld_reload_flag
3727 test -n "$reload_flag" && reload_flag=" $reload_flag"
3729 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3730 echo "configure:3731: checking for BSD-compatible nm" >&5
3731 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3734 if test -n "$NM"; then
3735 # Let the user override the test.
3738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3739 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3740 test -z "$ac_dir" && ac_dir=.
3741 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3742 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3743 # Check to see if the nm accepts a BSD-compat flag.
3744 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3745 # nm: unknown option "B" ignored
3746 # Tru64's nm complains that /dev/null is an invalid object file
3747 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3748 lt_cv_path_NM="$tmp_nm -B"
3750 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3751 lt_cv_path_NM="$tmp_nm -p"
3754 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3755 continue # so that we can try to find one that supports BSD flags
3760 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3765 echo "$ac_t""$NM" 1>&6
3767 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3768 echo "configure:3769: checking whether ln -s works" >&5
3769 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3770 echo $ac_n "(cached) $ac_c" 1>&6
3773 if ln -s X conftestdata 2>/dev/null
3776 ac_cv_prog_LN_S="ln -s"
3781 LN_S="$ac_cv_prog_LN_S"
3782 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3783 echo "$ac_t""yes" 1>&6
3785 echo "$ac_t""no" 1>&6
3788 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3789 echo "configure:3790: checking how to recognise dependant libraries" >&5
3790 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3793 lt_cv_file_magic_cmd='$MAGIC_CMD'
3794 lt_cv_file_magic_test_file=
3795 lt_cv_deplibs_check_method='unknown'
3796 # Need to set the preceding variable on all platforms that support
3797 # interlibrary dependencies.
3798 # 'none' -- dependencies not supported.
3799 # `unknown' -- same as none, but documents that we really don't know.
3800 # 'pass_all' -- all dependencies passed with no checks.
3801 # 'test_compile' -- check by making test program.
3802 # 'file_magic [[regex]]' -- check by looking for files in library path
3803 # which responds to the $file_magic_cmd with a given egrep regex.
3804 # If you have `file' or equivalent on your system and you're not sure
3805 # whether `pass_all' will *always* work, you probably want this one.
3809 lt_cv_deplibs_check_method=pass_all
3813 lt_cv_deplibs_check_method=pass_all
3817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3818 lt_cv_file_magic_cmd='/usr/bin/file -L'
3819 lt_cv_file_magic_test_file=/shlib/libc.so
3822 cygwin* | mingw* | pw32*)
3823 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3824 lt_cv_file_magic_cmd='$OBJDUMP -f'
3827 darwin* | rhapsody*)
3828 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3829 lt_cv_file_magic_cmd='/usr/bin/file -L'
3831 rhapsody* | darwin1.[012])
3832 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3835 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3841 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3844 # Not sure whether the presence of OpenBSD here was a mistake.
3845 # Let's accept both of them until this is cleared up.
3846 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3847 lt_cv_file_magic_cmd=/usr/bin/file
3848 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3852 lt_cv_deplibs_check_method=pass_all
3857 lt_cv_deplibs_check_method=pass_all
3861 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3862 lt_cv_file_magic_cmd=/usr/bin/file
3863 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3869 # this will be overridden with pass_all, but let us keep it just in case
3870 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3874 *-32|*"-32 ") libmagic=32-bit;;
3875 *-n32|*"-n32 ") libmagic=N32;;
3876 *-64|*"-64 ") libmagic=64-bit;;
3877 *) libmagic=never-match;;
3879 # this will be overridden with pass_all, but let us keep it just in case
3880 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3883 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3884 lt_cv_deplibs_check_method=pass_all
3887 # This must be Linux ELF.
3890 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3891 lt_cv_deplibs_check_method=pass_all ;;
3893 # glibc up to 2.1.1 does not perform some relocations on ARM
3894 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3896 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3900 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3901 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3903 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3909 lt_cv_file_magic_cmd=/usr/bin/file
3910 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3914 lt_cv_file_magic_cmd=/usr/bin/file
3915 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3919 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3923 osf3* | osf4* | osf5*)
3924 # this will be overridden with pass_all, but let us keep it just in case
3925 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3926 lt_cv_file_magic_test_file=/shlib/libc.so
3927 lt_cv_deplibs_check_method=pass_all
3931 lt_cv_deplibs_check_method=pass_all
3935 lt_cv_deplibs_check_method=pass_all
3936 lt_cv_file_magic_test_file=/lib/libc.so
3939 sysv5uw[78]* | sysv4*uw2*)
3940 lt_cv_deplibs_check_method=pass_all
3943 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3944 case $host_vendor in
3946 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]'
3947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3950 lt_cv_deplibs_check_method=pass_all
3953 lt_cv_file_magic_cmd='/bin/file'
3954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3957 lt_cv_file_magic_cmd='/bin/file'
3958 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3959 lt_cv_file_magic_test_file=/lib/libc.so
3967 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3968 file_magic_cmd=$lt_cv_file_magic_cmd
3969 deplibs_check_method=$lt_cv_deplibs_check_method
3971 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3972 echo "configure:3973: checking for object suffix" >&5
3973 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3977 echo 'int i = 1;' > conftest.$ac_ext
3978 if { (eval echo configure:3979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3979 for ac_file in conftest.*; do
3982 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3986 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3991 echo "$ac_t""$ac_cv_objext" 1>&6
3992 OBJEXT=$ac_cv_objext
3993 ac_objext=$ac_cv_objext
3998 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3999 echo "configure:4000: checking for executable suffix" >&5
4000 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4003 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4007 echo 'int main () { return 0; }' > conftest.$ac_ext
4009 if { (eval echo configure:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4010 for file in conftest.*; do
4012 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4013 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4017 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4020 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4025 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4026 echo "$ac_t""${ac_cv_exeext}" 1>&6
4029 if test $host != $build; then
4030 ac_tool_prefix=${host_alias}-
4038 # Check for command to grab the raw symbol name followed by C symbol from nm.
4039 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4040 echo "configure:4041: checking command to parse $NM output" >&5
4041 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4042 echo $ac_n "(cached) $ac_c" 1>&6
4045 # These are sane defaults that work on at least a few old systems.
4046 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4048 # Character class describing NM global symbol codes.
4049 symcode='[BCDEGRST]'
4051 # Regexp to match symbols that can be accessed directly from C.
4052 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4054 # Transform the above into a raw symbol and a C symbol.
4055 symxfrm='\1 \2\3 \3'
4057 # Transform an extracted symbol line into a proper C declaration
4058 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4060 # Transform an extracted symbol line into symbol name and symbol address
4061 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'"
4063 # Define system-specific variables.
4068 cygwin* | mingw* | pw32*)
4069 symcode='[ABCDGISTW]'
4071 hpux*) # Its linker distinguishes data from code symbols
4072 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4073 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'"
4076 symcode='[BCDEGRST]'
4086 # Handle CRLF in mingw tool chain
4090 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4094 # If we're using GNU nm, then use its standard symbol codes.
4095 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4096 symcode='[ABCDGISTW]'
4099 # Try without a prefix undercore, then with it.
4100 for ac_symprfx in "" "_"; do
4102 # Write the raw and C identifiers.
4103 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4105 # Check to see that the pipe works correctly.
4108 cat > conftest.$ac_ext <<EOF
4113 void nm_test_func(){}
4117 int main(){nm_test_var='a';nm_test_func();return(0);}
4120 if { (eval echo configure:4121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4121 # Now try to grab the symbols.
4123 if { (eval echo configure:4124: \"$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
4124 # Try sorting and uniquifying the output.
4125 if sort "$nlist" | uniq > "$nlist"T; then
4126 mv -f "$nlist"T "$nlist"
4131 # Make sure that we snagged all the symbols we need.
4132 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4133 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4134 cat <<EOF > conftest.$ac_ext
4140 # Now generate the symbol file.
4141 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4143 cat <<EOF >> conftest.$ac_ext
4144 #if defined (__STDC__) && __STDC__
4145 # define lt_ptr void *
4147 # define lt_ptr char *
4151 /* The mapping between symbol names and symbols. */
4156 lt_preloaded_symbols[] =
4159 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4160 cat <<\EOF >> conftest.$ac_ext
4168 # Now try linking the two files.
4169 mv conftest.$ac_objext conftstm.$ac_objext
4171 save_CFLAGS="$CFLAGS"
4172 LIBS="conftstm.$ac_objext"
4173 CFLAGS="$CFLAGS$no_builtin_flag"
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4178 CFLAGS="$save_CFLAGS"
4180 echo "cannot find nm_test_func in $nlist" >&5
4183 echo "cannot find nm_test_var in $nlist" >&5
4186 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4189 echo "$progname: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4192 rm -f conftest* conftst*
4194 # Do not use the global_symbol_pipe unless it works.
4195 if test "$pipe_works" = yes; then
4198 lt_cv_sys_global_symbol_pipe=
4204 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4205 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4206 global_symbol_to_cdecl=
4207 global_symbol_to_c_name_address=
4209 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4210 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4212 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4214 echo "$ac_t""failed" 1>&6
4216 echo "$ac_t""ok" 1>&6
4219 for ac_hdr in dlfcn.h
4221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4223 echo "configure:4224: checking for $ac_hdr" >&5
4224 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4227 cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4233 { (eval echo configure:4234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4235 if test -z "$ac_err"; then
4237 eval "ac_cv_header_$ac_safe=yes"
4240 echo "configure: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4243 eval "ac_cv_header_$ac_safe=no"
4247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4248 echo "$ac_t""yes" 1>&6
4249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4250 cat >> confdefs.h <<EOF
4251 #define $ac_tr_hdr 1
4255 echo "$ac_t""no" 1>&6
4263 # Only perform the check for file, if the check method requires it
4264 case $deplibs_check_method in
4266 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4267 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4268 echo "configure:4269: checking for ${ac_tool_prefix}file" >&5
4269 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4274 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4280 ac_save_MAGIC_CMD="$MAGIC_CMD"
4281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4282 ac_dummy="/usr/bin:$PATH"
4283 for ac_dir in $ac_dummy; do
4284 test -z "$ac_dir" && ac_dir=.
4285 if test -f $ac_dir/${ac_tool_prefix}file; then
4286 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4287 if test -n "$file_magic_test_file"; then
4288 case $deplibs_check_method in
4290 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4292 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4293 egrep "$file_magic_regex" > /dev/null; then
4298 *** Warning: the command libtool uses to detect shared libraries,
4299 *** $file_magic_cmd, produces output that libtool cannot recognize.
4300 *** The result is that libtool may fail to recognize shared libraries
4301 *** as such. This will affect the creation of libtool libraries that
4302 *** depend on shared libraries, but programs linked with such libtool
4303 *** libraries will work regardless of this problem. Nevertheless, you
4304 *** may want to report the problem to your system manager and/or to
4305 *** bug-libtool@gnu.org
4315 MAGIC_CMD="$ac_save_MAGIC_CMD"
4320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4321 if test -n "$MAGIC_CMD"; then
4322 echo "$ac_t""$MAGIC_CMD" 1>&6
4324 echo "$ac_t""no" 1>&6
4327 if test -z "$lt_cv_path_MAGIC_CMD"; then
4328 if test -n "$ac_tool_prefix"; then
4329 echo $ac_n "checking for file""... $ac_c" 1>&6
4330 echo "configure:4331: checking for file" >&5
4331 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4336 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4339 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4342 ac_save_MAGIC_CMD="$MAGIC_CMD"
4343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4344 ac_dummy="/usr/bin:$PATH"
4345 for ac_dir in $ac_dummy; do
4346 test -z "$ac_dir" && ac_dir=.
4347 if test -f $ac_dir/file; then
4348 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4349 if test -n "$file_magic_test_file"; then
4350 case $deplibs_check_method in
4352 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4355 egrep "$file_magic_regex" > /dev/null; then
4360 *** Warning: the command libtool uses to detect shared libraries,
4361 *** $file_magic_cmd, produces output that libtool cannot recognize.
4362 *** The result is that libtool may fail to recognize shared libraries
4363 *** as such. This will affect the creation of libtool libraries that
4364 *** depend on shared libraries, but programs linked with such libtool
4365 *** libraries will work regardless of this problem. Nevertheless, you
4366 *** may want to report the problem to your system manager and/or to
4367 *** bug-libtool@gnu.org
4377 MAGIC_CMD="$ac_save_MAGIC_CMD"
4382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4383 if test -n "$MAGIC_CMD"; then
4384 echo "$ac_t""$MAGIC_CMD" 1>&6
4386 echo "$ac_t""no" 1>&6
4398 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4399 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4401 echo "configure:4402: checking for $ac_word" >&5
4402 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4405 if test -n "$RANLIB"; then
4406 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4410 for ac_dir in $ac_dummy; do
4411 test -z "$ac_dir" && ac_dir=.
4412 if test -f $ac_dir/$ac_word; then
4413 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4420 RANLIB="$ac_cv_prog_RANLIB"
4421 if test -n "$RANLIB"; then
4422 echo "$ac_t""$RANLIB" 1>&6
4424 echo "$ac_t""no" 1>&6
4428 if test -z "$ac_cv_prog_RANLIB"; then
4429 if test -n "$ac_tool_prefix"; then
4430 # Extract the first word of "ranlib", so it can be a program name with args.
4431 set dummy ranlib; ac_word=$2
4432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4433 echo "configure:4434: checking for $ac_word" >&5
4434 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4437 if test -n "$RANLIB"; then
4438 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4442 for ac_dir in $ac_dummy; do
4443 test -z "$ac_dir" && ac_dir=.
4444 if test -f $ac_dir/$ac_word; then
4445 ac_cv_prog_RANLIB="ranlib"
4450 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4453 RANLIB="$ac_cv_prog_RANLIB"
4454 if test -n "$RANLIB"; then
4455 echo "$ac_t""$RANLIB" 1>&6
4457 echo "$ac_t""no" 1>&6
4465 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4466 set dummy ${ac_tool_prefix}strip; ac_word=$2
4467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4468 echo "configure:4469: checking for $ac_word" >&5
4469 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4470 echo $ac_n "(cached) $ac_c" 1>&6
4472 if test -n "$STRIP"; then
4473 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4477 for ac_dir in $ac_dummy; do
4478 test -z "$ac_dir" && ac_dir=.
4479 if test -f $ac_dir/$ac_word; then
4480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4487 STRIP="$ac_cv_prog_STRIP"
4488 if test -n "$STRIP"; then
4489 echo "$ac_t""$STRIP" 1>&6
4491 echo "$ac_t""no" 1>&6
4495 if test -z "$ac_cv_prog_STRIP"; then
4496 if test -n "$ac_tool_prefix"; then
4497 # Extract the first word of "strip", so it can be a program name with args.
4498 set dummy strip; ac_word=$2
4499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4500 echo "configure:4501: checking for $ac_word" >&5
4501 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4502 echo $ac_n "(cached) $ac_c" 1>&6
4504 if test -n "$STRIP"; then
4505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4509 for ac_dir in $ac_dummy; do
4510 test -z "$ac_dir" && ac_dir=.
4511 if test -f $ac_dir/$ac_word; then
4512 ac_cv_prog_STRIP="strip"
4517 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4520 STRIP="$ac_cv_prog_STRIP"
4521 if test -n "$STRIP"; then
4522 echo "$ac_t""$STRIP" 1>&6
4524 echo "$ac_t""no" 1>&6
4534 enable_win32_dll=yes
4536 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4537 if test "${enable_libtool_lock+set}" = set; then
4538 enableval="$enable_libtool_lock"
4542 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4544 # Some flags need to be propagated to the compiler or linker for good
4548 # Find out which ABI we are using.
4549 echo '#line 4550 "configure"' > conftest.$ac_ext
4550 if { (eval echo configure:4551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4551 case `/usr/bin/file conftest.$ac_objext` in
4567 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4568 SAVE_CFLAGS="$CFLAGS"
4569 CFLAGS="$CFLAGS -belf"
4570 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4571 echo "configure:4572: checking whether the C compiler needs -belf" >&5
4572 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4581 cross_compiling=$ac_cv_prog_cc_cross
4583 cat > conftest.$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4591 if { (eval echo configure:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4593 lt_cv_cc_needs_belf=yes
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4598 lt_cv_cc_needs_belf=no
4602 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4603 ac_cpp='$CPP $CPPFLAGS'
4604 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4605 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4606 cross_compiling=$ac_cv_prog_cc_cross
4610 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4611 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4612 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4613 CFLAGS="$SAVE_CFLAGS"
4617 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4618 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4621 echo "configure:4622: checking for $ac_word" >&5
4622 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4625 if test -n "$DLLTOOL"; then
4626 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4630 for ac_dir in $ac_dummy; do
4631 test -z "$ac_dir" && ac_dir=.
4632 if test -f $ac_dir/$ac_word; then
4633 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4640 DLLTOOL="$ac_cv_prog_DLLTOOL"
4641 if test -n "$DLLTOOL"; then
4642 echo "$ac_t""$DLLTOOL" 1>&6
4644 echo "$ac_t""no" 1>&6
4648 if test -z "$ac_cv_prog_DLLTOOL"; then
4649 if test -n "$ac_tool_prefix"; then
4650 # Extract the first word of "dlltool", so it can be a program name with args.
4651 set dummy dlltool; ac_word=$2
4652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4653 echo "configure:4654: checking for $ac_word" >&5
4654 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4657 if test -n "$DLLTOOL"; then
4658 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4662 for ac_dir in $ac_dummy; do
4663 test -z "$ac_dir" && ac_dir=.
4664 if test -f $ac_dir/$ac_word; then
4665 ac_cv_prog_DLLTOOL="dlltool"
4670 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4673 DLLTOOL="$ac_cv_prog_DLLTOOL"
4674 if test -n "$DLLTOOL"; then
4675 echo "$ac_t""$DLLTOOL" 1>&6
4677 echo "$ac_t""no" 1>&6
4685 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4686 set dummy ${ac_tool_prefix}as; ac_word=$2
4687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4688 echo "configure:4689: checking for $ac_word" >&5
4689 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4690 echo $ac_n "(cached) $ac_c" 1>&6
4692 if test -n "$AS"; then
4693 ac_cv_prog_AS="$AS" # Let the user override the test.
4695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4697 for ac_dir in $ac_dummy; do
4698 test -z "$ac_dir" && ac_dir=.
4699 if test -f $ac_dir/$ac_word; then
4700 ac_cv_prog_AS="${ac_tool_prefix}as"
4708 if test -n "$AS"; then
4709 echo "$ac_t""$AS" 1>&6
4711 echo "$ac_t""no" 1>&6
4715 if test -z "$ac_cv_prog_AS"; then
4716 if test -n "$ac_tool_prefix"; then
4717 # Extract the first word of "as", so it can be a program name with args.
4718 set dummy as; ac_word=$2
4719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4720 echo "configure:4721: checking for $ac_word" >&5
4721 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4724 if test -n "$AS"; then
4725 ac_cv_prog_AS="$AS" # Let the user override the test.
4727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4729 for ac_dir in $ac_dummy; do
4730 test -z "$ac_dir" && ac_dir=.
4731 if test -f $ac_dir/$ac_word; then
4737 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4741 if test -n "$AS"; then
4742 echo "$ac_t""$AS" 1>&6
4744 echo "$ac_t""no" 1>&6
4752 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4753 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4755 echo "configure:4756: checking for $ac_word" >&5
4756 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 if test -n "$OBJDUMP"; then
4760 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4764 for ac_dir in $ac_dummy; do
4765 test -z "$ac_dir" && ac_dir=.
4766 if test -f $ac_dir/$ac_word; then
4767 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4774 OBJDUMP="$ac_cv_prog_OBJDUMP"
4775 if test -n "$OBJDUMP"; then
4776 echo "$ac_t""$OBJDUMP" 1>&6
4778 echo "$ac_t""no" 1>&6
4782 if test -z "$ac_cv_prog_OBJDUMP"; then
4783 if test -n "$ac_tool_prefix"; then
4784 # Extract the first word of "objdump", so it can be a program name with args.
4785 set dummy objdump; ac_word=$2
4786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4787 echo "configure:4788: checking for $ac_word" >&5
4788 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4789 echo $ac_n "(cached) $ac_c" 1>&6
4791 if test -n "$OBJDUMP"; then
4792 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4796 for ac_dir in $ac_dummy; do
4797 test -z "$ac_dir" && ac_dir=.
4798 if test -f $ac_dir/$ac_word; then
4799 ac_cv_prog_OBJDUMP="objdump"
4804 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4807 OBJDUMP="$ac_cv_prog_OBJDUMP"
4808 if test -n "$OBJDUMP"; then
4809 echo "$ac_t""$OBJDUMP" 1>&6
4811 echo "$ac_t""no" 1>&6
4820 # recent cygwin and mingw systems supply a stub DllMain which the user
4821 # can override, but on older systems we have to supply one
4822 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4823 echo "configure:4824: checking if libtool should supply DllMain function" >&5
4824 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4827 cat > conftest.$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4832 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4836 if { (eval echo configure:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4838 lt_cv_need_dllmain=no
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4843 lt_cv_need_dllmain=yes
4848 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4851 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4852 # old mingw systems require "-dll" to link a DLL, while more recent ones
4854 SAVE_CFLAGS="$CFLAGS"
4855 CFLAGS="$CFLAGS -mdll"
4856 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4857 echo "configure:4858: checking how to link DLLs" >&5
4858 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4869 if { (eval echo configure:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4871 lt_cv_cc_dll_switch=-mdll
4873 echo "configure: failed program was:" >&5
4874 cat conftest.$ac_ext >&5
4876 lt_cv_cc_dll_switch=-dll
4881 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4882 CFLAGS="$SAVE_CFLAGS" ;;
4883 *-*-cygwin* | *-*-pw32*)
4884 # cygwin systems need to pass --dll to the linker, and not link
4885 # crt.o which will require a WinMain@16 definition.
4886 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4892 # Sed substitution that helps us do robust quoting. It backslashifies
4893 # metacharacters that are still active within double-quoted strings.
4894 Xsed='sed -e s/^X//'
4895 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4897 # Same as above, but do not quote variable references.
4898 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4900 # Sed substitution to delay expansion of an escaped shell variable in a
4901 # double_quote_subst'ed string.
4902 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4908 default_ofile=libtool
4909 can_build_shared=yes
4911 # All known linkers require a `.a' archive for static linking (except M$VC,
4912 # which needs '.lib').
4914 ltmain="$ac_aux_dir/ltmain.sh"
4915 ofile="$default_ofile"
4916 with_gnu_ld="$lt_cv_prog_gnu_ld"
4917 need_locks="$enable_libtool_lock"
4920 old_CFLAGS="$CFLAGS"
4922 # Set sane defaults for various variables
4923 test -z "$AR" && AR=ar
4924 test -z "$AR_FLAGS" && AR_FLAGS=cru
4925 test -z "$AS" && AS=as
4926 test -z "$CC" && CC=cc
4927 test -z "$DLLTOOL" && DLLTOOL=dlltool
4928 test -z "$LD" && LD=ld
4929 test -z "$LN_S" && LN_S="ln -s"
4930 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4931 test -z "$NM" && NM=nm
4932 test -z "$OBJDUMP" && OBJDUMP=objdump
4933 test -z "$RANLIB" && RANLIB=:
4934 test -z "$STRIP" && STRIP=:
4935 test -z "$ac_objext" && ac_objext=o
4937 if test x"$host" != x"$build"; then
4938 ac_tool_prefix=${host_alias}-
4943 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4946 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4951 # AIX sometimes has problems with the GCC collect2 program. For some
4952 # reason, if we set the COLLECT_NAMES environment variable, the problems
4953 # vanish in a puff of smoke.
4954 if test "X${COLLECT_NAMES+set}" != Xset; then
4956 export COLLECT_NAMES
4961 # Determine commands to create old-style static archives.
4962 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4963 old_postinstall_cmds='chmod 644 $oldlib'
4964 old_postuninstall_cmds=
4966 if test -n "$RANLIB"; then
4969 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4972 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4975 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4978 # Allow CC to be a program name with arguments.
4982 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4983 echo "configure:4984: checking for objdir" >&5
4984 rm -f .libs 2>/dev/null
4985 mkdir .libs 2>/dev/null
4986 if test -d .libs; then
4989 # MS-DOS does not allow filenames that begin with a dot.
4992 rmdir .libs 2>/dev/null
4993 echo "$ac_t""$objdir" 1>&6
4996 # Check whether --with-pic or --without-pic was given.
4997 if test "${with_pic+set}" = set; then
5004 test -z "$pic_mode" && pic_mode=default
5006 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5007 # in isolation, and that seeing it set (from the cache) indicates that
5008 # the associated values are set (in the cache) correctly too.
5009 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5010 echo "configure:5011: checking for $compiler option to produce PIC" >&5
5011 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5015 lt_cv_prog_cc_shlib=
5017 lt_cv_prog_cc_static=
5018 lt_cv_prog_cc_no_builtin=
5019 lt_cv_prog_cc_can_build_shared=$can_build_shared
5021 if test "$GCC" = yes; then
5022 lt_cv_prog_cc_wl='-Wl,'
5023 lt_cv_prog_cc_static='-static'
5027 # Below there is a dirty hack to force normal static linking with -ldl
5028 # The problem is because libdl dynamically linked with both libc and
5029 # libC (AIX C++ library), which obviously doesn't included in libraries
5030 # list by gcc. This cause undefined symbols with -static flags.
5031 # This hack allows C programs to be linked with "-static -ldl", but
5032 # not sure about C++ programs.
5033 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5036 # FIXME: we need at least 68020 code to build shared libraries, but
5037 # adding the `-m68020' flag to GCC prevents building anything better,
5039 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5041 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5042 # PIC is the default for these OSes.
5044 darwin* | rhapsody*)
5045 # PIC is the default on this platform
5046 # Common symbols not allowed in MH_DYLIB files
5047 lt_cv_prog_cc_pic='-fno-common'
5049 cygwin* | mingw* | pw32* | os2*)
5050 # This hack is so that the source file can tell whether it is being
5051 # built for inclusion in a dll (and should export symbols for example).
5052 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5055 if test -d /usr/nec; then
5056 lt_cv_prog_cc_pic=-Kconform_pic
5060 lt_cv_prog_cc_pic='-fPIC'
5064 # PORTME Check for PIC flags for the system compiler.
5066 aix3* | aix4* | aix5*)
5067 lt_cv_prog_cc_wl='-Wl,'
5068 # All AIX code is PIC.
5069 if test "$host_cpu" = ia64; then
5070 # AIX 5 now supports IA64 processor
5071 lt_cv_prog_cc_static='-Bstatic'
5073 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5077 hpux9* | hpux10* | hpux11*)
5078 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5079 lt_cv_prog_cc_wl='-Wl,'
5080 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5081 lt_cv_prog_cc_pic='+Z'
5085 lt_cv_prog_cc_wl='-Wl,'
5086 lt_cv_prog_cc_static='-non_shared'
5087 # PIC (with -KPIC) is the default.
5090 cygwin* | mingw* | pw32* | os2*)
5091 # This hack is so that the source file can tell whether it is being
5092 # built for inclusion in a dll (and should export symbols for example).
5093 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5097 lt_cv_prog_cc_pic='-KPIC'
5098 lt_cv_prog_cc_static='-Bstatic'
5101 osf3* | osf4* | osf5*)
5102 # All OSF/1 code is PIC.
5103 lt_cv_prog_cc_wl='-Wl,'
5104 lt_cv_prog_cc_static='-non_shared'
5108 lt_cv_prog_cc_pic='-Kpic'
5109 lt_cv_prog_cc_static='-dn'
5110 lt_cv_prog_cc_shlib='-belf'
5114 lt_cv_prog_cc_pic='-KPIC'
5115 lt_cv_prog_cc_static='-Bstatic'
5116 lt_cv_prog_cc_wl='-Wl,'
5120 lt_cv_prog_cc_pic='-PIC'
5121 lt_cv_prog_cc_static='-Bstatic'
5122 lt_cv_prog_cc_wl='-Qoption ld '
5125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5126 lt_cv_prog_cc_pic='-KPIC'
5127 lt_cv_prog_cc_static='-Bstatic'
5128 if test "x$host_vendor" = xsni; then
5129 lt_cv_prog_cc_wl='-LD'
5131 lt_cv_prog_cc_wl='-Wl,'
5136 lt_cv_prog_cc_pic='-pic'
5137 lt_cv_prog_cc_static='-Bstatic'
5141 if test -d /usr/nec ;then
5142 lt_cv_prog_cc_pic='-Kconform_pic'
5143 lt_cv_prog_cc_static='-Bstatic'
5148 lt_cv_prog_cc_can_build_shared=no
5155 if test -z "$lt_cv_prog_cc_pic"; then
5156 echo "$ac_t""none" 1>&6
5158 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5160 # Check to make sure the pic_flag actually works.
5161 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5162 echo "configure:5163: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5163 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5164 echo $ac_n "(cached) $ac_c" 1>&6
5166 save_CFLAGS="$CFLAGS"
5167 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5176 if { (eval echo configure:5177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5179 hpux9* | hpux10* | hpux11*)
5180 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5181 # they create non-PIC objects. So, if there were any warnings, we
5182 # assume that PIC is not supported.
5183 if test -s conftest.err; then
5184 lt_cv_prog_cc_pic_works=no
5186 lt_cv_prog_cc_pic_works=yes
5190 lt_cv_prog_cc_pic_works=yes
5195 echo "configure: failed program was:" >&5
5196 cat conftest.$ac_ext >&5
5198 lt_cv_prog_cc_pic_works=no
5202 CFLAGS="$save_CFLAGS"
5207 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5209 lt_cv_prog_cc_can_build_shared=no
5211 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5214 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5217 # Check for any special shared library compilation flags.
5218 if test -n "$lt_cv_prog_cc_shlib"; then
5219 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5220 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5222 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5223 lt_cv_prog_cc_can_build_shared=no
5227 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5228 echo "configure:5229: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5229 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 lt_cv_prog_cc_static_works=no
5233 save_LDFLAGS="$LDFLAGS"
5234 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5235 cat > conftest.$ac_ext <<EOF
5236 #line 5237 "configure"
5237 #include "confdefs.h"
5243 if { (eval echo configure:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5245 lt_cv_prog_cc_static_works=yes
5247 echo "configure: failed program was:" >&5
5248 cat conftest.$ac_ext >&5
5251 LDFLAGS="$save_LDFLAGS"
5256 # Belt *and* braces to stop my trousers falling down:
5257 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5258 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5260 pic_flag="$lt_cv_prog_cc_pic"
5261 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5262 wl="$lt_cv_prog_cc_wl"
5263 link_static_flag="$lt_cv_prog_cc_static"
5264 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5265 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5268 # Check to see if options -o and -c are simultaneously supported by compiler
5269 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5270 echo "configure:5271: checking if $compiler supports -c -o file.$ac_objext" >&5
5271 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5272 echo $ac_n "(cached) $ac_c" 1>&6
5275 $rm -r conftest 2>/dev/null
5278 echo "int some_variable = 0;" > conftest.$ac_ext
5280 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5281 # that will create temporary files in the current directory regardless of
5282 # the output directory. Thus, making CWD read-only will cause this test
5283 # to fail, enabling locking or at least warning the user not to do parallel
5286 save_CFLAGS="$CFLAGS"
5287 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5289 if { (eval echo configure:5290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5290 # The compiler can only warn and ignore the option if not recognized
5291 # So say no if there are warnings
5292 if test -s out/conftest.err; then
5293 lt_cv_compiler_c_o=no
5295 lt_cv_compiler_c_o=yes
5298 # Append any errors to the config.log.
5299 cat out/conftest.err 1>&5
5300 lt_cv_compiler_c_o=no
5302 CFLAGS="$save_CFLAGS"
5308 $rm -r conftest 2>/dev/null
5312 compiler_c_o=$lt_cv_compiler_c_o
5313 echo "$ac_t""$compiler_c_o" 1>&6
5315 if test x"$compiler_c_o" = x"yes"; then
5316 # Check to see if we can write to a .lo
5317 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5318 echo "configure:5319: checking if $compiler supports -c -o file.lo" >&5
5319 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5323 lt_cv_compiler_o_lo=no
5324 save_CFLAGS="$CFLAGS"
5325 CFLAGS="$CFLAGS -c -o conftest.lo"
5326 save_objext="$ac_objext"
5328 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5333 int some_variable = 0;
5336 if { (eval echo configure:5337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5338 # The compiler can only warn and ignore the option if not recognized
5339 # So say no if there are warnings
5340 if test -s conftest.err; then
5341 lt_cv_compiler_o_lo=no
5343 lt_cv_compiler_o_lo=yes
5347 echo "configure: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5351 ac_objext="$save_objext"
5352 CFLAGS="$save_CFLAGS"
5356 compiler_o_lo=$lt_cv_compiler_o_lo
5357 echo "$ac_t""$compiler_o_lo" 1>&6
5362 # Check to see if we can do hard links to lock some files if needed
5363 hard_links="nottested"
5364 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5365 # do not overwrite the value of need_locks provided by the user
5366 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5367 echo "configure:5368: checking if we can lock with hard links" >&5
5370 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5372 ln conftest.a conftest.b 2>&5 || hard_links=no
5373 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5374 echo "$ac_t""$hard_links" 1>&6
5375 if test "$hard_links" = no; then
5376 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5383 if test "$GCC" = yes; then
5384 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5385 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5386 echo "configure:5387: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5387 echo "int some_variable = 0;" > conftest.$ac_ext
5388 save_CFLAGS="$CFLAGS"
5389 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5390 compiler_rtti_exceptions=no
5391 cat > conftest.$ac_ext <<EOF
5392 #line 5393 "configure"
5393 #include "confdefs.h"
5396 int some_variable = 0;
5399 if { (eval echo configure:5400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5401 # The compiler can only warn and ignore the option if not recognized
5402 # So say no if there are warnings
5403 if test -s conftest.err; then
5404 compiler_rtti_exceptions=no
5406 compiler_rtti_exceptions=yes
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5414 CFLAGS="$save_CFLAGS"
5415 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5417 if test "$compiler_rtti_exceptions" = "yes"; then
5418 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5420 no_builtin_flag=' -fno-builtin'
5424 # See if the linker supports building shared libraries.
5425 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5426 echo "configure:5427: checking whether the linker ($LD) supports shared libraries" >&5
5428 allow_undefined_flag=
5430 need_lib_prefix=unknown
5431 need_version=unknown
5432 # when you set need_version to no, make sure it does not cause -set_version
5433 # flags to be left without arguments
5435 archive_expsym_cmds=
5436 old_archive_from_new_cmds=
5437 old_archive_from_expsyms_cmds=
5438 export_dynamic_flag_spec=
5439 whole_archive_flag_spec=
5440 thread_safe_flag_spec=
5441 hardcode_into_libs=no
5442 hardcode_libdir_flag_spec=
5443 hardcode_libdir_separator=
5446 hardcode_shlibpath_var=unsupported
5448 link_all_deplibs=unknown
5449 always_export_symbols=no
5450 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5451 # include_expsyms should be a list of space-separated symbols to be *always*
5452 # included in the symbol list
5454 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5455 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5456 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5457 # as well as any symbol that contains `d'.
5458 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5459 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5460 # platforms (ab)use it in PIC code, but their linkers get confused if
5461 # the symbol is explicitly referenced. Since portable code cannot
5462 # rely on this symbol name, it's probably fine to never include it in
5463 # preloaded symbol tables.
5464 extract_expsyms_cmds=
5467 cygwin* | mingw* | pw32*)
5468 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5469 # When not using gcc, we currently assume that we are using
5470 # Microsoft Visual C++.
5471 if test "$GCC" != yes; then
5481 if test "$with_gnu_ld" = yes; then
5482 # If archive_cmds runs LD, not CC, wlarc should be empty
5485 # See if GNU ld supports shared libraries.
5487 aix3* | aix4* | aix5*)
5488 # On AIX, the GNU linker is very broken
5489 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5493 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5494 *** to be unable to reliably create shared libraries on AIX.
5495 *** Therefore, libtool is disabling shared libraries support. If you
5496 *** really care for shared libraries, you may want to modify your PATH
5497 *** so that a non-GNU linker is found, and then restart.
5503 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)'
5504 hardcode_libdir_flag_spec='-L$libdir'
5505 hardcode_minus_L=yes
5507 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5508 # that the semantics of dynamic libraries on AmigaOS, at least up
5509 # to version 4, is to share data among multiple programs linked
5510 # with the same dynamic library. Since this doesn't match the
5511 # behavior of shared libraries on other platforms, we can use
5517 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5518 allow_undefined_flag=unsupported
5519 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5520 # support --undefined. This deserves some investigation. FIXME
5521 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5527 cygwin* | mingw* | pw32*)
5528 # hardcode_libdir_flag_spec is actually meaningless, as there is
5529 # no search path for DLLs.
5530 hardcode_libdir_flag_spec='-L$libdir'
5531 allow_undefined_flag=unsupported
5532 always_export_symbols=yes
5534 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5535 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5536 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5537 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5538 else $CC -o impgen impgen.c ; fi)~
5539 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5541 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5543 # cygwin and mingw dlls have different entry points and sets of symbols
5545 # FIXME: what about values for MSVC?
5546 dll_entry=__cygwin_dll_entry@12
5547 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5551 dll_entry=_DllMainCRTStartup@12
5552 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5556 # mingw and cygwin differ, and it's simplest to just exclude the union
5557 # of the two symbol sets.
5558 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5560 # recent cygwin and mingw systems supply a stub DllMain which the user
5561 # can override, but on older systems we have to supply one (in ltdll.c)
5562 if test "x$lt_cv_need_dllmain" = "xyes"; then
5563 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5564 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~
5565 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5571 # Extract the symbol export list from an `--export-all' def file,
5572 # then regenerate the def file from the symbol export list, so that
5573 # the compiled dll only exports the symbol export list.
5574 # Be careful not to strip the DATA tag left be newer dlltools.
5575 export_symbols_cmds="$ltdll_cmds"'
5576 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5577 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5579 # If the export-symbols file already is a .def file (1st line
5580 # is EXPORTS), use it as is.
5581 # If DATA tags from a recent dlltool are present, honour them!
5582 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5583 cp $export_symbols $output_objdir/$soname-def;
5585 echo EXPORTS > $output_objdir/$soname-def;
5587 cat $export_symbols | while read symbol; do
5590 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5591 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5593 _lt_hint=`expr 1 + \$_lt_hint`;
5597 $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~
5598 $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~
5599 $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~
5600 $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~
5601 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5606 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5609 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5610 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5615 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5619 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5620 *** create shared libraries on Solaris systems. Therefore, libtool
5621 *** is disabling shared libraries support. We urge you to upgrade GNU
5622 *** binutils to release 2.9.1 or newer. Another option is to modify
5623 *** your PATH or compiler configuration so that the native linker is
5624 *** used, and then restart.
5627 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5629 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5636 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5639 hardcode_shlibpath_var=no
5643 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5652 if test "$ld_shlibs" = yes; then
5653 runpath_var=LD_RUN_PATH
5654 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5655 export_dynamic_flag_spec='${wl}--export-dynamic'
5657 cygwin* | mingw* | pw32*)
5658 # dlltool doesn't understand --whole-archive et. al.
5659 whole_archive_flag_spec=
5662 # ancient GNU ld didn't support --whole-archive et. al.
5663 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5664 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5666 whole_archive_flag_spec=
5672 # PORTME fill in a description of your system's linker (not GNU ld)
5675 allow_undefined_flag=unsupported
5676 always_export_symbols=yes
5677 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'
5678 # Note: this linker hardcodes the directories in LIBPATH if there
5679 # are no directories specified by -L.
5680 hardcode_minus_L=yes
5681 if test "$GCC" = yes && test -z "$link_static_flag"; then
5682 # Neither direct hardcoding nor static linking is supported with a
5684 hardcode_direct=unsupported
5689 if test "$host_cpu" = ia64; then
5690 # On IA64, the linker does run time linking by default, so we don't
5691 # have to do anything special.
5692 aix_use_runtimelinking=no
5693 exp_sym_flag='-Bexport'
5696 aix_use_runtimelinking=no
5698 # Test if we are trying to use run time linking or normal
5699 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5700 # need to do runtime linking.
5701 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5702 for ld_flag in $LDFLAGS; do
5703 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5704 aix_use_runtimelinking=yes
5710 exp_sym_flag='-bexport'
5711 no_entry_flag='-bnoentry'
5714 # When large executables or shared objects are built, AIX ld can
5715 # have problems creating the table of contents. If linking a library
5716 # or program results in "error TOC overflow" add -mminimal-toc to
5717 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5718 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5722 hardcode_libdir_separator=':'
5723 if test "$GCC" = yes; then
5724 case $host_os in aix4.[012]|aix4.[012].*)
5725 collect2name=`${CC} -print-prog-name=collect2`
5726 if test -f "$collect2name" && \
5727 strings "$collect2name" | grep resolve_lib_name >/dev/null
5729 # We have reworked collect2
5732 # We have old collect2
5733 hardcode_direct=unsupported
5734 # It fails to find uninstalled libraries when the uninstalled
5735 # path is not listed in the libpath. Setting hardcode_minus_L
5736 # to unsupported forces relinking
5737 hardcode_minus_L=yes
5738 hardcode_libdir_flag_spec='-L$libdir'
5739 hardcode_libdir_separator=
5743 shared_flag='-shared'
5746 if test "$host_cpu" = ia64; then
5747 shared_flag='${wl}-G'
5749 if test "$aix_use_runtimelinking" = yes; then
5750 shared_flag='${wl}-G'
5752 shared_flag='${wl}-bM:SRE'
5757 # It seems that -bexpall can do strange things, so it is better to
5758 # generate a list of symbols to export.
5759 always_export_symbols=yes
5760 if test "$aix_use_runtimelinking" = yes; then
5761 # Warning - without using the other runtime loading flags (-brtl),
5762 # -berok will link without error, but may produce a broken library.
5763 allow_undefined_flag='-berok'
5764 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5765 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"
5767 if test "$host_cpu" = ia64; then
5768 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5769 allow_undefined_flag="-z nodefs"
5770 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"
5772 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5773 # Warning - without using the other run time loading flags,
5774 # -berok will link without error, but may produce a broken library.
5775 allow_undefined_flag='${wl}-berok'
5776 # This is a bit strange, but is similar to how AIX traditionally builds
5777 # it's shared libraries.
5778 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'
5784 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)'
5785 hardcode_libdir_flag_spec='-L$libdir'
5786 hardcode_minus_L=yes
5787 # see comment about different semantics on the GNU ld section
5791 cygwin* | mingw* | pw32*)
5792 # When not using gcc, we currently assume that we are using
5793 # Microsoft Visual C++.
5794 # hardcode_libdir_flag_spec is actually meaningless, as there is
5795 # no search path for DLLs.
5796 hardcode_libdir_flag_spec=' '
5797 allow_undefined_flag=unsupported
5798 # Tell ltmain to make .lib files, not .a files.
5800 # FIXME: Setting linknames here is a bad hack.
5801 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5802 # The linker will automatically build a .lib file if we build a DLL.
5803 old_archive_from_new_cmds='true'
5804 # FIXME: Should let the user specify the lib program.
5805 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5806 fix_srcfile_path='`cygpath -w "$srcfile"`'
5809 darwin* | rhapsody*)
5811 rhapsody* | darwin1.[012])
5812 allow_undefined_flag='-undefined suppress'
5815 allow_undefined_flag='-flat_namespace -undefined suppress'
5818 # FIXME: Relying on posixy $() will cause problems for
5819 # cross-compilation, but unfortunately the echo tests do not
5820 # yet detect zsh echo's removal of \ escapes.
5821 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'
5822 # We need to add '_' to the symbols in $export_symbols first
5823 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5825 hardcode_shlibpath_var=no
5826 whole_archive_flag_spec='-all_load $convenience'
5833 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5834 # support. Future versions do this automatically, but an explicit c++rt0.o
5835 # does not break anything, and helps significantly (at the cost of a little
5838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5839 hardcode_libdir_flag_spec='-R$libdir'
5841 hardcode_shlibpath_var=no
5844 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5848 hardcode_minus_L=yes
5849 hardcode_shlibpath_var=no
5852 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5854 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5855 hardcode_libdir_flag_spec='-R$libdir'
5857 hardcode_shlibpath_var=no
5860 hpux9* | hpux10* | hpux11*)
5862 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' ;;
5863 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5865 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5866 hardcode_libdir_separator=:
5868 hardcode_minus_L=yes # Not in the search PATH, but as the default
5869 # location of the library.
5870 export_dynamic_flag_spec='${wl}-E'
5874 if test "$GCC" = yes; then
5875 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'
5877 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'
5879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5880 hardcode_libdir_separator=:
5881 link_all_deplibs=yes
5885 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5888 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5890 hardcode_libdir_flag_spec='-R$libdir'
5892 hardcode_shlibpath_var=no
5896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5899 hardcode_libdir_separator=:
5900 hardcode_shlibpath_var=no
5905 hardcode_shlibpath_var=no
5906 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5907 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5908 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5909 export_dynamic_flag_spec='${wl}-E'
5912 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5914 hardcode_libdir_flag_spec='-R$libdir'
5917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5918 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5925 hardcode_libdir_flag_spec='-L$libdir'
5926 hardcode_minus_L=yes
5927 allow_undefined_flag=unsupported
5928 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'
5929 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5933 if test "$GCC" = yes; then
5934 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5935 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'
5937 allow_undefined_flag=' -expect_unresolved \*'
5938 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'
5940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5941 hardcode_libdir_separator=:
5944 osf4* | osf5*) # as osf3* with the addition of -msym flag
5945 if test "$GCC" = yes; then
5946 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5947 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'
5948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5950 allow_undefined_flag=' -expect_unresolved \*'
5951 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'
5952 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5953 $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'
5955 #Both c and cxx compiler support -rpath directly
5956 hardcode_libdir_flag_spec='-rpath $libdir'
5958 hardcode_libdir_separator=:
5962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5963 hardcode_shlibpath_var=no
5964 runpath_var=LD_RUN_PATH
5965 hardcode_runpath_var=yes
5966 export_dynamic_flag_spec='${wl}-Bexport'
5970 # gcc --version < 3.0 without binutils cannot create self contained
5971 # shared libraries reliably, requiring libgcc.a to resolve some of
5972 # the object symbols generated in some cases. Libraries that use
5973 # assert need libgcc.a to resolve __eprintf, for example. Linking
5974 # a copy of libgcc.a into every shared library to guarantee resolving
5975 # such symbols causes other problems: According to Tim Van Holder
5976 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5977 # (to the application) exception stack for one thing.
5978 no_undefined_flag=' -z defs'
5979 if test "$GCC" = yes; then
5980 case `$CC --version 2>/dev/null` in
5984 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5985 *** create self contained shared libraries on Solaris systems, without
5986 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5987 *** -no-undefined support, which will at least allow you to build shared
5988 *** libraries. However, you may find that when you link such libraries
5989 *** into an application without using GCC, you have to manually add
5990 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5991 *** upgrade to a newer version of GCC. Another option is to rebuild your
5992 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5999 # $CC -shared without GNU ld will not create a library from C++
6000 # object files and a static libstdc++, better avoid it by now
6001 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6002 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6003 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6004 hardcode_libdir_flag_spec='-R$libdir'
6005 hardcode_shlibpath_var=no
6007 solaris2.[0-5] | solaris2.[0-5].*) ;;
6008 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6009 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6011 link_all_deplibs=yes
6015 if test "x$host_vendor" = xsequent; then
6016 # Use $CC to link under sequent, because it throws in some extra .o
6017 # files that make .init and .fini sections work.
6018 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6020 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6022 hardcode_libdir_flag_spec='-L$libdir'
6024 hardcode_minus_L=yes
6025 hardcode_shlibpath_var=no
6029 if test "x$host_vendor" = xsno; then
6030 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6031 hardcode_direct=yes # is this really true???
6033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6034 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6036 runpath_var='LD_RUN_PATH'
6037 hardcode_shlibpath_var=no
6041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6042 hardcode_shlibpath_var=no
6043 export_dynamic_flag_spec='-Bexport'
6047 no_undefined_flag=' -z text'
6048 # $CC -shared without GNU ld will not create a library from C++
6049 # object files and a static libstdc++, better avoid it by now
6050 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6051 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6052 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6053 hardcode_libdir_flag_spec=
6054 hardcode_shlibpath_var=no
6055 runpath_var='LD_RUN_PATH'
6059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6060 hardcode_libdir_flag_spec='-L$libdir'
6061 hardcode_shlibpath_var=no
6065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6066 hardcode_libdir_flag_spec='-L$libdir'
6067 hardcode_shlibpath_var=no
6071 if test -d /usr/nec; then
6072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6073 hardcode_shlibpath_var=no
6074 runpath_var=LD_RUN_PATH
6075 hardcode_runpath_var=yes
6081 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6084 hardcode_shlibpath_var=no
6085 hardcode_runpath_var=yes
6086 runpath_var=LD_RUN_PATH
6089 sysv5uw7* | unixware7*)
6090 no_undefined_flag='${wl}-z ${wl}text'
6091 if test "$GCC" = yes; then
6092 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6094 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6096 runpath_var='LD_RUN_PATH'
6097 hardcode_shlibpath_var=no
6105 echo "$ac_t""$ld_shlibs" 1>&6
6106 test "$ld_shlibs" = no && can_build_shared=no
6108 # Check hardcoding attributes.
6109 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6110 echo "configure:6111: checking how to hardcode library paths into programs" >&5
6112 if test -n "$hardcode_libdir_flag_spec" || \
6113 test -n "$runpath_var"; then
6115 # We can hardcode non-existant directories.
6116 if test "$hardcode_direct" != no &&
6117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6118 # have to relink, otherwise we might link with an installed library
6119 # when we should be linking with a yet-to-be-installed one
6120 ## test "$hardcode_shlibpath_var" != no &&
6121 test "$hardcode_minus_L" != no; then
6122 # Linking always hardcodes the temporary library directory.
6123 hardcode_action=relink
6125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6126 hardcode_action=immediate
6129 # We cannot hardcode anything, or else we can only hardcode existing
6131 hardcode_action=unsupported
6133 echo "$ac_t""$hardcode_action" 1>&6
6137 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6138 echo "configure:6139: checking whether stripping libraries is possible" >&5
6139 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6140 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6141 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6142 echo "$ac_t""yes" 1>&6
6144 echo "$ac_t""no" 1>&6
6147 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6148 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6150 # PORTME Fill in your ld.so characteristics
6151 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6152 echo "configure:6153: checking dynamic linker characteristics" >&5
6154 libname_spec='lib$name'
6161 shlibpath_overrides_runpath=unknown
6163 dynamic_linker="$host_os ld.so"
6164 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6165 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6170 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6171 shlibpath_var=LIBPATH
6173 # AIX has no versioning support, so we append a major version to the name.
6174 soname_spec='${libname}${release}.so$major'
6179 if test "$host_cpu" = ia64; then
6180 # AIX 5 supports IA64
6181 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6182 shlibpath_var=LD_LIBRARY_PATH
6184 # With GCC up to 2.95.x, collect2 would create an import file
6185 # for dependence libraries. The import file would start with
6186 # the line `#! .'. This would cause the generated library to
6187 # depend on `.', always an invalid library. This was fixed in
6188 # development snapshots of GCC prior to 3.0.
6190 aix4 | aix4.[01] | aix4.[01].*)
6191 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6193 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6200 # AIX (on Power*) has no versioning support, so currently we can
6201 # not hardcode correct soname into executable. Probably we can
6202 # add versioning support to collect2, so additional links can
6203 # be useful in future.
6204 if test "$aix_use_runtimelinking" = yes; then
6205 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6206 # instead of lib<name>.a to let people know that these are not
6207 # typical AIX shared libraries.
6208 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6210 # We preserve .a as extension for shared libraries through AIX4.2
6211 # and later when we are not doing run time linking.
6212 library_names_spec='${libname}${release}.a $libname.a'
6213 soname_spec='${libname}${release}.so$major'
6215 shlibpath_var=LIBPATH
6220 library_names_spec='$libname.ixlibrary $libname.a'
6221 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6222 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'
6226 library_names_spec='${libname}.so'
6227 dynamic_linker="$host_os ld.so"
6228 shlibpath_var=LIBRARY_PATH
6234 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6235 soname_spec='${libname}${release}.so$major'
6236 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6237 shlibpath_var=LD_LIBRARY_PATH
6238 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6239 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6240 export_dynamic_flag_spec=-rdynamic
6241 # the default ld.so.conf also contains /usr/contrib/lib and
6242 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6243 # libtool to hard-code these into programs
6246 cygwin* | mingw* | pw32*)
6247 version_type=windows
6250 case $GCC,$host_os in
6252 library_names_spec='$libname.dll.a'
6253 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6254 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6255 dldir=$destdir/`dirname \$dlpath`~
6256 test -d \$dldir || mkdir -p \$dldir~
6257 $install_prog .libs/$dlname \$dldir/$dlname'
6258 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6259 dlpath=$dir/\$dldll~
6263 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6264 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6267 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6270 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6273 dynamic_linker='Win32 ld.exe'
6274 # FIXME: first we should search . and the directory the executable is in
6278 darwin* | rhapsody*)
6279 dynamic_linker="$host_os dyld"
6283 # FIXME: Relying on posixy $() will cause problems for
6284 # cross-compilation, but unfortunately the echo tests do not
6285 # yet detect zsh echo's removal of \ escapes.
6286 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)'
6287 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6288 shlibpath_overrides_runpath=yes
6289 shlibpath_var=DYLD_LIBRARY_PATH
6297 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6298 version_type=freebsd-$objformat
6299 case $version_type in
6301 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6306 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6310 shlibpath_var=LD_LIBRARY_PATH
6313 shlibpath_overrides_runpath=yes
6316 shlibpath_overrides_runpath=no
6317 hardcode_into_libs=yes
6326 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6327 soname_spec='${libname}${release}.so$major'
6328 shlibpath_var=LD_LIBRARY_PATH
6329 hardcode_into_libs=yes
6332 hpux9* | hpux10* | hpux11*)
6333 # Give a soname corresponding to the major version so that dld.sl refuses to
6334 # link against other versions.
6335 dynamic_linker="$host_os dld.sl"
6339 shlibpath_var=SHLIB_PATH
6340 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6341 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6342 soname_spec='${libname}${release}.sl$major'
6343 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6344 postinstall_cmds='chmod 555 $lib'
6351 soname_spec='${libname}${release}.so$major'
6352 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6358 case $LD in # libtool.m4 will add one of these switches to LD
6359 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6360 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6361 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6362 *) libsuff= shlibsuff= libmagic=never-match;;
6366 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6367 shlibpath_overrides_runpath=no
6368 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6369 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6372 # No shared lib support for Linux oldld, aout, or coff.
6373 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6377 # This must be Linux ELF.
6382 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6383 soname_spec='${libname}${release}.so$major'
6384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6385 shlibpath_var=LD_LIBRARY_PATH
6386 shlibpath_overrides_runpath=no
6387 # This implies no fast_install, which is unacceptable.
6388 # Some rework will be needed to allow for fast_install
6389 # before this can be enabled.
6390 hardcode_into_libs=yes
6392 # We used to test for /lib/ld.so.1 and disable shared libraries on
6393 # powerpc, because MkLinux only supported shared libraries with the
6394 # GNU dynamic linker. Since this was broken with cross compilers,
6395 # most powerpc-linux boxes support dynamic linking these days and
6396 # people can always --disable-shared, the test was removed, and we
6397 # assume the GNU/Linux dynamic linker is in use.
6398 dynamic_linker='GNU/Linux ld.so'
6405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6406 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6408 dynamic_linker='NetBSD (a.out) ld.so'
6410 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6411 soname_spec='${libname}${release}.so$major'
6412 dynamic_linker='NetBSD ld.elf_so'
6414 shlibpath_var=LD_LIBRARY_PATH
6415 shlibpath_overrides_runpath=yes
6416 hardcode_into_libs=yes
6421 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6422 shlibpath_var=LD_LIBRARY_PATH
6423 shlibpath_overrides_runpath=yes
6430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6432 openbsd2.[89] | openbsd2.[89].*)
6433 shlibpath_overrides_runpath=no
6436 shlibpath_overrides_runpath=yes
6440 shlibpath_overrides_runpath=yes
6442 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6444 shlibpath_var=LD_LIBRARY_PATH
6448 libname_spec='$name'
6450 library_names_spec='$libname.dll $libname.a'
6451 dynamic_linker='OS/2 ld.exe'
6452 shlibpath_var=LIBPATH
6455 osf3* | osf4* | osf5*)
6458 soname_spec='${libname}${release}.so'
6459 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6460 shlibpath_var=LD_LIBRARY_PATH
6461 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6462 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6467 soname_spec='${libname}${release}.so$major'
6468 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6469 shlibpath_var=LD_LIBRARY_PATH
6476 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6477 soname_spec='${libname}${release}.so$major'
6478 shlibpath_var=LD_LIBRARY_PATH
6479 shlibpath_overrides_runpath=yes
6480 hardcode_into_libs=yes
6481 # ldd complains unless libraries are executable
6482 postinstall_cmds='chmod +x $lib'
6487 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6489 shlibpath_var=LD_LIBRARY_PATH
6490 shlibpath_overrides_runpath=yes
6491 if test "$with_gnu_ld" = yes; then
6497 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6499 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6500 soname_spec='${libname}${release}.so$major'
6501 shlibpath_var=LD_LIBRARY_PATH
6502 case $host_vendor in
6504 shlibpath_overrides_runpath=no
6509 shlibpath_overrides_runpath=no
6510 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6517 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6518 soname_spec='${libname}${release}.so$major'
6519 shlibpath_var=LD_LIBRARY_PATH
6526 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6527 soname_spec='${libname}${release}.so$major'
6528 shlibpath_var=LD_LIBRARY_PATH
6532 if test -d /usr/nec ;then
6534 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6535 soname_spec='$libname.so.$major'
6536 shlibpath_var=LD_LIBRARY_PATH
6544 echo "$ac_t""$dynamic_linker" 1>&6
6545 test "$dynamic_linker" = no && can_build_shared=no
6547 # Report the final consequences.
6548 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6549 echo "configure:6550: checking if libtool supports shared libraries" >&5
6550 echo "$ac_t""$can_build_shared" 1>&6
6552 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6553 echo "configure:6554: checking whether to build shared libraries" >&5
6554 test "$can_build_shared" = "no" && enable_shared=no
6556 # On AIX, shared libraries and static libraries use the same namespace, and
6557 # are all built from PIC.
6560 test "$enable_shared" = yes && enable_static=no
6561 if test -n "$RANLIB"; then
6562 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6563 postinstall_cmds='$RANLIB $lib'
6568 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6569 test "$enable_shared" = yes && enable_static=no
6573 echo "$ac_t""$enable_shared" 1>&6
6575 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6576 echo "configure:6577: checking whether to build static libraries" >&5
6577 # Make sure either enable_shared or enable_static is yes.
6578 test "$enable_shared" = yes || enable_static=yes
6579 echo "$ac_t""$enable_static" 1>&6
6581 if test "$hardcode_action" = relink; then
6582 # Fast installation is not supported
6583 enable_fast_install=no
6584 elif test "$shlibpath_overrides_runpath" = yes ||
6585 test "$enable_shared" = no; then
6586 # Fast installation is not necessary
6587 enable_fast_install=needless
6590 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6591 if test "$GCC" = yes; then
6592 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6595 if test "x$enable_dlopen" != xyes; then
6596 enable_dlopen=unknown
6597 enable_dlopen_self=unknown
6598 enable_dlopen_self_static=unknown
6605 lt_cv_dlopen="load_add_on"
6607 lt_cv_dlopen_self=yes
6610 cygwin* | mingw* | pw32*)
6611 lt_cv_dlopen="LoadLibrary"
6616 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6617 echo "configure:6618: checking for shl_load" >&5
6618 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6619 echo $ac_n "(cached) $ac_c" 1>&6
6621 cat > conftest.$ac_ext <<EOF
6622 #line 6623 "configure"
6623 #include "confdefs.h"
6624 /* System header to define __stub macros and hopefully few prototypes,
6625 which can conflict with char shl_load(); below. */
6627 /* Override any gcc2 internal prototype to avoid an error. */
6628 /* We use char because int might match the return type of a gcc2
6629 builtin and then its argument prototype would still apply. */
6635 /* The GNU C library defines this for functions which it implements
6636 to always fail with ENOSYS. Some functions are actually named
6637 something starting with __ and the normal name is an alias. */
6638 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6646 if { (eval echo configure:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6648 eval "ac_cv_func_shl_load=yes"
6650 echo "configure: failed program was:" >&5
6651 cat conftest.$ac_ext >&5
6653 eval "ac_cv_func_shl_load=no"
6658 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6659 echo "$ac_t""yes" 1>&6
6660 lt_cv_dlopen="shl_load"
6662 echo "$ac_t""no" 1>&6
6663 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6664 echo "configure:6665: checking for shl_load in -ldld" >&5
6665 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6666 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6669 ac_save_LIBS="$LIBS"
6671 cat > conftest.$ac_ext <<EOF
6672 #line 6673 "configure"
6673 #include "confdefs.h"
6674 /* Override any gcc2 internal prototype to avoid an error. */
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6683 if { (eval echo configure:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6685 eval "ac_cv_lib_$ac_lib_var=yes"
6687 echo "configure: failed program was:" >&5
6688 cat conftest.$ac_ext >&5
6690 eval "ac_cv_lib_$ac_lib_var=no"
6693 LIBS="$ac_save_LIBS"
6696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6697 echo "$ac_t""yes" 1>&6
6698 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6700 echo "$ac_t""no" 1>&6
6701 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6702 echo "configure:6703: checking for dlopen" >&5
6703 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6704 echo $ac_n "(cached) $ac_c" 1>&6
6706 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6709 /* System header to define __stub macros and hopefully few prototypes,
6710 which can conflict with char dlopen(); below. */
6712 /* Override any gcc2 internal prototype to avoid an error. */
6713 /* We use char because int might match the return type of a gcc2
6714 builtin and then its argument prototype would still apply. */
6720 /* The GNU C library defines this for functions which it implements
6721 to always fail with ENOSYS. Some functions are actually named
6722 something starting with __ and the normal name is an alias. */
6723 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6731 if { (eval echo configure:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6733 eval "ac_cv_func_dlopen=yes"
6735 echo "configure: failed program was:" >&5
6736 cat conftest.$ac_ext >&5
6738 eval "ac_cv_func_dlopen=no"
6743 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6744 echo "$ac_t""yes" 1>&6
6745 lt_cv_dlopen="dlopen"
6747 echo "$ac_t""no" 1>&6
6748 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6749 echo "configure:6750: checking for dlopen in -ldl" >&5
6750 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6751 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6752 echo $ac_n "(cached) $ac_c" 1>&6
6754 ac_save_LIBS="$LIBS"
6756 cat > conftest.$ac_ext <<EOF
6757 #line 6758 "configure"
6758 #include "confdefs.h"
6759 /* Override any gcc2 internal prototype to avoid an error. */
6760 /* We use char because int might match the return type of a gcc2
6761 builtin and then its argument prototype would still apply. */
6768 if { (eval echo configure:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6770 eval "ac_cv_lib_$ac_lib_var=yes"
6772 echo "configure: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6775 eval "ac_cv_lib_$ac_lib_var=no"
6778 LIBS="$ac_save_LIBS"
6781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6782 echo "$ac_t""yes" 1>&6
6783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6785 echo "$ac_t""no" 1>&6
6786 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6787 echo "configure:6788: checking for dlopen in -lsvld" >&5
6788 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6789 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6790 echo $ac_n "(cached) $ac_c" 1>&6
6792 ac_save_LIBS="$LIBS"
6794 cat > conftest.$ac_ext <<EOF
6795 #line 6796 "configure"
6796 #include "confdefs.h"
6797 /* Override any gcc2 internal prototype to avoid an error. */
6798 /* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6808 eval "ac_cv_lib_$ac_lib_var=yes"
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 eval "ac_cv_lib_$ac_lib_var=no"
6816 LIBS="$ac_save_LIBS"
6819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6823 echo "$ac_t""no" 1>&6
6824 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6825 echo "configure:6826: checking for dld_link in -ldld" >&5
6826 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6827 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6828 echo $ac_n "(cached) $ac_c" 1>&6
6830 ac_save_LIBS="$LIBS"
6832 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6835 /* Override any gcc2 internal prototype to avoid an error. */
6836 /* We use char because int might match the return type of a gcc2
6837 builtin and then its argument prototype would still apply. */
6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6846 eval "ac_cv_lib_$ac_lib_var=yes"
6848 echo "configure: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6851 eval "ac_cv_lib_$ac_lib_var=no"
6854 LIBS="$ac_save_LIBS"
6857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6858 echo "$ac_t""yes" 1>&6
6859 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6861 echo "$ac_t""no" 1>&6
6882 if test "x$lt_cv_dlopen" != xno; then
6888 case $lt_cv_dlopen in
6890 save_CPPFLAGS="$CPPFLAGS"
6891 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6893 save_LDFLAGS="$LDFLAGS"
6894 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6897 LIBS="$lt_cv_dlopen_libs $LIBS"
6899 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6900 echo "configure:6901: checking whether a program can dlopen itself" >&5
6901 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6904 if test "$cross_compiling" = yes; then :
6905 lt_cv_dlopen_self=cross
6907 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6908 lt_status=$lt_dlunknown
6909 cat > conftest.$ac_ext <<EOF
6910 #line 6911 "configure"
6911 #include "confdefs.h"
6920 # define LT_DLGLOBAL RTLD_GLOBAL
6923 # define LT_DLGLOBAL DL_GLOBAL
6925 # define LT_DLGLOBAL 0
6929 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6930 find out it does not work in some platform. */
6931 #ifndef LT_DLLAZY_OR_NOW
6933 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6936 # define LT_DLLAZY_OR_NOW DL_LAZY
6939 # define LT_DLLAZY_OR_NOW RTLD_NOW
6942 # define LT_DLLAZY_OR_NOW DL_NOW
6944 # define LT_DLLAZY_OR_NOW 0
6952 extern "C" void exit (int);
6955 void fnord() { int i=42;}
6958 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6959 int status = $lt_dlunknown;
6963 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6964 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6965 /* dlclose (self); */
6971 if { (eval echo configure:6972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6972 (./conftest; exit; ) 2>/dev/null
6975 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6976 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6977 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6980 # compilation failed
6981 lt_cv_dlopen_self=no
6989 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6991 if test "x$lt_cv_dlopen_self" = xyes; then
6992 LDFLAGS="$LDFLAGS $link_static_flag"
6993 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6994 echo "configure:6995: checking whether a statically linked program can dlopen itself" >&5
6995 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6996 echo $ac_n "(cached) $ac_c" 1>&6
6998 if test "$cross_compiling" = yes; then :
6999 lt_cv_dlopen_self_static=cross
7001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7002 lt_status=$lt_dlunknown
7003 cat > conftest.$ac_ext <<EOF
7004 #line 7005 "configure"
7005 #include "confdefs.h"
7014 # define LT_DLGLOBAL RTLD_GLOBAL
7017 # define LT_DLGLOBAL DL_GLOBAL
7019 # define LT_DLGLOBAL 0
7023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7024 find out it does not work in some platform. */
7025 #ifndef LT_DLLAZY_OR_NOW
7027 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7030 # define LT_DLLAZY_OR_NOW DL_LAZY
7033 # define LT_DLLAZY_OR_NOW RTLD_NOW
7036 # define LT_DLLAZY_OR_NOW DL_NOW
7038 # define LT_DLLAZY_OR_NOW 0
7046 extern "C" void exit (int);
7049 void fnord() { int i=42;}
7052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7053 int status = $lt_dlunknown;
7057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7058 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7059 /* dlclose (self); */
7065 if { (eval echo configure:7066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7066 (./conftest; exit; ) 2>/dev/null
7069 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7070 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7071 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7074 # compilation failed
7075 lt_cv_dlopen_self_static=no
7083 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7086 CPPFLAGS="$save_CPPFLAGS"
7087 LDFLAGS="$save_LDFLAGS"
7092 case $lt_cv_dlopen_self in
7093 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7094 *) enable_dlopen_self=unknown ;;
7097 case $lt_cv_dlopen_self_static in
7098 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7099 *) enable_dlopen_self_static=unknown ;;
7104 if test "$enable_shared" = yes && test "$GCC" = yes; then
7105 case $archive_cmds in
7107 # FIXME: we may have to deal with multi-command sequences.
7110 # Test whether the compiler implicitly links with -lc since on some
7111 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7112 # to ld, don't add -lc before -lgcc.
7113 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7114 echo "configure:7115: checking whether -lc should be explicitly linked in" >&5
7115 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7116 echo $ac_n "(cached) $ac_c" 1>&6
7119 echo 'static int dummy;' > conftest.$ac_ext
7121 if { (eval echo configure:7122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7124 libobjs=conftest.$ac_objext
7126 wl=$lt_cv_prog_cc_wl
7132 save_allow_undefined_flag=$allow_undefined_flag
7133 allow_undefined_flag=
7134 if { (eval echo configure:7135: \"$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; }
7136 lt_cv_archive_cmds_need_lc=no
7138 lt_cv_archive_cmds_need_lc=yes
7140 allow_undefined_flag=$save_allow_undefined_flag
7142 cat conftest.err 1>&5
7146 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7150 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7152 # The second clause should only fire when bootstrapping the
7153 # libtool distribution, otherwise you forgot to ship ltmain.sh
7154 # with your package, and you will get complaints that there are
7155 # no rules to generate ltmain.sh.
7156 if test -f "$ltmain"; then
7159 # If there is no Makefile yet, we rely on a make rule to execute
7160 # `config.status --recheck' to rerun these tests and create the
7161 # libtool script then.
7162 test -f Makefile && make "$ltmain"
7165 if test -f "$ltmain"; then
7166 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7169 echo creating $ofile
7171 # Now quote all the things that may contain metacharacters while being
7172 # careful not to overquote the AC_SUBSTed values. We take copies of the
7173 # variables and quote the copies for generation of the libtool script.
7174 for var in echo old_CC old_CFLAGS \
7175 AR AR_FLAGS CC LD LN_S NM SHELL \
7176 reload_flag reload_cmds wl \
7177 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7178 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7179 library_names_spec soname_spec \
7180 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7181 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7182 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7183 old_striplib striplib file_magic_cmd export_symbols_cmds \
7184 deplibs_check_method allow_undefined_flag no_undefined_flag \
7185 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7186 global_symbol_to_c_name_address \
7187 hardcode_libdir_flag_spec hardcode_libdir_separator \
7188 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7189 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7192 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7193 old_postinstall_cmds | old_postuninstall_cmds | \
7194 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7195 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7196 postinstall_cmds | postuninstall_cmds | \
7197 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7198 # Double-quote double-evaled strings.
7199 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7202 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7207 cat <<__EOF__ > "${ofile}T"
7210 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7211 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7212 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7214 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7215 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7217 # This program is free software; you can redistribute it and/or modify
7218 # it under the terms of the GNU General Public License as published by
7219 # the Free Software Foundation; either version 2 of the License, or
7220 # (at your option) any later version.
7222 # This program is distributed in the hope that it will be useful, but
7223 # WITHOUT ANY WARRANTY; without even the implied warranty of
7224 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7225 # General Public License for more details.
7227 # You should have received a copy of the GNU General Public License
7228 # along with this program; if not, write to the Free Software
7229 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7231 # As a special exception to the GNU General Public License, if you
7232 # distribute this file as part of a program that contains a
7233 # configuration script generated by Autoconf, you may include it under
7234 # the same distribution terms that you use for the rest of that program.
7236 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7237 Xsed="sed -e s/^X//"
7239 # The HP-UX ksh and POSIX shell print the target directory to stdout
7241 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7243 # ### BEGIN LIBTOOL CONFIG
7245 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7247 # Shell to use when invoking shell scripts.
7250 # Whether or not to build shared libraries.
7251 build_libtool_libs=$enable_shared
7253 # Whether or not to build static libraries.
7254 build_old_libs=$enable_static
7256 # Whether or not to add -lc for building shared libraries.
7257 build_libtool_need_lc=$need_lc
7259 # Whether or not to optimize for fast installation.
7260 fast_install=$enable_fast_install
7263 host_alias=$host_alias
7266 # An echo program that does not interpret backslashes.
7271 AR_FLAGS=$lt_AR_FLAGS
7273 # The default C compiler.
7276 # Is the compiler the GNU C compiler?
7279 # The linker used to build libraries.
7282 # Whether we need hard or soft links.
7285 # A BSD-compatible nm program.
7288 # A symbol stripping program
7291 # Used to examine libraries when file_magic_cmd begins "file"
7292 MAGIC_CMD=$MAGIC_CMD
7294 # Used on cygwin: DLL creation program.
7297 # Used on cygwin: object dumper.
7300 # Used on cygwin: assembler.
7303 # The name of the directory that contains temporary libtool files.
7306 # How to create reloadable object files.
7307 reload_flag=$lt_reload_flag
7308 reload_cmds=$lt_reload_cmds
7310 # How to pass a linker flag through the compiler.
7313 # Object file suffix (normally "o").
7316 # Old archive suffix (normally "a").
7319 # Executable file suffix (normally "").
7322 # Additional compiler flags for building library objects.
7323 pic_flag=$lt_pic_flag
7326 # Does compiler simultaneously support -c and -o options?
7327 compiler_c_o=$lt_compiler_c_o
7329 # Can we write directly to a .lo ?
7330 compiler_o_lo=$lt_compiler_o_lo
7332 # Must we lock files when doing compilation ?
7333 need_locks=$lt_need_locks
7335 # Do we need the lib prefix for modules?
7336 need_lib_prefix=$need_lib_prefix
7338 # Do we need a version for libraries?
7339 need_version=$need_version
7341 # Whether dlopen is supported.
7342 dlopen_support=$enable_dlopen
7344 # Whether dlopen of programs is supported.
7345 dlopen_self=$enable_dlopen_self
7347 # Whether dlopen of statically linked programs is supported.
7348 dlopen_self_static=$enable_dlopen_self_static
7350 # Compiler flag to prevent dynamic linking.
7351 link_static_flag=$lt_link_static_flag
7353 # Compiler flag to turn off builtin functions.
7354 no_builtin_flag=$lt_no_builtin_flag
7356 # Compiler flag to allow reflexive dlopens.
7357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7359 # Compiler flag to generate shared objects directly from archives.
7360 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7362 # Compiler flag to generate thread-safe objects.
7363 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7365 # Library versioning type.
7366 version_type=$version_type
7368 # Format of library name prefix.
7369 libname_spec=$lt_libname_spec
7371 # List of archive names. First name is the real one, the rest are links.
7372 # The last name is the one that the linker finds with -lNAME.
7373 library_names_spec=$lt_library_names_spec
7375 # The coded name of the library, if different from the real name.
7376 soname_spec=$lt_soname_spec
7378 # Commands used to build and install an old-style archive.
7380 old_archive_cmds=$lt_old_archive_cmds
7381 old_postinstall_cmds=$lt_old_postinstall_cmds
7382 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7384 # Create an old-style archive from a shared archive.
7385 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7387 # Create a temporary old-style archive to link instead of a shared archive.
7388 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7390 # Commands used to build and install a shared archive.
7391 archive_cmds=$lt_archive_cmds
7392 archive_expsym_cmds=$lt_archive_expsym_cmds
7393 postinstall_cmds=$lt_postinstall_cmds
7394 postuninstall_cmds=$lt_postuninstall_cmds
7396 # Commands to strip libraries.
7397 old_striplib=$lt_old_striplib
7398 striplib=$lt_striplib
7400 # Method to check whether dependent libraries are shared objects.
7401 deplibs_check_method=$lt_deplibs_check_method
7403 # Command to use when deplibs_check_method == file_magic.
7404 file_magic_cmd=$lt_file_magic_cmd
7406 # Flag that allows shared libraries with undefined symbols to be built.
7407 allow_undefined_flag=$lt_allow_undefined_flag
7409 # Flag that forces no undefined symbols.
7410 no_undefined_flag=$lt_no_undefined_flag
7412 # Commands used to finish a libtool library installation in a directory.
7413 finish_cmds=$lt_finish_cmds
7415 # Same as above, but a single script fragment to be evaled but not shown.
7416 finish_eval=$lt_finish_eval
7418 # Take the output of nm and produce a listing of raw symbols and C names.
7419 global_symbol_pipe=$lt_global_symbol_pipe
7421 # Transform the output of nm in a proper C declaration
7422 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7424 # Transform the output of nm in a C name address pair
7425 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7427 # This is the shared library runtime path variable.
7428 runpath_var=$runpath_var
7430 # This is the shared library path variable.
7431 shlibpath_var=$shlibpath_var
7433 # Is shlibpath searched before the hard-coded library search path?
7434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7436 # How to hardcode a shared library path into an executable.
7437 hardcode_action=$hardcode_action
7439 # Whether we should hardcode library paths into libraries.
7440 hardcode_into_libs=$hardcode_into_libs
7442 # Flag to hardcode \$libdir into a binary during linking.
7443 # This must work even if \$libdir does not exist.
7444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7446 # Whether we need a single -rpath flag with a separated argument.
7447 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7449 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7451 hardcode_direct=$hardcode_direct
7453 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7455 hardcode_minus_L=$hardcode_minus_L
7457 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7458 # the resulting binary.
7459 hardcode_shlibpath_var=$hardcode_shlibpath_var
7461 # Variables whose values should be saved in libtool wrapper scripts and
7462 # restored at relink time.
7463 variables_saved_for_relink="$variables_saved_for_relink"
7465 # Whether libtool must link a program against all its dependency libraries.
7466 link_all_deplibs=$link_all_deplibs
7468 # Compile-time system search path for libraries
7469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7471 # Run-time system search path for libraries
7472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7474 # Fix the shell variable \$srcfile for the compiler.
7475 fix_srcfile_path="$fix_srcfile_path"
7477 # Set to yes if exported symbols are required.
7478 always_export_symbols=$always_export_symbols
7480 # The commands to list exported symbols.
7481 export_symbols_cmds=$lt_export_symbols_cmds
7483 # The commands to extract the exported symbol list from a shared archive.
7484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7486 # Symbols that should not be listed in the preloaded symbols.
7487 exclude_expsyms=$lt_exclude_expsyms
7489 # Symbols that must always be exported.
7490 include_expsyms=$lt_include_expsyms
7492 # ### END LIBTOOL CONFIG
7498 cat <<\EOF >> "${ofile}T"
7500 # AIX sometimes has problems with the GCC collect2 program. For some
7501 # reason, if we set the COLLECT_NAMES environment variable, the problems
7502 # vanish in a puff of smoke.
7503 if test "X${COLLECT_NAMES+set}" != Xset; then
7505 export COLLECT_NAMES
7512 cygwin* | mingw* | pw32* | os2*)
7513 cat <<'EOF' >> "${ofile}T"
7514 # This is a source program that is used to create dlls on Windows
7515 # Don't remove nor modify the starting and closing comments
7516 # /* ltdll.c starts here */
7517 # #define WIN32_LEAN_AND_MEAN
7518 # #include <windows.h>
7519 # #undef WIN32_LEAN_AND_MEAN
7520 # #include <stdio.h>
7522 # #ifndef __CYGWIN__
7523 # # ifdef __CYGWIN32__
7524 # # define __CYGWIN__ __CYGWIN32__
7528 # #ifdef __cplusplus
7531 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7532 # #ifdef __cplusplus
7537 # #include <cygwin/cygwin_dll.h>
7538 # DECLARE_CYGWIN_DLL( DllMain );
7540 # HINSTANCE __hDllInstance_base;
7543 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7545 # __hDllInstance_base = hInst;
7548 # /* ltdll.c ends here */
7549 # This is a source program that is used to create import libraries
7550 # on Windows for dlls which lack them. Don't remove nor modify the
7551 # starting and closing comments
7552 # /* impgen.c starts here */
7553 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7555 # This file is part of GNU libtool.
7557 # This program is free software; you can redistribute it and/or modify
7558 # it under the terms of the GNU General Public License as published by
7559 # the Free Software Foundation; either version 2 of the License, or
7560 # (at your option) any later version.
7562 # This program is distributed in the hope that it will be useful,
7563 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7564 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7565 # GNU General Public License for more details.
7567 # You should have received a copy of the GNU General Public License
7568 # along with this program; if not, write to the Free Software
7569 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7572 # #include <stdio.h> /* for printf() */
7573 # #include <unistd.h> /* for open(), lseek(), read() */
7574 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7575 # #include <string.h> /* for strdup() */
7577 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7579 # #define O_BINARY 0
7582 # static unsigned int
7583 # pe_get16 (fd, offset)
7587 # unsigned char b[2];
7588 # lseek (fd, offset, SEEK_SET);
7590 # return b[0] + (b[1]<<8);
7593 # static unsigned int
7594 # pe_get32 (fd, offset)
7598 # unsigned char b[4];
7599 # lseek (fd, offset, SEEK_SET);
7601 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7604 # static unsigned int
7608 # unsigned char *b = ptr;
7609 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7618 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7619 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7620 # unsigned long name_rvas, nexp;
7621 # unsigned char *expdata, *erva;
7622 # char *filename, *dll_name;
7624 # filename = argv[1];
7626 # dll = open(filename, O_RDONLY|O_BINARY);
7630 # dll_name = filename;
7632 # for (i=0; filename[i]; i++)
7633 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7634 # dll_name = filename + i +1;
7636 # pe_header_offset = pe_get32 (dll, 0x3c);
7637 # opthdr_ofs = pe_header_offset + 4 + 20;
7638 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7640 # if (num_entries < 1) /* no exports */
7643 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7644 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7645 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7646 # secptr = (pe_header_offset + 4 + 20 +
7647 # pe_get16 (dll, pe_header_offset + 4 + 16));
7650 # for (i = 0; i < nsections; i++)
7653 # unsigned long secptr1 = secptr + 40 * i;
7654 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7655 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7656 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7657 # lseek(dll, secptr1, SEEK_SET);
7658 # read(dll, sname, 8);
7659 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7661 # expptr = fptr + (export_rva - vaddr);
7662 # if (export_rva + export_size > vaddr + vsize)
7663 # export_size = vsize - (export_rva - vaddr);
7668 # expdata = (unsigned char*)malloc(export_size);
7669 # lseek (dll, expptr, SEEK_SET);
7670 # read (dll, expdata, export_size);
7671 # erva = expdata - export_rva;
7673 # nexp = pe_as32 (expdata+24);
7674 # name_rvas = pe_as32 (expdata+32);
7676 # printf ("EXPORTS\n");
7677 # for (i = 0; i<nexp; i++)
7679 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7680 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7685 # /* impgen.c ends here */
7691 # We use sed instead of cat because bash on DJGPP gets confused if
7692 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7693 # text mode, it properly converts lines to CR/LF. This bash problem
7694 # is reportedly fixed, but why not run on old versions too?
7695 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7697 mv -f "${ofile}T" "$ofile" || \
7698 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7706 # This can be used to rebuild libtool when needed
7707 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7709 # Always use our own libtool.
7710 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7712 # Prevent multiple expansion
7717 if test "${OPENLDAP_CVS}"; then
7721 # test for ln hardlink support
7722 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7723 echo "configure:7724: checking whether ln works" >&5
7724 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7727 rm -f conftest.src conftest.dst
7728 echo "conftest" > conftest.src
7729 if ln conftest.src conftest.dst 2>/dev/null
7731 ol_cv_prog_LN_H="ln"
7733 ol_cv_prog_LN_H="cp"
7735 rm -f conftest.src conftest.dst
7738 LN_H="$ol_cv_prog_LN_H"
7739 if test "$ol_cv_prog_LN_H" = "ln"; then
7740 echo "$ac_t""yes" 1>&6
7742 echo "$ac_t""no" 1>&6
7745 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7746 echo "configure:7747: checking whether ln -s works" >&5
7747 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7748 echo $ac_n "(cached) $ac_c" 1>&6
7751 if ln -s X conftestdata 2>/dev/null
7754 ac_cv_prog_LN_S="ln -s"
7759 LN_S="$ac_cv_prog_LN_S"
7760 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7761 echo "$ac_t""yes" 1>&6
7763 echo "$ac_t""no" 1>&6
7768 if test $ol_enable_perl != no ; then
7769 # Extract the first word of "perl", so it can be a program name with args.
7770 set dummy perl; ac_word=$2
7771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7772 echo "configure:7773: checking for $ac_word" >&5
7773 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7778 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7781 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7786 for ac_dir in $ac_dummy; do
7787 test -z "$ac_dir" && ac_dir=.
7788 if test -f $ac_dir/$ac_word; then
7789 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7794 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7798 PERLBIN="$ac_cv_path_PERLBIN"
7799 if test -n "$PERLBIN"; then
7800 echo "$ac_t""$PERLBIN" 1>&6
7802 echo "$ac_t""no" 1>&6
7806 if test "no$PERLBIN" = "no" ; then
7807 if test $ol_enable_perl = yes ; then
7808 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7812 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7813 if test x"$ol_with_perl_module" = "xstatic" ; then
7814 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7816 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7822 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7823 echo "configure:7824: checking how to run the C preprocessor" >&5
7824 # On Suns, sometimes $CPP names a directory.
7825 if test -n "$CPP" && test -d "$CPP"; then
7828 if test -z "$CPP"; then
7829 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7830 echo $ac_n "(cached) $ac_c" 1>&6
7832 # This must be in double quotes, not single quotes, because CPP may get
7833 # substituted into the Makefile and "${CC-cc}" will confuse make.
7835 # On the NeXT, cc -E runs the code through the compiler's parser,
7836 # not just through cpp.
7837 cat > conftest.$ac_ext <<EOF
7838 #line 7839 "configure"
7839 #include "confdefs.h"
7843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7844 { (eval echo configure:7845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7846 if test -z "$ac_err"; then
7850 echo "configure: failed program was:" >&5
7851 cat conftest.$ac_ext >&5
7853 CPP="${CC-cc} -E -traditional-cpp"
7854 cat > conftest.$ac_ext <<EOF
7855 #line 7856 "configure"
7856 #include "confdefs.h"
7860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7861 { (eval echo configure:7862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7863 if test -z "$ac_err"; then
7867 echo "configure: failed program was:" >&5
7868 cat conftest.$ac_ext >&5
7870 CPP="${CC-cc} -nologo -E"
7871 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure"
7873 #include "confdefs.h"
7877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7878 { (eval echo configure:7879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7880 if test -z "$ac_err"; then
7884 echo "configure: failed program was:" >&5
7885 cat conftest.$ac_ext >&5
7894 ac_cv_prog_CPP="$CPP"
7896 CPP="$ac_cv_prog_CPP"
7898 ac_cv_prog_CPP="$CPP"
7900 echo "$ac_t""$CPP" 1>&6
7903 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7904 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7906 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7907 echo "configure: warning: programs compiled here do run here..." 1>&2
7908 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7910 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7911 echo "configure: warning: programs compiled here do not run here..." 1>&2
7912 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7916 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7917 echo "configure:7918: checking for Cygwin environment" >&5
7918 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7919 echo $ac_n "(cached) $ac_c" 1>&6
7921 cat > conftest.$ac_ext <<EOF
7922 #line 7923 "configure"
7923 #include "confdefs.h"
7928 #define __CYGWIN__ __CYGWIN32__
7933 if { (eval echo configure:7934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7937 echo "configure: failed program was:" >&5
7938 cat conftest.$ac_ext >&5
7945 echo "$ac_t""$ac_cv_cygwin" 1>&6
7947 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7948 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7949 echo "configure:7950: checking for mingw32 environment" >&5
7950 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7951 echo $ac_n "(cached) $ac_c" 1>&6
7953 cat > conftest.$ac_ext <<EOF
7954 #line 7955 "configure"
7955 #include "confdefs.h"
7961 if { (eval echo configure:7962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7965 echo "configure: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7973 echo "$ac_t""$ac_cv_mingw32" 1>&6
7975 test "$ac_cv_mingw32" = yes && MINGW32=yes
7979 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7980 echo "configure:7981: checking for executable suffix" >&5
7981 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7984 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7988 echo 'int main () { return 0; }' > conftest.$ac_ext
7990 if { (eval echo configure:7991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7991 for file in conftest.*; do
7993 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7994 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7998 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8001 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8006 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8007 echo "$ac_t""${ac_cv_exeext}" 1>&6
8010 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8011 echo "configure:8012: checking for object suffix" >&5
8012 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8013 echo $ac_n "(cached) $ac_c" 1>&6
8016 echo 'int i = 1;' > conftest.$ac_ext
8017 if { (eval echo configure:8018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8018 for ac_file in conftest.*; do
8021 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8025 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8030 echo "$ac_t""$ac_cv_objext" 1>&6
8031 OBJEXT=$ac_cv_objext
8032 ac_objext=$ac_cv_objext
8035 cat >> confdefs.h <<EOF
8036 #define EXEEXT "${EXEEXT}"
8040 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8041 echo "configure:8042: checking for be_app in -lbe" >&5
8042 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8043 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8044 echo $ac_n "(cached) $ac_c" 1>&6
8046 ac_save_LIBS="$LIBS"
8047 LIBS="-lbe -lroot -lnet $LIBS"
8048 cat > conftest.$ac_ext <<EOF
8049 #line 8050 "configure"
8050 #include "confdefs.h"
8051 /* Override any gcc2 internal prototype to avoid an error. */
8052 /* We use char because int might match the return type of a gcc2
8053 builtin and then its argument prototype would still apply. */
8060 if { (eval echo configure:8061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8062 eval "ac_cv_lib_$ac_lib_var=yes"
8064 echo "configure: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8067 eval "ac_cv_lib_$ac_lib_var=no"
8070 LIBS="$ac_save_LIBS"
8073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8074 echo "$ac_t""yes" 1>&6
8075 LIBS="$LIBS -lbe -lroot -lnet"
8077 echo "$ac_t""no" 1>&6
8085 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8086 echo "configure:8087: checking for ${CC-cc} option to accept ANSI C" >&5
8087 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8088 echo $ac_n "(cached) $ac_c" 1>&6
8090 am_cv_prog_cc_stdc=no
8092 # Don't try gcc -ansi; that turns off useful extensions and
8093 # breaks some systems' header files.
8094 # AIX -qlanglvl=ansi
8095 # Ultrix and OSF/1 -std1
8096 # HP-UX 10.20 and later -Ae
8097 # HP-UX older versions -Aa -D_HPUX_SOURCE
8098 # SVR4 -Xc -D__EXTENSIONS__
8099 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8101 CC="$ac_save_CC $ac_arg"
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8107 #include <sys/types.h>
8108 #include <sys/stat.h>
8109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8110 struct buf { int x; };
8111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8112 static char *e (p, i)
8118 static char *f (char * (*g) (char **, int), char **p, ...)
8123 s = g (p, va_arg (v,int));
8127 int test (int i, double x);
8128 struct s1 {int (*f) (int a);};
8129 struct s2 {int (*f) (double a);};
8130 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8136 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8140 if { (eval echo configure:8141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8142 am_cv_prog_cc_stdc="$ac_arg"; break
8144 echo "configure: failed program was:" >&5
8145 cat conftest.$ac_ext >&5
8153 if test -z "$am_cv_prog_cc_stdc"; then
8154 echo "$ac_t""none needed" 1>&6
8156 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8158 case "x$am_cv_prog_cc_stdc" in
8160 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8163 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8164 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8167 # test for make depend flag
8170 if test -z "${MKDEP}"; then
8172 if test -z "${MKDEP_FLAGS}"; then
8173 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8174 echo "configure:8175: checking for ${OL_MKDEP} depend flag" >&5
8175 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8176 echo $ac_n "(cached) $ac_c" 1>&6
8180 for flag in "-M" "-xM"; do
8181 cat > conftest.c <<EOF
8184 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8185 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8187 if test ! -f conftest."${ac_object}" ; then
8189 OL_MKDEP_FLAGS="$flag"
8198 echo "$ac_t""$ol_cv_mkdep" 1>&6
8201 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8206 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8211 if test "${ol_cv_mkdep}" = no ; then
8212 # this will soon become an error
8213 echo "configure: warning: do not know how to generate dependencies" 1>&2
8216 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8217 echo "configure:8218: checking for afopen in -ls" >&5
8218 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8219 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8220 echo $ac_n "(cached) $ac_c" 1>&6
8222 ac_save_LIBS="$LIBS"
8224 cat > conftest.$ac_ext <<EOF
8225 #line 8226 "configure"
8226 #include "confdefs.h"
8227 /* Override any gcc2 internal prototype to avoid an error. */
8228 /* We use char because int might match the return type of a gcc2
8229 builtin and then its argument prototype would still apply. */
8236 if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8238 eval "ac_cv_lib_$ac_lib_var=yes"
8240 echo "configure: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8243 eval "ac_cv_lib_$ac_lib_var=no"
8246 LIBS="$ac_save_LIBS"
8249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8250 echo "$ac_t""yes" 1>&6
8253 cat >> confdefs.h <<\EOF
8254 #define HAVE_AIX_SECURITY 1
8259 echo "$ac_t""no" 1>&6
8265 ac_cv_func_getopt=no
8266 cat >> confdefs.h <<\EOF
8267 #define BOTH_STRINGS_H 1
8274 if test $ol_enable_modules != no ; then
8275 for ac_hdr in ltdl.h
8277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8279 echo "configure:8280: checking for $ac_hdr" >&5
8280 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8281 echo $ac_n "(cached) $ac_c" 1>&6
8283 cat > conftest.$ac_ext <<EOF
8284 #line 8285 "configure"
8285 #include "confdefs.h"
8288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8289 { (eval echo configure:8290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8291 if test -z "$ac_err"; then
8293 eval "ac_cv_header_$ac_safe=yes"
8296 echo "configure: failed program was:" >&5
8297 cat conftest.$ac_ext >&5
8299 eval "ac_cv_header_$ac_safe=no"
8303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8304 echo "$ac_t""yes" 1>&6
8305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8306 cat >> confdefs.h <<EOF
8307 #define $ac_tr_hdr 1
8311 echo "$ac_t""no" 1>&6
8316 if test $ac_cv_header_ltdl_h = no ; then
8317 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8320 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8321 echo "configure:8322: checking for lt_dlinit in -lltdl" >&5
8322 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8323 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8324 echo $ac_n "(cached) $ac_c" 1>&6
8326 ac_save_LIBS="$LIBS"
8328 cat > conftest.$ac_ext <<EOF
8329 #line 8330 "configure"
8330 #include "confdefs.h"
8331 /* Override any gcc2 internal prototype to avoid an error. */
8332 /* We use char because int might match the return type of a gcc2
8333 builtin and then its argument prototype would still apply. */
8340 if { (eval echo configure:8341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8342 eval "ac_cv_lib_$ac_lib_var=yes"
8344 echo "configure: failed program was:" >&5
8345 cat conftest.$ac_ext >&5
8347 eval "ac_cv_lib_$ac_lib_var=no"
8350 LIBS="$ac_save_LIBS"
8353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8354 echo "$ac_t""yes" 1>&6
8357 cat >> confdefs.h <<\EOF
8358 #define HAVE_LIBLTDL 1
8363 echo "$ac_t""no" 1>&6
8367 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8368 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8372 ol_with_bdb_module=static
8373 ol_with_dnssrv_module=static
8374 ol_with_ldap_module=static
8375 ol_with_ldbm_module=static
8376 ol_with_meta_module=static
8377 ol_with_monitor_module=static
8378 ol_with_null_module=static
8379 ol_with_passwd_module=static
8380 ol_with_perl_module=static
8381 ol_with_shell_module=static
8382 ol_with_tcl_module=static
8383 ol_with_sql_module=static
8387 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8388 echo "configure:8389: checking for EBCDIC" >&5
8389 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8393 cat > conftest.$ac_ext <<EOF
8394 #line 8395 "configure"
8395 #include "confdefs.h"
8398 #include <__ASCII__/generate_error.h>
8402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8403 { (eval echo configure:8404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8405 if test -z "$ac_err"; then
8407 ol_cv_cpp_ebcdic=yes
8410 echo "configure: failed program was:" >&5
8411 cat conftest.$ac_ext >&5
8418 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8419 if test $ol_cv_cpp_ebcdic = yes ; then
8420 cat >> confdefs.h <<\EOF
8421 #define HAVE_EBCDIC 1
8426 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8427 echo "configure:8428: checking for ANSI C header files" >&5
8428 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8429 echo $ac_n "(cached) $ac_c" 1>&6
8431 cat > conftest.$ac_ext <<EOF
8432 #line 8433 "configure"
8433 #include "confdefs.h"
8439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8440 { (eval echo configure:8441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8442 if test -z "$ac_err"; then
8444 ol_cv_header_stdc=yes
8447 echo "configure: failed program was:" >&5
8448 cat conftest.$ac_ext >&5
8450 ol_cv_header_stdc=no
8454 if test $ol_cv_header_stdc = yes; then
8455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8456 cat > conftest.$ac_ext <<EOF
8457 #line 8458 "configure"
8458 #include "confdefs.h"
8461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8462 egrep "memchr" >/dev/null 2>&1; then
8466 ol_cv_header_stdc=no
8472 if test $ol_cv_header_stdc = yes; then
8473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8474 cat > conftest.$ac_ext <<EOF
8475 #line 8476 "configure"
8476 #include "confdefs.h"
8479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8480 egrep "free" >/dev/null 2>&1; then
8484 ol_cv_header_stdc=no
8490 if test $ol_cv_header_stdc = yes; then
8491 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8492 if test "$cross_compiling" = yes; then
8495 cat > conftest.$ac_ext <<EOF
8496 #line 8497 "configure"
8497 #include "confdefs.h"
8500 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8501 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8503 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8504 || ('j' <= (c) && (c) <= 'r') \
8505 || ('s' <= (c) && (c) <= 'z'))
8506 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8509 int main () { int i; for (i = 0; i < 256; i++)
8510 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8514 if { (eval echo configure:8515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8518 echo "configure: failed program was:" >&5
8519 cat conftest.$ac_ext >&5
8521 ol_cv_header_stdc=no
8529 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8530 if test $ol_cv_header_stdc = yes; then
8531 cat >> confdefs.h <<\EOF
8532 #define STDC_HEADERS 1
8536 ac_cv_header_stdc=disable
8539 if test $ol_cv_header_stdc != yes; then
8540 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8544 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8546 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8547 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8548 echo "configure:8549: checking for $ac_hdr that defines DIR" >&5
8549 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8550 echo $ac_n "(cached) $ac_c" 1>&6
8552 cat > conftest.$ac_ext <<EOF
8553 #line 8554 "configure"
8554 #include "confdefs.h"
8555 #include <sys/types.h>
8561 if { (eval echo configure:8562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8563 eval "ac_cv_header_dirent_$ac_safe=yes"
8565 echo "configure: failed program was:" >&5
8566 cat conftest.$ac_ext >&5
8568 eval "ac_cv_header_dirent_$ac_safe=no"
8572 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8573 echo "$ac_t""yes" 1>&6
8574 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8575 cat >> confdefs.h <<EOF
8576 #define $ac_tr_hdr 1
8578 ac_header_dirent=$ac_hdr; break
8580 echo "$ac_t""no" 1>&6
8583 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8584 if test $ac_header_dirent = dirent.h; then
8585 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8586 echo "configure:8587: checking for opendir in -ldir" >&5
8587 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8588 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8589 echo $ac_n "(cached) $ac_c" 1>&6
8591 ac_save_LIBS="$LIBS"
8593 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure"
8595 #include "confdefs.h"
8596 /* Override any gcc2 internal prototype to avoid an error. */
8597 /* We use char because int might match the return type of a gcc2
8598 builtin and then its argument prototype would still apply. */
8605 if { (eval echo configure:8606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8607 eval "ac_cv_lib_$ac_lib_var=yes"
8609 echo "configure: failed program was:" >&5
8610 cat conftest.$ac_ext >&5
8612 eval "ac_cv_lib_$ac_lib_var=no"
8615 LIBS="$ac_save_LIBS"
8618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8619 echo "$ac_t""yes" 1>&6
8622 echo "$ac_t""no" 1>&6
8626 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8627 echo "configure:8628: checking for opendir in -lx" >&5
8628 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8629 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8630 echo $ac_n "(cached) $ac_c" 1>&6
8632 ac_save_LIBS="$LIBS"
8634 cat > conftest.$ac_ext <<EOF
8635 #line 8636 "configure"
8636 #include "confdefs.h"
8637 /* Override any gcc2 internal prototype to avoid an error. */
8638 /* We use char because int might match the return type of a gcc2
8639 builtin and then its argument prototype would still apply. */
8646 if { (eval echo configure:8647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8648 eval "ac_cv_lib_$ac_lib_var=yes"
8650 echo "configure: failed program was:" >&5
8651 cat conftest.$ac_ext >&5
8653 eval "ac_cv_lib_$ac_lib_var=no"
8656 LIBS="$ac_save_LIBS"
8659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8660 echo "$ac_t""yes" 1>&6
8663 echo "$ac_t""no" 1>&6
8668 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8669 echo "configure:8670: checking for sys/wait.h that is POSIX.1 compatible" >&5
8670 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8671 echo $ac_n "(cached) $ac_c" 1>&6
8673 cat > conftest.$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8676 #include <sys/types.h>
8677 #include <sys/wait.h>
8679 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8682 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8687 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8690 if { (eval echo configure:8691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8692 ac_cv_header_sys_wait_h=yes
8694 echo "configure: failed program was:" >&5
8695 cat conftest.$ac_ext >&5
8697 ac_cv_header_sys_wait_h=no
8702 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8703 if test $ac_cv_header_sys_wait_h = yes; then
8704 cat >> confdefs.h <<\EOF
8705 #define HAVE_SYS_WAIT_H 1
8710 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8711 echo "configure:8712: checking POSIX termios" >&5
8712 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8713 echo $ac_n "(cached) $ac_c" 1>&6
8715 cat > conftest.$ac_ext <<EOF
8716 #line 8717 "configure"
8717 #include "confdefs.h"
8718 #include <sys/types.h>
8720 #include <termios.h>
8722 /* SunOS 4.0.3 has termios.h but not the library calls. */
8726 if { (eval echo configure:8727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8728 am_cv_sys_posix_termios=yes
8730 echo "configure: failed program was:" >&5
8731 cat conftest.$ac_ext >&5
8733 am_cv_sys_posix_termios=no
8738 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8741 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8742 echo "configure:8743: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8743 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8744 echo $ac_n "(cached) $ac_c" 1>&6
8746 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8748 gwinsz_in_termios_h=no
8749 if test $am_cv_sys_posix_termios = yes; then
8750 cat > conftest.$ac_ext <<EOF
8751 #line 8752 "configure"
8752 #include "confdefs.h"
8753 #include <sys/types.h>
8754 # include <termios.h>
8760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8761 egrep "yes" >/dev/null 2>&1; then
8763 gwinsz_in_termios_h=yes
8769 if test $gwinsz_in_termios_h = no; then
8770 cat > conftest.$ac_ext <<EOF
8771 #line 8772 "configure"
8772 #include "confdefs.h"
8773 #include <sys/types.h>
8774 # include <sys/ioctl.h>
8780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8781 egrep "yes" >/dev/null 2>&1; then
8783 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8791 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8792 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8793 cat >> confdefs.h <<\EOF
8794 #define GWINSZ_IN_SYS_IOCTL 1
8799 if test $am_cv_sys_posix_termios = yes ; then
8800 cat >> confdefs.h <<\EOF
8801 #define HAVE_POSIX_TERMIOS 1
8854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8856 echo "configure:8857: checking for $ac_hdr" >&5
8857 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8858 echo $ac_n "(cached) $ac_c" 1>&6
8860 cat > conftest.$ac_ext <<EOF
8861 #line 8862 "configure"
8862 #include "confdefs.h"
8865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8866 { (eval echo configure:8867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8868 if test -z "$ac_err"; then
8870 eval "ac_cv_header_$ac_safe=yes"
8873 echo "configure: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8876 eval "ac_cv_header_$ac_safe=no"
8880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8881 echo "$ac_t""yes" 1>&6
8882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8883 cat >> confdefs.h <<EOF
8884 #define $ac_tr_hdr 1
8888 echo "$ac_t""no" 1>&6
8895 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8896 echo "configure:8897: checking for dlopen" >&5
8897 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8898 echo $ac_n "(cached) $ac_c" 1>&6
8900 cat > conftest.$ac_ext <<EOF
8901 #line 8902 "configure"
8902 #include "confdefs.h"
8903 /* System header to define __stub macros and hopefully few prototypes,
8904 which can conflict with char dlopen(); below. */
8906 /* Override any gcc2 internal prototype to avoid an error. */
8907 /* We use char because int might match the return type of a gcc2
8908 builtin and then its argument prototype would still apply. */
8914 /* The GNU C library defines this for functions which it implements
8915 to always fail with ENOSYS. Some functions are actually named
8916 something starting with __ and the normal name is an alias. */
8917 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8925 if { (eval echo configure:8926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8927 eval "ac_cv_func_dlopen=yes"
8929 echo "configure: failed program was:" >&5
8930 cat conftest.$ac_ext >&5
8932 eval "ac_cv_func_dlopen=no"
8937 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8938 echo "$ac_t""yes" 1>&6
8941 echo "$ac_t""no" 1>&6
8942 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8943 echo "configure:8944: checking for dlopen in -ldl" >&5
8944 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8945 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8946 echo $ac_n "(cached) $ac_c" 1>&6
8948 ac_save_LIBS="$LIBS"
8950 cat > conftest.$ac_ext <<EOF
8951 #line 8952 "configure"
8952 #include "confdefs.h"
8953 /* Override any gcc2 internal prototype to avoid an error. */
8954 /* We use char because int might match the return type of a gcc2
8955 builtin and then its argument prototype would still apply. */
8962 if { (eval echo configure:8963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8964 eval "ac_cv_lib_$ac_lib_var=yes"
8966 echo "configure: failed program was:" >&5
8967 cat conftest.$ac_ext >&5
8969 eval "ac_cv_lib_$ac_lib_var=no"
8972 LIBS="$ac_save_LIBS"
8975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8976 echo "$ac_t""yes" 1>&6
8977 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8978 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8979 cat >> confdefs.h <<EOF
8980 #define $ac_tr_lib 1
8986 echo "$ac_t""no" 1>&6
8992 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8993 echo "configure:8994: checking for sigset in -lV3" >&5
8994 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8995 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8996 echo $ac_n "(cached) $ac_c" 1>&6
8998 ac_save_LIBS="$LIBS"
9000 cat > conftest.$ac_ext <<EOF
9001 #line 9002 "configure"
9002 #include "confdefs.h"
9003 /* Override any gcc2 internal prototype to avoid an error. */
9004 /* We use char because int might match the return type of a gcc2
9005 builtin and then its argument prototype would still apply. */
9012 if { (eval echo configure:9013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9014 eval "ac_cv_lib_$ac_lib_var=yes"
9016 echo "configure: failed program was:" >&5
9017 cat conftest.$ac_ext >&5
9019 eval "ac_cv_lib_$ac_lib_var=no"
9022 LIBS="$ac_save_LIBS"
9025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9026 echo "$ac_t""yes" 1>&6
9027 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9028 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9029 cat >> confdefs.h <<EOF
9030 #define $ac_tr_lib 1
9036 echo "$ac_t""no" 1>&6
9040 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9041 echo "configure:9042: checking for winsock" >&5
9043 for curlib in ws2_32 wsock32; do
9044 LIBS="$LIBS -l$curlib"
9045 cat > conftest.$ac_ext <<EOF
9046 #line 9047 "configure"
9047 #include "confdefs.h"
9051 char closesocket@4();
9052 char gethostname@8();
9063 if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9067 echo "configure: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9074 if test $have_winsock = yes; then
9075 cat >> confdefs.h <<\EOF
9076 #define HAVE_WINSOCK 1
9079 ac_cv_func_socket=yes
9080 ac_cv_func_select=yes
9081 ac_cv_func_closesocket=yes
9082 ac_cv_func_gethostname=yes
9083 if test $curlib = ws2_32; then
9084 have_winsock=winsock2
9085 cat >> confdefs.h <<\EOF
9086 #define HAVE_WINSOCK2 1
9094 echo "$ac_t""$have_winsock" 1>&6
9097 echo $ac_n "checking for socket""... $ac_c" 1>&6
9098 echo "configure:9099: checking for socket" >&5
9099 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9100 echo $ac_n "(cached) $ac_c" 1>&6
9102 cat > conftest.$ac_ext <<EOF
9103 #line 9104 "configure"
9104 #include "confdefs.h"
9105 /* System header to define __stub macros and hopefully few prototypes,
9106 which can conflict with char socket(); below. */
9108 /* Override any gcc2 internal prototype to avoid an error. */
9109 /* We use char because int might match the return type of a gcc2
9110 builtin and then its argument prototype would still apply. */
9116 /* The GNU C library defines this for functions which it implements
9117 to always fail with ENOSYS. Some functions are actually named
9118 something starting with __ and the normal name is an alias. */
9119 #if defined (__stub_socket) || defined (__stub___socket)
9127 if { (eval echo configure:9128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9129 eval "ac_cv_func_socket=yes"
9131 echo "configure: failed program was:" >&5
9132 cat conftest.$ac_ext >&5
9134 eval "ac_cv_func_socket=no"
9139 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9140 echo "$ac_t""yes" 1>&6
9143 echo "$ac_t""no" 1>&6
9145 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9146 echo "configure:9147: checking for main in -lsocket" >&5
9147 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9148 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9149 echo $ac_n "(cached) $ac_c" 1>&6
9151 ac_save_LIBS="$LIBS"
9152 LIBS="-lsocket $LIBS"
9153 cat > conftest.$ac_ext <<EOF
9154 #line 9155 "configure"
9155 #include "confdefs.h"
9161 if { (eval echo configure:9162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9163 eval "ac_cv_lib_$ac_lib_var=yes"
9165 echo "configure: failed program was:" >&5
9166 cat conftest.$ac_ext >&5
9168 eval "ac_cv_lib_$ac_lib_var=no"
9171 LIBS="$ac_save_LIBS"
9174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9175 echo "$ac_t""yes" 1>&6
9176 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9177 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9178 cat >> confdefs.h <<EOF
9179 #define $ac_tr_lib 1
9182 LIBS="-lsocket $LIBS"
9185 echo "$ac_t""no" 1>&6
9188 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9189 echo "configure:9190: checking for main in -lnet" >&5
9190 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9191 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9192 echo $ac_n "(cached) $ac_c" 1>&6
9194 ac_save_LIBS="$LIBS"
9196 cat > conftest.$ac_ext <<EOF
9197 #line 9198 "configure"
9198 #include "confdefs.h"
9204 if { (eval echo configure:9205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9206 eval "ac_cv_lib_$ac_lib_var=yes"
9208 echo "configure: failed program was:" >&5
9209 cat conftest.$ac_ext >&5
9211 eval "ac_cv_lib_$ac_lib_var=no"
9214 LIBS="$ac_save_LIBS"
9217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9218 echo "$ac_t""yes" 1>&6
9219 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9220 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9221 cat >> confdefs.h <<EOF
9222 #define $ac_tr_lib 1
9228 echo "$ac_t""no" 1>&6
9231 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9232 echo "configure:9233: checking for main in -lnsl_s" >&5
9233 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9234 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9235 echo $ac_n "(cached) $ac_c" 1>&6
9237 ac_save_LIBS="$LIBS"
9238 LIBS="-lnsl_s $LIBS"
9239 cat > conftest.$ac_ext <<EOF
9240 #line 9241 "configure"
9241 #include "confdefs.h"
9247 if { (eval echo configure:9248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9249 eval "ac_cv_lib_$ac_lib_var=yes"
9251 echo "configure: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9254 eval "ac_cv_lib_$ac_lib_var=no"
9257 LIBS="$ac_save_LIBS"
9260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9261 echo "$ac_t""yes" 1>&6
9262 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9263 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9264 cat >> confdefs.h <<EOF
9265 #define $ac_tr_lib 1
9268 LIBS="-lnsl_s $LIBS"
9271 echo "$ac_t""no" 1>&6
9274 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9275 echo "configure:9276: checking for main in -lnsl" >&5
9276 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9277 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9278 echo $ac_n "(cached) $ac_c" 1>&6
9280 ac_save_LIBS="$LIBS"
9282 cat > conftest.$ac_ext <<EOF
9283 #line 9284 "configure"
9284 #include "confdefs.h"
9290 if { (eval echo configure:9291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9292 eval "ac_cv_lib_$ac_lib_var=yes"
9294 echo "configure: failed program was:" >&5
9295 cat conftest.$ac_ext >&5
9297 eval "ac_cv_lib_$ac_lib_var=no"
9300 LIBS="$ac_save_LIBS"
9303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9304 echo "$ac_t""yes" 1>&6
9305 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9306 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9307 cat >> confdefs.h <<EOF
9308 #define $ac_tr_lib 1
9314 echo "$ac_t""no" 1>&6
9317 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9318 echo "configure:9319: checking for socket in -linet" >&5
9319 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9320 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9323 ac_save_LIBS="$LIBS"
9325 cat > conftest.$ac_ext <<EOF
9326 #line 9327 "configure"
9327 #include "confdefs.h"
9328 /* Override any gcc2 internal prototype to avoid an error. */
9329 /* We use char because int might match the return type of a gcc2
9330 builtin and then its argument prototype would still apply. */
9337 if { (eval echo configure:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9339 eval "ac_cv_lib_$ac_lib_var=yes"
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9344 eval "ac_cv_lib_$ac_lib_var=no"
9347 LIBS="$ac_save_LIBS"
9350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9351 echo "$ac_t""yes" 1>&6
9352 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9353 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9354 cat >> confdefs.h <<EOF
9355 #define $ac_tr_lib 1
9361 echo "$ac_t""no" 1>&6
9364 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9365 echo "configure:9366: checking for main in -lgen" >&5
9366 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9367 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9368 echo $ac_n "(cached) $ac_c" 1>&6
9370 ac_save_LIBS="$LIBS"
9372 cat > conftest.$ac_ext <<EOF
9373 #line 9374 "configure"
9374 #include "confdefs.h"
9380 if { (eval echo configure:9381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9382 eval "ac_cv_lib_$ac_lib_var=yes"
9384 echo "configure: failed program was:" >&5
9385 cat conftest.$ac_ext >&5
9387 eval "ac_cv_lib_$ac_lib_var=no"
9390 LIBS="$ac_save_LIBS"
9393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9394 echo "$ac_t""yes" 1>&6
9395 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9396 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9397 cat >> confdefs.h <<EOF
9398 #define $ac_tr_lib 1
9404 echo "$ac_t""no" 1>&6
9411 echo $ac_n "checking for select""... $ac_c" 1>&6
9412 echo "configure:9413: checking for select" >&5
9413 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9414 echo $ac_n "(cached) $ac_c" 1>&6
9416 cat > conftest.$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9419 /* System header to define __stub macros and hopefully few prototypes,
9420 which can conflict with char select(); below. */
9422 /* Override any gcc2 internal prototype to avoid an error. */
9423 /* We use char because int might match the return type of a gcc2
9424 builtin and then its argument prototype would still apply. */
9430 /* The GNU C library defines this for functions which it implements
9431 to always fail with ENOSYS. Some functions are actually named
9432 something starting with __ and the normal name is an alias. */
9433 #if defined (__stub_select) || defined (__stub___select)
9441 if { (eval echo configure:9442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9443 eval "ac_cv_func_select=yes"
9445 echo "configure: failed program was:" >&5
9446 cat conftest.$ac_ext >&5
9448 eval "ac_cv_func_select=no"
9453 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9454 echo "$ac_t""yes" 1>&6
9457 echo "$ac_t""no" 1>&6
9458 { echo "configure: error: select() required." 1>&2; exit 1; }
9462 if test "${ac_cv_header_winsock_h}" != yes; then
9463 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9464 echo "configure:9465: checking types of arguments for select()" >&5
9465 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9466 echo $ac_n "(cached) $ac_c" 1>&6
9468 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9469 echo $ac_n "(cached) $ac_c" 1>&6
9471 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9472 echo $ac_n "(cached) $ac_c" 1>&6
9474 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9475 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9476 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9477 cat > conftest.$ac_ext <<EOF
9478 #line 9479 "configure"
9479 #include "confdefs.h"
9480 #ifdef HAVE_SYS_TYPES_H
9481 #include <sys/types.h>
9483 #ifdef HAVE_SYS_TIME_H
9484 #include <sys/time.h>
9486 #ifdef HAVE_SYS_SELECT_H
9487 #include <sys/select.h>
9489 #ifdef HAVE_SYS_SOCKET_H
9490 #include <sys/socket.h>
9492 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);
9497 if { (eval echo configure:9498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9499 ac_not_found=no ; break 3
9501 echo "configure: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9516 if test "$ac_not_found" = yes; then
9517 ac_cv_func_select_arg1=int
9518 ac_cv_func_select_arg234='int *'
9519 ac_cv_func_select_arg5='struct timeval *'
9521 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9522 cat >> confdefs.h <<EOF
9523 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9526 cat >> confdefs.h <<EOF
9527 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9530 cat >> confdefs.h <<EOF
9531 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9538 for ac_hdr in regex.h
9540 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9542 echo "configure:9543: checking for $ac_hdr" >&5
9543 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9544 echo $ac_n "(cached) $ac_c" 1>&6
9546 cat > conftest.$ac_ext <<EOF
9547 #line 9548 "configure"
9548 #include "confdefs.h"
9551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9552 { (eval echo configure:9553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9554 if test -z "$ac_err"; then
9556 eval "ac_cv_header_$ac_safe=yes"
9559 echo "configure: failed program was:" >&5
9560 cat conftest.$ac_ext >&5
9562 eval "ac_cv_header_$ac_safe=no"
9566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9567 echo "$ac_t""yes" 1>&6
9568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9569 cat >> confdefs.h <<EOF
9570 #define $ac_tr_hdr 1
9574 echo "$ac_t""no" 1>&6
9578 if test "$ac_cv_header_regex_h" != yes ; then
9579 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9582 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9583 echo "configure:9584: checking for library containing regfree" >&5
9584 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9585 echo $ac_n "(cached) $ac_c" 1>&6
9587 ac_func_search_save_LIBS="$LIBS"
9588 ac_cv_search_regfree="no"
9589 cat > conftest.$ac_ext <<EOF
9590 #line 9591 "configure"
9591 #include "confdefs.h"
9592 /* Override any gcc2 internal prototype to avoid an error. */
9593 /* We use char because int might match the return type of a gcc2
9594 builtin and then its argument prototype would still apply. */
9601 if { (eval echo configure:9602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9603 ac_cv_search_regfree="none required"
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9609 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9611 cat > conftest.$ac_ext <<EOF
9612 #line 9613 "configure"
9613 #include "confdefs.h"
9614 /* Override any gcc2 internal prototype to avoid an error. */
9615 /* We use char because int might match the return type of a gcc2
9616 builtin and then its argument prototype would still apply. */
9623 if { (eval echo configure:9624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9625 ac_cv_search_regfree="-l$ac_lib"
9628 echo "configure: failed program was:" >&5
9629 cat conftest.$ac_ext >&5
9633 LIBS="$ac_func_search_save_LIBS"
9636 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9637 if test "$ac_cv_search_regfree" != "no"; then
9638 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9641 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9645 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9646 echo "configure:9647: checking for compatible POSIX regex" >&5
9647 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9648 echo $ac_n "(cached) $ac_c" 1>&6
9651 if test "$cross_compiling" = yes; then
9652 ol_cv_c_posix_regex=cross
9654 cat > conftest.$ac_ext <<EOF
9655 #line 9656 "configure"
9656 #include "confdefs.h"
9658 #include <sys/types.h>
9660 static char *pattern, *string;
9668 if(regcomp(&re, pattern, 0)) {
9672 string = "ALL MATCH";
9674 rc = regexec(&re, string, 0, (void*)0, 0);
9681 if { (eval echo configure:9682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9683 ol_cv_c_posix_regex=yes
9685 echo "configure: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9688 ol_cv_c_posix_regex=no
9695 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9697 if test "$ol_cv_c_posix_regex" = no ; then
9698 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9703 for ac_hdr in sys/uuid.h
9705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9707 echo "configure:9708: checking for $ac_hdr" >&5
9708 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9709 echo $ac_n "(cached) $ac_c" 1>&6
9711 cat > conftest.$ac_ext <<EOF
9712 #line 9713 "configure"
9713 #include "confdefs.h"
9716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9717 { (eval echo configure:9718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9719 if test -z "$ac_err"; then
9721 eval "ac_cv_header_$ac_safe=yes"
9724 echo "configure: failed program was:" >&5
9725 cat conftest.$ac_ext >&5
9727 eval "ac_cv_header_$ac_safe=no"
9731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9732 echo "$ac_t""yes" 1>&6
9733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9734 cat >> confdefs.h <<EOF
9735 #define $ac_tr_hdr 1
9739 echo "$ac_t""no" 1>&6
9743 if test $ac_cv_header_sys_uuid_h = yes ; then
9746 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9747 echo "configure:9748: checking for library containing uuid_to_str" >&5
9748 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9749 echo $ac_n "(cached) $ac_c" 1>&6
9751 ac_func_search_save_LIBS="$LIBS"
9752 ac_cv_search_uuid_to_str="no"
9753 cat > conftest.$ac_ext <<EOF
9754 #line 9755 "configure"
9755 #include "confdefs.h"
9756 /* Override any gcc2 internal prototype to avoid an error. */
9757 /* We use char because int might match the return type of a gcc2
9758 builtin and then its argument prototype would still apply. */
9765 if { (eval echo configure:9766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9767 ac_cv_search_uuid_to_str="none required"
9769 echo "configure: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9773 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9775 cat > conftest.$ac_ext <<EOF
9776 #line 9777 "configure"
9777 #include "confdefs.h"
9778 /* Override any gcc2 internal prototype to avoid an error. */
9779 /* We use char because int might match the return type of a gcc2
9780 builtin and then its argument prototype would still apply. */
9787 if { (eval echo configure:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9789 ac_cv_search_uuid_to_str="-l$ac_lib"
9792 echo "configure: failed program was:" >&5
9793 cat conftest.$ac_ext >&5
9797 LIBS="$ac_func_search_save_LIBS"
9800 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9801 if test "$ac_cv_search_uuid_to_str" != "no"; then
9802 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9809 if test have_uuid = yes ; then
9810 cat >> confdefs.h <<\EOF
9811 #define HAVE_UUID_TO_STR 1
9815 test "$ac_cv_search_uuid_to_str" = "none required" || \
9816 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9820 if test $have_uuid = no ; then
9821 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9822 echo "configure:9823: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9824 LIBS="$LIBS -lrpcrt4"
9825 cat > conftest.$ac_ext <<EOF
9826 #line 9827 "configure"
9827 #include "confdefs.h"
9829 char UuidCreate@4();
9830 char UuidToStringA@8();
9839 if { (eval echo configure:9840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9843 echo "configure: failed program was:" >&5
9844 cat conftest.$ac_ext >&5
9849 if test $need_rpcrt = yes; then
9850 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9853 echo "$ac_t""$need_rpcrt" 1>&6
9857 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9858 echo "configure:9859: checking for res_query" >&5
9859 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9860 echo $ac_n "(cached) $ac_c" 1>&6
9862 cat > conftest.$ac_ext <<EOF
9863 #line 9864 "configure"
9864 #include "confdefs.h"
9865 /* System header to define __stub macros and hopefully few prototypes,
9866 which can conflict with char res_query(); below. */
9868 /* Override any gcc2 internal prototype to avoid an error. */
9869 /* We use char because int might match the return type of a gcc2
9870 builtin and then its argument prototype would still apply. */
9876 /* The GNU C library defines this for functions which it implements
9877 to always fail with ENOSYS. Some functions are actually named
9878 something starting with __ and the normal name is an alias. */
9879 #if defined (__stub_res_query) || defined (__stub___res_query)
9887 if { (eval echo configure:9888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9889 eval "ac_cv_func_res_query=yes"
9891 echo "configure: failed program was:" >&5
9892 cat conftest.$ac_ext >&5
9894 eval "ac_cv_func_res_query=no"
9899 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9900 echo "$ac_t""yes" 1>&6
9903 echo "$ac_t""no" 1>&6
9906 if test $ac_cv_func_res_query = no ; then
9907 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9908 echo "configure:9909: checking for __res_query" >&5
9909 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9910 echo $ac_n "(cached) $ac_c" 1>&6
9912 cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9915 /* System header to define __stub macros and hopefully few prototypes,
9916 which can conflict with char __res_query(); below. */
9918 /* Override any gcc2 internal prototype to avoid an error. */
9919 /* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9926 /* The GNU C library defines this for functions which it implements
9927 to always fail with ENOSYS. Some functions are actually named
9928 something starting with __ and the normal name is an alias. */
9929 #if defined (__stub___res_query) || defined (__stub_____res_query)
9937 if { (eval echo configure:9938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9939 eval "ac_cv_func___res_query=yes"
9941 echo "configure: failed program was:" >&5
9942 cat conftest.$ac_ext >&5
9944 eval "ac_cv_func___res_query=no"
9949 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9950 echo "$ac_t""yes" 1>&6
9953 echo "$ac_t""no" 1>&6
9956 ac_cv_func_res_query=$ac_cv_func___res_query
9959 if test $ac_cv_func_res_query = no ; then
9960 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9961 echo "configure:9962: checking for res_query in -lbind" >&5
9962 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9963 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9964 echo $ac_n "(cached) $ac_c" 1>&6
9966 ac_save_LIBS="$LIBS"
9968 cat > conftest.$ac_ext <<EOF
9969 #line 9970 "configure"
9970 #include "confdefs.h"
9971 /* Override any gcc2 internal prototype to avoid an error. */
9972 /* We use char because int might match the return type of a gcc2
9973 builtin and then its argument prototype would still apply. */
9980 if { (eval echo configure:9981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9982 eval "ac_cv_lib_$ac_lib_var=yes"
9984 echo "configure: failed program was:" >&5
9985 cat conftest.$ac_ext >&5
9987 eval "ac_cv_lib_$ac_lib_var=no"
9990 LIBS="$ac_save_LIBS"
9993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9994 echo "$ac_t""yes" 1>&6
9995 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9996 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9997 cat >> confdefs.h <<EOF
9998 #define $ac_tr_lib 1
10001 LIBS="-lbind $LIBS"
10004 echo "$ac_t""no" 1>&6
10007 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10010 if test $ac_cv_func_res_query = no ; then
10011 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10012 echo "configure:10013: checking for __res_query in -lbind" >&5
10013 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10014 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10015 echo $ac_n "(cached) $ac_c" 1>&6
10017 ac_save_LIBS="$LIBS"
10018 LIBS="-lbind $LIBS"
10019 cat > conftest.$ac_ext <<EOF
10020 #line 10021 "configure"
10021 #include "confdefs.h"
10022 /* Override any gcc2 internal prototype to avoid an error. */
10023 /* We use char because int might match the return type of a gcc2
10024 builtin and then its argument prototype would still apply. */
10025 char __res_query();
10031 if { (eval echo configure:10032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10033 eval "ac_cv_lib_$ac_lib_var=yes"
10035 echo "configure: failed program was:" >&5
10036 cat conftest.$ac_ext >&5
10038 eval "ac_cv_lib_$ac_lib_var=no"
10041 LIBS="$ac_save_LIBS"
10044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10045 echo "$ac_t""yes" 1>&6
10046 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10047 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10048 cat >> confdefs.h <<EOF
10049 #define $ac_tr_lib 1
10052 LIBS="-lbind $LIBS"
10055 echo "$ac_t""no" 1>&6
10058 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10061 if test $ac_cv_func_res_query = no ; then
10062 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10063 echo "configure:10064: checking for res_query in -lresolv" >&5
10064 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10065 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10066 echo $ac_n "(cached) $ac_c" 1>&6
10068 ac_save_LIBS="$LIBS"
10069 LIBS="-lresolv $LIBS"
10070 cat > conftest.$ac_ext <<EOF
10071 #line 10072 "configure"
10072 #include "confdefs.h"
10073 /* Override any gcc2 internal prototype to avoid an error. */
10074 /* We use char because int might match the return type of a gcc2
10075 builtin and then its argument prototype would still apply. */
10082 if { (eval echo configure:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10084 eval "ac_cv_lib_$ac_lib_var=yes"
10086 echo "configure: failed program was:" >&5
10087 cat conftest.$ac_ext >&5
10089 eval "ac_cv_lib_$ac_lib_var=no"
10092 LIBS="$ac_save_LIBS"
10095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10096 echo "$ac_t""yes" 1>&6
10097 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10098 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10099 cat >> confdefs.h <<EOF
10100 #define $ac_tr_lib 1
10103 LIBS="-lresolv $LIBS"
10106 echo "$ac_t""no" 1>&6
10109 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10112 if test $ac_cv_func_res_query = no ; then
10113 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10114 echo "configure:10115: checking for __res_query in -lresolv" >&5
10115 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10116 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10117 echo $ac_n "(cached) $ac_c" 1>&6
10119 ac_save_LIBS="$LIBS"
10120 LIBS="-lresolv $LIBS"
10121 cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10124 /* Override any gcc2 internal prototype to avoid an error. */
10125 /* We use char because int might match the return type of a gcc2
10126 builtin and then its argument prototype would still apply. */
10127 char __res_query();
10133 if { (eval echo configure:10134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10135 eval "ac_cv_lib_$ac_lib_var=yes"
10137 echo "configure: failed program was:" >&5
10138 cat conftest.$ac_ext >&5
10140 eval "ac_cv_lib_$ac_lib_var=no"
10143 LIBS="$ac_save_LIBS"
10146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10147 echo "$ac_t""yes" 1>&6
10148 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10149 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10150 cat >> confdefs.h <<EOF
10151 #define $ac_tr_lib 1
10154 LIBS="-lresolv $LIBS"
10157 echo "$ac_t""no" 1>&6
10160 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10163 if test "$ac_cv_func_res_query" = yes ; then
10164 cat >> confdefs.h <<\EOF
10165 #define HAVE_RES_QUERY 1
10169 if test $ol_enable_dnssrv != no ; then
10174 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10175 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10178 for ac_func in getaddrinfo gai_strerror inet_ntop
10180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10181 echo "configure:10182: checking for $ac_func" >&5
10182 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10183 echo $ac_n "(cached) $ac_c" 1>&6
10185 cat > conftest.$ac_ext <<EOF
10186 #line 10187 "configure"
10187 #include "confdefs.h"
10188 /* System header to define __stub macros and hopefully few prototypes,
10189 which can conflict with char $ac_func(); below. */
10190 #include <assert.h>
10191 /* Override any gcc2 internal prototype to avoid an error. */
10192 /* We use char because int might match the return type of a gcc2
10193 builtin and then its argument prototype would still apply. */
10199 /* The GNU C library defines this for functions which it implements
10200 to always fail with ENOSYS. Some functions are actually named
10201 something starting with __ and the normal name is an alias. */
10202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10210 if { (eval echo configure:10211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10212 eval "ac_cv_func_$ac_func=yes"
10214 echo "configure: failed program was:" >&5
10215 cat conftest.$ac_ext >&5
10217 eval "ac_cv_func_$ac_func=no"
10222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10223 echo "$ac_t""yes" 1>&6
10224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10225 cat >> confdefs.h <<EOF
10226 #define $ac_tr_func 1
10230 echo "$ac_t""no" 1>&6
10236 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10237 if test $ol_enable_ipv6 = yes ; then
10238 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10240 elif test $ol_enable_ipv6 != no ; then
10241 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10242 echo "configure:10243: checking INET6_ADDRSTRLEN" >&5
10243 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10244 echo $ac_n "(cached) $ac_c" 1>&6
10247 cat > conftest.$ac_ext <<EOF
10248 #line 10249 "configure"
10249 #include "confdefs.h"
10251 # include <netinet/in.h>
10252 # ifdef INET6_ADDRSTRLEN
10253 __has_inet6_addrstrlen__;
10257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10258 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10260 ol_cv_inet6_addrstrlen=yes
10263 ol_cv_inet6_addrstrlen=no
10269 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10272 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10273 echo "configure:10274: checking struct sockaddr_storage" >&5
10274 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10275 echo $ac_n "(cached) $ac_c" 1>&6
10278 cat > conftest.$ac_ext <<EOF
10279 #line 10280 "configure"
10280 #include "confdefs.h"
10282 #include <sys/types.h>
10283 #include <sys/socket.h>
10287 struct sockaddr_storage ss;
10291 if { (eval echo configure:10292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10293 ol_cv_struct_sockaddr_storage=yes
10295 echo "configure: failed program was:" >&5
10296 cat conftest.$ac_ext >&5
10298 ol_cv_struct_sockaddr_storage=no
10303 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10305 if test $ol_cv_inet6_addrstrlen = yes \
10306 -a $ol_cv_struct_sockaddr_storage = yes ; then
10308 elif test $ol_enable_ipv6 = yes \
10309 -a $ol_cv_inet6_addrstrlen = no ; then
10310 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10311 elif test $ol_enable_ipv6 = yes \
10312 -a $ol_cv_struct_sockaddr_storage = no ; then
10313 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10317 if test $ol_enable_local != no ; then
10318 for ac_hdr in sys/un.h
10320 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10322 echo "configure:10323: checking for $ac_hdr" >&5
10323 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10324 echo $ac_n "(cached) $ac_c" 1>&6
10326 cat > conftest.$ac_ext <<EOF
10327 #line 10328 "configure"
10328 #include "confdefs.h"
10331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10332 { (eval echo configure:10333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10334 if test -z "$ac_err"; then
10336 eval "ac_cv_header_$ac_safe=yes"
10339 echo "configure: failed program was:" >&5
10340 cat conftest.$ac_ext >&5
10342 eval "ac_cv_header_$ac_safe=no"
10346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10347 echo "$ac_t""yes" 1>&6
10348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10349 cat >> confdefs.h <<EOF
10350 #define $ac_tr_hdr 1
10354 echo "$ac_t""no" 1>&6
10359 if test $ol_enable_local = auto ; then
10360 ol_enable_local=$ac_cv_header_sys_un_h
10361 elif test $ac_cv_header_sys_un_h = no ; then
10362 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10371 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10372 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10373 -o $ol_with_kerberos = k425 ; then
10375 for ac_hdr in krb5.h
10377 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10379 echo "configure:10380: checking for $ac_hdr" >&5
10380 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10389 { (eval echo configure:10390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10391 if test -z "$ac_err"; then
10393 eval "ac_cv_header_$ac_safe=yes"
10396 echo "configure: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10399 eval "ac_cv_header_$ac_safe=no"
10403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10404 echo "$ac_t""yes" 1>&6
10405 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10406 cat >> confdefs.h <<EOF
10407 #define $ac_tr_hdr 1
10411 echo "$ac_t""no" 1>&6
10416 if test $ac_cv_header_krb5_h = yes ; then
10417 for ac_hdr in heim_err.h
10419 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10420 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10421 echo "configure:10422: checking for $ac_hdr" >&5
10422 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10425 cat > conftest.$ac_ext <<EOF
10426 #line 10427 "configure"
10427 #include "confdefs.h"
10430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10431 { (eval echo configure:10432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10433 if test -z "$ac_err"; then
10435 eval "ac_cv_header_$ac_safe=yes"
10438 echo "configure: failed program was:" >&5
10439 cat conftest.$ac_ext >&5
10441 eval "ac_cv_header_$ac_safe=no"
10445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10446 echo "$ac_t""yes" 1>&6
10447 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10448 cat >> confdefs.h <<EOF
10449 #define $ac_tr_hdr 1
10453 echo "$ac_t""no" 1>&6
10457 if test $ac_cv_header_heim_err_h = yes ; then
10463 if test $krb5_impl = mit; then
10464 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10465 echo "configure:10466: checking for main in -lk5crypto" >&5
10466 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10467 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10468 echo $ac_n "(cached) $ac_c" 1>&6
10470 ac_save_LIBS="$LIBS"
10471 LIBS="-lk5crypto $LIBS"
10472 cat > conftest.$ac_ext <<EOF
10473 #line 10474 "configure"
10474 #include "confdefs.h"
10480 if { (eval echo configure:10481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10482 eval "ac_cv_lib_$ac_lib_var=yes"
10484 echo "configure: failed program was:" >&5
10485 cat conftest.$ac_ext >&5
10487 eval "ac_cv_lib_$ac_lib_var=no"
10490 LIBS="$ac_save_LIBS"
10493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10494 echo "$ac_t""yes" 1>&6
10495 krb5crypto=k5crypto
10497 echo "$ac_t""no" 1>&6
10502 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10503 echo "configure:10504: checking for main in -lkrb5" >&5
10504 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10505 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10506 echo $ac_n "(cached) $ac_c" 1>&6
10508 ac_save_LIBS="$LIBS"
10509 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10510 cat > conftest.$ac_ext <<EOF
10511 #line 10512 "configure"
10512 #include "confdefs.h"
10518 if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10520 eval "ac_cv_lib_$ac_lib_var=yes"
10522 echo "configure: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10525 eval "ac_cv_lib_$ac_lib_var=no"
10528 LIBS="$ac_save_LIBS"
10531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10532 echo "$ac_t""yes" 1>&6
10534 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10536 echo "$ac_t""no" 1>&6
10541 elif test $krb5_impl = heimdal; then
10542 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10543 echo "configure:10544: checking for main in -ldes" >&5
10544 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10545 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10546 echo $ac_n "(cached) $ac_c" 1>&6
10548 ac_save_LIBS="$LIBS"
10550 cat > conftest.$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10558 if { (eval echo configure:10559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10560 eval "ac_cv_lib_$ac_lib_var=yes"
10562 echo "configure: failed program was:" >&5
10563 cat conftest.$ac_ext >&5
10565 eval "ac_cv_lib_$ac_lib_var=no"
10568 LIBS="$ac_save_LIBS"
10571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10572 echo "$ac_t""yes" 1>&6
10575 echo "$ac_t""no" 1>&6
10580 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10581 echo "configure:10582: checking for main in -lkrb5" >&5
10582 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10583 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10584 echo $ac_n "(cached) $ac_c" 1>&6
10586 ac_save_LIBS="$LIBS"
10587 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10588 cat > conftest.$ac_ext <<EOF
10589 #line 10590 "configure"
10590 #include "confdefs.h"
10596 if { (eval echo configure:10597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10598 eval "ac_cv_lib_$ac_lib_var=yes"
10600 echo "configure: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10603 eval "ac_cv_lib_$ac_lib_var=no"
10606 LIBS="$ac_save_LIBS"
10609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10610 echo "$ac_t""yes" 1>&6
10612 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10614 echo "$ac_t""no" 1>&6
10619 cat >> confdefs.h <<\EOF
10620 #define HAVE_HEIMDAL_KERBEROS 1
10626 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10629 if test $have_krb5 = yes ; then
10632 cat >> confdefs.h <<\EOF
10633 #define HAVE_KRB5 1
10637 if test $ol_enable_kpasswd != no ; then
10638 ol_link_kpasswd=yes;
10641 if test $ol_with_kerberos = k5only ; then
10642 ol_with_kerberos=found
10645 elif test $ol_with_kerberos != auto ; then
10646 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10652 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10653 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10655 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10659 echo "configure:10660: checking for $ac_hdr" >&5
10660 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10661 echo $ac_n "(cached) $ac_c" 1>&6
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10669 { (eval echo configure:10670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10671 if test -z "$ac_err"; then
10673 eval "ac_cv_header_$ac_safe=yes"
10676 echo "configure: failed program was:" >&5
10677 cat conftest.$ac_ext >&5
10679 eval "ac_cv_header_$ac_safe=no"
10683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10684 echo "$ac_t""yes" 1>&6
10685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10686 cat >> confdefs.h <<EOF
10687 #define $ac_tr_hdr 1
10691 echo "$ac_t""no" 1>&6
10696 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10697 if test $krb5_impl = mit; then
10698 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10699 echo "configure:10700: checking for main in -lkrb4" >&5
10700 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10701 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10702 echo $ac_n "(cached) $ac_c" 1>&6
10704 ac_save_LIBS="$LIBS"
10705 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10706 cat > conftest.$ac_ext <<EOF
10707 #line 10708 "configure"
10708 #include "confdefs.h"
10714 if { (eval echo configure:10715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10716 eval "ac_cv_lib_$ac_lib_var=yes"
10718 echo "configure: failed program was:" >&5
10719 cat conftest.$ac_ext >&5
10721 eval "ac_cv_lib_$ac_lib_var=no"
10724 LIBS="$ac_save_LIBS"
10727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10728 echo "$ac_t""yes" 1>&6
10730 KRB4_LIBS="-lkrb4 -ldes425"
10732 echo "$ac_t""no" 1>&6
10737 elif test $krb5_impl = heimdal; then
10738 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10739 echo "configure:10740: checking for main in -lkrb4" >&5
10740 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10741 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10742 echo $ac_n "(cached) $ac_c" 1>&6
10744 ac_save_LIBS="$LIBS"
10745 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10746 cat > conftest.$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10754 if { (eval echo configure:10755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10756 eval "ac_cv_lib_$ac_lib_var=yes"
10758 echo "configure: failed program was:" >&5
10759 cat conftest.$ac_ext >&5
10761 eval "ac_cv_lib_$ac_lib_var=no"
10764 LIBS="$ac_save_LIBS"
10767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10768 echo "$ac_t""yes" 1>&6
10772 echo "$ac_t""no" 1>&6
10779 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10782 if test $have_k425 = yes ; then
10783 ol_with_kerberos=found
10786 cat >> confdefs.h <<\EOF
10787 #define HAVE_KRB425 1
10790 cat >> confdefs.h <<\EOF
10791 #define HAVE_KRB4 1
10795 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10796 echo "configure:10797: checking for des_debug in Kerberos libraries" >&5
10797 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10798 echo $ac_n "(cached) $ac_c" 1>&6
10802 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10803 cat > conftest.$ac_ext <<EOF
10804 #line 10805 "configure"
10805 #include "confdefs.h"
10807 #include <kerberosIV/krb.h>
10808 #include <kerberosIV/des.h>
10809 extern int des_debug;
10817 if { (eval echo configure:10818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10819 ol_cv_var_des_debug=yes
10821 echo "configure: failed program was:" >&5
10822 cat conftest.$ac_ext >&5
10824 ol_cv_var_des_debug=no
10831 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10833 if test $ol_cv_var_des_debug = yes ; then
10834 cat >> confdefs.h <<\EOF
10835 #define HAVE_DES_DEBUG 1
10845 if test $ol_link_krb5 = yes ; then
10846 ol_with_kerberos=found
10849 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10850 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10852 for ac_hdr in krb.h des.h krb-archaeology.h
10854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10856 echo "configure:10857: checking for $ac_hdr" >&5
10857 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10858 echo $ac_n "(cached) $ac_c" 1>&6
10860 cat > conftest.$ac_ext <<EOF
10861 #line 10862 "configure"
10862 #include "confdefs.h"
10865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10866 { (eval echo configure:10867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10868 if test -z "$ac_err"; then
10870 eval "ac_cv_header_$ac_safe=yes"
10873 echo "configure: failed program was:" >&5
10874 cat conftest.$ac_ext >&5
10876 eval "ac_cv_header_$ac_safe=no"
10880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10881 echo "$ac_t""yes" 1>&6
10882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10883 cat >> confdefs.h <<EOF
10884 #define $ac_tr_hdr 1
10888 echo "$ac_t""no" 1>&6
10893 if test $ac_cv_header_krb_h = yes ; then
10894 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10895 echo "configure:10896: checking for main in -lkrb" >&5
10896 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10897 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10898 echo $ac_n "(cached) $ac_c" 1>&6
10900 ac_save_LIBS="$LIBS"
10901 LIBS="-lkrb -ldes $LIBS"
10902 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure"
10904 #include "confdefs.h"
10910 if { (eval echo configure:10911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10912 eval "ac_cv_lib_$ac_lib_var=yes"
10914 echo "configure: failed program was:" >&5
10915 cat conftest.$ac_ext >&5
10917 eval "ac_cv_lib_$ac_lib_var=no"
10920 LIBS="$ac_save_LIBS"
10923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10924 echo "$ac_t""yes" 1>&6
10927 echo "$ac_t""no" 1>&6
10932 if test $have_k4 = yes ; then
10933 ol_with_kerberos=found
10936 cat >> confdefs.h <<\EOF
10937 #define HAVE_KRB4 1
10941 KRB4_LIBS="-lkrb -ldes"
10943 if test $ac_cv_header_krb_archaeology_h = yes ; then
10944 cat >> confdefs.h <<\EOF
10945 #define HAVE_KTH_KERBEROS 1
10953 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10954 ol_link_kpasswd=yes
10957 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10960 elif test $ol_enable_kbind = yes ; then
10961 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10964 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10965 cat >> confdefs.h <<\EOF
10966 #define HAVE_KERBEROS 1
10970 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10971 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10975 if test $ol_with_tls != no ; then
10976 for ac_hdr in openssl/ssl.h ssl.h
10978 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10979 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10980 echo "configure:10981: checking for $ac_hdr" >&5
10981 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10982 echo $ac_n "(cached) $ac_c" 1>&6
10984 cat > conftest.$ac_ext <<EOF
10985 #line 10986 "configure"
10986 #include "confdefs.h"
10989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10990 { (eval echo configure:10991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10992 if test -z "$ac_err"; then
10994 eval "ac_cv_header_$ac_safe=yes"
10997 echo "configure: failed program was:" >&5
10998 cat conftest.$ac_ext >&5
11000 eval "ac_cv_header_$ac_safe=no"
11004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11005 echo "$ac_t""yes" 1>&6
11006 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11007 cat >> confdefs.h <<EOF
11008 #define $ac_tr_hdr 1
11012 echo "$ac_t""no" 1>&6
11017 if test $ac_cv_header_openssl_ssl_h = yes \
11018 -o $ac_cv_header_ssl_h = yes ; then
11019 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11020 echo "configure:11021: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11021 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11022 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11023 echo $ac_n "(cached) $ac_c" 1>&6
11025 ac_save_LIBS="$LIBS"
11026 LIBS="-lssl -lcrypto $LIBS"
11027 cat > conftest.$ac_ext <<EOF
11028 #line 11029 "configure"
11029 #include "confdefs.h"
11030 /* Override any gcc2 internal prototype to avoid an error. */
11031 /* We use char because int might match the return type of a gcc2
11032 builtin and then its argument prototype would still apply. */
11033 char SSLeay_add_ssl_algorithms();
11036 SSLeay_add_ssl_algorithms()
11039 if { (eval echo configure:11040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11041 eval "ac_cv_lib_$ac_lib_var=yes"
11043 echo "configure: failed program was:" >&5
11044 cat conftest.$ac_ext >&5
11046 eval "ac_cv_lib_$ac_lib_var=no"
11049 LIBS="$ac_save_LIBS"
11052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11053 echo "$ac_t""yes" 1>&6
11057 echo "$ac_t""no" 1>&6
11062 if test $have_ssleay = no ; then
11063 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11064 echo "configure:11065: checking for SSL_library_init in -lssl" >&5
11065 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11066 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11067 echo $ac_n "(cached) $ac_c" 1>&6
11069 ac_save_LIBS="$LIBS"
11070 LIBS="-lssl -lcrypto $LIBS"
11071 cat > conftest.$ac_ext <<EOF
11072 #line 11073 "configure"
11073 #include "confdefs.h"
11074 /* Override any gcc2 internal prototype to avoid an error. */
11075 /* We use char because int might match the return type of a gcc2
11076 builtin and then its argument prototype would still apply. */
11077 char SSL_library_init();
11083 if { (eval echo configure:11084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11085 eval "ac_cv_lib_$ac_lib_var=yes"
11087 echo "configure: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11090 eval "ac_cv_lib_$ac_lib_var=no"
11093 LIBS="$ac_save_LIBS"
11096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11097 echo "$ac_t""yes" 1>&6
11101 echo "$ac_t""no" 1>&6
11107 if test $have_ssleay = no ; then
11108 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11109 echo "configure:11110: checking for ssl3_accept in -lssl" >&5
11110 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11111 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11112 echo $ac_n "(cached) $ac_c" 1>&6
11114 ac_save_LIBS="$LIBS"
11115 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11116 cat > conftest.$ac_ext <<EOF
11117 #line 11118 "configure"
11118 #include "confdefs.h"
11119 /* Override any gcc2 internal prototype to avoid an error. */
11120 /* We use char because int might match the return type of a gcc2
11121 builtin and then its argument prototype would still apply. */
11122 char ssl3_accept();
11128 if { (eval echo configure:11129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11130 eval "ac_cv_lib_$ac_lib_var=yes"
11132 echo "configure: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11135 eval "ac_cv_lib_$ac_lib_var=no"
11138 LIBS="$ac_save_LIBS"
11141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11142 echo "$ac_t""yes" 1>&6
11146 echo "$ac_t""no" 1>&6
11152 if test $have_ssleay = yes ; then
11156 cat >> confdefs.h <<\EOF
11157 #define HAVE_SSLEAY 1
11161 if test $need_rsaref = yes; then
11162 cat >> confdefs.h <<\EOF
11163 #define HAVE_RSAREF 1
11167 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11169 TLS_LIBS="-lssl -lcrypto"
11175 echo "configure: warning: TLS data protection not supported!" 1>&2
11178 if test $ol_link_tls = yes ; then
11179 cat >> confdefs.h <<\EOF
11184 elif test $ol_with_tls = auto ; then
11185 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11186 echo "configure: warning: TLS data protection not supported!" 1>&2
11188 elif test $ol_with_tls != no ; then
11189 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11192 if test $ol_enable_lmpasswd != no; then
11193 if test $ol_link_tls != yes ; then
11194 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11197 cat >> confdefs.h <<\EOF
11198 #define SLAPD_LMHASH 1
11205 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11206 -o $ol_with_threads = nt ; then
11209 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11210 echo "configure:11211: checking for _beginthread" >&5
11211 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11212 echo $ac_n "(cached) $ac_c" 1>&6
11214 cat > conftest.$ac_ext <<EOF
11215 #line 11216 "configure"
11216 #include "confdefs.h"
11217 /* System header to define __stub macros and hopefully few prototypes,
11218 which can conflict with char _beginthread(); below. */
11219 #include <assert.h>
11220 /* Override any gcc2 internal prototype to avoid an error. */
11221 /* We use char because int might match the return type of a gcc2
11222 builtin and then its argument prototype would still apply. */
11223 char _beginthread();
11228 /* The GNU C library defines this for functions which it implements
11229 to always fail with ENOSYS. Some functions are actually named
11230 something starting with __ and the normal name is an alias. */
11231 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11239 if { (eval echo configure:11240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11241 eval "ac_cv_func__beginthread=yes"
11243 echo "configure: failed program was:" >&5
11244 cat conftest.$ac_ext >&5
11246 eval "ac_cv_func__beginthread=no"
11251 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11252 echo "$ac_t""yes" 1>&6
11255 echo "$ac_t""no" 1>&6
11259 if test $ac_cv_func__beginthread = yes ; then
11260 cat >> confdefs.h <<\EOF
11261 #define HAVE_NT_THREADS 1
11264 ol_cv_nt_threads=yes
11268 if test "$ol_cv_nt_threads" = yes ; then
11270 ol_with_threads=found
11271 ol_with_yielding_select=yes
11273 cat >> confdefs.h <<\EOF
11274 #define HAVE_NT_SERVICE_MANAGER 1
11277 cat >> confdefs.h <<\EOF
11278 #define HAVE_NT_EVENT_LOG 1
11283 if test $ol_with_threads = nt ; then
11284 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11288 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11289 -o $ol_with_threads = posix ; then
11291 for ac_hdr in pthread.h
11293 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11294 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11295 echo "configure:11296: checking for $ac_hdr" >&5
11296 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11297 echo $ac_n "(cached) $ac_c" 1>&6
11299 cat > conftest.$ac_ext <<EOF
11300 #line 11301 "configure"
11301 #include "confdefs.h"
11304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11305 { (eval echo configure:11306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11307 if test -z "$ac_err"; then
11309 eval "ac_cv_header_$ac_safe=yes"
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11315 eval "ac_cv_header_$ac_safe=no"
11319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11320 echo "$ac_t""yes" 1>&6
11321 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11322 cat >> confdefs.h <<EOF
11323 #define $ac_tr_hdr 1
11327 echo "$ac_t""no" 1>&6
11332 if test $ac_cv_header_pthread_h = yes ; then
11333 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11334 echo "configure:11335: checking POSIX thread version" >&5
11335 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11336 echo $ac_n "(cached) $ac_c" 1>&6
11339 cat > conftest.$ac_ext <<EOF
11340 #line 11341 "configure"
11341 #include "confdefs.h"
11343 # include <pthread.h>
11347 int i = PTHREAD_CREATE_JOINABLE;
11351 if { (eval echo configure:11352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11354 cat > conftest.$ac_ext <<EOF
11355 #line 11356 "configure"
11356 #include "confdefs.h"
11357 #include <pthread.h>
11359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11360 egrep "pthread_detach" >/dev/null 2>&1; then
11362 ol_cv_pthread_version=10
11365 ol_cv_pthread_version=8
11370 echo "configure: failed program was:" >&5
11371 cat conftest.$ac_ext >&5
11374 cat > conftest.$ac_ext <<EOF
11375 #line 11376 "configure"
11376 #include "confdefs.h"
11378 # include <pthread.h>
11379 # ifdef PTHREAD_CREATE_UNDETACHED
11384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11385 egrep "draft7" >/dev/null 2>&1; then
11387 ol_cv_pthread_version=7
11391 cat > conftest.$ac_ext <<EOF
11392 #line 11393 "configure"
11393 #include "confdefs.h"
11394 #include <pthread.h>
11396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11397 egrep "pthread_attr_init" >/dev/null 2>&1; then
11399 ol_cv_pthread_version=6
11403 cat > conftest.$ac_ext <<EOF
11404 #line 11405 "configure"
11405 #include "confdefs.h"
11407 # include <pthread.h>
11408 #ifdef PTHREAD_MUTEX_INITIALIZER
11413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11414 egrep "draft5" >/dev/null 2>&1; then
11416 ol_cv_pthread_version=5
11419 ol_cv_pthread_version=4
11434 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11437 if test $ol_cv_pthread_version != 0 ; then
11438 cat >> confdefs.h <<EOF
11439 #define HAVE_PTHREADS $ol_cv_pthread_version
11443 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11446 # consider threads found
11447 ol_with_threads=found
11450 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11451 echo "configure:11452: checking for LinuxThreads pthread.h" >&5
11452 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11453 echo $ac_n "(cached) $ac_c" 1>&6
11455 cat > conftest.$ac_ext <<EOF
11456 #line 11457 "configure"
11457 #include "confdefs.h"
11458 #include <pthread.h>
11460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11461 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11463 ol_cv_header_linux_threads=yes
11466 ol_cv_header_linux_threads=no
11473 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11474 if test $ol_cv_header_linux_threads = yes; then
11475 cat >> confdefs.h <<\EOF
11476 #define HAVE_LINUX_THREADS 1
11482 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11483 echo "configure:11484: checking for GNU Pth pthread.h" >&5
11484 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11485 echo $ac_n "(cached) $ac_c" 1>&6
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11490 #include <pthread.h>
11491 #ifdef _POSIX_THREAD_IS_GNU_PTH
11496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11497 egrep "__gnu_pth__" >/dev/null 2>&1; then
11499 ol_cv_header_gnu_pth_pthread_h=yes
11502 ol_cv_header_gnu_pth_pthread_h=no
11509 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11512 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11513 for ac_hdr in sched.h
11515 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11516 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11517 echo "configure:11518: checking for $ac_hdr" >&5
11518 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
11521 cat > conftest.$ac_ext <<EOF
11522 #line 11523 "configure"
11523 #include "confdefs.h"
11526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11527 { (eval echo configure:11528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11529 if test -z "$ac_err"; then
11531 eval "ac_cv_header_$ac_safe=yes"
11534 echo "configure: failed program was:" >&5
11535 cat conftest.$ac_ext >&5
11537 eval "ac_cv_header_$ac_safe=no"
11541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11542 echo "$ac_t""yes" 1>&6
11543 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11544 cat >> confdefs.h <<EOF
11545 #define $ac_tr_hdr 1
11549 echo "$ac_t""no" 1>&6
11556 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11557 echo "configure:11558: checking for pthread_create in default libraries" >&5
11558 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11559 echo $ac_n "(cached) $ac_c" 1>&6
11562 if test "$cross_compiling" = yes; then
11563 cat > conftest.$ac_ext <<EOF
11564 #line 11565 "configure"
11565 #include "confdefs.h"
11566 /* pthread test headers */
11567 #include <pthread.h>
11568 #if HAVE_PTHREADS < 7
11572 #define NULL (void*)0
11575 static void *task(p)
11578 return (void *) (p == NULL);
11583 /* pthread test function */
11584 #ifndef PTHREAD_CREATE_DETACHED
11585 #define PTHREAD_CREATE_DETACHED 1
11589 int detach = PTHREAD_CREATE_DETACHED;
11591 #if HAVE_PTHREADS > 4
11592 /* Final pthreads */
11593 pthread_attr_t attr;
11595 status = pthread_attr_init(&attr);
11596 if( status ) return status;
11598 #if HAVE_PTHREADS < 7
11599 status = pthread_attr_setdetachstate(&attr, &detach);
11600 if( status < 0 ) status = errno;
11602 status = pthread_attr_setdetachstate(&attr, detach);
11604 if( status ) return status;
11605 status = pthread_create( &t, &attr, task, NULL );
11606 #if HAVE_PTHREADS < 7
11607 if( status < 0 ) status = errno;
11609 if( status ) return status;
11611 /* Draft 4 pthreads */
11612 status = pthread_create( &t, pthread_attr_default, task, NULL );
11613 if( status ) return errno;
11615 /* give thread a chance to complete */
11616 /* it should remain joinable and hence detachable */
11619 status = pthread_detach( &t );
11620 if( status ) return errno;
11623 #ifdef HAVE_LINUX_THREADS
11624 pthread_kill_other_threads_np();
11631 if { (eval echo configure:11632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11633 ol_cv_pthread_create=yes
11635 echo "configure: failed program was:" >&5
11636 cat conftest.$ac_ext >&5
11638 ol_cv_pthread_create=no
11642 cat > conftest.$ac_ext <<EOF
11643 #line 11644 "configure"
11644 #include "confdefs.h"
11645 /* pthread test headers */
11646 #include <pthread.h>
11647 #if HAVE_PTHREADS < 7
11651 #define NULL (void*)0
11654 static void *task(p)
11657 return (void *) (p == NULL);
11661 int main(argc, argv)
11666 /* pthread test function */
11667 #ifndef PTHREAD_CREATE_DETACHED
11668 #define PTHREAD_CREATE_DETACHED 1
11672 int detach = PTHREAD_CREATE_DETACHED;
11674 #if HAVE_PTHREADS > 4
11675 /* Final pthreads */
11676 pthread_attr_t attr;
11678 status = pthread_attr_init(&attr);
11679 if( status ) return status;
11681 #if HAVE_PTHREADS < 7
11682 status = pthread_attr_setdetachstate(&attr, &detach);
11683 if( status < 0 ) status = errno;
11685 status = pthread_attr_setdetachstate(&attr, detach);
11687 if( status ) return status;
11688 status = pthread_create( &t, &attr, task, NULL );
11689 #if HAVE_PTHREADS < 7
11690 if( status < 0 ) status = errno;
11692 if( status ) return status;
11694 /* Draft 4 pthreads */
11695 status = pthread_create( &t, pthread_attr_default, task, NULL );
11696 if( status ) return errno;
11698 /* give thread a chance to complete */
11699 /* it should remain joinable and hence detachable */
11702 status = pthread_detach( &t );
11703 if( status ) return errno;
11706 #ifdef HAVE_LINUX_THREADS
11707 pthread_kill_other_threads_np();
11715 if { (eval echo configure:11716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11717 ol_cv_pthread_create=yes
11719 echo "configure: failed program was:" >&5
11720 cat conftest.$ac_ext >&5
11722 ol_cv_pthread_create=no
11729 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11731 if test $ol_cv_pthread_create != no ; then
11732 ol_link_threads=posix
11733 ol_link_pthreads=""
11736 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11737 if test "$ol_link_threads" = no ; then
11739 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11740 echo "configure:11741: checking for pthread link with -kthread" >&5
11741 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11742 echo $ac_n "(cached) $ac_c" 1>&6
11747 LIBS="-kthread $LIBS"
11749 if test "$cross_compiling" = yes; then
11750 cat > conftest.$ac_ext <<EOF
11751 #line 11752 "configure"
11752 #include "confdefs.h"
11753 /* pthread test headers */
11754 #include <pthread.h>
11755 #if HAVE_PTHREADS < 7
11759 #define NULL (void*)0
11762 static void *task(p)
11765 return (void *) (p == NULL);
11770 /* pthread test function */
11771 #ifndef PTHREAD_CREATE_DETACHED
11772 #define PTHREAD_CREATE_DETACHED 1
11776 int detach = PTHREAD_CREATE_DETACHED;
11778 #if HAVE_PTHREADS > 4
11779 /* Final pthreads */
11780 pthread_attr_t attr;
11782 status = pthread_attr_init(&attr);
11783 if( status ) return status;
11785 #if HAVE_PTHREADS < 7
11786 status = pthread_attr_setdetachstate(&attr, &detach);
11787 if( status < 0 ) status = errno;
11789 status = pthread_attr_setdetachstate(&attr, detach);
11791 if( status ) return status;
11792 status = pthread_create( &t, &attr, task, NULL );
11793 #if HAVE_PTHREADS < 7
11794 if( status < 0 ) status = errno;
11796 if( status ) return status;
11798 /* Draft 4 pthreads */
11799 status = pthread_create( &t, pthread_attr_default, task, NULL );
11800 if( status ) return errno;
11802 /* give thread a chance to complete */
11803 /* it should remain joinable and hence detachable */
11806 status = pthread_detach( &t );
11807 if( status ) return errno;
11810 #ifdef HAVE_LINUX_THREADS
11811 pthread_kill_other_threads_np();
11818 if { (eval echo configure:11819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11820 ol_cv_pthread_kthread=yes
11822 echo "configure: failed program was:" >&5
11823 cat conftest.$ac_ext >&5
11825 ol_cv_pthread_kthread=no
11829 cat > conftest.$ac_ext <<EOF
11830 #line 11831 "configure"
11831 #include "confdefs.h"
11832 /* pthread test headers */
11833 #include <pthread.h>
11834 #if HAVE_PTHREADS < 7
11838 #define NULL (void*)0
11841 static void *task(p)
11844 return (void *) (p == NULL);
11848 int main(argc, argv)
11853 /* pthread test function */
11854 #ifndef PTHREAD_CREATE_DETACHED
11855 #define PTHREAD_CREATE_DETACHED 1
11859 int detach = PTHREAD_CREATE_DETACHED;
11861 #if HAVE_PTHREADS > 4
11862 /* Final pthreads */
11863 pthread_attr_t attr;
11865 status = pthread_attr_init(&attr);
11866 if( status ) return status;
11868 #if HAVE_PTHREADS < 7
11869 status = pthread_attr_setdetachstate(&attr, &detach);
11870 if( status < 0 ) status = errno;
11872 status = pthread_attr_setdetachstate(&attr, detach);
11874 if( status ) return status;
11875 status = pthread_create( &t, &attr, task, NULL );
11876 #if HAVE_PTHREADS < 7
11877 if( status < 0 ) status = errno;
11879 if( status ) return status;
11881 /* Draft 4 pthreads */
11882 status = pthread_create( &t, pthread_attr_default, task, NULL );
11883 if( status ) return errno;
11885 /* give thread a chance to complete */
11886 /* it should remain joinable and hence detachable */
11889 status = pthread_detach( &t );
11890 if( status ) return errno;
11893 #ifdef HAVE_LINUX_THREADS
11894 pthread_kill_other_threads_np();
11902 if { (eval echo configure:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11904 ol_cv_pthread_kthread=yes
11906 echo "configure: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11909 ol_cv_pthread_kthread=no
11920 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11922 if test $ol_cv_pthread_kthread = yes ; then
11923 ol_link_pthreads="-kthread"
11924 ol_link_threads=posix
11928 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11929 if test "$ol_link_threads" = no ; then
11931 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11932 echo "configure:11933: checking for pthread link with -pthread" >&5
11933 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11934 echo $ac_n "(cached) $ac_c" 1>&6
11939 LIBS="-pthread $LIBS"
11941 if test "$cross_compiling" = yes; then
11942 cat > conftest.$ac_ext <<EOF
11943 #line 11944 "configure"
11944 #include "confdefs.h"
11945 /* pthread test headers */
11946 #include <pthread.h>
11947 #if HAVE_PTHREADS < 7
11951 #define NULL (void*)0
11954 static void *task(p)
11957 return (void *) (p == NULL);
11962 /* pthread test function */
11963 #ifndef PTHREAD_CREATE_DETACHED
11964 #define PTHREAD_CREATE_DETACHED 1
11968 int detach = PTHREAD_CREATE_DETACHED;
11970 #if HAVE_PTHREADS > 4
11971 /* Final pthreads */
11972 pthread_attr_t attr;
11974 status = pthread_attr_init(&attr);
11975 if( status ) return status;
11977 #if HAVE_PTHREADS < 7
11978 status = pthread_attr_setdetachstate(&attr, &detach);
11979 if( status < 0 ) status = errno;
11981 status = pthread_attr_setdetachstate(&attr, detach);
11983 if( status ) return status;
11984 status = pthread_create( &t, &attr, task, NULL );
11985 #if HAVE_PTHREADS < 7
11986 if( status < 0 ) status = errno;
11988 if( status ) return status;
11990 /* Draft 4 pthreads */
11991 status = pthread_create( &t, pthread_attr_default, task, NULL );
11992 if( status ) return errno;
11994 /* give thread a chance to complete */
11995 /* it should remain joinable and hence detachable */
11998 status = pthread_detach( &t );
11999 if( status ) return errno;
12002 #ifdef HAVE_LINUX_THREADS
12003 pthread_kill_other_threads_np();
12010 if { (eval echo configure:12011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12012 ol_cv_pthread_pthread=yes
12014 echo "configure: failed program was:" >&5
12015 cat conftest.$ac_ext >&5
12017 ol_cv_pthread_pthread=no
12021 cat > conftest.$ac_ext <<EOF
12022 #line 12023 "configure"
12023 #include "confdefs.h"
12024 /* pthread test headers */
12025 #include <pthread.h>
12026 #if HAVE_PTHREADS < 7
12030 #define NULL (void*)0
12033 static void *task(p)
12036 return (void *) (p == NULL);
12040 int main(argc, argv)
12045 /* pthread test function */
12046 #ifndef PTHREAD_CREATE_DETACHED
12047 #define PTHREAD_CREATE_DETACHED 1
12051 int detach = PTHREAD_CREATE_DETACHED;
12053 #if HAVE_PTHREADS > 4
12054 /* Final pthreads */
12055 pthread_attr_t attr;
12057 status = pthread_attr_init(&attr);
12058 if( status ) return status;
12060 #if HAVE_PTHREADS < 7
12061 status = pthread_attr_setdetachstate(&attr, &detach);
12062 if( status < 0 ) status = errno;
12064 status = pthread_attr_setdetachstate(&attr, detach);
12066 if( status ) return status;
12067 status = pthread_create( &t, &attr, task, NULL );
12068 #if HAVE_PTHREADS < 7
12069 if( status < 0 ) status = errno;
12071 if( status ) return status;
12073 /* Draft 4 pthreads */
12074 status = pthread_create( &t, pthread_attr_default, task, NULL );
12075 if( status ) return errno;
12077 /* give thread a chance to complete */
12078 /* it should remain joinable and hence detachable */
12081 status = pthread_detach( &t );
12082 if( status ) return errno;
12085 #ifdef HAVE_LINUX_THREADS
12086 pthread_kill_other_threads_np();
12094 if { (eval echo configure:12095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12096 ol_cv_pthread_pthread=yes
12098 echo "configure: failed program was:" >&5
12099 cat conftest.$ac_ext >&5
12101 ol_cv_pthread_pthread=no
12112 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12114 if test $ol_cv_pthread_pthread = yes ; then
12115 ol_link_pthreads="-pthread"
12116 ol_link_threads=posix
12120 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12121 if test "$ol_link_threads" = no ; then
12123 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12124 echo "configure:12125: checking for pthread link with -pthreads" >&5
12125 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12126 echo $ac_n "(cached) $ac_c" 1>&6
12131 LIBS="-pthreads $LIBS"
12133 if test "$cross_compiling" = yes; then
12134 cat > conftest.$ac_ext <<EOF
12135 #line 12136 "configure"
12136 #include "confdefs.h"
12137 /* pthread test headers */
12138 #include <pthread.h>
12139 #if HAVE_PTHREADS < 7
12143 #define NULL (void*)0
12146 static void *task(p)
12149 return (void *) (p == NULL);
12154 /* pthread test function */
12155 #ifndef PTHREAD_CREATE_DETACHED
12156 #define PTHREAD_CREATE_DETACHED 1
12160 int detach = PTHREAD_CREATE_DETACHED;
12162 #if HAVE_PTHREADS > 4
12163 /* Final pthreads */
12164 pthread_attr_t attr;
12166 status = pthread_attr_init(&attr);
12167 if( status ) return status;
12169 #if HAVE_PTHREADS < 7
12170 status = pthread_attr_setdetachstate(&attr, &detach);
12171 if( status < 0 ) status = errno;
12173 status = pthread_attr_setdetachstate(&attr, detach);
12175 if( status ) return status;
12176 status = pthread_create( &t, &attr, task, NULL );
12177 #if HAVE_PTHREADS < 7
12178 if( status < 0 ) status = errno;
12180 if( status ) return status;
12182 /* Draft 4 pthreads */
12183 status = pthread_create( &t, pthread_attr_default, task, NULL );
12184 if( status ) return errno;
12186 /* give thread a chance to complete */
12187 /* it should remain joinable and hence detachable */
12190 status = pthread_detach( &t );
12191 if( status ) return errno;
12194 #ifdef HAVE_LINUX_THREADS
12195 pthread_kill_other_threads_np();
12202 if { (eval echo configure:12203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12204 ol_cv_pthread_pthreads=yes
12206 echo "configure: failed program was:" >&5
12207 cat conftest.$ac_ext >&5
12209 ol_cv_pthread_pthreads=no
12213 cat > conftest.$ac_ext <<EOF
12214 #line 12215 "configure"
12215 #include "confdefs.h"
12216 /* pthread test headers */
12217 #include <pthread.h>
12218 #if HAVE_PTHREADS < 7
12222 #define NULL (void*)0
12225 static void *task(p)
12228 return (void *) (p == NULL);
12232 int main(argc, argv)
12237 /* pthread test function */
12238 #ifndef PTHREAD_CREATE_DETACHED
12239 #define PTHREAD_CREATE_DETACHED 1
12243 int detach = PTHREAD_CREATE_DETACHED;
12245 #if HAVE_PTHREADS > 4
12246 /* Final pthreads */
12247 pthread_attr_t attr;
12249 status = pthread_attr_init(&attr);
12250 if( status ) return status;
12252 #if HAVE_PTHREADS < 7
12253 status = pthread_attr_setdetachstate(&attr, &detach);
12254 if( status < 0 ) status = errno;
12256 status = pthread_attr_setdetachstate(&attr, detach);
12258 if( status ) return status;
12259 status = pthread_create( &t, &attr, task, NULL );
12260 #if HAVE_PTHREADS < 7
12261 if( status < 0 ) status = errno;
12263 if( status ) return status;
12265 /* Draft 4 pthreads */
12266 status = pthread_create( &t, pthread_attr_default, task, NULL );
12267 if( status ) return errno;
12269 /* give thread a chance to complete */
12270 /* it should remain joinable and hence detachable */
12273 status = pthread_detach( &t );
12274 if( status ) return errno;
12277 #ifdef HAVE_LINUX_THREADS
12278 pthread_kill_other_threads_np();
12286 if { (eval echo configure:12287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12288 ol_cv_pthread_pthreads=yes
12290 echo "configure: failed program was:" >&5
12291 cat conftest.$ac_ext >&5
12293 ol_cv_pthread_pthreads=no
12304 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12306 if test $ol_cv_pthread_pthreads = yes ; then
12307 ol_link_pthreads="-pthreads"
12308 ol_link_threads=posix
12312 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12313 if test "$ol_link_threads" = no ; then
12315 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12316 echo "configure:12317: checking for pthread link with -mthreads" >&5
12317 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12318 echo $ac_n "(cached) $ac_c" 1>&6
12323 LIBS="-mthreads $LIBS"
12325 if test "$cross_compiling" = yes; then
12326 cat > conftest.$ac_ext <<EOF
12327 #line 12328 "configure"
12328 #include "confdefs.h"
12329 /* pthread test headers */
12330 #include <pthread.h>
12331 #if HAVE_PTHREADS < 7
12335 #define NULL (void*)0
12338 static void *task(p)
12341 return (void *) (p == NULL);
12346 /* pthread test function */
12347 #ifndef PTHREAD_CREATE_DETACHED
12348 #define PTHREAD_CREATE_DETACHED 1
12352 int detach = PTHREAD_CREATE_DETACHED;
12354 #if HAVE_PTHREADS > 4
12355 /* Final pthreads */
12356 pthread_attr_t attr;
12358 status = pthread_attr_init(&attr);
12359 if( status ) return status;
12361 #if HAVE_PTHREADS < 7
12362 status = pthread_attr_setdetachstate(&attr, &detach);
12363 if( status < 0 ) status = errno;
12365 status = pthread_attr_setdetachstate(&attr, detach);
12367 if( status ) return status;
12368 status = pthread_create( &t, &attr, task, NULL );
12369 #if HAVE_PTHREADS < 7
12370 if( status < 0 ) status = errno;
12372 if( status ) return status;
12374 /* Draft 4 pthreads */
12375 status = pthread_create( &t, pthread_attr_default, task, NULL );
12376 if( status ) return errno;
12378 /* give thread a chance to complete */
12379 /* it should remain joinable and hence detachable */
12382 status = pthread_detach( &t );
12383 if( status ) return errno;
12386 #ifdef HAVE_LINUX_THREADS
12387 pthread_kill_other_threads_np();
12394 if { (eval echo configure:12395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12396 ol_cv_pthread_mthreads=yes
12398 echo "configure: failed program was:" >&5
12399 cat conftest.$ac_ext >&5
12401 ol_cv_pthread_mthreads=no
12405 cat > conftest.$ac_ext <<EOF
12406 #line 12407 "configure"
12407 #include "confdefs.h"
12408 /* pthread test headers */
12409 #include <pthread.h>
12410 #if HAVE_PTHREADS < 7
12414 #define NULL (void*)0
12417 static void *task(p)
12420 return (void *) (p == NULL);
12424 int main(argc, argv)
12429 /* pthread test function */
12430 #ifndef PTHREAD_CREATE_DETACHED
12431 #define PTHREAD_CREATE_DETACHED 1
12435 int detach = PTHREAD_CREATE_DETACHED;
12437 #if HAVE_PTHREADS > 4
12438 /* Final pthreads */
12439 pthread_attr_t attr;
12441 status = pthread_attr_init(&attr);
12442 if( status ) return status;
12444 #if HAVE_PTHREADS < 7
12445 status = pthread_attr_setdetachstate(&attr, &detach);
12446 if( status < 0 ) status = errno;
12448 status = pthread_attr_setdetachstate(&attr, detach);
12450 if( status ) return status;
12451 status = pthread_create( &t, &attr, task, NULL );
12452 #if HAVE_PTHREADS < 7
12453 if( status < 0 ) status = errno;
12455 if( status ) return status;
12457 /* Draft 4 pthreads */
12458 status = pthread_create( &t, pthread_attr_default, task, NULL );
12459 if( status ) return errno;
12461 /* give thread a chance to complete */
12462 /* it should remain joinable and hence detachable */
12465 status = pthread_detach( &t );
12466 if( status ) return errno;
12469 #ifdef HAVE_LINUX_THREADS
12470 pthread_kill_other_threads_np();
12478 if { (eval echo configure:12479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12480 ol_cv_pthread_mthreads=yes
12482 echo "configure: failed program was:" >&5
12483 cat conftest.$ac_ext >&5
12485 ol_cv_pthread_mthreads=no
12496 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12498 if test $ol_cv_pthread_mthreads = yes ; then
12499 ol_link_pthreads="-mthreads"
12500 ol_link_threads=posix
12504 # Pthread try link: -thread (ol_cv_pthread_thread)
12505 if test "$ol_link_threads" = no ; then
12507 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12508 echo "configure:12509: checking for pthread link with -thread" >&5
12509 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12510 echo $ac_n "(cached) $ac_c" 1>&6
12515 LIBS="-thread $LIBS"
12517 if test "$cross_compiling" = yes; then
12518 cat > conftest.$ac_ext <<EOF
12519 #line 12520 "configure"
12520 #include "confdefs.h"
12521 /* pthread test headers */
12522 #include <pthread.h>
12523 #if HAVE_PTHREADS < 7
12527 #define NULL (void*)0
12530 static void *task(p)
12533 return (void *) (p == NULL);
12538 /* pthread test function */
12539 #ifndef PTHREAD_CREATE_DETACHED
12540 #define PTHREAD_CREATE_DETACHED 1
12544 int detach = PTHREAD_CREATE_DETACHED;
12546 #if HAVE_PTHREADS > 4
12547 /* Final pthreads */
12548 pthread_attr_t attr;
12550 status = pthread_attr_init(&attr);
12551 if( status ) return status;
12553 #if HAVE_PTHREADS < 7
12554 status = pthread_attr_setdetachstate(&attr, &detach);
12555 if( status < 0 ) status = errno;
12557 status = pthread_attr_setdetachstate(&attr, detach);
12559 if( status ) return status;
12560 status = pthread_create( &t, &attr, task, NULL );
12561 #if HAVE_PTHREADS < 7
12562 if( status < 0 ) status = errno;
12564 if( status ) return status;
12566 /* Draft 4 pthreads */
12567 status = pthread_create( &t, pthread_attr_default, task, NULL );
12568 if( status ) return errno;
12570 /* give thread a chance to complete */
12571 /* it should remain joinable and hence detachable */
12574 status = pthread_detach( &t );
12575 if( status ) return errno;
12578 #ifdef HAVE_LINUX_THREADS
12579 pthread_kill_other_threads_np();
12586 if { (eval echo configure:12587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12588 ol_cv_pthread_thread=yes
12590 echo "configure: failed program was:" >&5
12591 cat conftest.$ac_ext >&5
12593 ol_cv_pthread_thread=no
12597 cat > conftest.$ac_ext <<EOF
12598 #line 12599 "configure"
12599 #include "confdefs.h"
12600 /* pthread test headers */
12601 #include <pthread.h>
12602 #if HAVE_PTHREADS < 7
12606 #define NULL (void*)0
12609 static void *task(p)
12612 return (void *) (p == NULL);
12616 int main(argc, argv)
12621 /* pthread test function */
12622 #ifndef PTHREAD_CREATE_DETACHED
12623 #define PTHREAD_CREATE_DETACHED 1
12627 int detach = PTHREAD_CREATE_DETACHED;
12629 #if HAVE_PTHREADS > 4
12630 /* Final pthreads */
12631 pthread_attr_t attr;
12633 status = pthread_attr_init(&attr);
12634 if( status ) return status;
12636 #if HAVE_PTHREADS < 7
12637 status = pthread_attr_setdetachstate(&attr, &detach);
12638 if( status < 0 ) status = errno;
12640 status = pthread_attr_setdetachstate(&attr, detach);
12642 if( status ) return status;
12643 status = pthread_create( &t, &attr, task, NULL );
12644 #if HAVE_PTHREADS < 7
12645 if( status < 0 ) status = errno;
12647 if( status ) return status;
12649 /* Draft 4 pthreads */
12650 status = pthread_create( &t, pthread_attr_default, task, NULL );
12651 if( status ) return errno;
12653 /* give thread a chance to complete */
12654 /* it should remain joinable and hence detachable */
12657 status = pthread_detach( &t );
12658 if( status ) return errno;
12661 #ifdef HAVE_LINUX_THREADS
12662 pthread_kill_other_threads_np();
12670 if { (eval echo configure:12671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12672 ol_cv_pthread_thread=yes
12674 echo "configure: failed program was:" >&5
12675 cat conftest.$ac_ext >&5
12677 ol_cv_pthread_thread=no
12688 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12690 if test $ol_cv_pthread_thread = yes ; then
12691 ol_link_pthreads="-thread"
12692 ol_link_threads=posix
12697 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12698 if test "$ol_link_threads" = no ; then
12699 # try -lpthread -lmach -lexc -lc_r
12700 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12701 echo "configure:12702: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12702 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12703 echo $ac_n "(cached) $ac_c" 1>&6
12708 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12710 if test "$cross_compiling" = yes; then
12711 cat > conftest.$ac_ext <<EOF
12712 #line 12713 "configure"
12713 #include "confdefs.h"
12714 /* pthread test headers */
12715 #include <pthread.h>
12716 #if HAVE_PTHREADS < 7
12720 #define NULL (void*)0
12723 static void *task(p)
12726 return (void *) (p == NULL);
12731 /* pthread test function */
12732 #ifndef PTHREAD_CREATE_DETACHED
12733 #define PTHREAD_CREATE_DETACHED 1
12737 int detach = PTHREAD_CREATE_DETACHED;
12739 #if HAVE_PTHREADS > 4
12740 /* Final pthreads */
12741 pthread_attr_t attr;
12743 status = pthread_attr_init(&attr);
12744 if( status ) return status;
12746 #if HAVE_PTHREADS < 7
12747 status = pthread_attr_setdetachstate(&attr, &detach);
12748 if( status < 0 ) status = errno;
12750 status = pthread_attr_setdetachstate(&attr, detach);
12752 if( status ) return status;
12753 status = pthread_create( &t, &attr, task, NULL );
12754 #if HAVE_PTHREADS < 7
12755 if( status < 0 ) status = errno;
12757 if( status ) return status;
12759 /* Draft 4 pthreads */
12760 status = pthread_create( &t, pthread_attr_default, task, NULL );
12761 if( status ) return errno;
12763 /* give thread a chance to complete */
12764 /* it should remain joinable and hence detachable */
12767 status = pthread_detach( &t );
12768 if( status ) return errno;
12771 #ifdef HAVE_LINUX_THREADS
12772 pthread_kill_other_threads_np();
12779 if { (eval echo configure:12780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12781 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12783 echo "configure: failed program was:" >&5
12784 cat conftest.$ac_ext >&5
12786 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12790 cat > conftest.$ac_ext <<EOF
12791 #line 12792 "configure"
12792 #include "confdefs.h"
12793 /* pthread test headers */
12794 #include <pthread.h>
12795 #if HAVE_PTHREADS < 7
12799 #define NULL (void*)0
12802 static void *task(p)
12805 return (void *) (p == NULL);
12809 int main(argc, argv)
12814 /* pthread test function */
12815 #ifndef PTHREAD_CREATE_DETACHED
12816 #define PTHREAD_CREATE_DETACHED 1
12820 int detach = PTHREAD_CREATE_DETACHED;
12822 #if HAVE_PTHREADS > 4
12823 /* Final pthreads */
12824 pthread_attr_t attr;
12826 status = pthread_attr_init(&attr);
12827 if( status ) return status;
12829 #if HAVE_PTHREADS < 7
12830 status = pthread_attr_setdetachstate(&attr, &detach);
12831 if( status < 0 ) status = errno;
12833 status = pthread_attr_setdetachstate(&attr, detach);
12835 if( status ) return status;
12836 status = pthread_create( &t, &attr, task, NULL );
12837 #if HAVE_PTHREADS < 7
12838 if( status < 0 ) status = errno;
12840 if( status ) return status;
12842 /* Draft 4 pthreads */
12843 status = pthread_create( &t, pthread_attr_default, task, NULL );
12844 if( status ) return errno;
12846 /* give thread a chance to complete */
12847 /* it should remain joinable and hence detachable */
12850 status = pthread_detach( &t );
12851 if( status ) return errno;
12854 #ifdef HAVE_LINUX_THREADS
12855 pthread_kill_other_threads_np();
12863 if { (eval echo configure:12864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12865 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12867 echo "configure: failed program was:" >&5
12868 cat conftest.$ac_ext >&5
12870 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12881 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12883 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12884 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12885 ol_link_threads=posix
12889 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12890 if test "$ol_link_threads" = no ; then
12891 # try -lpthread -lmach -lexc
12892 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12893 echo "configure:12894: checking for pthread link with -lpthread -lmach -lexc" >&5
12894 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12895 echo $ac_n "(cached) $ac_c" 1>&6
12900 LIBS="-lpthread -lmach -lexc $LIBS"
12902 if test "$cross_compiling" = yes; then
12903 cat > conftest.$ac_ext <<EOF
12904 #line 12905 "configure"
12905 #include "confdefs.h"
12906 /* pthread test headers */
12907 #include <pthread.h>
12908 #if HAVE_PTHREADS < 7
12912 #define NULL (void*)0
12915 static void *task(p)
12918 return (void *) (p == NULL);
12923 /* pthread test function */
12924 #ifndef PTHREAD_CREATE_DETACHED
12925 #define PTHREAD_CREATE_DETACHED 1
12929 int detach = PTHREAD_CREATE_DETACHED;
12931 #if HAVE_PTHREADS > 4
12932 /* Final pthreads */
12933 pthread_attr_t attr;
12935 status = pthread_attr_init(&attr);
12936 if( status ) return status;
12938 #if HAVE_PTHREADS < 7
12939 status = pthread_attr_setdetachstate(&attr, &detach);
12940 if( status < 0 ) status = errno;
12942 status = pthread_attr_setdetachstate(&attr, detach);
12944 if( status ) return status;
12945 status = pthread_create( &t, &attr, task, NULL );
12946 #if HAVE_PTHREADS < 7
12947 if( status < 0 ) status = errno;
12949 if( status ) return status;
12951 /* Draft 4 pthreads */
12952 status = pthread_create( &t, pthread_attr_default, task, NULL );
12953 if( status ) return errno;
12955 /* give thread a chance to complete */
12956 /* it should remain joinable and hence detachable */
12959 status = pthread_detach( &t );
12960 if( status ) return errno;
12963 #ifdef HAVE_LINUX_THREADS
12964 pthread_kill_other_threads_np();
12971 if { (eval echo configure:12972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12973 ol_cv_pthread_lpthread_lmach_lexc=yes
12975 echo "configure: failed program was:" >&5
12976 cat conftest.$ac_ext >&5
12978 ol_cv_pthread_lpthread_lmach_lexc=no
12982 cat > conftest.$ac_ext <<EOF
12983 #line 12984 "configure"
12984 #include "confdefs.h"
12985 /* pthread test headers */
12986 #include <pthread.h>
12987 #if HAVE_PTHREADS < 7
12991 #define NULL (void*)0
12994 static void *task(p)
12997 return (void *) (p == NULL);
13001 int main(argc, argv)
13006 /* pthread test function */
13007 #ifndef PTHREAD_CREATE_DETACHED
13008 #define PTHREAD_CREATE_DETACHED 1
13012 int detach = PTHREAD_CREATE_DETACHED;
13014 #if HAVE_PTHREADS > 4
13015 /* Final pthreads */
13016 pthread_attr_t attr;
13018 status = pthread_attr_init(&attr);
13019 if( status ) return status;
13021 #if HAVE_PTHREADS < 7
13022 status = pthread_attr_setdetachstate(&attr, &detach);
13023 if( status < 0 ) status = errno;
13025 status = pthread_attr_setdetachstate(&attr, detach);
13027 if( status ) return status;
13028 status = pthread_create( &t, &attr, task, NULL );
13029 #if HAVE_PTHREADS < 7
13030 if( status < 0 ) status = errno;
13032 if( status ) return status;
13034 /* Draft 4 pthreads */
13035 status = pthread_create( &t, pthread_attr_default, task, NULL );
13036 if( status ) return errno;
13038 /* give thread a chance to complete */
13039 /* it should remain joinable and hence detachable */
13042 status = pthread_detach( &t );
13043 if( status ) return errno;
13046 #ifdef HAVE_LINUX_THREADS
13047 pthread_kill_other_threads_np();
13055 if { (eval echo configure:13056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13057 ol_cv_pthread_lpthread_lmach_lexc=yes
13059 echo "configure: failed program was:" >&5
13060 cat conftest.$ac_ext >&5
13062 ol_cv_pthread_lpthread_lmach_lexc=no
13073 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13075 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13076 ol_link_pthreads="-lpthread -lmach -lexc"
13077 ol_link_threads=posix
13082 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13083 if test "$ol_link_threads" = no ; then
13084 # try -lpthread -Wl,-woff,85
13085 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13086 echo "configure:13087: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13087 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13088 echo $ac_n "(cached) $ac_c" 1>&6
13093 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13095 if test "$cross_compiling" = yes; then
13096 cat > conftest.$ac_ext <<EOF
13097 #line 13098 "configure"
13098 #include "confdefs.h"
13099 /* pthread test headers */
13100 #include <pthread.h>
13101 #if HAVE_PTHREADS < 7
13105 #define NULL (void*)0
13108 static void *task(p)
13111 return (void *) (p == NULL);
13116 /* pthread test function */
13117 #ifndef PTHREAD_CREATE_DETACHED
13118 #define PTHREAD_CREATE_DETACHED 1
13122 int detach = PTHREAD_CREATE_DETACHED;
13124 #if HAVE_PTHREADS > 4
13125 /* Final pthreads */
13126 pthread_attr_t attr;
13128 status = pthread_attr_init(&attr);
13129 if( status ) return status;
13131 #if HAVE_PTHREADS < 7
13132 status = pthread_attr_setdetachstate(&attr, &detach);
13133 if( status < 0 ) status = errno;
13135 status = pthread_attr_setdetachstate(&attr, detach);
13137 if( status ) return status;
13138 status = pthread_create( &t, &attr, task, NULL );
13139 #if HAVE_PTHREADS < 7
13140 if( status < 0 ) status = errno;
13142 if( status ) return status;
13144 /* Draft 4 pthreads */
13145 status = pthread_create( &t, pthread_attr_default, task, NULL );
13146 if( status ) return errno;
13148 /* give thread a chance to complete */
13149 /* it should remain joinable and hence detachable */
13152 status = pthread_detach( &t );
13153 if( status ) return errno;
13156 #ifdef HAVE_LINUX_THREADS
13157 pthread_kill_other_threads_np();
13164 if { (eval echo configure:13165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13166 ol_cv_pthread_lib_lpthread_woff=yes
13168 echo "configure: failed program was:" >&5
13169 cat conftest.$ac_ext >&5
13171 ol_cv_pthread_lib_lpthread_woff=no
13175 cat > conftest.$ac_ext <<EOF
13176 #line 13177 "configure"
13177 #include "confdefs.h"
13178 /* pthread test headers */
13179 #include <pthread.h>
13180 #if HAVE_PTHREADS < 7
13184 #define NULL (void*)0
13187 static void *task(p)
13190 return (void *) (p == NULL);
13194 int main(argc, argv)
13199 /* pthread test function */
13200 #ifndef PTHREAD_CREATE_DETACHED
13201 #define PTHREAD_CREATE_DETACHED 1
13205 int detach = PTHREAD_CREATE_DETACHED;
13207 #if HAVE_PTHREADS > 4
13208 /* Final pthreads */
13209 pthread_attr_t attr;
13211 status = pthread_attr_init(&attr);
13212 if( status ) return status;
13214 #if HAVE_PTHREADS < 7
13215 status = pthread_attr_setdetachstate(&attr, &detach);
13216 if( status < 0 ) status = errno;
13218 status = pthread_attr_setdetachstate(&attr, detach);
13220 if( status ) return status;
13221 status = pthread_create( &t, &attr, task, NULL );
13222 #if HAVE_PTHREADS < 7
13223 if( status < 0 ) status = errno;
13225 if( status ) return status;
13227 /* Draft 4 pthreads */
13228 status = pthread_create( &t, pthread_attr_default, task, NULL );
13229 if( status ) return errno;
13231 /* give thread a chance to complete */
13232 /* it should remain joinable and hence detachable */
13235 status = pthread_detach( &t );
13236 if( status ) return errno;
13239 #ifdef HAVE_LINUX_THREADS
13240 pthread_kill_other_threads_np();
13248 if { (eval echo configure:13249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13250 ol_cv_pthread_lib_lpthread_woff=yes
13252 echo "configure: failed program was:" >&5
13253 cat conftest.$ac_ext >&5
13255 ol_cv_pthread_lib_lpthread_woff=no
13266 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13268 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13269 ol_link_pthreads="-lpthread -Wl,-woff,85"
13270 ol_link_threads=posix
13275 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13276 if test "$ol_link_threads" = no ; then
13278 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13279 echo "configure:13280: checking for pthread link with -lpthread" >&5
13280 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13281 echo $ac_n "(cached) $ac_c" 1>&6
13286 LIBS="-lpthread $LIBS"
13288 if test "$cross_compiling" = yes; then
13289 cat > conftest.$ac_ext <<EOF
13290 #line 13291 "configure"
13291 #include "confdefs.h"
13292 /* pthread test headers */
13293 #include <pthread.h>
13294 #if HAVE_PTHREADS < 7
13298 #define NULL (void*)0
13301 static void *task(p)
13304 return (void *) (p == NULL);
13309 /* pthread test function */
13310 #ifndef PTHREAD_CREATE_DETACHED
13311 #define PTHREAD_CREATE_DETACHED 1
13315 int detach = PTHREAD_CREATE_DETACHED;
13317 #if HAVE_PTHREADS > 4
13318 /* Final pthreads */
13319 pthread_attr_t attr;
13321 status = pthread_attr_init(&attr);
13322 if( status ) return status;
13324 #if HAVE_PTHREADS < 7
13325 status = pthread_attr_setdetachstate(&attr, &detach);
13326 if( status < 0 ) status = errno;
13328 status = pthread_attr_setdetachstate(&attr, detach);
13330 if( status ) return status;
13331 status = pthread_create( &t, &attr, task, NULL );
13332 #if HAVE_PTHREADS < 7
13333 if( status < 0 ) status = errno;
13335 if( status ) return status;
13337 /* Draft 4 pthreads */
13338 status = pthread_create( &t, pthread_attr_default, task, NULL );
13339 if( status ) return errno;
13341 /* give thread a chance to complete */
13342 /* it should remain joinable and hence detachable */
13345 status = pthread_detach( &t );
13346 if( status ) return errno;
13349 #ifdef HAVE_LINUX_THREADS
13350 pthread_kill_other_threads_np();
13357 if { (eval echo configure:13358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13359 ol_cv_pthread_lpthread=yes
13361 echo "configure: failed program was:" >&5
13362 cat conftest.$ac_ext >&5
13364 ol_cv_pthread_lpthread=no
13368 cat > conftest.$ac_ext <<EOF
13369 #line 13370 "configure"
13370 #include "confdefs.h"
13371 /* pthread test headers */
13372 #include <pthread.h>
13373 #if HAVE_PTHREADS < 7
13377 #define NULL (void*)0
13380 static void *task(p)
13383 return (void *) (p == NULL);
13387 int main(argc, argv)
13392 /* pthread test function */
13393 #ifndef PTHREAD_CREATE_DETACHED
13394 #define PTHREAD_CREATE_DETACHED 1
13398 int detach = PTHREAD_CREATE_DETACHED;
13400 #if HAVE_PTHREADS > 4
13401 /* Final pthreads */
13402 pthread_attr_t attr;
13404 status = pthread_attr_init(&attr);
13405 if( status ) return status;
13407 #if HAVE_PTHREADS < 7
13408 status = pthread_attr_setdetachstate(&attr, &detach);
13409 if( status < 0 ) status = errno;
13411 status = pthread_attr_setdetachstate(&attr, detach);
13413 if( status ) return status;
13414 status = pthread_create( &t, &attr, task, NULL );
13415 #if HAVE_PTHREADS < 7
13416 if( status < 0 ) status = errno;
13418 if( status ) return status;
13420 /* Draft 4 pthreads */
13421 status = pthread_create( &t, pthread_attr_default, task, NULL );
13422 if( status ) return errno;
13424 /* give thread a chance to complete */
13425 /* it should remain joinable and hence detachable */
13428 status = pthread_detach( &t );
13429 if( status ) return errno;
13432 #ifdef HAVE_LINUX_THREADS
13433 pthread_kill_other_threads_np();
13441 if { (eval echo configure:13442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13443 ol_cv_pthread_lpthread=yes
13445 echo "configure: failed program was:" >&5
13446 cat conftest.$ac_ext >&5
13448 ol_cv_pthread_lpthread=no
13459 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13461 if test $ol_cv_pthread_lpthread = yes ; then
13462 ol_link_pthreads="-lpthread"
13463 ol_link_threads=posix
13467 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13468 if test "$ol_link_threads" = no ; then
13470 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13471 echo "configure:13472: checking for pthread link with -lc_r" >&5
13472 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13473 echo $ac_n "(cached) $ac_c" 1>&6
13480 if test "$cross_compiling" = yes; then
13481 cat > conftest.$ac_ext <<EOF
13482 #line 13483 "configure"
13483 #include "confdefs.h"
13484 /* pthread test headers */
13485 #include <pthread.h>
13486 #if HAVE_PTHREADS < 7
13490 #define NULL (void*)0
13493 static void *task(p)
13496 return (void *) (p == NULL);
13501 /* pthread test function */
13502 #ifndef PTHREAD_CREATE_DETACHED
13503 #define PTHREAD_CREATE_DETACHED 1
13507 int detach = PTHREAD_CREATE_DETACHED;
13509 #if HAVE_PTHREADS > 4
13510 /* Final pthreads */
13511 pthread_attr_t attr;
13513 status = pthread_attr_init(&attr);
13514 if( status ) return status;
13516 #if HAVE_PTHREADS < 7
13517 status = pthread_attr_setdetachstate(&attr, &detach);
13518 if( status < 0 ) status = errno;
13520 status = pthread_attr_setdetachstate(&attr, detach);
13522 if( status ) return status;
13523 status = pthread_create( &t, &attr, task, NULL );
13524 #if HAVE_PTHREADS < 7
13525 if( status < 0 ) status = errno;
13527 if( status ) return status;
13529 /* Draft 4 pthreads */
13530 status = pthread_create( &t, pthread_attr_default, task, NULL );
13531 if( status ) return errno;
13533 /* give thread a chance to complete */
13534 /* it should remain joinable and hence detachable */
13537 status = pthread_detach( &t );
13538 if( status ) return errno;
13541 #ifdef HAVE_LINUX_THREADS
13542 pthread_kill_other_threads_np();
13549 if { (eval echo configure:13550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13551 ol_cv_pthread_lc_r=yes
13553 echo "configure: failed program was:" >&5
13554 cat conftest.$ac_ext >&5
13556 ol_cv_pthread_lc_r=no
13560 cat > conftest.$ac_ext <<EOF
13561 #line 13562 "configure"
13562 #include "confdefs.h"
13563 /* pthread test headers */
13564 #include <pthread.h>
13565 #if HAVE_PTHREADS < 7
13569 #define NULL (void*)0
13572 static void *task(p)
13575 return (void *) (p == NULL);
13579 int main(argc, argv)
13584 /* pthread test function */
13585 #ifndef PTHREAD_CREATE_DETACHED
13586 #define PTHREAD_CREATE_DETACHED 1
13590 int detach = PTHREAD_CREATE_DETACHED;
13592 #if HAVE_PTHREADS > 4
13593 /* Final pthreads */
13594 pthread_attr_t attr;
13596 status = pthread_attr_init(&attr);
13597 if( status ) return status;
13599 #if HAVE_PTHREADS < 7
13600 status = pthread_attr_setdetachstate(&attr, &detach);
13601 if( status < 0 ) status = errno;
13603 status = pthread_attr_setdetachstate(&attr, detach);
13605 if( status ) return status;
13606 status = pthread_create( &t, &attr, task, NULL );
13607 #if HAVE_PTHREADS < 7
13608 if( status < 0 ) status = errno;
13610 if( status ) return status;
13612 /* Draft 4 pthreads */
13613 status = pthread_create( &t, pthread_attr_default, task, NULL );
13614 if( status ) return errno;
13616 /* give thread a chance to complete */
13617 /* it should remain joinable and hence detachable */
13620 status = pthread_detach( &t );
13621 if( status ) return errno;
13624 #ifdef HAVE_LINUX_THREADS
13625 pthread_kill_other_threads_np();
13633 if { (eval echo configure:13634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13635 ol_cv_pthread_lc_r=yes
13637 echo "configure: failed program was:" >&5
13638 cat conftest.$ac_ext >&5
13640 ol_cv_pthread_lc_r=no
13651 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13653 if test $ol_cv_pthread_lc_r = yes ; then
13654 ol_link_pthreads="-lc_r"
13655 ol_link_threads=posix
13660 # Pthread try link: -threads (ol_cv_pthread_threads)
13661 if test "$ol_link_threads" = no ; then
13663 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13664 echo "configure:13665: checking for pthread link with -threads" >&5
13665 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13666 echo $ac_n "(cached) $ac_c" 1>&6
13671 LIBS="-threads $LIBS"
13673 if test "$cross_compiling" = yes; then
13674 cat > conftest.$ac_ext <<EOF
13675 #line 13676 "configure"
13676 #include "confdefs.h"
13677 /* pthread test headers */
13678 #include <pthread.h>
13679 #if HAVE_PTHREADS < 7
13683 #define NULL (void*)0
13686 static void *task(p)
13689 return (void *) (p == NULL);
13694 /* pthread test function */
13695 #ifndef PTHREAD_CREATE_DETACHED
13696 #define PTHREAD_CREATE_DETACHED 1
13700 int detach = PTHREAD_CREATE_DETACHED;
13702 #if HAVE_PTHREADS > 4
13703 /* Final pthreads */
13704 pthread_attr_t attr;
13706 status = pthread_attr_init(&attr);
13707 if( status ) return status;
13709 #if HAVE_PTHREADS < 7
13710 status = pthread_attr_setdetachstate(&attr, &detach);
13711 if( status < 0 ) status = errno;
13713 status = pthread_attr_setdetachstate(&attr, detach);
13715 if( status ) return status;
13716 status = pthread_create( &t, &attr, task, NULL );
13717 #if HAVE_PTHREADS < 7
13718 if( status < 0 ) status = errno;
13720 if( status ) return status;
13722 /* Draft 4 pthreads */
13723 status = pthread_create( &t, pthread_attr_default, task, NULL );
13724 if( status ) return errno;
13726 /* give thread a chance to complete */
13727 /* it should remain joinable and hence detachable */
13730 status = pthread_detach( &t );
13731 if( status ) return errno;
13734 #ifdef HAVE_LINUX_THREADS
13735 pthread_kill_other_threads_np();
13742 if { (eval echo configure:13743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13744 ol_cv_pthread_threads=yes
13746 echo "configure: failed program was:" >&5
13747 cat conftest.$ac_ext >&5
13749 ol_cv_pthread_threads=no
13753 cat > conftest.$ac_ext <<EOF
13754 #line 13755 "configure"
13755 #include "confdefs.h"
13756 /* pthread test headers */
13757 #include <pthread.h>
13758 #if HAVE_PTHREADS < 7
13762 #define NULL (void*)0
13765 static void *task(p)
13768 return (void *) (p == NULL);
13772 int main(argc, argv)
13777 /* pthread test function */
13778 #ifndef PTHREAD_CREATE_DETACHED
13779 #define PTHREAD_CREATE_DETACHED 1
13783 int detach = PTHREAD_CREATE_DETACHED;
13785 #if HAVE_PTHREADS > 4
13786 /* Final pthreads */
13787 pthread_attr_t attr;
13789 status = pthread_attr_init(&attr);
13790 if( status ) return status;
13792 #if HAVE_PTHREADS < 7
13793 status = pthread_attr_setdetachstate(&attr, &detach);
13794 if( status < 0 ) status = errno;
13796 status = pthread_attr_setdetachstate(&attr, detach);
13798 if( status ) return status;
13799 status = pthread_create( &t, &attr, task, NULL );
13800 #if HAVE_PTHREADS < 7
13801 if( status < 0 ) status = errno;
13803 if( status ) return status;
13805 /* Draft 4 pthreads */
13806 status = pthread_create( &t, pthread_attr_default, task, NULL );
13807 if( status ) return errno;
13809 /* give thread a chance to complete */
13810 /* it should remain joinable and hence detachable */
13813 status = pthread_detach( &t );
13814 if( status ) return errno;
13817 #ifdef HAVE_LINUX_THREADS
13818 pthread_kill_other_threads_np();
13826 if { (eval echo configure:13827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13828 ol_cv_pthread_threads=yes
13830 echo "configure: failed program was:" >&5
13831 cat conftest.$ac_ext >&5
13833 ol_cv_pthread_threads=no
13844 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13846 if test $ol_cv_pthread_threads = yes ; then
13847 ol_link_pthreads="-threads"
13848 ol_link_threads=posix
13853 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13854 if test "$ol_link_threads" = no ; then
13855 # try -lpthreads -lmach -lexc -lc_r
13856 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13857 echo "configure:13858: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13858 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13859 echo $ac_n "(cached) $ac_c" 1>&6
13864 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13866 if test "$cross_compiling" = yes; then
13867 cat > conftest.$ac_ext <<EOF
13868 #line 13869 "configure"
13869 #include "confdefs.h"
13870 /* pthread test headers */
13871 #include <pthread.h>
13872 #if HAVE_PTHREADS < 7
13876 #define NULL (void*)0
13879 static void *task(p)
13882 return (void *) (p == NULL);
13887 /* pthread test function */
13888 #ifndef PTHREAD_CREATE_DETACHED
13889 #define PTHREAD_CREATE_DETACHED 1
13893 int detach = PTHREAD_CREATE_DETACHED;
13895 #if HAVE_PTHREADS > 4
13896 /* Final pthreads */
13897 pthread_attr_t attr;
13899 status = pthread_attr_init(&attr);
13900 if( status ) return status;
13902 #if HAVE_PTHREADS < 7
13903 status = pthread_attr_setdetachstate(&attr, &detach);
13904 if( status < 0 ) status = errno;
13906 status = pthread_attr_setdetachstate(&attr, detach);
13908 if( status ) return status;
13909 status = pthread_create( &t, &attr, task, NULL );
13910 #if HAVE_PTHREADS < 7
13911 if( status < 0 ) status = errno;
13913 if( status ) return status;
13915 /* Draft 4 pthreads */
13916 status = pthread_create( &t, pthread_attr_default, task, NULL );
13917 if( status ) return errno;
13919 /* give thread a chance to complete */
13920 /* it should remain joinable and hence detachable */
13923 status = pthread_detach( &t );
13924 if( status ) return errno;
13927 #ifdef HAVE_LINUX_THREADS
13928 pthread_kill_other_threads_np();
13935 if { (eval echo configure:13936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13937 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13939 echo "configure: failed program was:" >&5
13940 cat conftest.$ac_ext >&5
13942 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13946 cat > conftest.$ac_ext <<EOF
13947 #line 13948 "configure"
13948 #include "confdefs.h"
13949 /* pthread test headers */
13950 #include <pthread.h>
13951 #if HAVE_PTHREADS < 7
13955 #define NULL (void*)0
13958 static void *task(p)
13961 return (void *) (p == NULL);
13965 int main(argc, argv)
13970 /* pthread test function */
13971 #ifndef PTHREAD_CREATE_DETACHED
13972 #define PTHREAD_CREATE_DETACHED 1
13976 int detach = PTHREAD_CREATE_DETACHED;
13978 #if HAVE_PTHREADS > 4
13979 /* Final pthreads */
13980 pthread_attr_t attr;
13982 status = pthread_attr_init(&attr);
13983 if( status ) return status;
13985 #if HAVE_PTHREADS < 7
13986 status = pthread_attr_setdetachstate(&attr, &detach);
13987 if( status < 0 ) status = errno;
13989 status = pthread_attr_setdetachstate(&attr, detach);
13991 if( status ) return status;
13992 status = pthread_create( &t, &attr, task, NULL );
13993 #if HAVE_PTHREADS < 7
13994 if( status < 0 ) status = errno;
13996 if( status ) return status;
13998 /* Draft 4 pthreads */
13999 status = pthread_create( &t, pthread_attr_default, task, NULL );
14000 if( status ) return errno;
14002 /* give thread a chance to complete */
14003 /* it should remain joinable and hence detachable */
14006 status = pthread_detach( &t );
14007 if( status ) return errno;
14010 #ifdef HAVE_LINUX_THREADS
14011 pthread_kill_other_threads_np();
14019 if { (eval echo configure:14020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14021 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14023 echo "configure: failed program was:" >&5
14024 cat conftest.$ac_ext >&5
14026 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14037 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14039 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14040 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14041 ol_link_threads=posix
14045 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14046 if test "$ol_link_threads" = no ; then
14047 # try -lpthreads -lmach -lexc
14048 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14049 echo "configure:14050: checking for pthread link with -lpthreads -lmach -lexc" >&5
14050 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14051 echo $ac_n "(cached) $ac_c" 1>&6
14056 LIBS="-lpthreads -lmach -lexc $LIBS"
14058 if test "$cross_compiling" = yes; then
14059 cat > conftest.$ac_ext <<EOF
14060 #line 14061 "configure"
14061 #include "confdefs.h"
14062 /* pthread test headers */
14063 #include <pthread.h>
14064 #if HAVE_PTHREADS < 7
14068 #define NULL (void*)0
14071 static void *task(p)
14074 return (void *) (p == NULL);
14079 /* pthread test function */
14080 #ifndef PTHREAD_CREATE_DETACHED
14081 #define PTHREAD_CREATE_DETACHED 1
14085 int detach = PTHREAD_CREATE_DETACHED;
14087 #if HAVE_PTHREADS > 4
14088 /* Final pthreads */
14089 pthread_attr_t attr;
14091 status = pthread_attr_init(&attr);
14092 if( status ) return status;
14094 #if HAVE_PTHREADS < 7
14095 status = pthread_attr_setdetachstate(&attr, &detach);
14096 if( status < 0 ) status = errno;
14098 status = pthread_attr_setdetachstate(&attr, detach);
14100 if( status ) return status;
14101 status = pthread_create( &t, &attr, task, NULL );
14102 #if HAVE_PTHREADS < 7
14103 if( status < 0 ) status = errno;
14105 if( status ) return status;
14107 /* Draft 4 pthreads */
14108 status = pthread_create( &t, pthread_attr_default, task, NULL );
14109 if( status ) return errno;
14111 /* give thread a chance to complete */
14112 /* it should remain joinable and hence detachable */
14115 status = pthread_detach( &t );
14116 if( status ) return errno;
14119 #ifdef HAVE_LINUX_THREADS
14120 pthread_kill_other_threads_np();
14127 if { (eval echo configure:14128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14129 ol_cv_pthread_lpthreads_lmach_lexc=yes
14131 echo "configure: failed program was:" >&5
14132 cat conftest.$ac_ext >&5
14134 ol_cv_pthread_lpthreads_lmach_lexc=no
14138 cat > conftest.$ac_ext <<EOF
14139 #line 14140 "configure"
14140 #include "confdefs.h"
14141 /* pthread test headers */
14142 #include <pthread.h>
14143 #if HAVE_PTHREADS < 7
14147 #define NULL (void*)0
14150 static void *task(p)
14153 return (void *) (p == NULL);
14157 int main(argc, argv)
14162 /* pthread test function */
14163 #ifndef PTHREAD_CREATE_DETACHED
14164 #define PTHREAD_CREATE_DETACHED 1
14168 int detach = PTHREAD_CREATE_DETACHED;
14170 #if HAVE_PTHREADS > 4
14171 /* Final pthreads */
14172 pthread_attr_t attr;
14174 status = pthread_attr_init(&attr);
14175 if( status ) return status;
14177 #if HAVE_PTHREADS < 7
14178 status = pthread_attr_setdetachstate(&attr, &detach);
14179 if( status < 0 ) status = errno;
14181 status = pthread_attr_setdetachstate(&attr, detach);
14183 if( status ) return status;
14184 status = pthread_create( &t, &attr, task, NULL );
14185 #if HAVE_PTHREADS < 7
14186 if( status < 0 ) status = errno;
14188 if( status ) return status;
14190 /* Draft 4 pthreads */
14191 status = pthread_create( &t, pthread_attr_default, task, NULL );
14192 if( status ) return errno;
14194 /* give thread a chance to complete */
14195 /* it should remain joinable and hence detachable */
14198 status = pthread_detach( &t );
14199 if( status ) return errno;
14202 #ifdef HAVE_LINUX_THREADS
14203 pthread_kill_other_threads_np();
14211 if { (eval echo configure:14212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14213 ol_cv_pthread_lpthreads_lmach_lexc=yes
14215 echo "configure: failed program was:" >&5
14216 cat conftest.$ac_ext >&5
14218 ol_cv_pthread_lpthreads_lmach_lexc=no
14229 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14231 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14232 ol_link_pthreads="-lpthreads -lmach -lexc"
14233 ol_link_threads=posix
14237 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14238 if test "$ol_link_threads" = no ; then
14239 # try -lpthreads -lexc
14240 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14241 echo "configure:14242: checking for pthread link with -lpthreads -lexc" >&5
14242 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14243 echo $ac_n "(cached) $ac_c" 1>&6
14248 LIBS="-lpthreads -lexc $LIBS"
14250 if test "$cross_compiling" = yes; then
14251 cat > conftest.$ac_ext <<EOF
14252 #line 14253 "configure"
14253 #include "confdefs.h"
14254 /* pthread test headers */
14255 #include <pthread.h>
14256 #if HAVE_PTHREADS < 7
14260 #define NULL (void*)0
14263 static void *task(p)
14266 return (void *) (p == NULL);
14271 /* pthread test function */
14272 #ifndef PTHREAD_CREATE_DETACHED
14273 #define PTHREAD_CREATE_DETACHED 1
14277 int detach = PTHREAD_CREATE_DETACHED;
14279 #if HAVE_PTHREADS > 4
14280 /* Final pthreads */
14281 pthread_attr_t attr;
14283 status = pthread_attr_init(&attr);
14284 if( status ) return status;
14286 #if HAVE_PTHREADS < 7
14287 status = pthread_attr_setdetachstate(&attr, &detach);
14288 if( status < 0 ) status = errno;
14290 status = pthread_attr_setdetachstate(&attr, detach);
14292 if( status ) return status;
14293 status = pthread_create( &t, &attr, task, NULL );
14294 #if HAVE_PTHREADS < 7
14295 if( status < 0 ) status = errno;
14297 if( status ) return status;
14299 /* Draft 4 pthreads */
14300 status = pthread_create( &t, pthread_attr_default, task, NULL );
14301 if( status ) return errno;
14303 /* give thread a chance to complete */
14304 /* it should remain joinable and hence detachable */
14307 status = pthread_detach( &t );
14308 if( status ) return errno;
14311 #ifdef HAVE_LINUX_THREADS
14312 pthread_kill_other_threads_np();
14319 if { (eval echo configure:14320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14321 ol_cv_pthread_lpthreads_lexc=yes
14323 echo "configure: failed program was:" >&5
14324 cat conftest.$ac_ext >&5
14326 ol_cv_pthread_lpthreads_lexc=no
14330 cat > conftest.$ac_ext <<EOF
14331 #line 14332 "configure"
14332 #include "confdefs.h"
14333 /* pthread test headers */
14334 #include <pthread.h>
14335 #if HAVE_PTHREADS < 7
14339 #define NULL (void*)0
14342 static void *task(p)
14345 return (void *) (p == NULL);
14349 int main(argc, argv)
14354 /* pthread test function */
14355 #ifndef PTHREAD_CREATE_DETACHED
14356 #define PTHREAD_CREATE_DETACHED 1
14360 int detach = PTHREAD_CREATE_DETACHED;
14362 #if HAVE_PTHREADS > 4
14363 /* Final pthreads */
14364 pthread_attr_t attr;
14366 status = pthread_attr_init(&attr);
14367 if( status ) return status;
14369 #if HAVE_PTHREADS < 7
14370 status = pthread_attr_setdetachstate(&attr, &detach);
14371 if( status < 0 ) status = errno;
14373 status = pthread_attr_setdetachstate(&attr, detach);
14375 if( status ) return status;
14376 status = pthread_create( &t, &attr, task, NULL );
14377 #if HAVE_PTHREADS < 7
14378 if( status < 0 ) status = errno;
14380 if( status ) return status;
14382 /* Draft 4 pthreads */
14383 status = pthread_create( &t, pthread_attr_default, task, NULL );
14384 if( status ) return errno;
14386 /* give thread a chance to complete */
14387 /* it should remain joinable and hence detachable */
14390 status = pthread_detach( &t );
14391 if( status ) return errno;
14394 #ifdef HAVE_LINUX_THREADS
14395 pthread_kill_other_threads_np();
14403 if { (eval echo configure:14404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14405 ol_cv_pthread_lpthreads_lexc=yes
14407 echo "configure: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14410 ol_cv_pthread_lpthreads_lexc=no
14421 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14423 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14424 ol_link_pthreads="-lpthreads -lexc"
14425 ol_link_threads=posix
14430 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14431 if test "$ol_link_threads" = no ; then
14433 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14434 echo "configure:14435: checking for pthread link with -lpthreads" >&5
14435 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14436 echo $ac_n "(cached) $ac_c" 1>&6
14441 LIBS="-lpthreads $LIBS"
14443 if test "$cross_compiling" = yes; then
14444 cat > conftest.$ac_ext <<EOF
14445 #line 14446 "configure"
14446 #include "confdefs.h"
14447 /* pthread test headers */
14448 #include <pthread.h>
14449 #if HAVE_PTHREADS < 7
14453 #define NULL (void*)0
14456 static void *task(p)
14459 return (void *) (p == NULL);
14464 /* pthread test function */
14465 #ifndef PTHREAD_CREATE_DETACHED
14466 #define PTHREAD_CREATE_DETACHED 1
14470 int detach = PTHREAD_CREATE_DETACHED;
14472 #if HAVE_PTHREADS > 4
14473 /* Final pthreads */
14474 pthread_attr_t attr;
14476 status = pthread_attr_init(&attr);
14477 if( status ) return status;
14479 #if HAVE_PTHREADS < 7
14480 status = pthread_attr_setdetachstate(&attr, &detach);
14481 if( status < 0 ) status = errno;
14483 status = pthread_attr_setdetachstate(&attr, detach);
14485 if( status ) return status;
14486 status = pthread_create( &t, &attr, task, NULL );
14487 #if HAVE_PTHREADS < 7
14488 if( status < 0 ) status = errno;
14490 if( status ) return status;
14492 /* Draft 4 pthreads */
14493 status = pthread_create( &t, pthread_attr_default, task, NULL );
14494 if( status ) return errno;
14496 /* give thread a chance to complete */
14497 /* it should remain joinable and hence detachable */
14500 status = pthread_detach( &t );
14501 if( status ) return errno;
14504 #ifdef HAVE_LINUX_THREADS
14505 pthread_kill_other_threads_np();
14512 if { (eval echo configure:14513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14514 ol_cv_pthread_lib_lpthreads=yes
14516 echo "configure: failed program was:" >&5
14517 cat conftest.$ac_ext >&5
14519 ol_cv_pthread_lib_lpthreads=no
14523 cat > conftest.$ac_ext <<EOF
14524 #line 14525 "configure"
14525 #include "confdefs.h"
14526 /* pthread test headers */
14527 #include <pthread.h>
14528 #if HAVE_PTHREADS < 7
14532 #define NULL (void*)0
14535 static void *task(p)
14538 return (void *) (p == NULL);
14542 int main(argc, argv)
14547 /* pthread test function */
14548 #ifndef PTHREAD_CREATE_DETACHED
14549 #define PTHREAD_CREATE_DETACHED 1
14553 int detach = PTHREAD_CREATE_DETACHED;
14555 #if HAVE_PTHREADS > 4
14556 /* Final pthreads */
14557 pthread_attr_t attr;
14559 status = pthread_attr_init(&attr);
14560 if( status ) return status;
14562 #if HAVE_PTHREADS < 7
14563 status = pthread_attr_setdetachstate(&attr, &detach);
14564 if( status < 0 ) status = errno;
14566 status = pthread_attr_setdetachstate(&attr, detach);
14568 if( status ) return status;
14569 status = pthread_create( &t, &attr, task, NULL );
14570 #if HAVE_PTHREADS < 7
14571 if( status < 0 ) status = errno;
14573 if( status ) return status;
14575 /* Draft 4 pthreads */
14576 status = pthread_create( &t, pthread_attr_default, task, NULL );
14577 if( status ) return errno;
14579 /* give thread a chance to complete */
14580 /* it should remain joinable and hence detachable */
14583 status = pthread_detach( &t );
14584 if( status ) return errno;
14587 #ifdef HAVE_LINUX_THREADS
14588 pthread_kill_other_threads_np();
14596 if { (eval echo configure:14597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14598 ol_cv_pthread_lib_lpthreads=yes
14600 echo "configure: failed program was:" >&5
14601 cat conftest.$ac_ext >&5
14603 ol_cv_pthread_lib_lpthreads=no
14614 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14616 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14617 ol_link_pthreads="-lpthreads"
14618 ol_link_threads=posix
14623 if test $ol_link_threads != no ; then
14624 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14626 save_CPPFLAGS="$CPPFLAGS"
14628 LIBS="$LTHREAD_LIBS $LIBS"
14630 for ac_func in sched_yield pthread_yield thr_yield
14632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14633 echo "configure:14634: checking for $ac_func" >&5
14634 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14635 echo $ac_n "(cached) $ac_c" 1>&6
14637 cat > conftest.$ac_ext <<EOF
14638 #line 14639 "configure"
14639 #include "confdefs.h"
14640 /* System header to define __stub macros and hopefully few prototypes,
14641 which can conflict with char $ac_func(); below. */
14642 #include <assert.h>
14643 /* Override any gcc2 internal prototype to avoid an error. */
14644 /* We use char because int might match the return type of a gcc2
14645 builtin and then its argument prototype would still apply. */
14651 /* The GNU C library defines this for functions which it implements
14652 to always fail with ENOSYS. Some functions are actually named
14653 something starting with __ and the normal name is an alias. */
14654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14662 if { (eval echo configure:14663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14664 eval "ac_cv_func_$ac_func=yes"
14666 echo "configure: failed program was:" >&5
14667 cat conftest.$ac_ext >&5
14669 eval "ac_cv_func_$ac_func=no"
14674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14675 echo "$ac_t""yes" 1>&6
14676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14677 cat >> confdefs.h <<EOF
14678 #define $ac_tr_func 1
14682 echo "$ac_t""no" 1>&6
14687 if test $ac_cv_func_sched_yield = no -a \
14688 $ac_cv_func_pthread_yield = no -a \
14689 $ac_cv_func_thr_yield = no ; then
14690 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14691 echo "configure:14692: checking for sched_yield in -lrt" >&5
14692 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14693 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14694 echo $ac_n "(cached) $ac_c" 1>&6
14696 ac_save_LIBS="$LIBS"
14698 cat > conftest.$ac_ext <<EOF
14699 #line 14700 "configure"
14700 #include "confdefs.h"
14701 /* Override any gcc2 internal prototype to avoid an error. */
14702 /* We use char because int might match the return type of a gcc2
14703 builtin and then its argument prototype would still apply. */
14704 char sched_yield();
14710 if { (eval echo configure:14711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14712 eval "ac_cv_lib_$ac_lib_var=yes"
14714 echo "configure: failed program was:" >&5
14715 cat conftest.$ac_ext >&5
14717 eval "ac_cv_lib_$ac_lib_var=no"
14720 LIBS="$ac_save_LIBS"
14723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14724 echo "$ac_t""yes" 1>&6
14725 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14726 cat >> confdefs.h <<\EOF
14727 #define HAVE_SCHED_YIELD 1
14730 ac_cv_func_sched_yield=yes
14732 echo "$ac_t""no" 1>&6
14733 ac_cv_func_sched_yield=no
14737 if test $ac_cv_func_sched_yield = no -a \
14738 $ac_cv_func_pthread_yield = no -a \
14739 "$ac_cv_func_thr_yield" = no ; then
14740 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14743 for ac_func in pthread_kill pthread_rwlock_destroy
14745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14746 echo "configure:14747: checking for $ac_func" >&5
14747 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14748 echo $ac_n "(cached) $ac_c" 1>&6
14750 cat > conftest.$ac_ext <<EOF
14751 #line 14752 "configure"
14752 #include "confdefs.h"
14753 /* System header to define __stub macros and hopefully few prototypes,
14754 which can conflict with char $ac_func(); below. */
14755 #include <assert.h>
14756 /* Override any gcc2 internal prototype to avoid an error. */
14757 /* We use char because int might match the return type of a gcc2
14758 builtin and then its argument prototype would still apply. */
14764 /* The GNU C library defines this for functions which it implements
14765 to always fail with ENOSYS. Some functions are actually named
14766 something starting with __ and the normal name is an alias. */
14767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14775 if { (eval echo configure:14776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14777 eval "ac_cv_func_$ac_func=yes"
14779 echo "configure: failed program was:" >&5
14780 cat conftest.$ac_ext >&5
14782 eval "ac_cv_func_$ac_func=no"
14787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14788 echo "$ac_t""yes" 1>&6
14789 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14790 cat >> confdefs.h <<EOF
14791 #define $ac_tr_func 1
14795 echo "$ac_t""no" 1>&6
14800 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14801 echo "configure:14802: checking for pthread_detach with <pthread.h>" >&5
14802 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14803 echo $ac_n "(cached) $ac_c" 1>&6
14806 cat > conftest.$ac_ext <<EOF
14807 #line 14808 "configure"
14808 #include "confdefs.h"
14810 #include <pthread.h>
14812 #define NULL (void*)0
14816 pthread_detach(NULL);
14819 if { (eval echo configure:14820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14821 ol_cv_func_pthread_detach=yes
14823 echo "configure: failed program was:" >&5
14824 cat conftest.$ac_ext >&5
14826 ol_cv_func_pthread_detach=no
14832 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14834 if test $ol_cv_func_pthread_detach = no ; then
14835 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14838 cat >> confdefs.h <<\EOF
14839 #define HAVE_PTHREAD_DETACH 1
14844 pthread_setconcurrency \
14845 pthread_getconcurrency \
14846 thr_setconcurrency \
14847 thr_getconcurrency \
14850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14851 echo "configure:14852: checking for $ac_func" >&5
14852 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14853 echo $ac_n "(cached) $ac_c" 1>&6
14855 cat > conftest.$ac_ext <<EOF
14856 #line 14857 "configure"
14857 #include "confdefs.h"
14858 /* System header to define __stub macros and hopefully few prototypes,
14859 which can conflict with char $ac_func(); below. */
14860 #include <assert.h>
14861 /* Override any gcc2 internal prototype to avoid an error. */
14862 /* We use char because int might match the return type of a gcc2
14863 builtin and then its argument prototype would still apply. */
14869 /* The GNU C library defines this for functions which it implements
14870 to always fail with ENOSYS. Some functions are actually named
14871 something starting with __ and the normal name is an alias. */
14872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14880 if { (eval echo configure:14881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14882 eval "ac_cv_func_$ac_func=yes"
14884 echo "configure: failed program was:" >&5
14885 cat conftest.$ac_ext >&5
14887 eval "ac_cv_func_$ac_func=no"
14892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14893 echo "$ac_t""yes" 1>&6
14894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14895 cat >> confdefs.h <<EOF
14896 #define $ac_tr_func 1
14900 echo "$ac_t""no" 1>&6
14906 for ac_func in pthread_kill_other_threads_np
14908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14909 echo "configure:14910: checking for $ac_func" >&5
14910 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14911 echo $ac_n "(cached) $ac_c" 1>&6
14913 cat > conftest.$ac_ext <<EOF
14914 #line 14915 "configure"
14915 #include "confdefs.h"
14916 /* System header to define __stub macros and hopefully few prototypes,
14917 which can conflict with char $ac_func(); below. */
14918 #include <assert.h>
14919 /* Override any gcc2 internal prototype to avoid an error. */
14920 /* We use char because int might match the return type of a gcc2
14921 builtin and then its argument prototype would still apply. */
14927 /* The GNU C library defines this for functions which it implements
14928 to always fail with ENOSYS. Some functions are actually named
14929 something starting with __ and the normal name is an alias. */
14930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14938 if { (eval echo configure:14939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14940 eval "ac_cv_func_$ac_func=yes"
14942 echo "configure: failed program was:" >&5
14943 cat conftest.$ac_ext >&5
14945 eval "ac_cv_func_$ac_func=no"
14950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14951 echo "$ac_t""yes" 1>&6
14952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14953 cat >> confdefs.h <<EOF
14954 #define $ac_tr_func 1
14958 echo "$ac_t""no" 1>&6
14962 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
14963 echo "configure:14964: checking for LinuxThreads implementation" >&5
14964 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
14965 echo $ac_n "(cached) $ac_c" 1>&6
14967 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14970 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
14975 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
14976 echo "configure:14977: checking for LinuxThreads consistency" >&5
14977 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
14978 echo $ac_n "(cached) $ac_c" 1>&6
14981 if test $ol_cv_header_linux_threads = yes -a \
14982 $ol_cv_sys_linux_threads = yes; then
14983 ol_cv_linux_threads=yes
14984 elif test $ol_cv_header_linux_threads = no -a \
14985 $ol_cv_sys_linux_threads = no; then
14986 ol_cv_linux_threads=no
14988 ol_cv_linux_threads=error
14993 echo "$ac_t""$ol_cv_linux_threads" 1>&6
14996 if test $ol_cv_linux_threads = error; then
14997 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15000 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15001 echo "configure:15002: checking if pthread_create() works" >&5
15002 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15003 echo $ac_n "(cached) $ac_c" 1>&6
15006 if test "$cross_compiling" = yes; then
15007 ol_cv_pthread_create_works=yes
15009 cat > conftest.$ac_ext <<EOF
15010 #line 15011 "configure"
15011 #include "confdefs.h"
15012 /* pthread test headers */
15013 #include <pthread.h>
15014 #if HAVE_PTHREADS < 7
15018 #define NULL (void*)0
15021 static void *task(p)
15024 return (void *) (p == NULL);
15028 int main(argc, argv)
15033 /* pthread test function */
15034 #ifndef PTHREAD_CREATE_DETACHED
15035 #define PTHREAD_CREATE_DETACHED 1
15039 int detach = PTHREAD_CREATE_DETACHED;
15041 #if HAVE_PTHREADS > 4
15042 /* Final pthreads */
15043 pthread_attr_t attr;
15045 status = pthread_attr_init(&attr);
15046 if( status ) return status;
15048 #if HAVE_PTHREADS < 7
15049 status = pthread_attr_setdetachstate(&attr, &detach);
15050 if( status < 0 ) status = errno;
15052 status = pthread_attr_setdetachstate(&attr, detach);
15054 if( status ) return status;
15055 status = pthread_create( &t, &attr, task, NULL );
15056 #if HAVE_PTHREADS < 7
15057 if( status < 0 ) status = errno;
15059 if( status ) return status;
15061 /* Draft 4 pthreads */
15062 status = pthread_create( &t, pthread_attr_default, task, NULL );
15063 if( status ) return errno;
15065 /* give thread a chance to complete */
15066 /* it should remain joinable and hence detachable */
15069 status = pthread_detach( &t );
15070 if( status ) return errno;
15073 #ifdef HAVE_LINUX_THREADS
15074 pthread_kill_other_threads_np();
15082 if { (eval echo configure:15083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15084 ol_cv_pthread_create_works=yes
15086 echo "configure: failed program was:" >&5
15087 cat conftest.$ac_ext >&5
15089 ol_cv_pthread_create_works=no
15096 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15098 if test $ol_cv_pthread_create_works = no ; then
15099 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15102 if test $ol_with_yielding_select = auto ; then
15103 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15104 echo "configure:15105: checking if select yields when using pthreads" >&5
15105 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15106 echo $ac_n "(cached) $ac_c" 1>&6
15109 if test "$cross_compiling" = yes; then
15110 ol_cv_pthread_select_yields=cross
15112 cat > conftest.$ac_ext <<EOF
15113 #line 15114 "configure"
15114 #include "confdefs.h"
15116 #include <sys/types.h>
15117 #include <sys/time.h>
15118 #include <unistd.h>
15119 #include <pthread.h>
15121 #define NULL (void*) 0
15124 static int fildes[2];
15126 static void *task(p)
15138 FD_SET(fildes[0], &rfds);
15140 /* we're not interested in any fds */
15141 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15148 exit(0); /* if we exit here, the select blocked the whole process */
15151 int main(argc, argv)
15157 /* create a pipe to select */
15158 if(pipe(&fildes[0])) {
15163 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15164 (void) pthread_setconcurrency(2);
15166 #ifdef HAVE_THR_SETCONCURRENCY
15167 /* Set Solaris LWP concurrency to 2 */
15168 thr_setconcurrency(2);
15172 #if HAVE_PTHREADS < 6
15173 pthread_create(&t, pthread_attr_default, task, NULL);
15175 pthread_create(&t, NULL, task, NULL);
15178 /* make sure task runs first */
15181 #elif defined( HAVE_SCHED_YIELD )
15183 #elif defined( HAVE_PTHREAD_YIELD )
15190 if { (eval echo configure:15191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15192 ol_cv_pthread_select_yields=no
15194 echo "configure: failed program was:" >&5
15195 cat conftest.$ac_ext >&5
15197 ol_cv_pthread_select_yields=yes
15204 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15206 if test $ol_cv_pthread_select_yields = cross ; then
15207 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15210 if test $ol_cv_pthread_select_yields = yes ; then
15211 ol_with_yielding_select=yes
15215 CPPFLAGS="$save_CPPFLAGS"
15218 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15222 if test $ol_with_threads = posix ; then
15223 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15227 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15228 -o $ol_with_threads = mach ; then
15230 for ac_hdr in mach/cthreads.h cthreads.h
15232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15234 echo "configure:15235: checking for $ac_hdr" >&5
15235 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15236 echo $ac_n "(cached) $ac_c" 1>&6
15238 cat > conftest.$ac_ext <<EOF
15239 #line 15240 "configure"
15240 #include "confdefs.h"
15243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15244 { (eval echo configure:15245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15246 if test -z "$ac_err"; then
15248 eval "ac_cv_header_$ac_safe=yes"
15251 echo "configure: failed program was:" >&5
15252 cat conftest.$ac_ext >&5
15254 eval "ac_cv_header_$ac_safe=no"
15258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15259 echo "$ac_t""yes" 1>&6
15260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15261 cat >> confdefs.h <<EOF
15262 #define $ac_tr_hdr 1
15266 echo "$ac_t""no" 1>&6
15270 if test $ac_cv_header_mach_cthreads_h = yes ; then
15271 ol_with_threads=found
15273 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15274 echo "configure:15275: checking for cthread_fork" >&5
15275 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15276 echo $ac_n "(cached) $ac_c" 1>&6
15278 cat > conftest.$ac_ext <<EOF
15279 #line 15280 "configure"
15280 #include "confdefs.h"
15281 /* System header to define __stub macros and hopefully few prototypes,
15282 which can conflict with char cthread_fork(); below. */
15283 #include <assert.h>
15284 /* Override any gcc2 internal prototype to avoid an error. */
15285 /* We use char because int might match the return type of a gcc2
15286 builtin and then its argument prototype would still apply. */
15287 char cthread_fork();
15292 /* The GNU C library defines this for functions which it implements
15293 to always fail with ENOSYS. Some functions are actually named
15294 something starting with __ and the normal name is an alias. */
15295 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15303 if { (eval echo configure:15304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15305 eval "ac_cv_func_cthread_fork=yes"
15307 echo "configure: failed program was:" >&5
15308 cat conftest.$ac_ext >&5
15310 eval "ac_cv_func_cthread_fork=no"
15315 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15316 echo "$ac_t""yes" 1>&6
15317 ol_link_threads=yes
15319 echo "$ac_t""no" 1>&6
15323 if test $ol_link_threads = no ; then
15324 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15325 echo "configure:15326: checking for cthread_fork with -all_load" >&5
15326 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15327 echo $ac_n "(cached) $ac_c" 1>&6
15331 LIBS="-all_load $LIBS"
15332 cat > conftest.$ac_ext <<EOF
15333 #line 15334 "configure"
15334 #include "confdefs.h"
15335 #include <mach/cthreads.h>
15338 cthread_fork((void *)0, (void *)0);
15342 if { (eval echo configure:15343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15344 ol_cv_cthread_all_load=yes
15346 echo "configure: failed program was:" >&5
15347 cat conftest.$ac_ext >&5
15349 ol_cv_cthread_all_load=no
15356 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15358 if test $ol_cv_cthread_all_load = yes ; then
15359 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15360 ol_link_threads=mach
15361 ol_with_threads=found
15365 elif test $ac_cv_header_cthreads_h = yes ; then
15367 ol_with_threads=found
15370 LIBS="$LIBS -lthreads"
15371 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15372 echo "configure:15373: checking for cthread_fork" >&5
15373 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15374 echo $ac_n "(cached) $ac_c" 1>&6
15376 cat > conftest.$ac_ext <<EOF
15377 #line 15378 "configure"
15378 #include "confdefs.h"
15379 /* System header to define __stub macros and hopefully few prototypes,
15380 which can conflict with char cthread_fork(); below. */
15381 #include <assert.h>
15382 /* Override any gcc2 internal prototype to avoid an error. */
15383 /* We use char because int might match the return type of a gcc2
15384 builtin and then its argument prototype would still apply. */
15385 char cthread_fork();
15390 /* The GNU C library defines this for functions which it implements
15391 to always fail with ENOSYS. Some functions are actually named
15392 something starting with __ and the normal name is an alias. */
15393 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15401 if { (eval echo configure:15402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15403 eval "ac_cv_func_cthread_fork=yes"
15405 echo "configure: failed program was:" >&5
15406 cat conftest.$ac_ext >&5
15408 eval "ac_cv_func_cthread_fork=no"
15413 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15414 echo "$ac_t""yes" 1>&6
15415 ol_link_threads=yes
15417 echo "$ac_t""no" 1>&6
15422 if test $ol_link_threads = yes ; then
15423 LTHREAD_LIBS="-lthreads"
15424 ol_link_threads=mach
15425 ol_with_threads=found
15427 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15430 elif test $ol_with_threads = mach ; then
15431 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15434 if test $ol_link_threads = mach ; then
15435 cat >> confdefs.h <<\EOF
15436 #define HAVE_MACH_CTHREADS 1
15439 elif test $ol_with_threads = found ; then
15440 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15444 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15445 -o $ol_with_threads = pth ; then
15447 for ac_hdr in pth.h
15449 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15450 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15451 echo "configure:15452: checking for $ac_hdr" >&5
15452 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15453 echo $ac_n "(cached) $ac_c" 1>&6
15455 cat > conftest.$ac_ext <<EOF
15456 #line 15457 "configure"
15457 #include "confdefs.h"
15460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15461 { (eval echo configure:15462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15463 if test -z "$ac_err"; then
15465 eval "ac_cv_header_$ac_safe=yes"
15468 echo "configure: failed program was:" >&5
15469 cat conftest.$ac_ext >&5
15471 eval "ac_cv_header_$ac_safe=no"
15475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15476 echo "$ac_t""yes" 1>&6
15477 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15478 cat >> confdefs.h <<EOF
15479 #define $ac_tr_hdr 1
15483 echo "$ac_t""no" 1>&6
15488 if test $ac_cv_header_pth_h = yes ; then
15489 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15490 echo "configure:15491: checking for pth_version in -lpth" >&5
15491 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15492 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15493 echo $ac_n "(cached) $ac_c" 1>&6
15495 ac_save_LIBS="$LIBS"
15497 cat > conftest.$ac_ext <<EOF
15498 #line 15499 "configure"
15499 #include "confdefs.h"
15500 /* Override any gcc2 internal prototype to avoid an error. */
15501 /* We use char because int might match the return type of a gcc2
15502 builtin and then its argument prototype would still apply. */
15503 char pth_version();
15509 if { (eval echo configure:15510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15511 eval "ac_cv_lib_$ac_lib_var=yes"
15513 echo "configure: failed program was:" >&5
15514 cat conftest.$ac_ext >&5
15516 eval "ac_cv_lib_$ac_lib_var=no"
15519 LIBS="$ac_save_LIBS"
15522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15523 echo "$ac_t""yes" 1>&6
15526 echo "$ac_t""no" 1>&6
15531 if test $have_pth = yes ; then
15532 cat >> confdefs.h <<\EOF
15533 #define HAVE_GNU_PTH 1
15536 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15537 ol_link_threads=pth
15538 ol_with_threads=found
15540 if test $ol_with_yielding_select = auto ; then
15541 ol_with_yielding_select=yes
15547 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15548 -o $ol_with_threads = lwp ; then
15550 for ac_hdr in thread.h synch.h
15552 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15553 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15554 echo "configure:15555: checking for $ac_hdr" >&5
15555 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15556 echo $ac_n "(cached) $ac_c" 1>&6
15558 cat > conftest.$ac_ext <<EOF
15559 #line 15560 "configure"
15560 #include "confdefs.h"
15563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15564 { (eval echo configure:15565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15566 if test -z "$ac_err"; then
15568 eval "ac_cv_header_$ac_safe=yes"
15571 echo "configure: failed program was:" >&5
15572 cat conftest.$ac_ext >&5
15574 eval "ac_cv_header_$ac_safe=no"
15578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15579 echo "$ac_t""yes" 1>&6
15580 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15581 cat >> confdefs.h <<EOF
15582 #define $ac_tr_hdr 1
15586 echo "$ac_t""no" 1>&6
15590 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15591 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15592 echo "configure:15593: checking for thr_create in -lthread" >&5
15593 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15594 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15595 echo $ac_n "(cached) $ac_c" 1>&6
15597 ac_save_LIBS="$LIBS"
15598 LIBS="-lthread $LIBS"
15599 cat > conftest.$ac_ext <<EOF
15600 #line 15601 "configure"
15601 #include "confdefs.h"
15602 /* Override any gcc2 internal prototype to avoid an error. */
15603 /* We use char because int might match the return type of a gcc2
15604 builtin and then its argument prototype would still apply. */
15611 if { (eval echo configure:15612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15613 eval "ac_cv_lib_$ac_lib_var=yes"
15615 echo "configure: failed program was:" >&5
15616 cat conftest.$ac_ext >&5
15618 eval "ac_cv_lib_$ac_lib_var=no"
15621 LIBS="$ac_save_LIBS"
15624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15625 echo "$ac_t""yes" 1>&6
15628 echo "$ac_t""no" 1>&6
15633 if test $have_thr = yes ; then
15634 cat >> confdefs.h <<\EOF
15638 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15639 ol_link_threads=thr
15641 if test $ol_with_yielding_select = auto ; then
15642 ol_with_yielding_select=yes
15646 thr_setconcurrency \
15647 thr_getconcurrency \
15650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15651 echo "configure:15652: checking for $ac_func" >&5
15652 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15653 echo $ac_n "(cached) $ac_c" 1>&6
15655 cat > conftest.$ac_ext <<EOF
15656 #line 15657 "configure"
15657 #include "confdefs.h"
15658 /* System header to define __stub macros and hopefully few prototypes,
15659 which can conflict with char $ac_func(); below. */
15660 #include <assert.h>
15661 /* Override any gcc2 internal prototype to avoid an error. */
15662 /* We use char because int might match the return type of a gcc2
15663 builtin and then its argument prototype would still apply. */
15669 /* The GNU C library defines this for functions which it implements
15670 to always fail with ENOSYS. Some functions are actually named
15671 something starting with __ and the normal name is an alias. */
15672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15680 if { (eval echo configure:15681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15682 eval "ac_cv_func_$ac_func=yes"
15684 echo "configure: failed program was:" >&5
15685 cat conftest.$ac_ext >&5
15687 eval "ac_cv_func_$ac_func=no"
15692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15693 echo "$ac_t""yes" 1>&6
15694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15695 cat >> confdefs.h <<EOF
15696 #define $ac_tr_func 1
15700 echo "$ac_t""no" 1>&6
15707 for ac_hdr in lwp/lwp.h
15709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15711 echo "configure:15712: checking for $ac_hdr" >&5
15712 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15713 echo $ac_n "(cached) $ac_c" 1>&6
15715 cat > conftest.$ac_ext <<EOF
15716 #line 15717 "configure"
15717 #include "confdefs.h"
15720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15721 { (eval echo configure:15722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15723 if test -z "$ac_err"; then
15725 eval "ac_cv_header_$ac_safe=yes"
15728 echo "configure: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15731 eval "ac_cv_header_$ac_safe=no"
15735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15736 echo "$ac_t""yes" 1>&6
15737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15738 cat >> confdefs.h <<EOF
15739 #define $ac_tr_hdr 1
15743 echo "$ac_t""no" 1>&6
15747 if test $ac_cv_header_lwp_lwp_h = yes ; then
15748 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15749 echo "configure:15750: checking for lwp_create in -llwp" >&5
15750 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15751 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15752 echo $ac_n "(cached) $ac_c" 1>&6
15754 ac_save_LIBS="$LIBS"
15756 cat > conftest.$ac_ext <<EOF
15757 #line 15758 "configure"
15758 #include "confdefs.h"
15759 /* Override any gcc2 internal prototype to avoid an error. */
15760 /* We use char because int might match the return type of a gcc2
15761 builtin and then its argument prototype would still apply. */
15768 if { (eval echo configure:15769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15770 eval "ac_cv_lib_$ac_lib_var=yes"
15772 echo "configure: failed program was:" >&5
15773 cat conftest.$ac_ext >&5
15775 eval "ac_cv_lib_$ac_lib_var=no"
15778 LIBS="$ac_save_LIBS"
15781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15782 echo "$ac_t""yes" 1>&6
15785 echo "$ac_t""no" 1>&6
15790 if test $have_lwp = yes ; then
15791 cat >> confdefs.h <<\EOF
15795 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15796 ol_link_threads=lwp
15798 if test $ol_with_yielding_select = auto ; then
15799 ol_with_yielding_select=no
15805 if test $ol_with_yielding_select = yes ; then
15806 cat >> confdefs.h <<\EOF
15807 #define HAVE_YIELDING_SELECT 1
15812 if test $ol_with_threads = manual ; then
15813 ol_link_threads=yes
15815 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15817 for ac_hdr in pthread.h sched.h
15819 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15821 echo "configure:15822: checking for $ac_hdr" >&5
15822 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15823 echo $ac_n "(cached) $ac_c" 1>&6
15825 cat > conftest.$ac_ext <<EOF
15826 #line 15827 "configure"
15827 #include "confdefs.h"
15830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15831 { (eval echo configure:15832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15833 if test -z "$ac_err"; then
15835 eval "ac_cv_header_$ac_safe=yes"
15838 echo "configure: failed program was:" >&5
15839 cat conftest.$ac_ext >&5
15841 eval "ac_cv_header_$ac_safe=no"
15845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15846 echo "$ac_t""yes" 1>&6
15847 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15848 cat >> confdefs.h <<EOF
15849 #define $ac_tr_hdr 1
15853 echo "$ac_t""no" 1>&6
15857 for ac_func in sched_yield pthread_yield
15859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15860 echo "configure:15861: checking for $ac_func" >&5
15861 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15862 echo $ac_n "(cached) $ac_c" 1>&6
15864 cat > conftest.$ac_ext <<EOF
15865 #line 15866 "configure"
15866 #include "confdefs.h"
15867 /* System header to define __stub macros and hopefully few prototypes,
15868 which can conflict with char $ac_func(); below. */
15869 #include <assert.h>
15870 /* Override any gcc2 internal prototype to avoid an error. */
15871 /* We use char because int might match the return type of a gcc2
15872 builtin and then its argument prototype would still apply. */
15878 /* The GNU C library defines this for functions which it implements
15879 to always fail with ENOSYS. Some functions are actually named
15880 something starting with __ and the normal name is an alias. */
15881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15889 if { (eval echo configure:15890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15891 eval "ac_cv_func_$ac_func=yes"
15893 echo "configure: failed program was:" >&5
15894 cat conftest.$ac_ext >&5
15896 eval "ac_cv_func_$ac_func=no"
15901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15902 echo "$ac_t""yes" 1>&6
15903 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15904 cat >> confdefs.h <<EOF
15905 #define $ac_tr_func 1
15909 echo "$ac_t""no" 1>&6
15914 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15915 echo "configure:15916: checking for LinuxThreads pthread.h" >&5
15916 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15917 echo $ac_n "(cached) $ac_c" 1>&6
15919 cat > conftest.$ac_ext <<EOF
15920 #line 15921 "configure"
15921 #include "confdefs.h"
15922 #include <pthread.h>
15924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15925 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15927 ol_cv_header_linux_threads=yes
15930 ol_cv_header_linux_threads=no
15937 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15938 if test $ol_cv_header_linux_threads = yes; then
15939 cat >> confdefs.h <<\EOF
15940 #define HAVE_LINUX_THREADS 1
15946 for ac_hdr in mach/cthreads.h
15948 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15949 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15950 echo "configure:15951: checking for $ac_hdr" >&5
15951 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15952 echo $ac_n "(cached) $ac_c" 1>&6
15954 cat > conftest.$ac_ext <<EOF
15955 #line 15956 "configure"
15956 #include "confdefs.h"
15959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15960 { (eval echo configure:15961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15962 if test -z "$ac_err"; then
15964 eval "ac_cv_header_$ac_safe=yes"
15967 echo "configure: failed program was:" >&5
15968 cat conftest.$ac_ext >&5
15970 eval "ac_cv_header_$ac_safe=no"
15974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15975 echo "$ac_t""yes" 1>&6
15976 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15977 cat >> confdefs.h <<EOF
15978 #define $ac_tr_hdr 1
15982 echo "$ac_t""no" 1>&6
15986 for ac_hdr in lwp/lwp.h
15988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15990 echo "configure:15991: checking for $ac_hdr" >&5
15991 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15992 echo $ac_n "(cached) $ac_c" 1>&6
15994 cat > conftest.$ac_ext <<EOF
15995 #line 15996 "configure"
15996 #include "confdefs.h"
15999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16000 { (eval echo configure:16001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16002 if test -z "$ac_err"; then
16004 eval "ac_cv_header_$ac_safe=yes"
16007 echo "configure: failed program was:" >&5
16008 cat conftest.$ac_ext >&5
16010 eval "ac_cv_header_$ac_safe=no"
16014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16015 echo "$ac_t""yes" 1>&6
16016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16017 cat >> confdefs.h <<EOF
16018 #define $ac_tr_hdr 1
16022 echo "$ac_t""no" 1>&6
16026 for ac_hdr in thread.h synch.h
16028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16030 echo "configure:16031: checking for $ac_hdr" >&5
16031 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16032 echo $ac_n "(cached) $ac_c" 1>&6
16034 cat > conftest.$ac_ext <<EOF
16035 #line 16036 "configure"
16036 #include "confdefs.h"
16039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16040 { (eval echo configure:16041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16042 if test -z "$ac_err"; then
16044 eval "ac_cv_header_$ac_safe=yes"
16047 echo "configure: failed program was:" >&5
16048 cat conftest.$ac_ext >&5
16050 eval "ac_cv_header_$ac_safe=no"
16054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16055 echo "$ac_t""yes" 1>&6
16056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16057 cat >> confdefs.h <<EOF
16058 #define $ac_tr_hdr 1
16062 echo "$ac_t""no" 1>&6
16068 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16069 cat >> confdefs.h <<\EOF
16070 #define REENTRANT 1
16073 cat >> confdefs.h <<\EOF
16074 #define _REENTRANT 1
16077 cat >> confdefs.h <<\EOF
16078 #define THREAD_SAFE 1
16081 cat >> confdefs.h <<\EOF
16082 #define _THREAD_SAFE 1
16085 cat >> confdefs.h <<\EOF
16086 #define THREADSAFE 1
16089 cat >> confdefs.h <<\EOF
16090 #define _THREADSAFE 1
16093 cat >> confdefs.h <<\EOF
16094 #define _SGI_MP_SOURCE 1
16098 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16099 echo "configure:16100: checking for thread specific errno" >&5
16100 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16101 echo $ac_n "(cached) $ac_c" 1>&6
16104 cat > conftest.$ac_ext <<EOF
16105 #line 16106 "configure"
16106 #include "confdefs.h"
16112 if { (eval echo configure:16113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16114 ol_cv_errno_thread_specific=yes
16116 echo "configure: failed program was:" >&5
16117 cat conftest.$ac_ext >&5
16119 ol_cv_errno_thread_specific=no
16125 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16127 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16128 echo "configure:16129: checking for thread specific h_errno" >&5
16129 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16130 echo $ac_n "(cached) $ac_c" 1>&6
16133 cat > conftest.$ac_ext <<EOF
16134 #line 16135 "configure"
16135 #include "confdefs.h"
16141 if { (eval echo configure:16142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16143 ol_cv_h_errno_thread_specific=yes
16145 echo "configure: failed program was:" >&5
16146 cat conftest.$ac_ext >&5
16148 ol_cv_h_errno_thread_specific=no
16154 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16156 if test $ol_cv_errno_thread_specific != yes \
16157 -o $ol_cv_h_errno_thread_specific != yes ; then
16158 LIBS="$LTHREAD_LIBS $LIBS"
16164 if test $ol_link_threads = no ; then
16165 if test $ol_with_threads = yes ; then
16166 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16169 if test $ol_with_threads = auto ; then
16170 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16174 cat >> confdefs.h <<\EOF
16175 #define NO_THREADS 1
16181 if test $ol_link_threads != no ; then
16182 cat >> confdefs.h <<\EOF
16183 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16190 gethostbyname_r gethostbyaddr_r \
16193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16194 echo "configure:16195: checking for $ac_func" >&5
16195 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16196 echo $ac_n "(cached) $ac_c" 1>&6
16198 cat > conftest.$ac_ext <<EOF
16199 #line 16200 "configure"
16200 #include "confdefs.h"
16201 /* System header to define __stub macros and hopefully few prototypes,
16202 which can conflict with char $ac_func(); below. */
16203 #include <assert.h>
16204 /* Override any gcc2 internal prototype to avoid an error. */
16205 /* We use char because int might match the return type of a gcc2
16206 builtin and then its argument prototype would still apply. */
16212 /* The GNU C library defines this for functions which it implements
16213 to always fail with ENOSYS. Some functions are actually named
16214 something starting with __ and the normal name is an alias. */
16215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16223 if { (eval echo configure:16224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16225 eval "ac_cv_func_$ac_func=yes"
16227 echo "configure: failed program was:" >&5
16228 cat conftest.$ac_ext >&5
16230 eval "ac_cv_func_$ac_func=no"
16235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16236 echo "$ac_t""yes" 1>&6
16237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16238 cat >> confdefs.h <<EOF
16239 #define $ac_tr_func 1
16243 echo "$ac_t""no" 1>&6
16248 if test "$ac_cv_func_ctime_r" = no ; then
16249 ol_cv_func_ctime_r_nargs=0
16251 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16252 echo "configure:16253: checking number of arguments of ctime_r" >&5
16253 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16254 echo $ac_n "(cached) $ac_c" 1>&6
16256 cat > conftest.$ac_ext <<EOF
16257 #line 16258 "configure"
16258 #include "confdefs.h"
16261 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16264 if { (eval echo configure:16265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16266 ol_cv_func_ctime_r_nargs3=yes
16268 echo "configure: failed program was:" >&5
16269 cat conftest.$ac_ext >&5
16271 ol_cv_func_ctime_r_nargs3=no
16275 cat > conftest.$ac_ext <<EOF
16276 #line 16277 "configure"
16277 #include "confdefs.h"
16280 time_t ti; char *buffer; ctime_r(&ti,buffer);
16283 if { (eval echo configure:16284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16285 ol_cv_func_ctime_r_nargs2=yes
16287 echo "configure: failed program was:" >&5
16288 cat conftest.$ac_ext >&5
16290 ol_cv_func_ctime_r_nargs2=no
16294 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16295 $ol_cv_func_ctime_r_nargs2 = no ; then
16297 ol_cv_func_ctime_r_nargs=3
16299 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16300 $ol_cv_func_ctime_r_nargs2 = yes ; then
16302 ol_cv_func_ctime_r_nargs=2
16305 ol_cv_func_ctime_r_nargs=0
16310 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16312 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16313 cat >> confdefs.h <<EOF
16314 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16321 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16322 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16323 echo "configure:16324: checking number of arguments of gethostbyname_r" >&5
16324 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16325 echo $ac_n "(cached) $ac_c" 1>&6
16327 cat > conftest.$ac_ext <<EOF
16328 #line 16329 "configure"
16329 #include "confdefs.h"
16330 #include <sys/types.h>
16331 #include <sys/socket.h>
16332 #include <netinet/in.h>
16334 #define BUFSIZE (sizeof(struct hostent)+10)
16336 struct hostent hent; char buffer[BUFSIZE];
16337 int bufsize=BUFSIZE;int h_errno;
16338 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16339 buffer, bufsize, &h_errno);
16342 if { (eval echo configure:16343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16344 ol_cv_func_gethostbyname_r_nargs5=yes
16346 echo "configure: failed program was:" >&5
16347 cat conftest.$ac_ext >&5
16349 ol_cv_func_gethostbyname_r_nargs5=no
16353 cat > conftest.$ac_ext <<EOF
16354 #line 16355 "configure"
16355 #include "confdefs.h"
16356 #include <sys/types.h>
16357 #include <sys/socket.h>
16358 #include <netinet/in.h>
16360 #define BUFSIZE (sizeof(struct hostent)+10)
16362 struct hostent hent;struct hostent *rhent;
16363 char buffer[BUFSIZE];
16364 int bufsize=BUFSIZE;int h_errno;
16365 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16369 if { (eval echo configure:16370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16371 ol_cv_func_gethostbyname_r_nargs6=yes
16373 echo "configure: failed program was:" >&5
16374 cat conftest.$ac_ext >&5
16376 ol_cv_func_gethostbyname_r_nargs6=no
16380 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16381 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16383 ol_cv_func_gethostbyname_r_nargs=5
16385 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16386 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16388 ol_cv_func_gethostbyname_r_nargs=6
16391 ol_cv_func_gethostbyname_r_nargs=0
16396 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16397 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16398 cat >> confdefs.h <<EOF
16399 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16405 ol_cv_func_gethostbyname_r_nargs=0
16408 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16409 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16410 echo "configure:16411: checking number of arguments of gethostbyaddr_r" >&5
16411 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16412 echo $ac_n "(cached) $ac_c" 1>&6
16414 cat > conftest.$ac_ext <<EOF
16415 #line 16416 "configure"
16416 #include "confdefs.h"
16417 #include <sys/types.h>
16418 #include <sys/socket.h>
16419 #include <netinet/in.h>
16421 #define BUFSIZE (sizeof(struct hostent)+10)
16423 struct hostent hent; char buffer[BUFSIZE];
16424 struct in_addr add;
16425 size_t alen=sizeof(struct in_addr);
16426 int bufsize=BUFSIZE;int h_errno;
16427 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16428 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16431 if { (eval echo configure:16432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16433 ol_cv_func_gethostbyaddr_r_nargs7=yes
16435 echo "configure: failed program was:" >&5
16436 cat conftest.$ac_ext >&5
16438 ol_cv_func_gethostbyaddr_r_nargs7=no
16442 cat > conftest.$ac_ext <<EOF
16443 #line 16444 "configure"
16444 #include "confdefs.h"
16445 #include <sys/types.h>
16446 #include <sys/socket.h>
16447 #include <netinet/in.h>
16449 #define BUFSIZE (sizeof(struct hostent)+10)
16451 struct hostent hent;
16452 struct hostent *rhent; char buffer[BUFSIZE];
16453 struct in_addr add;
16454 size_t alen=sizeof(struct in_addr);
16455 int bufsize=BUFSIZE;int h_errno;
16456 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16457 alen, AF_INET, &hent, buffer, bufsize,
16461 if { (eval echo configure:16462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16463 ol_cv_func_gethostbyaddr_r_nargs8=yes
16465 echo "configure: failed program was:" >&5
16466 cat conftest.$ac_ext >&5
16468 ol_cv_func_gethostbyaddr_r_nargs8=no
16472 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16473 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16475 ol_cv_func_gethostbyaddr_r_nargs=7
16477 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16478 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16480 ol_cv_func_gethostbyaddr_r_nargs=8
16483 ol_cv_func_gethostbyaddr_r_nargs=0
16488 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16489 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16490 cat >> confdefs.h <<EOF
16491 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16497 ol_cv_func_gethostbyaddr_r_nargs=0
16502 if test $ol_with_ldbm_api = auto \
16503 -o $ol_with_ldbm_api = berkeley \
16504 -o $ol_with_ldbm_api = bcompat ; then
16506 if test $ol_with_ldbm_api = bcompat; then \
16507 for ac_hdr in db_185.h db.h
16509 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16511 echo "configure:16512: checking for $ac_hdr" >&5
16512 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16513 echo $ac_n "(cached) $ac_c" 1>&6
16515 cat > conftest.$ac_ext <<EOF
16516 #line 16517 "configure"
16517 #include "confdefs.h"
16520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16521 { (eval echo configure:16522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16523 if test -z "$ac_err"; then
16525 eval "ac_cv_header_$ac_safe=yes"
16528 echo "configure: failed program was:" >&5
16529 cat conftest.$ac_ext >&5
16531 eval "ac_cv_header_$ac_safe=no"
16535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16536 echo "$ac_t""yes" 1>&6
16537 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16538 cat >> confdefs.h <<EOF
16539 #define $ac_tr_hdr 1
16543 echo "$ac_t""no" 1>&6
16547 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16548 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16549 echo "configure:16550: checking if Berkeley DB header compatibility" >&5
16550 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16551 echo $ac_n "(cached) $ac_c" 1>&6
16554 cat > conftest.$ac_ext <<EOF
16555 #line 16556 "configure"
16556 #include "confdefs.h"
16559 # include <db_185.h>
16564 /* this check could be improved */
16565 #ifndef DB_VERSION_MAJOR
16566 # define DB_VERSION_MAJOR 1
16569 #if DB_VERSION_MAJOR == 1
16574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16575 egrep "__db_version_1" >/dev/null 2>&1; then
16577 ol_cv_header_db1=yes
16580 ol_cv_header_db1=no
16586 echo "$ac_t""$ol_cv_header_db1" 1>&6
16588 if test $ol_cv_header_db1 = yes ; then
16590 if test $ol_cv_lib_db = no ; then
16591 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16592 echo "configure:16593: checking for Berkeley DB link (default)" >&5
16593 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16594 echo $ac_n "(cached) $ac_c" 1>&6
16599 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16601 cat > conftest.$ac_ext <<EOF
16602 #line 16603 "configure"
16603 #include "confdefs.h"
16605 #ifdef HAVE_DB_185_H
16606 # include <db_185.h>
16611 #ifndef DB_VERSION_MAJOR
16612 # define DB_VERSION_MAJOR 1
16616 #define NULL ((void*)0)
16621 #if DB_VERSION_MAJOR > 1
16624 int major, minor, patch;
16626 version = db_version( &major, &minor, &patch );
16628 if( major != DB_VERSION_MAJOR ||
16629 minor < DB_VERSION_MINOR )
16631 printf("Berkeley DB version mismatch\n"
16632 "\texpected: %s\n\tgot: %s\n",
16633 DB_VERSION_STRING, version);
16639 #if DB_VERSION_MAJOR > 2
16640 db_env_create( NULL, 0 );
16641 #elif DB_VERSION_MAJOR > 1
16642 db_appexit( NULL );
16644 (void) dbopen( NULL, 0, 0, 0, NULL);
16649 if { (eval echo configure:16650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16653 echo "configure: failed program was:" >&5
16654 cat conftest.$ac_ext >&5
16664 echo "$ac_t""$ol_cv_db_none" 1>&6
16666 if test $ol_cv_db_none = yes ; then
16671 if test $ol_cv_lib_db = no ; then
16672 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16673 echo "configure:16674: checking for Berkeley DB link (-ldb4)" >&5
16674 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16675 echo $ac_n "(cached) $ac_c" 1>&6
16680 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16682 cat > conftest.$ac_ext <<EOF
16683 #line 16684 "configure"
16684 #include "confdefs.h"
16686 #ifdef HAVE_DB_185_H
16687 # include <db_185.h>
16692 #ifndef DB_VERSION_MAJOR
16693 # define DB_VERSION_MAJOR 1
16697 #define NULL ((void*)0)
16702 #if DB_VERSION_MAJOR > 1
16705 int major, minor, patch;
16707 version = db_version( &major, &minor, &patch );
16709 if( major != DB_VERSION_MAJOR ||
16710 minor < DB_VERSION_MINOR )
16712 printf("Berkeley DB version mismatch\n"
16713 "\texpected: %s\n\tgot: %s\n",
16714 DB_VERSION_STRING, version);
16720 #if DB_VERSION_MAJOR > 2
16721 db_env_create( NULL, 0 );
16722 #elif DB_VERSION_MAJOR > 1
16723 db_appexit( NULL );
16725 (void) dbopen( NULL, 0, 0, 0, NULL);
16730 if { (eval echo configure:16731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16734 echo "configure: failed program was:" >&5
16735 cat conftest.$ac_ext >&5
16745 echo "$ac_t""$ol_cv_db_db4" 1>&6
16747 if test $ol_cv_db_db4 = yes ; then
16752 if test $ol_cv_lib_db = no ; then
16753 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16754 echo "configure:16755: checking for Berkeley DB link (-ldb-4)" >&5
16755 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16756 echo $ac_n "(cached) $ac_c" 1>&6
16761 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16763 cat > conftest.$ac_ext <<EOF
16764 #line 16765 "configure"
16765 #include "confdefs.h"
16767 #ifdef HAVE_DB_185_H
16768 # include <db_185.h>
16773 #ifndef DB_VERSION_MAJOR
16774 # define DB_VERSION_MAJOR 1
16778 #define NULL ((void*)0)
16783 #if DB_VERSION_MAJOR > 1
16786 int major, minor, patch;
16788 version = db_version( &major, &minor, &patch );
16790 if( major != DB_VERSION_MAJOR ||
16791 minor < DB_VERSION_MINOR )
16793 printf("Berkeley DB version mismatch\n"
16794 "\texpected: %s\n\tgot: %s\n",
16795 DB_VERSION_STRING, version);
16801 #if DB_VERSION_MAJOR > 2
16802 db_env_create( NULL, 0 );
16803 #elif DB_VERSION_MAJOR > 1
16804 db_appexit( NULL );
16806 (void) dbopen( NULL, 0, 0, 0, NULL);
16811 if { (eval echo configure:16812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16815 echo "configure: failed program was:" >&5
16816 cat conftest.$ac_ext >&5
16826 echo "$ac_t""$ol_cv_db_db_4" 1>&6
16828 if test $ol_cv_db_db_4 = yes ; then
16829 ol_cv_lib_db=-ldb-4
16833 if test $ol_cv_lib_db = no ; then
16834 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
16835 echo "configure:16836: checking for Berkeley DB link (-ldb)" >&5
16836 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
16837 echo $ac_n "(cached) $ac_c" 1>&6
16842 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16844 cat > conftest.$ac_ext <<EOF
16845 #line 16846 "configure"
16846 #include "confdefs.h"
16848 #ifdef HAVE_DB_185_H
16849 # include <db_185.h>
16854 #ifndef DB_VERSION_MAJOR
16855 # define DB_VERSION_MAJOR 1
16859 #define NULL ((void*)0)
16864 #if DB_VERSION_MAJOR > 1
16867 int major, minor, patch;
16869 version = db_version( &major, &minor, &patch );
16871 if( major != DB_VERSION_MAJOR ||
16872 minor < DB_VERSION_MINOR )
16874 printf("Berkeley DB version mismatch\n"
16875 "\texpected: %s\n\tgot: %s\n",
16876 DB_VERSION_STRING, version);
16882 #if DB_VERSION_MAJOR > 2
16883 db_env_create( NULL, 0 );
16884 #elif DB_VERSION_MAJOR > 1
16885 db_appexit( NULL );
16887 (void) dbopen( NULL, 0, 0, 0, NULL);
16892 if { (eval echo configure:16893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16896 echo "configure: failed program was:" >&5
16897 cat conftest.$ac_ext >&5
16907 echo "$ac_t""$ol_cv_db_db" 1>&6
16909 if test $ol_cv_db_db = yes ; then
16914 if test $ol_cv_lib_db = no ; then
16915 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
16916 echo "configure:16917: checking for Berkeley DB link (-ldb3)" >&5
16917 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
16918 echo $ac_n "(cached) $ac_c" 1>&6
16923 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16925 cat > conftest.$ac_ext <<EOF
16926 #line 16927 "configure"
16927 #include "confdefs.h"
16929 #ifdef HAVE_DB_185_H
16930 # include <db_185.h>
16935 #ifndef DB_VERSION_MAJOR
16936 # define DB_VERSION_MAJOR 1
16940 #define NULL ((void*)0)
16945 #if DB_VERSION_MAJOR > 1
16948 int major, minor, patch;
16950 version = db_version( &major, &minor, &patch );
16952 if( major != DB_VERSION_MAJOR ||
16953 minor < DB_VERSION_MINOR )
16955 printf("Berkeley DB version mismatch\n"
16956 "\texpected: %s\n\tgot: %s\n",
16957 DB_VERSION_STRING, version);
16963 #if DB_VERSION_MAJOR > 2
16964 db_env_create( NULL, 0 );
16965 #elif DB_VERSION_MAJOR > 1
16966 db_appexit( NULL );
16968 (void) dbopen( NULL, 0, 0, 0, NULL);
16973 if { (eval echo configure:16974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16977 echo "configure: failed program was:" >&5
16978 cat conftest.$ac_ext >&5
16988 echo "$ac_t""$ol_cv_db_db3" 1>&6
16990 if test $ol_cv_db_db3 = yes ; then
16995 if test $ol_cv_lib_db = no ; then
16996 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
16997 echo "configure:16998: checking for Berkeley DB link (-ldb-3)" >&5
16998 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
16999 echo $ac_n "(cached) $ac_c" 1>&6
17004 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17006 cat > conftest.$ac_ext <<EOF
17007 #line 17008 "configure"
17008 #include "confdefs.h"
17010 #ifdef HAVE_DB_185_H
17011 # include <db_185.h>
17016 #ifndef DB_VERSION_MAJOR
17017 # define DB_VERSION_MAJOR 1
17021 #define NULL ((void*)0)
17026 #if DB_VERSION_MAJOR > 1
17029 int major, minor, patch;
17031 version = db_version( &major, &minor, &patch );
17033 if( major != DB_VERSION_MAJOR ||
17034 minor < DB_VERSION_MINOR )
17036 printf("Berkeley DB version mismatch\n"
17037 "\texpected: %s\n\tgot: %s\n",
17038 DB_VERSION_STRING, version);
17044 #if DB_VERSION_MAJOR > 2
17045 db_env_create( NULL, 0 );
17046 #elif DB_VERSION_MAJOR > 1
17047 db_appexit( NULL );
17049 (void) dbopen( NULL, 0, 0, 0, NULL);
17054 if { (eval echo configure:17055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17058 echo "configure: failed program was:" >&5
17059 cat conftest.$ac_ext >&5
17069 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17071 if test $ol_cv_db_db_3 = yes ; then
17072 ol_cv_lib_db=-ldb-3
17076 if test $ol_cv_lib_db = no ; then
17077 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17078 echo "configure:17079: checking for Berkeley DB link (-ldb2)" >&5
17079 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17080 echo $ac_n "(cached) $ac_c" 1>&6
17085 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17087 cat > conftest.$ac_ext <<EOF
17088 #line 17089 "configure"
17089 #include "confdefs.h"
17091 #ifdef HAVE_DB_185_H
17092 # include <db_185.h>
17097 #ifndef DB_VERSION_MAJOR
17098 # define DB_VERSION_MAJOR 1
17102 #define NULL ((void*)0)
17107 #if DB_VERSION_MAJOR > 1
17110 int major, minor, patch;
17112 version = db_version( &major, &minor, &patch );
17114 if( major != DB_VERSION_MAJOR ||
17115 minor < DB_VERSION_MINOR )
17117 printf("Berkeley DB version mismatch\n"
17118 "\texpected: %s\n\tgot: %s\n",
17119 DB_VERSION_STRING, version);
17125 #if DB_VERSION_MAJOR > 2
17126 db_env_create( NULL, 0 );
17127 #elif DB_VERSION_MAJOR > 1
17128 db_appexit( NULL );
17130 (void) dbopen( NULL, 0, 0, 0, NULL);
17135 if { (eval echo configure:17136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17139 echo "configure: failed program was:" >&5
17140 cat conftest.$ac_ext >&5
17150 echo "$ac_t""$ol_cv_db_db2" 1>&6
17152 if test $ol_cv_db_db2 = yes ; then
17157 if test $ol_cv_lib_db = no ; then
17158 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17159 echo "configure:17160: checking for Berkeley DB link (-ldb-2)" >&5
17160 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17161 echo $ac_n "(cached) $ac_c" 1>&6
17166 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17168 cat > conftest.$ac_ext <<EOF
17169 #line 17170 "configure"
17170 #include "confdefs.h"
17172 #ifdef HAVE_DB_185_H
17173 # include <db_185.h>
17178 #ifndef DB_VERSION_MAJOR
17179 # define DB_VERSION_MAJOR 1
17183 #define NULL ((void*)0)
17188 #if DB_VERSION_MAJOR > 1
17191 int major, minor, patch;
17193 version = db_version( &major, &minor, &patch );
17195 if( major != DB_VERSION_MAJOR ||
17196 minor < DB_VERSION_MINOR )
17198 printf("Berkeley DB version mismatch\n"
17199 "\texpected: %s\n\tgot: %s\n",
17200 DB_VERSION_STRING, version);
17206 #if DB_VERSION_MAJOR > 2
17207 db_env_create( NULL, 0 );
17208 #elif DB_VERSION_MAJOR > 1
17209 db_appexit( NULL );
17211 (void) dbopen( NULL, 0, 0, 0, NULL);
17216 if { (eval echo configure:17217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17220 echo "configure: failed program was:" >&5
17221 cat conftest.$ac_ext >&5
17231 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17233 if test $ol_cv_db_db_2 = yes ; then
17234 ol_cv_lib_db=-ldb-2
17238 if test $ol_cv_lib_db = no ; then
17239 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17240 echo "configure:17241: checking for Berkeley DB link (-ldb1)" >&5
17241 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17242 echo $ac_n "(cached) $ac_c" 1>&6
17247 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17249 cat > conftest.$ac_ext <<EOF
17250 #line 17251 "configure"
17251 #include "confdefs.h"
17253 #ifdef HAVE_DB_185_H
17254 # include <db_185.h>
17259 #ifndef DB_VERSION_MAJOR
17260 # define DB_VERSION_MAJOR 1
17264 #define NULL ((void*)0)
17269 #if DB_VERSION_MAJOR > 1
17272 int major, minor, patch;
17274 version = db_version( &major, &minor, &patch );
17276 if( major != DB_VERSION_MAJOR ||
17277 minor < DB_VERSION_MINOR )
17279 printf("Berkeley DB version mismatch\n"
17280 "\texpected: %s\n\tgot: %s\n",
17281 DB_VERSION_STRING, version);
17287 #if DB_VERSION_MAJOR > 2
17288 db_env_create( NULL, 0 );
17289 #elif DB_VERSION_MAJOR > 1
17290 db_appexit( NULL );
17292 (void) dbopen( NULL, 0, 0, 0, NULL);
17297 if { (eval echo configure:17298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17301 echo "configure: failed program was:" >&5
17302 cat conftest.$ac_ext >&5
17312 echo "$ac_t""$ol_cv_db_db1" 1>&6
17314 if test $ol_cv_db_db1 = yes ; then
17319 if test $ol_cv_lib_db = no ; then
17320 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17321 echo "configure:17322: checking for Berkeley DB link (-ldb-1)" >&5
17322 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17323 echo $ac_n "(cached) $ac_c" 1>&6
17328 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17330 cat > conftest.$ac_ext <<EOF
17331 #line 17332 "configure"
17332 #include "confdefs.h"
17334 #ifdef HAVE_DB_185_H
17335 # include <db_185.h>
17340 #ifndef DB_VERSION_MAJOR
17341 # define DB_VERSION_MAJOR 1
17345 #define NULL ((void*)0)
17350 #if DB_VERSION_MAJOR > 1
17353 int major, minor, patch;
17355 version = db_version( &major, &minor, &patch );
17357 if( major != DB_VERSION_MAJOR ||
17358 minor < DB_VERSION_MINOR )
17360 printf("Berkeley DB version mismatch\n"
17361 "\texpected: %s\n\tgot: %s\n",
17362 DB_VERSION_STRING, version);
17368 #if DB_VERSION_MAJOR > 2
17369 db_env_create( NULL, 0 );
17370 #elif DB_VERSION_MAJOR > 1
17371 db_appexit( NULL );
17373 (void) dbopen( NULL, 0, 0, 0, NULL);
17378 if { (eval echo configure:17379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17382 echo "configure: failed program was:" >&5
17383 cat conftest.$ac_ext >&5
17393 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17395 if test $ol_cv_db_db_1 = yes ; then
17396 ol_cv_lib_db=-ldb-1
17401 if test "$ol_cv_lib_db" != no ; then
17402 ol_cv_berkeley_db=yes
17408 ol_cv_berkeley_db=no
17411 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17412 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17413 echo "configure:17414: checking for $ac_hdr" >&5
17414 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17415 echo $ac_n "(cached) $ac_c" 1>&6
17417 cat > conftest.$ac_ext <<EOF
17418 #line 17419 "configure"
17419 #include "confdefs.h"
17422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17423 { (eval echo configure:17424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17425 if test -z "$ac_err"; then
17427 eval "ac_cv_header_$ac_safe=yes"
17430 echo "configure: failed program was:" >&5
17431 cat conftest.$ac_ext >&5
17433 eval "ac_cv_header_$ac_safe=no"
17437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17438 echo "$ac_t""yes" 1>&6
17439 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17440 cat >> confdefs.h <<EOF
17441 #define $ac_tr_hdr 1
17445 echo "$ac_t""no" 1>&6
17449 if test $ac_cv_header_db_h = yes; then
17451 if test $ol_cv_lib_db = no ; then
17452 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17453 echo "configure:17454: checking for Berkeley DB link (default)" >&5
17454 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17455 echo $ac_n "(cached) $ac_c" 1>&6
17460 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17462 cat > conftest.$ac_ext <<EOF
17463 #line 17464 "configure"
17464 #include "confdefs.h"
17466 #ifdef HAVE_DB_185_H
17467 # include <db_185.h>
17472 #ifndef DB_VERSION_MAJOR
17473 # define DB_VERSION_MAJOR 1
17477 #define NULL ((void*)0)
17482 #if DB_VERSION_MAJOR > 1
17485 int major, minor, patch;
17487 version = db_version( &major, &minor, &patch );
17489 if( major != DB_VERSION_MAJOR ||
17490 minor < DB_VERSION_MINOR )
17492 printf("Berkeley DB version mismatch\n"
17493 "\texpected: %s\n\tgot: %s\n",
17494 DB_VERSION_STRING, version);
17500 #if DB_VERSION_MAJOR > 2
17501 db_env_create( NULL, 0 );
17502 #elif DB_VERSION_MAJOR > 1
17503 db_appexit( NULL );
17505 (void) dbopen( NULL, 0, 0, 0, NULL);
17510 if { (eval echo configure:17511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17514 echo "configure: failed program was:" >&5
17515 cat conftest.$ac_ext >&5
17525 echo "$ac_t""$ol_cv_db_none" 1>&6
17527 if test $ol_cv_db_none = yes ; then
17532 if test $ol_cv_lib_db = no ; then
17533 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17534 echo "configure:17535: checking for Berkeley DB link (-ldb4)" >&5
17535 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17536 echo $ac_n "(cached) $ac_c" 1>&6
17541 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17543 cat > conftest.$ac_ext <<EOF
17544 #line 17545 "configure"
17545 #include "confdefs.h"
17547 #ifdef HAVE_DB_185_H
17548 # include <db_185.h>
17553 #ifndef DB_VERSION_MAJOR
17554 # define DB_VERSION_MAJOR 1
17558 #define NULL ((void*)0)
17563 #if DB_VERSION_MAJOR > 1
17566 int major, minor, patch;
17568 version = db_version( &major, &minor, &patch );
17570 if( major != DB_VERSION_MAJOR ||
17571 minor < DB_VERSION_MINOR )
17573 printf("Berkeley DB version mismatch\n"
17574 "\texpected: %s\n\tgot: %s\n",
17575 DB_VERSION_STRING, version);
17581 #if DB_VERSION_MAJOR > 2
17582 db_env_create( NULL, 0 );
17583 #elif DB_VERSION_MAJOR > 1
17584 db_appexit( NULL );
17586 (void) dbopen( NULL, 0, 0, 0, NULL);
17591 if { (eval echo configure:17592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17595 echo "configure: failed program was:" >&5
17596 cat conftest.$ac_ext >&5
17606 echo "$ac_t""$ol_cv_db_db4" 1>&6
17608 if test $ol_cv_db_db4 = yes ; then
17613 if test $ol_cv_lib_db = no ; then
17614 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17615 echo "configure:17616: checking for Berkeley DB link (-ldb-4)" >&5
17616 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17617 echo $ac_n "(cached) $ac_c" 1>&6
17622 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17624 cat > conftest.$ac_ext <<EOF
17625 #line 17626 "configure"
17626 #include "confdefs.h"
17628 #ifdef HAVE_DB_185_H
17629 # include <db_185.h>
17634 #ifndef DB_VERSION_MAJOR
17635 # define DB_VERSION_MAJOR 1
17639 #define NULL ((void*)0)
17644 #if DB_VERSION_MAJOR > 1
17647 int major, minor, patch;
17649 version = db_version( &major, &minor, &patch );
17651 if( major != DB_VERSION_MAJOR ||
17652 minor < DB_VERSION_MINOR )
17654 printf("Berkeley DB version mismatch\n"
17655 "\texpected: %s\n\tgot: %s\n",
17656 DB_VERSION_STRING, version);
17662 #if DB_VERSION_MAJOR > 2
17663 db_env_create( NULL, 0 );
17664 #elif DB_VERSION_MAJOR > 1
17665 db_appexit( NULL );
17667 (void) dbopen( NULL, 0, 0, 0, NULL);
17672 if { (eval echo configure:17673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17676 echo "configure: failed program was:" >&5
17677 cat conftest.$ac_ext >&5
17687 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17689 if test $ol_cv_db_db_4 = yes ; then
17690 ol_cv_lib_db=-ldb-4
17694 if test $ol_cv_lib_db = no ; then
17695 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17696 echo "configure:17697: checking for Berkeley DB link (-ldb)" >&5
17697 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17698 echo $ac_n "(cached) $ac_c" 1>&6
17703 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17705 cat > conftest.$ac_ext <<EOF
17706 #line 17707 "configure"
17707 #include "confdefs.h"
17709 #ifdef HAVE_DB_185_H
17710 # include <db_185.h>
17715 #ifndef DB_VERSION_MAJOR
17716 # define DB_VERSION_MAJOR 1
17720 #define NULL ((void*)0)
17725 #if DB_VERSION_MAJOR > 1
17728 int major, minor, patch;
17730 version = db_version( &major, &minor, &patch );
17732 if( major != DB_VERSION_MAJOR ||
17733 minor < DB_VERSION_MINOR )
17735 printf("Berkeley DB version mismatch\n"
17736 "\texpected: %s\n\tgot: %s\n",
17737 DB_VERSION_STRING, version);
17743 #if DB_VERSION_MAJOR > 2
17744 db_env_create( NULL, 0 );
17745 #elif DB_VERSION_MAJOR > 1
17746 db_appexit( NULL );
17748 (void) dbopen( NULL, 0, 0, 0, NULL);
17753 if { (eval echo configure:17754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17757 echo "configure: failed program was:" >&5
17758 cat conftest.$ac_ext >&5
17768 echo "$ac_t""$ol_cv_db_db" 1>&6
17770 if test $ol_cv_db_db = yes ; then
17775 if test $ol_cv_lib_db = no ; then
17776 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17777 echo "configure:17778: checking for Berkeley DB link (-ldb3)" >&5
17778 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17779 echo $ac_n "(cached) $ac_c" 1>&6
17784 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17786 cat > conftest.$ac_ext <<EOF
17787 #line 17788 "configure"
17788 #include "confdefs.h"
17790 #ifdef HAVE_DB_185_H
17791 # include <db_185.h>
17796 #ifndef DB_VERSION_MAJOR
17797 # define DB_VERSION_MAJOR 1
17801 #define NULL ((void*)0)
17806 #if DB_VERSION_MAJOR > 1
17809 int major, minor, patch;
17811 version = db_version( &major, &minor, &patch );
17813 if( major != DB_VERSION_MAJOR ||
17814 minor < DB_VERSION_MINOR )
17816 printf("Berkeley DB version mismatch\n"
17817 "\texpected: %s\n\tgot: %s\n",
17818 DB_VERSION_STRING, version);
17824 #if DB_VERSION_MAJOR > 2
17825 db_env_create( NULL, 0 );
17826 #elif DB_VERSION_MAJOR > 1
17827 db_appexit( NULL );
17829 (void) dbopen( NULL, 0, 0, 0, NULL);
17834 if { (eval echo configure:17835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17838 echo "configure: failed program was:" >&5
17839 cat conftest.$ac_ext >&5
17849 echo "$ac_t""$ol_cv_db_db3" 1>&6
17851 if test $ol_cv_db_db3 = yes ; then
17856 if test $ol_cv_lib_db = no ; then
17857 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17858 echo "configure:17859: checking for Berkeley DB link (-ldb-3)" >&5
17859 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17860 echo $ac_n "(cached) $ac_c" 1>&6
17865 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17867 cat > conftest.$ac_ext <<EOF
17868 #line 17869 "configure"
17869 #include "confdefs.h"
17871 #ifdef HAVE_DB_185_H
17872 # include <db_185.h>
17877 #ifndef DB_VERSION_MAJOR
17878 # define DB_VERSION_MAJOR 1
17882 #define NULL ((void*)0)
17887 #if DB_VERSION_MAJOR > 1
17890 int major, minor, patch;
17892 version = db_version( &major, &minor, &patch );
17894 if( major != DB_VERSION_MAJOR ||
17895 minor < DB_VERSION_MINOR )
17897 printf("Berkeley DB version mismatch\n"
17898 "\texpected: %s\n\tgot: %s\n",
17899 DB_VERSION_STRING, version);
17905 #if DB_VERSION_MAJOR > 2
17906 db_env_create( NULL, 0 );
17907 #elif DB_VERSION_MAJOR > 1
17908 db_appexit( NULL );
17910 (void) dbopen( NULL, 0, 0, 0, NULL);
17915 if { (eval echo configure:17916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17919 echo "configure: failed program was:" >&5
17920 cat conftest.$ac_ext >&5
17930 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17932 if test $ol_cv_db_db_3 = yes ; then
17933 ol_cv_lib_db=-ldb-3
17937 if test $ol_cv_lib_db = no ; then
17938 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17939 echo "configure:17940: checking for Berkeley DB link (-ldb2)" >&5
17940 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17941 echo $ac_n "(cached) $ac_c" 1>&6
17946 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17948 cat > conftest.$ac_ext <<EOF
17949 #line 17950 "configure"
17950 #include "confdefs.h"
17952 #ifdef HAVE_DB_185_H
17953 # include <db_185.h>
17958 #ifndef DB_VERSION_MAJOR
17959 # define DB_VERSION_MAJOR 1
17963 #define NULL ((void*)0)
17968 #if DB_VERSION_MAJOR > 1
17971 int major, minor, patch;
17973 version = db_version( &major, &minor, &patch );
17975 if( major != DB_VERSION_MAJOR ||
17976 minor < DB_VERSION_MINOR )
17978 printf("Berkeley DB version mismatch\n"
17979 "\texpected: %s\n\tgot: %s\n",
17980 DB_VERSION_STRING, version);
17986 #if DB_VERSION_MAJOR > 2
17987 db_env_create( NULL, 0 );
17988 #elif DB_VERSION_MAJOR > 1
17989 db_appexit( NULL );
17991 (void) dbopen( NULL, 0, 0, 0, NULL);
17996 if { (eval echo configure:17997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18000 echo "configure: failed program was:" >&5
18001 cat conftest.$ac_ext >&5
18011 echo "$ac_t""$ol_cv_db_db2" 1>&6
18013 if test $ol_cv_db_db2 = yes ; then
18018 if test $ol_cv_lib_db = no ; then
18019 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18020 echo "configure:18021: checking for Berkeley DB link (-ldb-2)" >&5
18021 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18022 echo $ac_n "(cached) $ac_c" 1>&6
18027 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18029 cat > conftest.$ac_ext <<EOF
18030 #line 18031 "configure"
18031 #include "confdefs.h"
18033 #ifdef HAVE_DB_185_H
18034 # include <db_185.h>
18039 #ifndef DB_VERSION_MAJOR
18040 # define DB_VERSION_MAJOR 1
18044 #define NULL ((void*)0)
18049 #if DB_VERSION_MAJOR > 1
18052 int major, minor, patch;
18054 version = db_version( &major, &minor, &patch );
18056 if( major != DB_VERSION_MAJOR ||
18057 minor < DB_VERSION_MINOR )
18059 printf("Berkeley DB version mismatch\n"
18060 "\texpected: %s\n\tgot: %s\n",
18061 DB_VERSION_STRING, version);
18067 #if DB_VERSION_MAJOR > 2
18068 db_env_create( NULL, 0 );
18069 #elif DB_VERSION_MAJOR > 1
18070 db_appexit( NULL );
18072 (void) dbopen( NULL, 0, 0, 0, NULL);
18077 if { (eval echo configure:18078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18081 echo "configure: failed program was:" >&5
18082 cat conftest.$ac_ext >&5
18092 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18094 if test $ol_cv_db_db_2 = yes ; then
18095 ol_cv_lib_db=-ldb-2
18099 if test $ol_cv_lib_db = no ; then
18100 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18101 echo "configure:18102: checking for Berkeley DB link (-ldb1)" >&5
18102 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18103 echo $ac_n "(cached) $ac_c" 1>&6
18108 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18110 cat > conftest.$ac_ext <<EOF
18111 #line 18112 "configure"
18112 #include "confdefs.h"
18114 #ifdef HAVE_DB_185_H
18115 # include <db_185.h>
18120 #ifndef DB_VERSION_MAJOR
18121 # define DB_VERSION_MAJOR 1
18125 #define NULL ((void*)0)
18130 #if DB_VERSION_MAJOR > 1
18133 int major, minor, patch;
18135 version = db_version( &major, &minor, &patch );
18137 if( major != DB_VERSION_MAJOR ||
18138 minor < DB_VERSION_MINOR )
18140 printf("Berkeley DB version mismatch\n"
18141 "\texpected: %s\n\tgot: %s\n",
18142 DB_VERSION_STRING, version);
18148 #if DB_VERSION_MAJOR > 2
18149 db_env_create( NULL, 0 );
18150 #elif DB_VERSION_MAJOR > 1
18151 db_appexit( NULL );
18153 (void) dbopen( NULL, 0, 0, 0, NULL);
18158 if { (eval echo configure:18159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18162 echo "configure: failed program was:" >&5
18163 cat conftest.$ac_ext >&5
18173 echo "$ac_t""$ol_cv_db_db1" 1>&6
18175 if test $ol_cv_db_db1 = yes ; then
18180 if test $ol_cv_lib_db = no ; then
18181 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18182 echo "configure:18183: checking for Berkeley DB link (-ldb-1)" >&5
18183 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18184 echo $ac_n "(cached) $ac_c" 1>&6
18189 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18191 cat > conftest.$ac_ext <<EOF
18192 #line 18193 "configure"
18193 #include "confdefs.h"
18195 #ifdef HAVE_DB_185_H
18196 # include <db_185.h>
18201 #ifndef DB_VERSION_MAJOR
18202 # define DB_VERSION_MAJOR 1
18206 #define NULL ((void*)0)
18211 #if DB_VERSION_MAJOR > 1
18214 int major, minor, patch;
18216 version = db_version( &major, &minor, &patch );
18218 if( major != DB_VERSION_MAJOR ||
18219 minor < DB_VERSION_MINOR )
18221 printf("Berkeley DB version mismatch\n"
18222 "\texpected: %s\n\tgot: %s\n",
18223 DB_VERSION_STRING, version);
18229 #if DB_VERSION_MAJOR > 2
18230 db_env_create( NULL, 0 );
18231 #elif DB_VERSION_MAJOR > 1
18232 db_appexit( NULL );
18234 (void) dbopen( NULL, 0, 0, 0, NULL);
18239 if { (eval echo configure:18240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18243 echo "configure: failed program was:" >&5
18244 cat conftest.$ac_ext >&5
18254 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18256 if test $ol_cv_db_db_1 = yes ; then
18257 ol_cv_lib_db=-ldb-1
18262 if test "$ol_cv_lib_db" != no ; then
18263 ol_cv_berkeley_db=yes
18264 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18265 echo "configure:18266: checking for Berkeley DB thread support" >&5
18266 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18267 echo $ac_n "(cached) $ac_c" 1>&6
18271 LIBS="$LTHREAD_LIBS $LIBS"
18272 if test $ol_cv_lib_db != yes ; then
18273 LIBS="$ol_cv_lib_db $LIBS"
18276 if test "$cross_compiling" = yes; then
18277 ol_cv_berkeley_db_thread=cross
18279 cat > conftest.$ac_ext <<EOF
18280 #line 18281 "configure"
18281 #include "confdefs.h"
18283 #ifdef HAVE_DB_185_H
18289 #define NULL ((void *)0)
18294 u_int32_t flags = DB_CREATE |
18300 #if DB_VERSION_MAJOR > 2
18301 DB_ENV *env = NULL;
18303 rc = db_env_create( &env, 0 );
18305 flags |= DB_INIT_MPOOL;
18306 #ifdef DB_MPOOL_PRIVATE
18307 flags |= DB_MPOOL_PRIVATE;
18311 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18315 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18316 rc = env->open( env, NULL, flags, 0 );
18318 rc = env->open( env, NULL, NULL, flags, 0 );
18322 rc = env->close( env, 0 );
18326 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18332 memset( &env, '\0', sizeof(env) );
18334 rc = db_appinit( NULL, NULL, &env, flags );
18337 db_appexit( &env );
18340 unlink("__db_mpool.share");
18341 unlink("__db_lock.share");
18347 if { (eval echo configure:18348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18349 ol_cv_berkeley_db_thread=yes
18351 echo "configure: failed program was:" >&5
18352 cat conftest.$ac_ext >&5
18354 ol_cv_berkeley_db_thread=no
18364 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18366 if test $ol_cv_berkeley_db_thread != no ; then
18367 cat >> confdefs.h <<\EOF
18368 #define HAVE_BERKELEY_DB_THREAD 1
18378 if test $ol_cv_berkeley_db != no ; then
18379 cat >> confdefs.h <<\EOF
18380 #define HAVE_BERKELEY_DB 1
18384 ol_link_ldbm=berkeley
18385 ol_with_ldbm_api=berkeley
18387 if test $ol_with_ldbm_type = hash ; then
18388 cat >> confdefs.h <<\EOF
18389 #define LDBM_USE_DBHASH 1
18393 cat >> confdefs.h <<\EOF
18394 #define LDBM_USE_DBBTREE 1
18399 if test $ol_cv_lib_db != yes ; then
18400 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18405 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18406 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18407 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18408 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18409 echo "configure:18410: checking Berkeley DB version for BDB backend" >&5
18410 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18411 echo $ac_n "(cached) $ac_c" 1>&6
18414 cat > conftest.$ac_ext <<EOF
18415 #line 18416 "configure"
18416 #include "confdefs.h"
18420 /* this check could be improved */
18421 #ifndef DB_VERSION_MAJOR
18422 # define DB_VERSION_MAJOR 1
18425 /* require 4.0 or later */
18426 #if DB_VERSION_MAJOR >= 4
18427 __db_version_compat
18431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18432 egrep "__db_version_compat" >/dev/null 2>&1; then
18434 ol_cv_bdb_compat=yes
18437 ol_cv_bdb_compat=no
18443 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18446 if test $ol_cv_bdb_compat = yes ; then
18448 elif test $ol_enable_bdb = yes ; then
18449 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18455 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18456 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18457 ol_with_ldbm_api=none
18460 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18461 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18462 echo "configure:18463: checking for MDBM library" >&5
18463 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18464 echo $ac_n "(cached) $ac_c" 1>&6
18467 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18468 echo "configure:18469: checking for mdbm_set_chain" >&5
18469 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18470 echo $ac_n "(cached) $ac_c" 1>&6
18472 cat > conftest.$ac_ext <<EOF
18473 #line 18474 "configure"
18474 #include "confdefs.h"
18475 /* System header to define __stub macros and hopefully few prototypes,
18476 which can conflict with char mdbm_set_chain(); below. */
18477 #include <assert.h>
18478 /* Override any gcc2 internal prototype to avoid an error. */
18479 /* We use char because int might match the return type of a gcc2
18480 builtin and then its argument prototype would still apply. */
18481 char mdbm_set_chain();
18486 /* The GNU C library defines this for functions which it implements
18487 to always fail with ENOSYS. Some functions are actually named
18488 something starting with __ and the normal name is an alias. */
18489 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18492 f = mdbm_set_chain;
18497 if { (eval echo configure:18498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18499 eval "ac_cv_func_mdbm_set_chain=yes"
18501 echo "configure: failed program was:" >&5
18502 cat conftest.$ac_ext >&5
18504 eval "ac_cv_func_mdbm_set_chain=no"
18509 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18510 echo "$ac_t""yes" 1>&6
18513 echo "$ac_t""no" 1>&6
18515 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18516 echo "configure:18517: checking for mdbm_set_chain in -lmdbm" >&5
18517 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18518 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18519 echo $ac_n "(cached) $ac_c" 1>&6
18521 ac_save_LIBS="$LIBS"
18522 LIBS="-lmdbm $LIBS"
18523 cat > conftest.$ac_ext <<EOF
18524 #line 18525 "configure"
18525 #include "confdefs.h"
18526 /* Override any gcc2 internal prototype to avoid an error. */
18527 /* We use char because int might match the return type of a gcc2
18528 builtin and then its argument prototype would still apply. */
18529 char mdbm_set_chain();
18535 if { (eval echo configure:18536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18537 eval "ac_cv_lib_$ac_lib_var=yes"
18539 echo "configure: failed program was:" >&5
18540 cat conftest.$ac_ext >&5
18542 eval "ac_cv_lib_$ac_lib_var=no"
18545 LIBS="$ac_save_LIBS"
18548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18549 echo "$ac_t""yes" 1>&6
18550 ol_cv_lib_mdbm=-lmdbm
18552 echo "$ac_t""no" 1>&6
18563 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18566 for ac_hdr in mdbm.h
18568 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18569 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18570 echo "configure:18571: checking for $ac_hdr" >&5
18571 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18572 echo $ac_n "(cached) $ac_c" 1>&6
18574 cat > conftest.$ac_ext <<EOF
18575 #line 18576 "configure"
18576 #include "confdefs.h"
18579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18580 { (eval echo configure:18581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18582 if test -z "$ac_err"; then
18584 eval "ac_cv_header_$ac_safe=yes"
18587 echo "configure: failed program was:" >&5
18588 cat conftest.$ac_ext >&5
18590 eval "ac_cv_header_$ac_safe=no"
18594 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18595 echo "$ac_t""yes" 1>&6
18596 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18597 cat >> confdefs.h <<EOF
18598 #define $ac_tr_hdr 1
18602 echo "$ac_t""no" 1>&6
18606 echo $ac_n "checking for db""... $ac_c" 1>&6
18607 echo "configure:18608: checking for db" >&5
18608 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18609 echo $ac_n "(cached) $ac_c" 1>&6
18612 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18620 echo "$ac_t""$ol_cv_mdbm" 1>&6
18621 if test $ol_cv_mdbm = yes ; then
18622 cat >> confdefs.h <<\EOF
18623 #define HAVE_MDBM 1
18629 if test $ol_cv_mdbm = yes ; then
18631 ol_with_ldbm_api=mdbm
18632 if test $ol_cv_lib_mdbm != yes ; then
18633 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18638 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18639 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18640 echo "configure:18641: checking for GDBM library" >&5
18641 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18642 echo $ac_n "(cached) $ac_c" 1>&6
18645 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18646 echo "configure:18647: checking for gdbm_open" >&5
18647 if eval "test \"\${ac_cv_func_gdbm_open+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"
18653 /* System header to define __stub macros and hopefully few prototypes,
18654 which can conflict with char gdbm_open(); below. */
18655 #include <assert.h>
18656 /* Override any gcc2 internal prototype to avoid an error. */
18657 /* We use char because int might match the return type of a gcc2
18658 builtin and then its argument prototype would still apply. */
18664 /* The GNU C library defines this for functions which it implements
18665 to always fail with ENOSYS. Some functions are actually named
18666 something starting with __ and the normal name is an alias. */
18667 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18675 if { (eval echo configure:18676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18677 eval "ac_cv_func_gdbm_open=yes"
18679 echo "configure: failed program was:" >&5
18680 cat conftest.$ac_ext >&5
18682 eval "ac_cv_func_gdbm_open=no"
18687 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18688 echo "$ac_t""yes" 1>&6
18691 echo "$ac_t""no" 1>&6
18693 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18694 echo "configure:18695: checking for gdbm_open in -lgdbm" >&5
18695 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18696 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18697 echo $ac_n "(cached) $ac_c" 1>&6
18699 ac_save_LIBS="$LIBS"
18700 LIBS="-lgdbm $LIBS"
18701 cat > conftest.$ac_ext <<EOF
18702 #line 18703 "configure"
18703 #include "confdefs.h"
18704 /* Override any gcc2 internal prototype to avoid an error. */
18705 /* We use char because int might match the return type of a gcc2
18706 builtin and then its argument prototype would still apply. */
18713 if { (eval echo configure:18714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18715 eval "ac_cv_lib_$ac_lib_var=yes"
18717 echo "configure: failed program was:" >&5
18718 cat conftest.$ac_ext >&5
18720 eval "ac_cv_lib_$ac_lib_var=no"
18723 LIBS="$ac_save_LIBS"
18726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18727 echo "$ac_t""yes" 1>&6
18728 ol_cv_lib_gdbm=-lgdbm
18730 echo "$ac_t""no" 1>&6
18741 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18744 for ac_hdr in gdbm.h
18746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18748 echo "configure:18749: checking for $ac_hdr" >&5
18749 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18750 echo $ac_n "(cached) $ac_c" 1>&6
18752 cat > conftest.$ac_ext <<EOF
18753 #line 18754 "configure"
18754 #include "confdefs.h"
18757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18758 { (eval echo configure:18759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18760 if test -z "$ac_err"; then
18762 eval "ac_cv_header_$ac_safe=yes"
18765 echo "configure: failed program was:" >&5
18766 cat conftest.$ac_ext >&5
18768 eval "ac_cv_header_$ac_safe=no"
18772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18773 echo "$ac_t""yes" 1>&6
18774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18775 cat >> confdefs.h <<EOF
18776 #define $ac_tr_hdr 1
18780 echo "$ac_t""no" 1>&6
18784 echo $ac_n "checking for db""... $ac_c" 1>&6
18785 echo "configure:18786: checking for db" >&5
18786 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18787 echo $ac_n "(cached) $ac_c" 1>&6
18790 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18798 echo "$ac_t""$ol_cv_gdbm" 1>&6
18799 if test $ol_cv_gdbm = yes ; then
18800 cat >> confdefs.h <<\EOF
18801 #define HAVE_GDBM 1
18807 if test $ol_cv_gdbm = yes ; then
18809 ol_with_ldbm_api=gdbm
18811 if test $ol_cv_lib_gdbm != yes ; then
18812 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
18817 if test $ol_with_ldbm_api = ndbm ; then
18818 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
18819 echo "configure:18820: checking for NDBM library" >&5
18820 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
18821 echo $ac_n "(cached) $ac_c" 1>&6
18824 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
18825 echo "configure:18826: checking for dbm_open" >&5
18826 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
18827 echo $ac_n "(cached) $ac_c" 1>&6
18829 cat > conftest.$ac_ext <<EOF
18830 #line 18831 "configure"
18831 #include "confdefs.h"
18832 /* System header to define __stub macros and hopefully few prototypes,
18833 which can conflict with char dbm_open(); below. */
18834 #include <assert.h>
18835 /* Override any gcc2 internal prototype to avoid an error. */
18836 /* We use char because int might match the return type of a gcc2
18837 builtin and then its argument prototype would still apply. */
18843 /* The GNU C library defines this for functions which it implements
18844 to always fail with ENOSYS. Some functions are actually named
18845 something starting with __ and the normal name is an alias. */
18846 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
18854 if { (eval echo configure:18855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18856 eval "ac_cv_func_dbm_open=yes"
18858 echo "configure: failed program was:" >&5
18859 cat conftest.$ac_ext >&5
18861 eval "ac_cv_func_dbm_open=no"
18866 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
18867 echo "$ac_t""yes" 1>&6
18870 echo "$ac_t""no" 1>&6
18872 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
18873 echo "configure:18874: checking for dbm_open in -lndbm" >&5
18874 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18875 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18876 echo $ac_n "(cached) $ac_c" 1>&6
18878 ac_save_LIBS="$LIBS"
18879 LIBS="-lndbm $LIBS"
18880 cat > conftest.$ac_ext <<EOF
18881 #line 18882 "configure"
18882 #include "confdefs.h"
18883 /* Override any gcc2 internal prototype to avoid an error. */
18884 /* We use char because int might match the return type of a gcc2
18885 builtin and then its argument prototype would still apply. */
18892 if { (eval echo configure:18893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18894 eval "ac_cv_lib_$ac_lib_var=yes"
18896 echo "configure: failed program was:" >&5
18897 cat conftest.$ac_ext >&5
18899 eval "ac_cv_lib_$ac_lib_var=no"
18902 LIBS="$ac_save_LIBS"
18905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18906 echo "$ac_t""yes" 1>&6
18907 ol_cv_lib_ndbm=-lndbm
18909 echo "$ac_t""no" 1>&6
18911 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
18912 echo "configure:18913: checking for dbm_open in -ldbm" >&5
18913 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18914 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18915 echo $ac_n "(cached) $ac_c" 1>&6
18917 ac_save_LIBS="$LIBS"
18919 cat > conftest.$ac_ext <<EOF
18920 #line 18921 "configure"
18921 #include "confdefs.h"
18922 /* Override any gcc2 internal prototype to avoid an error. */
18923 /* We use char because int might match the return type of a gcc2
18924 builtin and then its argument prototype would still apply. */
18931 if { (eval echo configure:18932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18933 eval "ac_cv_lib_$ac_lib_var=yes"
18935 echo "configure: failed program was:" >&5
18936 cat conftest.$ac_ext >&5
18938 eval "ac_cv_lib_$ac_lib_var=no"
18941 LIBS="$ac_save_LIBS"
18944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18945 echo "$ac_t""yes" 1>&6
18946 ol_cv_lib_ndbm=-ldbm
18948 echo "$ac_t""no" 1>&6
18961 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
18964 for ac_hdr in ndbm.h
18966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18968 echo "configure:18969: checking for $ac_hdr" >&5
18969 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18970 echo $ac_n "(cached) $ac_c" 1>&6
18972 cat > conftest.$ac_ext <<EOF
18973 #line 18974 "configure"
18974 #include "confdefs.h"
18977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18978 { (eval echo configure:18979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18980 if test -z "$ac_err"; then
18982 eval "ac_cv_header_$ac_safe=yes"
18985 echo "configure: failed program was:" >&5
18986 cat conftest.$ac_ext >&5
18988 eval "ac_cv_header_$ac_safe=no"
18992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18993 echo "$ac_t""yes" 1>&6
18994 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18995 cat >> confdefs.h <<EOF
18996 #define $ac_tr_hdr 1
19000 echo "$ac_t""no" 1>&6
19004 echo $ac_n "checking for db""... $ac_c" 1>&6
19005 echo "configure:19006: checking for db" >&5
19006 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19007 echo $ac_n "(cached) $ac_c" 1>&6
19010 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19018 echo "$ac_t""$ol_cv_ndbm" 1>&6
19019 if test $ol_cv_ndbm = yes ; then
19020 cat >> confdefs.h <<\EOF
19021 #define HAVE_NDBM 1
19027 if test $ol_cv_ndbm = yes ; then
19029 ol_with_ldbm_api=ndbm
19031 if test $ol_cv_lib_ndbm != yes ; then
19032 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19037 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19038 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19039 if test $ol_enable_ldbm = yes ; then
19040 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19043 echo "configure: warning: disabling LDBM" 1>&2
19047 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19048 BUILD_LIBS_DYNAMIC=shared
19049 cat >> confdefs.h <<\EOF
19050 #define LDAP_LIBS_DYNAMIC 1
19054 BUILD_LIBS_DYNAMIC=static
19057 if test $ol_enable_wrappers != no ; then
19058 for ac_hdr in tcpd.h
19060 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19061 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19062 echo "configure:19063: checking for $ac_hdr" >&5
19063 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19064 echo $ac_n "(cached) $ac_c" 1>&6
19066 cat > conftest.$ac_ext <<EOF
19067 #line 19068 "configure"
19068 #include "confdefs.h"
19071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19072 { (eval echo configure:19073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19074 if test -z "$ac_err"; then
19076 eval "ac_cv_header_$ac_safe=yes"
19079 echo "configure: failed program was:" >&5
19080 cat conftest.$ac_ext >&5
19082 eval "ac_cv_header_$ac_safe=no"
19086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19087 echo "$ac_t""yes" 1>&6
19088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19089 cat >> confdefs.h <<EOF
19090 #define $ac_tr_hdr 1
19093 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19094 echo "configure:19095: checking for TCP wrappers library" >&5
19096 LIBS="$LIBS -lwrap"
19097 cat > conftest.$ac_ext <<EOF
19098 #line 19099 "configure"
19099 #include "confdefs.h"
19102 int allow_severity = 0;
19103 int deny_severity = 0;
19105 struct request_info *req;
19113 if { (eval echo configure:19114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19115 echo "$ac_t""-lwrap" 1>&6
19119 echo "configure: failed program was:" >&5
19120 cat conftest.$ac_ext >&5
19124 cat > conftest.$ac_ext <<EOF
19125 #line 19126 "configure"
19126 #include "confdefs.h"
19129 int allow_severity = 0;
19130 int deny_severity = 0;
19132 struct request_info *req;
19140 if { (eval echo configure:19141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19142 echo "$ac_t""-lwrap -lnsl" 1>&6
19144 LIBS="$save_LIBS -lnsl"
19146 echo "configure: failed program was:" >&5
19147 cat conftest.$ac_ext >&5
19150 echo "$ac_t""no" 1>&6
19158 echo "$ac_t""no" 1>&6
19164 if test $have_wrappers = yes ; then
19165 cat >> confdefs.h <<\EOF
19166 #define HAVE_TCPD 1
19170 elif test $ol_enable_wrappers = yes ; then
19171 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19173 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19178 if test $ol_enable_syslog != no ; then
19179 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19180 echo "configure:19181: checking for openlog" >&5
19181 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19182 echo $ac_n "(cached) $ac_c" 1>&6
19184 cat > conftest.$ac_ext <<EOF
19185 #line 19186 "configure"
19186 #include "confdefs.h"
19187 /* System header to define __stub macros and hopefully few prototypes,
19188 which can conflict with char openlog(); below. */
19189 #include <assert.h>
19190 /* Override any gcc2 internal prototype to avoid an error. */
19191 /* We use char because int might match the return type of a gcc2
19192 builtin and then its argument prototype would still apply. */
19198 /* The GNU C library defines this for functions which it implements
19199 to always fail with ENOSYS. Some functions are actually named
19200 something starting with __ and the normal name is an alias. */
19201 #if defined (__stub_openlog) || defined (__stub___openlog)
19209 if { (eval echo configure:19210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19211 eval "ac_cv_func_openlog=yes"
19213 echo "configure: failed program was:" >&5
19214 cat conftest.$ac_ext >&5
19216 eval "ac_cv_func_openlog=no"
19221 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19222 echo "$ac_t""yes" 1>&6
19225 echo "$ac_t""no" 1>&6
19228 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19229 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19231 ol_enable_syslog=$ac_cv_func_openlog
19236 if test $ol_enable_sql != no ; then
19237 for ac_hdr in sql.h sqlext.h
19239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19241 echo "configure:19242: checking for $ac_hdr" >&5
19242 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19243 echo $ac_n "(cached) $ac_c" 1>&6
19245 cat > conftest.$ac_ext <<EOF
19246 #line 19247 "configure"
19247 #include "confdefs.h"
19250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19251 { (eval echo configure:19252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19253 if test -z "$ac_err"; then
19255 eval "ac_cv_header_$ac_safe=yes"
19258 echo "configure: failed program was:" >&5
19259 cat conftest.$ac_ext >&5
19261 eval "ac_cv_header_$ac_safe=no"
19265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19266 echo "$ac_t""yes" 1>&6
19267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19268 cat >> confdefs.h <<EOF
19269 #define $ac_tr_hdr 1
19273 echo "$ac_t""no" 1>&6
19274 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
19280 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19281 echo "configure:19282: checking for SQLDriverConnect in -liodbc" >&5
19282 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19283 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19284 echo $ac_n "(cached) $ac_c" 1>&6
19286 ac_save_LIBS="$LIBS"
19287 LIBS="-liodbc $LIBS"
19288 cat > conftest.$ac_ext <<EOF
19289 #line 19290 "configure"
19290 #include "confdefs.h"
19291 /* Override any gcc2 internal prototype to avoid an error. */
19292 /* We use char because int might match the return type of a gcc2
19293 builtin and then its argument prototype would still apply. */
19294 char SQLDriverConnect();
19300 if { (eval echo configure:19301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19302 eval "ac_cv_lib_$ac_lib_var=yes"
19304 echo "configure: failed program was:" >&5
19305 cat conftest.$ac_ext >&5
19307 eval "ac_cv_lib_$ac_lib_var=no"
19310 LIBS="$ac_save_LIBS"
19313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19314 echo "$ac_t""yes" 1>&6
19317 echo "$ac_t""no" 1>&6
19321 if test $have_iodbc = yes ; then
19322 ol_link_sql="-liodbc"
19324 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19325 echo "configure:19326: checking for SQLDriverConnect in -lodbc" >&5
19326 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19327 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19328 echo $ac_n "(cached) $ac_c" 1>&6
19330 ac_save_LIBS="$LIBS"
19331 LIBS="-lodbc $LIBS"
19332 cat > conftest.$ac_ext <<EOF
19333 #line 19334 "configure"
19334 #include "confdefs.h"
19335 /* Override any gcc2 internal prototype to avoid an error. */
19336 /* We use char because int might match the return type of a gcc2
19337 builtin and then its argument prototype would still apply. */
19338 char SQLDriverConnect();
19344 if { (eval echo configure:19345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19346 eval "ac_cv_lib_$ac_lib_var=yes"
19348 echo "configure: failed program was:" >&5
19349 cat conftest.$ac_ext >&5
19351 eval "ac_cv_lib_$ac_lib_var=no"
19354 LIBS="$ac_save_LIBS"
19357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19358 echo "$ac_t""yes" 1>&6
19361 echo "$ac_t""no" 1>&6
19365 if test $have_odbc = yes ; then
19366 ol_link_sql="-lodbc"
19370 if test $ol_link_sql != no ; then
19371 SLAPD_SQL_LIBS="$ol_link_sql"
19373 elif test $ol_enable_sql != auto ; then
19374 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19378 if test $ol_enable_tcl != no ; then
19379 for ac_hdr in tcl.h
19381 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19383 echo "configure:19384: checking for $ac_hdr" >&5
19384 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19385 echo $ac_n "(cached) $ac_c" 1>&6
19387 cat > conftest.$ac_ext <<EOF
19388 #line 19389 "configure"
19389 #include "confdefs.h"
19392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19393 { (eval echo configure:19394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19395 if test -z "$ac_err"; then
19397 eval "ac_cv_header_$ac_safe=yes"
19400 echo "configure: failed program was:" >&5
19401 cat conftest.$ac_ext >&5
19403 eval "ac_cv_header_$ac_safe=no"
19407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19408 echo "$ac_t""yes" 1>&6
19409 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19410 cat >> confdefs.h <<EOF
19411 #define $ac_tr_hdr 1
19415 echo "$ac_t""no" 1>&6
19420 if test $ac_cv_header_tcl_h != yes ; then
19423 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
19424 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
19425 echo "configure:19426: checking for main in -l$lib" >&5
19426 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
19427 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19428 echo $ac_n "(cached) $ac_c" 1>&6
19430 ac_save_LIBS="$LIBS"
19431 LIBS="-l$lib $LIBS"
19432 cat > conftest.$ac_ext <<EOF
19433 #line 19434 "configure"
19434 #include "confdefs.h"
19440 if { (eval echo configure:19441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19442 eval "ac_cv_lib_$ac_lib_var=yes"
19444 echo "configure: failed program was:" >&5
19445 cat conftest.$ac_ext >&5
19447 eval "ac_cv_lib_$ac_lib_var=no"
19450 LIBS="$ac_save_LIBS"
19453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19454 echo "$ac_t""yes" 1>&6
19456 if test x"$ol_with_tcl_module" = "xstatic" ; then
19457 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
19459 MOD_TCL_LIB="-l${lib}"
19462 echo "$ac_t""no" 1>&6
19469 if test $have_tcl != yes ; then
19470 echo "configure: warning: could not find -ltcl" 1>&2
19471 if test $ol_enable_tcl = yes ; then
19472 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
19480 for ac_hdr in termcap.h ncurses.h
19482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19484 echo "configure:19485: checking for $ac_hdr" >&5
19485 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19486 echo $ac_n "(cached) $ac_c" 1>&6
19488 cat > conftest.$ac_ext <<EOF
19489 #line 19490 "configure"
19490 #include "confdefs.h"
19493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19494 { (eval echo configure:19495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19496 if test -z "$ac_err"; then
19498 eval "ac_cv_header_$ac_safe=yes"
19501 echo "configure: failed program was:" >&5
19502 cat conftest.$ac_ext >&5
19504 eval "ac_cv_header_$ac_safe=no"
19508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19509 echo "$ac_t""yes" 1>&6
19510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19511 cat >> confdefs.h <<EOF
19512 #define $ac_tr_hdr 1
19516 echo "$ac_t""no" 1>&6
19521 if test $ol_link_termcap = no ; then
19522 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19523 echo "configure:19524: checking for tputs in -ltermcap" >&5
19524 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19525 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19526 echo $ac_n "(cached) $ac_c" 1>&6
19528 ac_save_LIBS="$LIBS"
19529 LIBS="-ltermcap $LIBS"
19530 cat > conftest.$ac_ext <<EOF
19531 #line 19532 "configure"
19532 #include "confdefs.h"
19533 /* Override any gcc2 internal prototype to avoid an error. */
19534 /* We use char because int might match the return type of a gcc2
19535 builtin and then its argument prototype would still apply. */
19542 if { (eval echo configure:19543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19544 eval "ac_cv_lib_$ac_lib_var=yes"
19546 echo "configure: failed program was:" >&5
19547 cat conftest.$ac_ext >&5
19549 eval "ac_cv_lib_$ac_lib_var=no"
19552 LIBS="$ac_save_LIBS"
19555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19556 echo "$ac_t""yes" 1>&6
19559 echo "$ac_t""no" 1>&6
19563 if test $have_termcap = yes ; then
19564 cat >> confdefs.h <<\EOF
19565 #define HAVE_TERMCAP 1
19568 ol_link_termcap=yes
19569 TERMCAP_LIBS=-ltermcap
19573 if test $ol_link_termcap = no ; then
19574 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19575 echo "configure:19576: checking for initscr in -lncurses" >&5
19576 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19577 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19578 echo $ac_n "(cached) $ac_c" 1>&6
19580 ac_save_LIBS="$LIBS"
19581 LIBS="-lncurses $LIBS"
19582 cat > conftest.$ac_ext <<EOF
19583 #line 19584 "configure"
19584 #include "confdefs.h"
19585 /* Override any gcc2 internal prototype to avoid an error. */
19586 /* We use char because int might match the return type of a gcc2
19587 builtin and then its argument prototype would still apply. */
19594 if { (eval echo configure:19595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19596 eval "ac_cv_lib_$ac_lib_var=yes"
19598 echo "configure: failed program was:" >&5
19599 cat conftest.$ac_ext >&5
19601 eval "ac_cv_lib_$ac_lib_var=no"
19604 LIBS="$ac_save_LIBS"
19607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19608 echo "$ac_t""yes" 1>&6
19611 echo "$ac_t""no" 1>&6
19615 if test $have_ncurses = yes ; then
19616 cat >> confdefs.h <<\EOF
19617 #define HAVE_NCURSES 1
19620 ol_link_termcap=yes
19621 TERMCAP_LIBS=-lncurses
19625 if test $ol_link_termcap = no ; then
19626 cat >> confdefs.h <<\EOF
19627 #define NO_TERMCAP 1
19635 if test $ol_with_cyrus_sasl != no ; then
19636 for ac_hdr in sasl/sasl.h sasl.h
19638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19639 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19640 echo "configure:19641: checking for $ac_hdr" >&5
19641 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19642 echo $ac_n "(cached) $ac_c" 1>&6
19644 cat > conftest.$ac_ext <<EOF
19645 #line 19646 "configure"
19646 #include "confdefs.h"
19649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19650 { (eval echo configure:19651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19652 if test -z "$ac_err"; then
19654 eval "ac_cv_header_$ac_safe=yes"
19657 echo "configure: failed program was:" >&5
19658 cat conftest.$ac_ext >&5
19660 eval "ac_cv_header_$ac_safe=no"
19664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19665 echo "$ac_t""yes" 1>&6
19666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19667 cat >> confdefs.h <<EOF
19668 #define $ac_tr_hdr 1
19672 echo "$ac_t""no" 1>&6
19677 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
19678 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19679 echo "configure:19680: checking for sasl_client_init in -lsasl2" >&5
19680 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19681 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19682 echo $ac_n "(cached) $ac_c" 1>&6
19684 ac_save_LIBS="$LIBS"
19685 LIBS="-lsasl2 $LIBS"
19686 cat > conftest.$ac_ext <<EOF
19687 #line 19688 "configure"
19688 #include "confdefs.h"
19689 /* Override any gcc2 internal prototype to avoid an error. */
19690 /* We use char because int might match the return type of a gcc2
19691 builtin and then its argument prototype would still apply. */
19692 char sasl_client_init();
19698 if { (eval echo configure:19699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19700 eval "ac_cv_lib_$ac_lib_var=yes"
19702 echo "configure: failed program was:" >&5
19703 cat conftest.$ac_ext >&5
19705 eval "ac_cv_lib_$ac_lib_var=no"
19708 LIBS="$ac_save_LIBS"
19711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19712 echo "$ac_t""yes" 1>&6
19713 ol_link_sasl="-lsasl2"
19715 echo "$ac_t""no" 1>&6
19716 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19717 echo "configure:19718: checking for sasl_client_init in -lsasl" >&5
19718 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19719 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19720 echo $ac_n "(cached) $ac_c" 1>&6
19722 ac_save_LIBS="$LIBS"
19723 LIBS="-lsasl $LIBS"
19724 cat > conftest.$ac_ext <<EOF
19725 #line 19726 "configure"
19726 #include "confdefs.h"
19727 /* Override any gcc2 internal prototype to avoid an error. */
19728 /* We use char because int might match the return type of a gcc2
19729 builtin and then its argument prototype would still apply. */
19730 char sasl_client_init();
19736 if { (eval echo configure:19737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19738 eval "ac_cv_lib_$ac_lib_var=yes"
19740 echo "configure: failed program was:" >&5
19741 cat conftest.$ac_ext >&5
19743 eval "ac_cv_lib_$ac_lib_var=no"
19746 LIBS="$ac_save_LIBS"
19749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19750 echo "$ac_t""yes" 1>&6
19751 ol_link_sasl="-lsasl"
19753 echo "$ac_t""no" 1>&6
19760 if test $ol_link_sasl = no ; then
19761 if test $ol_with_cyrus_sasl != auto ; then
19762 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19764 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19765 echo "configure: warning: SASL authentication not supported!" 1>&2
19766 if test $ol_link_tls = no ; then
19767 echo "configure: warning: Strong authentication not supported!" 1>&2
19771 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
19772 echo "configure:19773: checking Cyrus SASL library version" >&5
19773 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
19774 echo $ac_n "(cached) $ac_c" 1>&6
19777 cat > conftest.$ac_ext <<EOF
19778 #line 19779 "configure"
19779 #include "confdefs.h"
19781 #ifdef HAVE_SASL_SASL_H
19782 #include <sasl/sasl.h>
19787 /* require 2.1.3 or later */
19788 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
19789 char *__sasl_compat = "1.5.x okay";
19790 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
19791 __sasl_compat "2.2+ or better okay (we guess)";
19792 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
19793 && SASL_VERSION_STEP >=3
19794 __sasl_compat = "2.1.3+ or better okay";
19798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19799 egrep "__sasl_compat" >/dev/null 2>&1; then
19801 ol_cv_sasl_compat=yes
19804 ol_cv_sasl_compat=no
19810 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
19812 if test $ol_cv_sasl_compat = no ; then
19814 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
19817 cat >> confdefs.h <<\EOF
19818 #define HAVE_CYRUS_SASL 1
19821 SASL_LIBS="$ol_link_sasl"
19822 if test $ol_enable_spasswd != no ; then
19823 ol_link_spasswd=yes
19826 ac_save_LIBS="$LIBS"
19827 LIBS="$LIBS $ol_link_sasl"
19828 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
19829 echo "configure:19830: checking for sasl_version" >&5
19830 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
19831 echo $ac_n "(cached) $ac_c" 1>&6
19833 cat > conftest.$ac_ext <<EOF
19834 #line 19835 "configure"
19835 #include "confdefs.h"
19836 /* System header to define __stub macros and hopefully few prototypes,
19837 which can conflict with char sasl_version(); below. */
19838 #include <assert.h>
19839 /* Override any gcc2 internal prototype to avoid an error. */
19840 /* We use char because int might match the return type of a gcc2
19841 builtin and then its argument prototype would still apply. */
19842 char sasl_version();
19847 /* The GNU C library defines this for functions which it implements
19848 to always fail with ENOSYS. Some functions are actually named
19849 something starting with __ and the normal name is an alias. */
19850 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
19858 if { (eval echo configure:19859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19860 eval "ac_cv_func_sasl_version=yes"
19862 echo "configure: failed program was:" >&5
19863 cat conftest.$ac_ext >&5
19865 eval "ac_cv_func_sasl_version=no"
19870 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
19871 echo "$ac_t""yes" 1>&6
19872 cat >> confdefs.h <<\EOF
19873 #define HAVE_SASL_VERSION 1
19877 echo "$ac_t""no" 1>&6
19880 LIBS="$ac_save_LIBS"
19884 echo "configure: warning: SASL authentication not supported!" 1>&2
19885 if test $ol_link_tls = no ; then
19886 echo "configure: warning: Strong authentication not supported!" 1>&2
19890 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
19892 if test -r /dev/urandom ; then
19893 dev="/dev/urandom";
19894 elif test -r /idev/urandom ; then
19895 dev="/idev/urandom";
19896 elif test -r /dev/srandom ; then
19897 dev="/dev/srandom";
19898 elif test -r /dev/random ; then
19900 elif test -r /idev/random ; then
19901 dev="/idev/random";
19904 if test $dev != no ; then
19905 cat >> confdefs.h <<EOF
19906 #define URANDOM_DEVICE "$dev"
19913 if test $ol_with_fetch != no ; then
19915 LIBS="-lfetch -lcom_err $LIBS"
19916 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
19917 echo "configure:19918: checking fetch(3) library" >&5
19918 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
19919 echo $ac_n "(cached) $ac_c" 1>&6
19922 cat > conftest.$ac_ext <<EOF
19923 #line 19924 "configure"
19924 #include "confdefs.h"
19926 #include <sys/param.h>
19930 struct url *u = fetchParseURL("file:///");
19933 if { (eval echo configure:19934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19935 ol_cv_lib_fetch=yes
19937 echo "configure: failed program was:" >&5
19938 cat conftest.$ac_ext >&5
19945 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
19947 if test $ol_cv_lib_fetch != no ; then
19948 ol_link_fetch="-lfetch -lcom_err"
19949 cat >> confdefs.h <<\EOF
19950 #define HAVE_FETCH 1
19956 if test $ol_cv_lib_fetch != no ; then
19957 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
19958 ol_link_fetch=freebsd
19960 elif test $ol_with_fetch != auto ; then
19961 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
19965 ol_link_readline=no
19966 if test $ol_with_readline != no ; then
19967 for ac_hdr in readline/readline.h readline/history.h
19969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19971 echo "configure:19972: checking for $ac_hdr" >&5
19972 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19973 echo $ac_n "(cached) $ac_c" 1>&6
19975 cat > conftest.$ac_ext <<EOF
19976 #line 19977 "configure"
19977 #include "confdefs.h"
19980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19981 { (eval echo configure:19982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19983 if test -z "$ac_err"; then
19985 eval "ac_cv_header_$ac_safe=yes"
19988 echo "configure: failed program was:" >&5
19989 cat conftest.$ac_ext >&5
19991 eval "ac_cv_header_$ac_safe=no"
19995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19996 echo "$ac_t""yes" 1>&6
19997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19998 cat >> confdefs.h <<EOF
19999 #define $ac_tr_hdr 1
20003 echo "$ac_t""no" 1>&6
20008 if test $ac_cv_header_readline_readline_h = yes ; then
20010 LIBS="$TERMCAP_LIBS $LIBS"
20011 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
20012 echo "configure:20013: checking for readline in -lreadline" >&5
20013 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
20014 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20015 echo $ac_n "(cached) $ac_c" 1>&6
20017 ac_save_LIBS="$LIBS"
20018 LIBS="-lreadline $LIBS"
20019 cat > conftest.$ac_ext <<EOF
20020 #line 20021 "configure"
20021 #include "confdefs.h"
20022 /* Override any gcc2 internal prototype to avoid an error. */
20023 /* We use char because int might match the return type of a gcc2
20024 builtin and then its argument prototype would still apply. */
20031 if { (eval echo configure:20032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20033 eval "ac_cv_lib_$ac_lib_var=yes"
20035 echo "configure: failed program was:" >&5
20036 cat conftest.$ac_ext >&5
20038 eval "ac_cv_lib_$ac_lib_var=no"
20041 LIBS="$ac_save_LIBS"
20044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20045 echo "$ac_t""yes" 1>&6
20048 echo "$ac_t""no" 1>&6
20054 if test $have_readline = yes ; then
20055 ol_with_readline=found
20056 ol_link_readline=yes
20058 READLINE_LIBS="-lreadline"
20063 if test $ol_link_readline = yes ; then
20064 cat >> confdefs.h <<\EOF
20065 #define HAVE_READLINE 1
20071 if test $ol_enable_crypt != no ; then
20073 LIBS="$TLS_LIBS $LIBS"
20075 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20076 echo "configure:20077: checking for crypt" >&5
20077 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20078 echo $ac_n "(cached) $ac_c" 1>&6
20080 cat > conftest.$ac_ext <<EOF
20081 #line 20082 "configure"
20082 #include "confdefs.h"
20083 /* System header to define __stub macros and hopefully few prototypes,
20084 which can conflict with char crypt(); below. */
20085 #include <assert.h>
20086 /* Override any gcc2 internal prototype to avoid an error. */
20087 /* We use char because int might match the return type of a gcc2
20088 builtin and then its argument prototype would still apply. */
20094 /* The GNU C library defines this for functions which it implements
20095 to always fail with ENOSYS. Some functions are actually named
20096 something starting with __ and the normal name is an alias. */
20097 #if defined (__stub_crypt) || defined (__stub___crypt)
20105 if { (eval echo configure:20106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20107 eval "ac_cv_func_crypt=yes"
20109 echo "configure: failed program was:" >&5
20110 cat conftest.$ac_ext >&5
20112 eval "ac_cv_func_crypt=no"
20117 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20118 echo "$ac_t""yes" 1>&6
20121 echo "$ac_t""no" 1>&6
20124 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20125 echo "configure:20126: checking for crypt in -lcrypt" >&5
20126 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20127 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20128 echo $ac_n "(cached) $ac_c" 1>&6
20130 ac_save_LIBS="$LIBS"
20131 LIBS="-lcrypt $LIBS"
20132 cat > conftest.$ac_ext <<EOF
20133 #line 20134 "configure"
20134 #include "confdefs.h"
20135 /* Override any gcc2 internal prototype to avoid an error. */
20136 /* We use char because int might match the return type of a gcc2
20137 builtin and then its argument prototype would still apply. */
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_lib_$ac_lib_var=yes"
20148 echo "configure: failed program was:" >&5
20149 cat conftest.$ac_ext >&5
20151 eval "ac_cv_lib_$ac_lib_var=no"
20154 LIBS="$ac_save_LIBS"
20157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20158 echo "$ac_t""yes" 1>&6
20159 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20162 echo "$ac_t""no" 1>&6
20171 if test $have_crypt = yes ; then
20172 cat >> confdefs.h <<\EOF
20173 #define HAVE_CRYPT 1
20177 echo "configure: warning: could not find crypt" 1>&2
20178 if test $ol_enable_crypt = yes ; then
20179 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20182 echo "configure: warning: disabling crypt support" 1>&2
20187 if test $ol_enable_proctitle != no ; then
20188 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20189 echo "configure:20190: checking for setproctitle" >&5
20190 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20191 echo $ac_n "(cached) $ac_c" 1>&6
20193 cat > conftest.$ac_ext <<EOF
20194 #line 20195 "configure"
20195 #include "confdefs.h"
20196 /* System header to define __stub macros and hopefully few prototypes,
20197 which can conflict with char setproctitle(); below. */
20198 #include <assert.h>
20199 /* Override any gcc2 internal prototype to avoid an error. */
20200 /* We use char because int might match the return type of a gcc2
20201 builtin and then its argument prototype would still apply. */
20202 char setproctitle();
20207 /* The GNU C library defines this for functions which it implements
20208 to always fail with ENOSYS. Some functions are actually named
20209 something starting with __ and the normal name is an alias. */
20210 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20218 if { (eval echo configure:20219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20220 eval "ac_cv_func_setproctitle=yes"
20222 echo "configure: failed program was:" >&5
20223 cat conftest.$ac_ext >&5
20225 eval "ac_cv_func_setproctitle=no"
20230 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20231 echo "$ac_t""yes" 1>&6
20232 have_setproctitle=yes
20234 echo "$ac_t""no" 1>&6
20236 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20237 echo "configure:20238: checking for setproctitle in -lutil" >&5
20238 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20239 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20240 echo $ac_n "(cached) $ac_c" 1>&6
20242 ac_save_LIBS="$LIBS"
20243 LIBS="-lutil $LIBS"
20244 cat > conftest.$ac_ext <<EOF
20245 #line 20246 "configure"
20246 #include "confdefs.h"
20247 /* Override any gcc2 internal prototype to avoid an error. */
20248 /* We use char because int might match the return type of a gcc2
20249 builtin and then its argument prototype would still apply. */
20250 char setproctitle();
20256 if { (eval echo configure:20257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20258 eval "ac_cv_lib_$ac_lib_var=yes"
20260 echo "configure: failed program was:" >&5
20261 cat conftest.$ac_ext >&5
20263 eval "ac_cv_lib_$ac_lib_var=no"
20266 LIBS="$ac_save_LIBS"
20269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20270 echo "$ac_t""yes" 1>&6
20271 have_setproctitle=yes
20272 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20274 echo "$ac_t""no" 1>&6
20275 have_setproctitle=no
20276 LIBOBJS="$LIBOBJS setproctitle.o"
20277 LIBSRCS="$LIBSRCS setproctitle.c"
20283 if test $have_setproctitle = yes ; then
20284 cat >> confdefs.h <<\EOF
20285 #define HAVE_SETPROCTITLE 1
20291 if test $ol_enable_slp != no ; then
20292 for ac_hdr in slp.h
20294 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20295 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20296 echo "configure:20297: checking for $ac_hdr" >&5
20297 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20298 echo $ac_n "(cached) $ac_c" 1>&6
20300 cat > conftest.$ac_ext <<EOF
20301 #line 20302 "configure"
20302 #include "confdefs.h"
20305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20306 { (eval echo configure:20307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20308 if test -z "$ac_err"; then
20310 eval "ac_cv_header_$ac_safe=yes"
20313 echo "configure: failed program was:" >&5
20314 cat conftest.$ac_ext >&5
20316 eval "ac_cv_header_$ac_safe=no"
20320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20321 echo "$ac_t""yes" 1>&6
20322 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20323 cat >> confdefs.h <<EOF
20324 #define $ac_tr_hdr 1
20328 echo "$ac_t""no" 1>&6
20333 if test $ac_cv_header_slp_h = yes ; then
20334 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20335 echo "configure:20336: checking for SLPOpen in -lslp" >&5
20336 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20337 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20338 echo $ac_n "(cached) $ac_c" 1>&6
20340 ac_save_LIBS="$LIBS"
20342 cat > conftest.$ac_ext <<EOF
20343 #line 20344 "configure"
20344 #include "confdefs.h"
20345 /* Override any gcc2 internal prototype to avoid an error. */
20346 /* We use char because int might match the return type of a gcc2
20347 builtin and then its argument prototype would still apply. */
20354 if { (eval echo configure:20355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20356 eval "ac_cv_lib_$ac_lib_var=yes"
20358 echo "configure: failed program was:" >&5
20359 cat conftest.$ac_ext >&5
20361 eval "ac_cv_lib_$ac_lib_var=no"
20364 LIBS="$ac_save_LIBS"
20367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20368 echo "$ac_t""yes" 1>&6
20371 echo "$ac_t""no" 1>&6
20375 if test $have_slp = yes ; then
20376 cat >> confdefs.h <<\EOF
20380 SLAPD_SLP_LIBS=-lslp
20383 elif test $ol_enable_slp = yes ; then
20384 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20388 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20389 echo "configure:20390: checking for ANSI C header files" >&5
20390 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20391 echo $ac_n "(cached) $ac_c" 1>&6
20393 cat > conftest.$ac_ext <<EOF
20394 #line 20395 "configure"
20395 #include "confdefs.h"
20396 #include <stdlib.h>
20397 #include <stdarg.h>
20398 #include <string.h>
20401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20402 { (eval echo configure:20403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20404 if test -z "$ac_err"; then
20406 ac_cv_header_stdc=yes
20409 echo "configure: failed program was:" >&5
20410 cat conftest.$ac_ext >&5
20412 ac_cv_header_stdc=no
20416 if test $ac_cv_header_stdc = yes; then
20417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20418 cat > conftest.$ac_ext <<EOF
20419 #line 20420 "configure"
20420 #include "confdefs.h"
20421 #include <string.h>
20423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20424 egrep "memchr" >/dev/null 2>&1; then
20428 ac_cv_header_stdc=no
20434 if test $ac_cv_header_stdc = yes; then
20435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20436 cat > conftest.$ac_ext <<EOF
20437 #line 20438 "configure"
20438 #include "confdefs.h"
20439 #include <stdlib.h>
20441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20442 egrep "free" >/dev/null 2>&1; then
20446 ac_cv_header_stdc=no
20452 if test $ac_cv_header_stdc = yes; then
20453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20454 if test "$cross_compiling" = yes; then
20457 cat > conftest.$ac_ext <<EOF
20458 #line 20459 "configure"
20459 #include "confdefs.h"
20461 #if ((' ' & 0x0FF) == 0x020)
20462 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20463 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20465 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20466 || ('j' <= (c) && (c) <= 'r') \
20467 || ('s' <= (c) && (c) <= 'z'))
20468 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20470 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20471 int main () { int i; for (i = 0; i < 256; i++)
20472 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20476 if { (eval echo configure:20477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20480 echo "configure: failed program was:" >&5
20481 cat conftest.$ac_ext >&5
20483 ac_cv_header_stdc=no
20491 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20492 if test $ac_cv_header_stdc = yes; then
20493 cat >> confdefs.h <<\EOF
20494 #define STDC_HEADERS 1
20499 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20500 echo "configure:20501: checking for mode_t" >&5
20501 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20502 echo $ac_n "(cached) $ac_c" 1>&6
20504 cat > conftest.$ac_ext <<EOF
20505 #line 20506 "configure"
20506 #include "confdefs.h"
20507 #include <sys/types.h>
20509 #include <stdlib.h>
20510 #include <stddef.h>
20514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20515 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20517 eval "ac_cv_type_mode_t=yes"
20520 eval "ac_cv_type_mode_t=no"
20525 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20526 echo "$ac_t""yes" 1>&6
20528 echo "$ac_t""no" 1>&6
20529 cat >> confdefs.h <<EOF
20535 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20536 echo "configure:20537: checking for off_t" >&5
20537 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20538 echo $ac_n "(cached) $ac_c" 1>&6
20540 cat > conftest.$ac_ext <<EOF
20541 #line 20542 "configure"
20542 #include "confdefs.h"
20543 #include <sys/types.h>
20545 #include <stdlib.h>
20546 #include <stddef.h>
20550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20551 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20553 eval "ac_cv_type_off_t=yes"
20556 eval "ac_cv_type_off_t=no"
20561 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20562 echo "$ac_t""yes" 1>&6
20564 echo "$ac_t""no" 1>&6
20565 cat >> confdefs.h <<EOF
20571 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20572 echo "configure:20573: checking for pid_t" >&5
20573 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20574 echo $ac_n "(cached) $ac_c" 1>&6
20576 cat > conftest.$ac_ext <<EOF
20577 #line 20578 "configure"
20578 #include "confdefs.h"
20579 #include <sys/types.h>
20581 #include <stdlib.h>
20582 #include <stddef.h>
20586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20587 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20589 eval "ac_cv_type_pid_t=yes"
20592 eval "ac_cv_type_pid_t=no"
20597 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20598 echo "$ac_t""yes" 1>&6
20600 echo "$ac_t""no" 1>&6
20601 cat >> confdefs.h <<EOF
20607 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20608 echo "configure:20609: checking for ptrdiff_t" >&5
20609 if eval "test \"\${am_cv_type_ptrdiff_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 <stddef.h>
20620 if { (eval echo configure:20621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20622 am_cv_type_ptrdiff_t=yes
20624 echo "configure: failed program was:" >&5
20625 cat conftest.$ac_ext >&5
20627 am_cv_type_ptrdiff_t=no
20632 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20633 if test $am_cv_type_ptrdiff_t = yes; then
20634 cat >> confdefs.h <<\EOF
20635 #define HAVE_PTRDIFF_T 1
20640 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20641 echo "configure:20642: checking return type of signal handlers" >&5
20642 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20643 echo $ac_n "(cached) $ac_c" 1>&6
20645 cat > conftest.$ac_ext <<EOF
20646 #line 20647 "configure"
20647 #include "confdefs.h"
20648 #include <sys/types.h>
20649 #include <signal.h>
20654 extern "C" void (*signal (int, void (*)(int)))(int);
20656 void (*signal ()) ();
20663 if { (eval echo configure:20664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20665 ac_cv_type_signal=void
20667 echo "configure: failed program was:" >&5
20668 cat conftest.$ac_ext >&5
20670 ac_cv_type_signal=int
20675 echo "$ac_t""$ac_cv_type_signal" 1>&6
20676 cat >> confdefs.h <<EOF
20677 #define RETSIGTYPE $ac_cv_type_signal
20681 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20682 echo "configure:20683: checking for size_t" >&5
20683 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20684 echo $ac_n "(cached) $ac_c" 1>&6
20686 cat > conftest.$ac_ext <<EOF
20687 #line 20688 "configure"
20688 #include "confdefs.h"
20689 #include <sys/types.h>
20691 #include <stdlib.h>
20692 #include <stddef.h>
20696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20697 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20699 eval "ac_cv_type_size_t=yes"
20702 eval "ac_cv_type_size_t=no"
20707 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20708 echo "$ac_t""yes" 1>&6
20710 echo "$ac_t""no" 1>&6
20711 cat >> confdefs.h <<EOF
20712 #define size_t unsigned
20718 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20719 echo "configure:20720: checking for ssize_t" >&5
20720 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20721 echo $ac_n "(cached) $ac_c" 1>&6
20723 cat > conftest.$ac_ext <<EOF
20724 #line 20725 "configure"
20725 #include "confdefs.h"
20726 #include <sys/types.h>
20728 #include <stdlib.h>
20729 #include <stddef.h>
20733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20734 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20736 eval "ac_cv_type_ssize_t=yes"
20739 eval "ac_cv_type_ssize_t=no"
20744 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20745 echo "$ac_t""yes" 1>&6
20747 echo "$ac_t""no" 1>&6
20748 cat >> confdefs.h <<EOF
20749 #define ssize_t signed int
20754 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20755 echo "configure:20756: checking for caddr_t" >&5
20756 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20757 echo $ac_n "(cached) $ac_c" 1>&6
20759 cat > conftest.$ac_ext <<EOF
20760 #line 20761 "configure"
20761 #include "confdefs.h"
20762 #include <sys/types.h>
20764 #include <stdlib.h>
20765 #include <stddef.h>
20769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20770 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20772 eval "ac_cv_type_caddr_t=yes"
20775 eval "ac_cv_type_caddr_t=no"
20780 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20781 echo "$ac_t""yes" 1>&6
20783 echo "$ac_t""no" 1>&6
20784 cat >> confdefs.h <<EOF
20785 #define caddr_t char *
20791 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20792 echo "configure:20793: checking for socklen_t" >&5
20793 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20794 echo $ac_n "(cached) $ac_c" 1>&6
20796 cat > conftest.$ac_ext <<EOF
20797 #line 20798 "configure"
20798 #include "confdefs.h"
20800 #ifdef HAVE_SYS_TYPES_H
20801 #include <sys/types.h>
20803 #ifdef HAVE_SYS_SOCKET_H
20804 #include <sys/socket.h>
20811 if { (eval echo configure:20812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20813 ol_cv_type_socklen_t=yes
20815 echo "configure: failed program was:" >&5
20816 cat conftest.$ac_ext >&5
20818 ol_cv_type_socklen_t=no
20823 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20824 if test $ol_cv_type_socklen_t = no; then
20825 cat >> confdefs.h <<\EOF
20826 #define socklen_t int
20831 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20832 echo "configure:20833: checking for member st_blksize in aggregate type struct stat" >&5
20833 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20834 echo $ac_n "(cached) $ac_c" 1>&6
20836 cat > conftest.$ac_ext <<EOF
20837 #line 20838 "configure"
20838 #include "confdefs.h"
20839 #include <sys/types.h>
20840 #include <sys/stat.h>
20842 struct stat foo; foo.st_blksize;
20845 if { (eval echo configure:20846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20847 ac_cv_c_struct_member_st_blksize=yes
20849 echo "configure: failed program was:" >&5
20850 cat conftest.$ac_ext >&5
20852 ac_cv_c_struct_member_st_blksize=no
20857 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20858 st_blksize="$ac_cv_c_struct_member_st_blksize"
20859 if test $ac_cv_c_struct_member_st_blksize = yes; then
20860 cat >> confdefs.h <<\EOF
20861 #define HAVE_ST_BLKSIZE 1
20866 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
20867 echo "configure:20868: checking whether time.h and sys/time.h may both be included" >&5
20868 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
20869 echo $ac_n "(cached) $ac_c" 1>&6
20871 cat > conftest.$ac_ext <<EOF
20872 #line 20873 "configure"
20873 #include "confdefs.h"
20874 #include <sys/types.h>
20875 #include <sys/time.h>
20881 if { (eval echo configure:20882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20883 ac_cv_header_time=yes
20885 echo "configure: failed program was:" >&5
20886 cat conftest.$ac_ext >&5
20888 ac_cv_header_time=no
20893 echo "$ac_t""$ac_cv_header_time" 1>&6
20894 if test $ac_cv_header_time = yes; then
20895 cat >> confdefs.h <<\EOF
20896 #define TIME_WITH_SYS_TIME 1
20901 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
20902 echo "configure:20903: checking whether struct tm is in sys/time.h or time.h" >&5
20903 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
20904 echo $ac_n "(cached) $ac_c" 1>&6
20906 cat > conftest.$ac_ext <<EOF
20907 #line 20908 "configure"
20908 #include "confdefs.h"
20909 #include <sys/types.h>
20912 struct tm *tp; tp->tm_sec;
20915 if { (eval echo configure:20916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20917 ac_cv_struct_tm=time.h
20919 echo "configure: failed program was:" >&5
20920 cat conftest.$ac_ext >&5
20922 ac_cv_struct_tm=sys/time.h
20927 echo "$ac_t""$ac_cv_struct_tm" 1>&6
20928 if test $ac_cv_struct_tm = sys/time.h; then
20929 cat >> confdefs.h <<\EOF
20930 #define TM_IN_SYS_TIME 1
20935 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
20936 echo "configure:20937: checking for uid_t in sys/types.h" >&5
20937 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
20938 echo $ac_n "(cached) $ac_c" 1>&6
20940 cat > conftest.$ac_ext <<EOF
20941 #line 20942 "configure"
20942 #include "confdefs.h"
20943 #include <sys/types.h>
20945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20946 egrep "uid_t" >/dev/null 2>&1; then
20948 ac_cv_type_uid_t=yes
20951 ac_cv_type_uid_t=no
20957 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
20958 if test $ac_cv_type_uid_t = no; then
20959 cat >> confdefs.h <<\EOF
20963 cat >> confdefs.h <<\EOF
20969 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
20970 echo "configure:20971: checking for sig_atomic_t" >&5
20971 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
20972 echo $ac_n "(cached) $ac_c" 1>&6
20974 cat > conftest.$ac_ext <<EOF
20975 #line 20976 "configure"
20976 #include "confdefs.h"
20977 #include <signal.h>
20979 sig_atomic_t atomic;
20982 if { (eval echo configure:20983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20984 ol_cv_type_sig_atomic_t=yes
20986 echo "configure: failed program was:" >&5
20987 cat conftest.$ac_ext >&5
20989 ol_cv_type_sig_atomic_t=no
20994 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
20995 if test $ol_cv_type_sig_atomic_t = no; then
20996 cat >> confdefs.h <<\EOF
20997 #define sig_atomic_t int
21004 # test for pw_gecos in struct passwd
21005 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21006 echo "configure:21007: checking struct passwd for pw_gecos" >&5
21007 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21008 echo $ac_n "(cached) $ac_c" 1>&6
21011 cat > conftest.$ac_ext <<EOF
21012 #line 21013 "configure"
21013 #include "confdefs.h"
21018 pwd.pw_gecos = pwd.pw_name;
21022 if { (eval echo configure:21023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21024 ol_cv_struct_passwd_pw_gecos=yes
21026 echo "configure: failed program was:" >&5
21027 cat conftest.$ac_ext >&5
21029 ol_cv_struct_passwd_pw_gecos=no
21034 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21035 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21036 cat >> confdefs.h <<\EOF
21037 #define HAVE_PW_GECOS 1
21042 # test for pw_passwd in struct passwd
21043 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21044 echo "configure:21045: checking struct passwd for pw_passwd" >&5
21045 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21046 echo $ac_n "(cached) $ac_c" 1>&6
21049 cat > conftest.$ac_ext <<EOF
21050 #line 21051 "configure"
21051 #include "confdefs.h"
21056 pwd.pw_passwd = pwd.pw_name;
21060 if { (eval echo configure:21061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21062 ol_cv_struct_passwd_pw_passwd=yes
21064 echo "configure: failed program was:" >&5
21065 cat conftest.$ac_ext >&5
21067 ol_cv_struct_passwd_pw_passwd=no
21072 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21073 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21074 cat >> confdefs.h <<\EOF
21075 #define HAVE_PW_PASSWD 1
21081 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21082 echo "configure:21083: checking if toupper() requires islower()" >&5
21083 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21084 echo $ac_n "(cached) $ac_c" 1>&6
21087 if test "$cross_compiling" = yes; then
21088 ol_cv_c_upper_lower=safe
21090 cat > conftest.$ac_ext <<EOF
21091 #line 21092 "configure"
21092 #include "confdefs.h"
21097 if ('C' == toupper('C'))
21103 if { (eval echo configure:21104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21105 ol_cv_c_upper_lower=no
21107 echo "configure: failed program was:" >&5
21108 cat conftest.$ac_ext >&5
21110 ol_cv_c_upper_lower=yes
21117 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21118 if test $ol_cv_c_upper_lower != no ; then
21119 cat >> confdefs.h <<\EOF
21120 #define C_UPPER_LOWER 1
21125 echo $ac_n "checking for working const""... $ac_c" 1>&6
21126 echo "configure:21127: checking for working const" >&5
21127 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21128 echo $ac_n "(cached) $ac_c" 1>&6
21130 cat > conftest.$ac_ext <<EOF
21131 #line 21132 "configure"
21132 #include "confdefs.h"
21136 /* Ultrix mips cc rejects this. */
21137 typedef int charset[2]; const charset x;
21138 /* SunOS 4.1.1 cc rejects this. */
21139 char const *const *ccp;
21141 /* NEC SVR4.0.2 mips cc rejects this. */
21142 struct point {int x, y;};
21143 static struct point const zero = {0,0};
21144 /* AIX XL C 1.02.0.0 rejects this.
21145 It does not let you subtract one const X* pointer from another in an arm
21146 of an if-expression whose if-part is not a constant expression */
21147 const char *g = "string";
21148 ccp = &g + (g ? g-g : 0);
21149 /* HPUX 7.0 cc rejects these. */
21152 ccp = (char const *const *) p;
21153 { /* SCO 3.2v4 cc rejects this. */
21155 char const *s = 0 ? (char *) 0 : (char const *) 0;
21159 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21160 int x[] = {25, 17};
21161 const int *foo = &x[0];
21164 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21165 typedef const int *iptr;
21169 { /* AIX XL C 1.02.0.0 rejects this saying
21170 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21171 struct s { int j; const int *ap[3]; };
21172 struct s *b; b->j = 5;
21174 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21175 const int foo = 10;
21180 if { (eval echo configure:21181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21184 echo "configure: failed program was:" >&5
21185 cat conftest.$ac_ext >&5
21192 echo "$ac_t""$ac_cv_c_const" 1>&6
21193 if test $ac_cv_c_const = no; then
21194 cat >> confdefs.h <<\EOF
21200 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21201 echo "configure:21202: checking if compiler understands volatile" >&5
21202 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21203 echo $ac_n "(cached) $ac_c" 1>&6
21205 cat > conftest.$ac_ext <<EOF
21206 #line 21207 "configure"
21207 #include "confdefs.h"
21210 volatile int a; int * volatile b = x ? &y : &z;
21211 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21215 if { (eval echo configure:21216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21217 ol_cv_c_volatile=yes
21219 echo "configure: failed program was:" >&5
21220 cat conftest.$ac_ext >&5
21222 ol_cv_c_volatile=no
21227 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21228 if test $ol_cv_c_volatile = yes; then
21231 cat >> confdefs.h <<\EOF
21238 if test $cross_compiling = yes ; then
21239 cat >> confdefs.h <<\EOF
21240 #define CROSS_COMPILING 1
21244 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21245 echo "configure:21246: checking whether byte ordering is bigendian" >&5
21246 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21247 echo $ac_n "(cached) $ac_c" 1>&6
21249 ac_cv_c_bigendian=unknown
21250 # See if sys/param.h defines the BYTE_ORDER macro.
21251 cat > conftest.$ac_ext <<EOF
21252 #line 21253 "configure"
21253 #include "confdefs.h"
21254 #include <sys/types.h>
21255 #include <sys/param.h>
21258 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21259 bogus endian macros
21263 if { (eval echo configure:21264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21265 # It does; now see whether it defined to BIG_ENDIAN or not.
21266 cat > conftest.$ac_ext <<EOF
21267 #line 21268 "configure"
21268 #include "confdefs.h"
21269 #include <sys/types.h>
21270 #include <sys/param.h>
21273 #if BYTE_ORDER != BIG_ENDIAN
21278 if { (eval echo configure:21279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21280 ac_cv_c_bigendian=yes
21282 echo "configure: failed program was:" >&5
21283 cat conftest.$ac_ext >&5
21285 ac_cv_c_bigendian=no
21289 echo "configure: failed program was:" >&5
21290 cat conftest.$ac_ext >&5
21293 if test $ac_cv_c_bigendian = unknown; then
21294 if test "$cross_compiling" = yes; then
21295 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21297 cat > conftest.$ac_ext <<EOF
21298 #line 21299 "configure"
21299 #include "confdefs.h"
21301 /* Are we little or big endian? From Harbison&Steele. */
21305 char c[sizeof (long)];
21308 exit (u.c[sizeof (long) - 1] == 1);
21311 if { (eval echo configure:21312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21313 ac_cv_c_bigendian=no
21315 echo "configure: failed program was:" >&5
21316 cat conftest.$ac_ext >&5
21318 ac_cv_c_bigendian=yes
21326 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21327 if test $ac_cv_c_bigendian = yes; then
21328 cat >> confdefs.h <<\EOF
21329 #define WORDS_BIGENDIAN 1
21336 echo $ac_n "checking size of short""... $ac_c" 1>&6
21337 echo "configure:21338: checking size of short" >&5
21338 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21339 echo $ac_n "(cached) $ac_c" 1>&6
21341 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21342 cat > conftest.$ac_ext <<EOF
21343 #line 21344 "configure"
21344 #include "confdefs.h"
21345 #include "confdefs.h"
21346 #include <sys/types.h>
21350 switch (0) case 0: case (sizeof (short) == $ac_size):;
21353 if { (eval echo configure:21354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21355 ac_cv_sizeof_short=$ac_size
21357 echo "configure: failed program was:" >&5
21358 cat conftest.$ac_ext >&5
21361 if test x$ac_cv_sizeof_short != x ; then break; fi
21366 if test x$ac_cv_sizeof_short = x ; then
21367 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21369 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21370 cat >> confdefs.h <<EOF
21371 #define SIZEOF_SHORT $ac_cv_sizeof_short
21375 echo $ac_n "checking size of int""... $ac_c" 1>&6
21376 echo "configure:21377: checking size of int" >&5
21377 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21378 echo $ac_n "(cached) $ac_c" 1>&6
21380 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21381 cat > conftest.$ac_ext <<EOF
21382 #line 21383 "configure"
21383 #include "confdefs.h"
21384 #include "confdefs.h"
21385 #include <sys/types.h>
21389 switch (0) case 0: case (sizeof (int) == $ac_size):;
21392 if { (eval echo configure:21393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21394 ac_cv_sizeof_int=$ac_size
21396 echo "configure: failed program was:" >&5
21397 cat conftest.$ac_ext >&5
21400 if test x$ac_cv_sizeof_int != x ; then break; fi
21405 if test x$ac_cv_sizeof_int = x ; then
21406 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21408 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21409 cat >> confdefs.h <<EOF
21410 #define SIZEOF_INT $ac_cv_sizeof_int
21414 echo $ac_n "checking size of long""... $ac_c" 1>&6
21415 echo "configure:21416: checking size of long" >&5
21416 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21417 echo $ac_n "(cached) $ac_c" 1>&6
21419 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21420 cat > conftest.$ac_ext <<EOF
21421 #line 21422 "configure"
21422 #include "confdefs.h"
21423 #include "confdefs.h"
21424 #include <sys/types.h>
21428 switch (0) case 0: case (sizeof (long) == $ac_size):;
21431 if { (eval echo configure:21432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21433 ac_cv_sizeof_long=$ac_size
21435 echo "configure: failed program was:" >&5
21436 cat conftest.$ac_ext >&5
21439 if test x$ac_cv_sizeof_long != x ; then break; fi
21444 if test x$ac_cv_sizeof_long = x ; then
21445 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21447 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21448 cat >> confdefs.h <<EOF
21449 #define SIZEOF_LONG $ac_cv_sizeof_long
21454 if test "$ac_cv_sizeof_int" -lt 4 ; then
21455 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21457 cat >> confdefs.h <<\EOF
21458 #define LBER_INT_T long
21462 cat >> confdefs.h <<\EOF
21463 #define LBER_INT_T int
21468 cat >> confdefs.h <<\EOF
21469 #define LBER_LEN_T long
21472 cat >> confdefs.h <<\EOF
21473 #define LBER_SOCKET_T int
21476 cat >> confdefs.h <<\EOF
21477 #define LBER_TAG_T long
21481 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21482 echo "configure:21483: checking for 8-bit clean memcmp" >&5
21483 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21484 echo $ac_n "(cached) $ac_c" 1>&6
21486 if test "$cross_compiling" = yes; then
21487 ac_cv_func_memcmp_clean=no
21489 cat > conftest.$ac_ext <<EOF
21490 #line 21491 "configure"
21491 #include "confdefs.h"
21495 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21496 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21500 if { (eval echo configure:21501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21502 ac_cv_func_memcmp_clean=yes
21504 echo "configure: failed program was:" >&5
21505 cat conftest.$ac_ext >&5
21507 ac_cv_func_memcmp_clean=no
21514 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21515 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21517 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21518 echo "configure:21519: checking for strftime" >&5
21519 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21520 echo $ac_n "(cached) $ac_c" 1>&6
21522 cat > conftest.$ac_ext <<EOF
21523 #line 21524 "configure"
21524 #include "confdefs.h"
21525 /* System header to define __stub macros and hopefully few prototypes,
21526 which can conflict with char strftime(); below. */
21527 #include <assert.h>
21528 /* Override any gcc2 internal prototype to avoid an error. */
21529 /* We use char because int might match the return type of a gcc2
21530 builtin and then its argument prototype would still apply. */
21536 /* The GNU C library defines this for functions which it implements
21537 to always fail with ENOSYS. Some functions are actually named
21538 something starting with __ and the normal name is an alias. */
21539 #if defined (__stub_strftime) || defined (__stub___strftime)
21547 if { (eval echo configure:21548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21549 eval "ac_cv_func_strftime=yes"
21551 echo "configure: failed program was:" >&5
21552 cat conftest.$ac_ext >&5
21554 eval "ac_cv_func_strftime=no"
21559 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21560 echo "$ac_t""yes" 1>&6
21561 cat >> confdefs.h <<\EOF
21562 #define HAVE_STRFTIME 1
21566 echo "$ac_t""no" 1>&6
21567 # strftime is in -lintl on SCO UNIX.
21568 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21569 echo "configure:21570: checking for strftime in -lintl" >&5
21570 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21571 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21572 echo $ac_n "(cached) $ac_c" 1>&6
21574 ac_save_LIBS="$LIBS"
21575 LIBS="-lintl $LIBS"
21576 cat > conftest.$ac_ext <<EOF
21577 #line 21578 "configure"
21578 #include "confdefs.h"
21579 /* Override any gcc2 internal prototype to avoid an error. */
21580 /* We use char because int might match the return type of a gcc2
21581 builtin and then its argument prototype would still apply. */
21588 if { (eval echo configure:21589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21590 eval "ac_cv_lib_$ac_lib_var=yes"
21592 echo "configure: failed program was:" >&5
21593 cat conftest.$ac_ext >&5
21595 eval "ac_cv_lib_$ac_lib_var=no"
21598 LIBS="$ac_save_LIBS"
21601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21602 echo "$ac_t""yes" 1>&6
21603 cat >> confdefs.h <<\EOF
21604 #define HAVE_STRFTIME 1
21607 LIBS="-lintl $LIBS"
21609 echo "$ac_t""no" 1>&6
21615 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21616 echo "configure:21617: checking for inet_aton()" >&5
21617 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21618 echo $ac_n "(cached) $ac_c" 1>&6
21620 cat > conftest.$ac_ext <<EOF
21621 #line 21622 "configure"
21622 #include "confdefs.h"
21624 #ifdef HAVE_SYS_TYPES_H
21625 # include <sys/types.h>
21627 #ifdef HAVE_SYS_SOCKET_H
21628 # include <sys/socket.h>
21629 # ifdef HAVE_SYS_SELECT_H
21630 # include <sys/select.h>
21632 # include <netinet/in.h>
21633 # ifdef HAVE_ARPA_INET_H
21634 # include <arpa/inet.h>
21640 int rc = inet_aton( "255.255.255.255", &in );
21643 if { (eval echo configure:21644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21645 ol_cv_func_inet_aton=yes
21647 echo "configure: failed program was:" >&5
21648 cat conftest.$ac_ext >&5
21650 ol_cv_func_inet_aton=no
21655 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21656 if test $ol_cv_func_inet_aton != no; then
21657 cat >> confdefs.h <<\EOF
21658 #define HAVE_INET_ATON 1
21664 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21665 echo "configure:21666: checking for _spawnlp" >&5
21666 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21667 echo $ac_n "(cached) $ac_c" 1>&6
21669 cat > conftest.$ac_ext <<EOF
21670 #line 21671 "configure"
21671 #include "confdefs.h"
21672 /* System header to define __stub macros and hopefully few prototypes,
21673 which can conflict with char _spawnlp(); below. */
21674 #include <assert.h>
21675 /* Override any gcc2 internal prototype to avoid an error. */
21676 /* We use char because int might match the return type of a gcc2
21677 builtin and then its argument prototype would still apply. */
21683 /* The GNU C library defines this for functions which it implements
21684 to always fail with ENOSYS. Some functions are actually named
21685 something starting with __ and the normal name is an alias. */
21686 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21694 if { (eval echo configure:21695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21696 eval "ac_cv_func__spawnlp=yes"
21698 echo "configure: failed program was:" >&5
21699 cat conftest.$ac_ext >&5
21701 eval "ac_cv_func__spawnlp=no"
21706 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21707 echo "$ac_t""yes" 1>&6
21708 cat >> confdefs.h <<\EOF
21709 #define HAVE_SPAWNLP 1
21713 echo "$ac_t""no" 1>&6
21717 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21718 echo "configure:21719: checking for _snprintf" >&5
21719 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21720 echo $ac_n "(cached) $ac_c" 1>&6
21722 cat > conftest.$ac_ext <<EOF
21723 #line 21724 "configure"
21724 #include "confdefs.h"
21725 /* System header to define __stub macros and hopefully few prototypes,
21726 which can conflict with char _snprintf(); below. */
21727 #include <assert.h>
21728 /* Override any gcc2 internal prototype to avoid an error. */
21729 /* We use char because int might match the return type of a gcc2
21730 builtin and then its argument prototype would still apply. */
21736 /* The GNU C library defines this for functions which it implements
21737 to always fail with ENOSYS. Some functions are actually named
21738 something starting with __ and the normal name is an alias. */
21739 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21747 if { (eval echo configure:21748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21749 eval "ac_cv_func__snprintf=yes"
21751 echo "configure: failed program was:" >&5
21752 cat conftest.$ac_ext >&5
21754 eval "ac_cv_func__snprintf=no"
21759 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21760 echo "$ac_t""yes" 1>&6
21761 ac_cv_func_snprintf=yes
21762 cat >> confdefs.h <<\EOF
21763 #define snprintf _snprintf
21768 echo "$ac_t""no" 1>&6
21772 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21773 echo "configure:21774: checking for _vsnprintf" >&5
21774 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21775 echo $ac_n "(cached) $ac_c" 1>&6
21777 cat > conftest.$ac_ext <<EOF
21778 #line 21779 "configure"
21779 #include "confdefs.h"
21780 /* System header to define __stub macros and hopefully few prototypes,
21781 which can conflict with char _vsnprintf(); below. */
21782 #include <assert.h>
21783 /* Override any gcc2 internal prototype to avoid an error. */
21784 /* We use char because int might match the return type of a gcc2
21785 builtin and then its argument prototype would still apply. */
21791 /* The GNU C library defines this for functions which it implements
21792 to always fail with ENOSYS. Some functions are actually named
21793 something starting with __ and the normal name is an alias. */
21794 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21802 if { (eval echo configure:21803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21804 eval "ac_cv_func__vsnprintf=yes"
21806 echo "configure: failed program was:" >&5
21807 cat conftest.$ac_ext >&5
21809 eval "ac_cv_func__vsnprintf=no"
21814 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21815 echo "$ac_t""yes" 1>&6
21816 ac_cv_func_vsnprintf=yes
21817 cat >> confdefs.h <<\EOF
21818 #define vsnprintf _vsnprintf
21823 echo "$ac_t""no" 1>&6
21827 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21828 echo "configure:21829: checking for vprintf" >&5
21829 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
21830 echo $ac_n "(cached) $ac_c" 1>&6
21832 cat > conftest.$ac_ext <<EOF
21833 #line 21834 "configure"
21834 #include "confdefs.h"
21835 /* System header to define __stub macros and hopefully few prototypes,
21836 which can conflict with char vprintf(); below. */
21837 #include <assert.h>
21838 /* Override any gcc2 internal prototype to avoid an error. */
21839 /* We use char because int might match the return type of a gcc2
21840 builtin and then its argument prototype would still apply. */
21846 /* The GNU C library defines this for functions which it implements
21847 to always fail with ENOSYS. Some functions are actually named
21848 something starting with __ and the normal name is an alias. */
21849 #if defined (__stub_vprintf) || defined (__stub___vprintf)
21857 if { (eval echo configure:21858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21859 eval "ac_cv_func_vprintf=yes"
21861 echo "configure: failed program was:" >&5
21862 cat conftest.$ac_ext >&5
21864 eval "ac_cv_func_vprintf=no"
21869 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
21870 echo "$ac_t""yes" 1>&6
21871 cat >> confdefs.h <<\EOF
21872 #define HAVE_VPRINTF 1
21876 echo "$ac_t""no" 1>&6
21879 if test "$ac_cv_func_vprintf" != yes; then
21880 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21881 echo "configure:21882: checking for _doprnt" >&5
21882 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
21883 echo $ac_n "(cached) $ac_c" 1>&6
21885 cat > conftest.$ac_ext <<EOF
21886 #line 21887 "configure"
21887 #include "confdefs.h"
21888 /* System header to define __stub macros and hopefully few prototypes,
21889 which can conflict with char _doprnt(); below. */
21890 #include <assert.h>
21891 /* Override any gcc2 internal prototype to avoid an error. */
21892 /* We use char because int might match the return type of a gcc2
21893 builtin and then its argument prototype would still apply. */
21899 /* The GNU C library defines this for functions which it implements
21900 to always fail with ENOSYS. Some functions are actually named
21901 something starting with __ and the normal name is an alias. */
21902 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21910 if { (eval echo configure:21911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21912 eval "ac_cv_func__doprnt=yes"
21914 echo "configure: failed program was:" >&5
21915 cat conftest.$ac_ext >&5
21917 eval "ac_cv_func__doprnt=no"
21922 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
21923 echo "$ac_t""yes" 1>&6
21924 cat >> confdefs.h <<\EOF
21925 #define HAVE_DOPRNT 1
21929 echo "$ac_t""no" 1>&6
21935 if test $ac_cv_func_vprintf = yes ; then
21936 for ac_func in snprintf vsnprintf
21938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21939 echo "configure:21940: checking for $ac_func" >&5
21940 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21941 echo $ac_n "(cached) $ac_c" 1>&6
21943 cat > conftest.$ac_ext <<EOF
21944 #line 21945 "configure"
21945 #include "confdefs.h"
21946 /* System header to define __stub macros and hopefully few prototypes,
21947 which can conflict with char $ac_func(); below. */
21948 #include <assert.h>
21949 /* Override any gcc2 internal prototype to avoid an error. */
21950 /* We use char because int might match the return type of a gcc2
21951 builtin and then its argument prototype would still apply. */
21957 /* The GNU C library defines this for functions which it implements
21958 to always fail with ENOSYS. Some functions are actually named
21959 something starting with __ and the normal name is an alias. */
21960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21968 if { (eval echo configure:21969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21970 eval "ac_cv_func_$ac_func=yes"
21972 echo "configure: failed program was:" >&5
21973 cat conftest.$ac_ext >&5
21975 eval "ac_cv_func_$ac_func=no"
21980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21981 echo "$ac_t""yes" 1>&6
21982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21983 cat >> confdefs.h <<EOF
21984 #define $ac_tr_func 1
21988 echo "$ac_t""no" 1>&6
22050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22051 echo "configure:22052: checking for $ac_func" >&5
22052 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22053 echo $ac_n "(cached) $ac_c" 1>&6
22055 cat > conftest.$ac_ext <<EOF
22056 #line 22057 "configure"
22057 #include "confdefs.h"
22058 /* System header to define __stub macros and hopefully few prototypes,
22059 which can conflict with char $ac_func(); below. */
22060 #include <assert.h>
22061 /* Override any gcc2 internal prototype to avoid an error. */
22062 /* We use char because int might match the return type of a gcc2
22063 builtin and then its argument prototype would still apply. */
22069 /* The GNU C library defines this for functions which it implements
22070 to always fail with ENOSYS. Some functions are actually named
22071 something starting with __ and the normal name is an alias. */
22072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22080 if { (eval echo configure:22081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22082 eval "ac_cv_func_$ac_func=yes"
22084 echo "configure: failed program was:" >&5
22085 cat conftest.$ac_ext >&5
22087 eval "ac_cv_func_$ac_func=no"
22092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22093 echo "$ac_t""yes" 1>&6
22094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22095 cat >> confdefs.h <<EOF
22096 #define $ac_tr_func 1
22100 echo "$ac_t""no" 1>&6
22105 for ac_func in getopt getpeereid
22107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22108 echo "configure:22109: checking for $ac_func" >&5
22109 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22110 echo $ac_n "(cached) $ac_c" 1>&6
22112 cat > conftest.$ac_ext <<EOF
22113 #line 22114 "configure"
22114 #include "confdefs.h"
22115 /* System header to define __stub macros and hopefully few prototypes,
22116 which can conflict with char $ac_func(); below. */
22117 #include <assert.h>
22118 /* Override any gcc2 internal prototype to avoid an error. */
22119 /* We use char because int might match the return type of a gcc2
22120 builtin and then its argument prototype would still apply. */
22126 /* The GNU C library defines this for functions which it implements
22127 to always fail with ENOSYS. Some functions are actually named
22128 something starting with __ and the normal name is an alias. */
22129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22137 if { (eval echo configure:22138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22139 eval "ac_cv_func_$ac_func=yes"
22141 echo "configure: failed program was:" >&5
22142 cat conftest.$ac_ext >&5
22144 eval "ac_cv_func_$ac_func=no"
22149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22150 echo "$ac_t""yes" 1>&6
22151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22152 cat >> confdefs.h <<EOF
22153 #define $ac_tr_func 1
22157 echo "$ac_t""no" 1>&6
22158 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22164 if test "$ac_cv_func_getopt" != yes; then
22165 LIBSRCS="$LIBSRCS getopt.c"
22167 if test "$ac_cv_func_getpeereid" != yes; then
22168 LIBSRCS="$LIBSRCS getpeereid.c"
22170 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22171 if test "$ac_cv_func_snprintf" != yes; then
22172 cat >> confdefs.h <<\EOF
22173 #define snprintf ber_pvt_snprintf
22177 if test "$ac_cv_func_vsnprintf" != yes; then
22178 cat >> confdefs.h <<\EOF
22179 #define vsnprintf ber_pvt_vsnprintf
22185 # Check Configuration
22186 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22187 echo "configure:22188: checking declaration of sys_errlist" >&5
22188 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22189 echo $ac_n "(cached) $ac_c" 1>&6
22192 cat > conftest.$ac_ext <<EOF
22193 #line 22194 "configure"
22194 #include "confdefs.h"
22197 #include <sys/types.h>
22200 #include <stdlib.h>
22203 char *c = (char *) *sys_errlist
22206 if { (eval echo configure:22207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22208 ol_cv_dcl_sys_errlist=yes
22209 ol_cv_have_sys_errlist=yes
22211 echo "configure: failed program was:" >&5
22212 cat conftest.$ac_ext >&5
22214 ol_cv_dcl_sys_errlist=no
22219 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22221 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22222 if test $ol_cv_dcl_sys_errlist = no ; then
22223 cat >> confdefs.h <<\EOF
22224 #define DECL_SYS_ERRLIST 1
22228 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22229 echo "configure:22230: checking existence of sys_errlist" >&5
22230 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22231 echo $ac_n "(cached) $ac_c" 1>&6
22234 cat > conftest.$ac_ext <<EOF
22235 #line 22236 "configure"
22236 #include "confdefs.h"
22239 char *c = (char *) *sys_errlist
22242 if { (eval echo configure:22243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22244 ol_cv_have_sys_errlist=yes
22246 echo "configure: failed program was:" >&5
22247 cat conftest.$ac_ext >&5
22249 ol_cv_have_sys_errlist=no
22254 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22256 if test $ol_cv_have_sys_errlist = yes ; then
22257 cat >> confdefs.h <<\EOF
22258 #define HAVE_SYS_ERRLIST 1
22265 if test "$ol_enable_slapi" != no ; then
22266 for ac_hdr in ltdl.h
22268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22270 echo "configure:22271: checking for $ac_hdr" >&5
22271 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22272 echo $ac_n "(cached) $ac_c" 1>&6
22274 cat > conftest.$ac_ext <<EOF
22275 #line 22276 "configure"
22276 #include "confdefs.h"
22279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22280 { (eval echo configure:22281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22282 if test -z "$ac_err"; then
22284 eval "ac_cv_header_$ac_safe=yes"
22287 echo "configure: failed program was:" >&5
22288 cat conftest.$ac_ext >&5
22290 eval "ac_cv_header_$ac_safe=no"
22294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22295 echo "$ac_t""yes" 1>&6
22296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22297 cat >> confdefs.h <<EOF
22298 #define $ac_tr_hdr 1
22302 echo "$ac_t""no" 1>&6
22307 if test $ac_cv_header_ltdl_h != yes ; then
22308 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
22310 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
22311 echo "configure:22312: checking for lt_dlinit in -lltdl" >&5
22312 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
22313 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22314 echo $ac_n "(cached) $ac_c" 1>&6
22316 ac_save_LIBS="$LIBS"
22317 LIBS="-lltdl $LIBS"
22318 cat > conftest.$ac_ext <<EOF
22319 #line 22320 "configure"
22320 #include "confdefs.h"
22321 /* Override any gcc2 internal prototype to avoid an error. */
22322 /* We use char because int might match the return type of a gcc2
22323 builtin and then its argument prototype would still apply. */
22330 if { (eval echo configure:22331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22332 eval "ac_cv_lib_$ac_lib_var=yes"
22334 echo "configure: failed program was:" >&5
22335 cat conftest.$ac_ext >&5
22337 eval "ac_cv_lib_$ac_lib_var=no"
22340 LIBS="$ac_save_LIBS"
22343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22344 echo "$ac_t""yes" 1>&6
22347 LIBSLAPI=./libslapi.a
22348 LIBSLAPITOOLS=../libslapi.a
22349 cat >> confdefs.h <<\EOF
22350 #define HAVE_LIBLTDL 1
22355 echo "$ac_t""no" 1>&6
22356 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
22360 cat >> confdefs.h <<\EOF
22361 #define LDAP_SLAPI 1
22366 if test "$ol_enable_debug" != no ; then
22367 cat >> confdefs.h <<\EOF
22368 #define LDAP_DEBUG 1
22372 if test "$ol_enable_syslog" = yes ; then
22373 cat >> confdefs.h <<\EOF
22374 #define LDAP_SYSLOG 1
22378 if test "$ol_enable_cache" = no ; then
22379 cat >> confdefs.h <<\EOF
22380 #define LDAP_NOCACHE 1
22384 if test "$ol_link_kbind" != no ; then
22385 cat >> confdefs.h <<\EOF
22386 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22390 if test "$ol_enable_proctitle" != no ; then
22391 cat >> confdefs.h <<\EOF
22392 #define LDAP_PROCTITLE 1
22396 if test "$ol_enable_referrals" != no ; then
22397 cat >> confdefs.h <<\EOF
22398 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22402 if test "$ol_enable_local" != no; then
22403 cat >> confdefs.h <<\EOF
22404 #define LDAP_PF_LOCAL 1
22408 if test "$ol_link_ipv6" != no; then
22409 cat >> confdefs.h <<\EOF
22410 #define LDAP_PF_INET6 1
22414 if test "$ol_enable_cleartext" != no ; then
22415 cat >> confdefs.h <<\EOF
22416 #define SLAPD_CLEARTEXT 1
22420 if test "$ol_enable_crypt" != no ; then
22421 cat >> confdefs.h <<\EOF
22422 #define SLAPD_CRYPT 1
22426 if test "$ol_link_kpasswd" != no ; then
22427 cat >> confdefs.h <<\EOF
22428 #define SLAPD_KPASSWD 1
22432 if test "$ol_link_spasswd" != no ; then
22433 cat >> confdefs.h <<\EOF
22434 #define SLAPD_SPASSWD 1
22438 if test "$ol_enable_multimaster" != no ; then
22439 cat >> confdefs.h <<\EOF
22440 #define SLAPD_MULTIMASTER 1
22444 if test "$ol_enable_phonetic" != no ; then
22445 cat >> confdefs.h <<\EOF
22446 #define SLAPD_PHONETIC 1
22450 if test "$ol_enable_rlookups" != no ; then
22451 cat >> confdefs.h <<\EOF
22452 #define SLAPD_RLOOKUPS 1
22456 if test "$ol_enable_aci" != no ; then
22457 cat >> confdefs.h <<\EOF
22458 #define SLAPD_ACI_ENABLED 1
22463 if test "$ol_link_modules" != no ; then
22464 cat >> confdefs.h <<\EOF
22465 #define SLAPD_MODULES 1
22469 SLAPD_MODULES_LDFLAGS="-dlopen self"
22472 if test "$ol_enable_bdb" != no ; then
22473 cat >> confdefs.h <<\EOF
22474 #define SLAPD_BDB 1
22479 if test "$ol_with_bdb_module" != static ; then
22480 cat >> confdefs.h <<\EOF
22481 #define SLAPD_BDB_DYNAMIC 1
22485 BUILD_BDB_DYNAMIC=shared
22486 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22488 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22492 if test "$ol_link_dnssrv" != no ; then
22493 cat >> confdefs.h <<\EOF
22494 #define SLAPD_DNSSRV 1
22499 if test "$ol_with_dnssrv_module" != static ; then
22500 cat >> confdefs.h <<\EOF
22501 #define SLAPD_DNSSRV_DYNAMIC 1
22505 BUILD_DNSSRV_DYNAMIC=shared
22506 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22508 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22512 if test "$ol_enable_ldap" != no ; then
22513 cat >> confdefs.h <<\EOF
22514 #define SLAPD_LDAP 1
22519 if test "$ol_with_ldap_module" != static ; then
22520 cat >> confdefs.h <<\EOF
22521 #define SLAPD_LDAP_DYNAMIC 1
22525 BUILD_LDAP_DYNAMIC=shared
22526 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22528 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22532 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22533 cat >> confdefs.h <<\EOF
22534 #define SLAPD_LDBM 1
22539 if test "$ol_with_ldbm_module" != static ; then
22540 cat >> confdefs.h <<\EOF
22541 #define SLAPD_LDBM_DYNAMIC 1
22545 BUILD_LDBM_DYNAMIC=shared
22546 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
22548 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
22552 if test "$ol_enable_meta" != no ; then
22553 if test "$ol_enable_ldap" = no ; then
22554 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22556 if test "$ol_enable_rewrite" = no ; then
22557 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22559 cat >> confdefs.h <<\EOF
22560 #define SLAPD_META 1
22567 if test "$ol_with_meta_module" != static ; then
22568 cat >> confdefs.h <<\EOF
22569 #define SLAPD_META_DYNAMIC 1
22573 BUILD_META_DYNAMIC=shared
22574 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22576 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22580 if test "$ol_enable_monitor" != no ; then
22581 cat >> confdefs.h <<\EOF
22582 #define SLAPD_MONITOR 1
22587 if test "$ol_with_monitor_module" != static ; then
22588 cat >> confdefs.h <<\EOF
22589 #define SLAPD_MONITOR_DYNAMIC 1
22593 BUILD_MONITOR_DYNAMIC=shared
22594 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22596 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22600 if test "$ol_enable_null" != no ; then
22601 cat >> confdefs.h <<\EOF
22602 #define SLAPD_NULL 1
22607 if test "$ol_with_null_module" != static ; then
22608 cat >> confdefs.h <<\EOF
22609 #define SLAPD_NULL_DYNAMIC 1
22613 BUILD_NULL_DYNAMIC=shared
22614 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
22616 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
22620 if test "$ol_enable_passwd" != no ; then
22621 cat >> confdefs.h <<\EOF
22622 #define SLAPD_PASSWD 1
22627 if test "$ol_with_passwd_module" != static ; then
22628 cat >> confdefs.h <<\EOF
22629 #define SLAPD_PASSWD_DYNAMIC 1
22633 BUILD_PASSWD_DYNAMIC=shared
22634 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22636 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22640 if test "$ol_link_perl" != no ; then
22641 cat >> confdefs.h <<\EOF
22642 #define SLAPD_PERL 1
22647 if test "$ol_with_perl_module" != static ; then
22648 cat >> confdefs.h <<\EOF
22649 #define SLAPD_PERL_DYNAMIC 1
22653 BUILD_PERL_DYNAMIC=shared
22654 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22656 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22660 if test "$ol_enable_shell" != no ; then
22661 if test "$ol_link_thread" != no ; then
22662 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
22664 cat >> confdefs.h <<\EOF
22665 #define SLAPD_SHELL 1
22670 if test "$ol_with_shell_module" != static ; then
22671 cat >> confdefs.h <<\EOF
22672 #define SLAPD_SHELL_DYNAMIC 1
22676 BUILD_SHELL_DYNAMIC=shared
22677 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22679 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22683 if test "$ol_enable_tcl" != no ; then
22684 cat >> confdefs.h <<\EOF
22685 #define SLAPD_TCL 1
22690 if test "$ol_with_tcl_module" != static; then
22691 cat >> confdefs.h <<\EOF
22692 #define SLAPD_TCL_DYNAMIC 1
22696 BUILD_TCL_DYNAMIC=shared
22697 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
22699 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
22703 if test "$ol_link_sql" != no ; then
22704 cat >> confdefs.h <<\EOF
22705 #define SLAPD_SQL 1
22710 if test "$ol_with_sql_module" != static; then
22711 cat >> confdefs.h <<\EOF
22712 #define SLAPD_SQL_DYNAMIC 1
22716 BUILD_SQL_DYNAMIC=shared
22717 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22719 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22723 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22724 $BUILD_SLAPD = yes ; then
22728 if test "$ol_enable_rewrite" != no ; then
22729 cat >> confdefs.h <<\EOF
22730 #define ENABLE_REWRITE 1
22736 if test "$ol_enable_slapi" != no ; then
22737 cat >> confdefs.h <<\EOF
22738 #define ENABLE_SLAPI 1
22742 SLAPD_SLAPI_DEPEND=libslapi.a
22747 if test "$ac_cv_mingw32" = yes ; then
22749 SLAPD_MODULES_LDFLAGS=
22754 if test -z "$SLAPD_STATIC_BACKENDS"; then
22755 SLAPD_NO_STATIC='#'
22832 # Check whether --with-xxinstall or --without-xxinstall was given.
22833 if test "${with_xxinstall+set}" = set; then
22834 withval="$with_xxinstall"
22842 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22844 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22845 # Let make expand exec_prefix.
22846 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22848 # Any assignment to VPATH causes Sun make to only execute
22849 # the first set of double-colon rules, so remove it if not needed.
22850 # If there is a colon in the path, we need to keep it.
22851 if test "x$srcdir" = x.; then
22852 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22855 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22857 DEFS=-DHAVE_CONFIG_H
22859 # Without the "./", some shells look in PATH for config.status.
22860 : ${CONFIG_STATUS=./config.status}
22862 echo creating $CONFIG_STATUS
22863 rm -f $CONFIG_STATUS
22864 cat > $CONFIG_STATUS <<EOF
22866 # Generated automatically by configure.
22867 # Run this file to recreate the current configuration.
22868 # This directory was configured as follows,
22869 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22871 # $0 $ac_configure_args
22873 # Compiler output produced by configure, useful for debugging
22874 # configure, is in ./config.log if it exists.
22876 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22879 case "\$ac_option" in
22880 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22881 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22882 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22883 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22884 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22886 -help | --help | --hel | --he | --h)
22887 echo "\$ac_cs_usage"; exit 0 ;;
22888 *) echo "\$ac_cs_usage"; exit 1 ;;
22892 ac_given_srcdir=$srcdir
22893 ac_given_INSTALL="$INSTALL"
22895 trap 'rm -fr `echo "\
22896 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22897 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22898 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22899 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22900 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22901 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22902 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22903 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22904 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22905 include/Makefile:build/top.mk:include/Makefile.in \
22906 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22907 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22908 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22909 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22910 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22911 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22912 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22913 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22914 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22915 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22916 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22917 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22918 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22919 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22920 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22921 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22922 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22923 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22924 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22925 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22926 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22927 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22928 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22929 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22930 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22931 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
22932 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22933 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22934 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22935 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22936 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22938 cat >> $CONFIG_STATUS <<EOF
22940 # Protect against being on the right side of a sed subst in config.status.
22941 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22942 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22946 s%@CFLAGS@%$CFLAGS%g
22947 s%@CPPFLAGS@%$CPPFLAGS%g
22948 s%@CXXFLAGS@%$CXXFLAGS%g
22949 s%@FFLAGS@%$FFLAGS%g
22951 s%@LDFLAGS@%$LDFLAGS%g
22953 s%@exec_prefix@%$exec_prefix%g
22954 s%@prefix@%$prefix%g
22955 s%@program_transform_name@%$program_transform_name%g
22956 s%@bindir@%$bindir%g
22957 s%@sbindir@%$sbindir%g
22958 s%@libexecdir@%$libexecdir%g
22959 s%@datadir@%$datadir%g
22960 s%@sysconfdir@%$sysconfdir%g
22961 s%@sharedstatedir@%$sharedstatedir%g
22962 s%@localstatedir@%$localstatedir%g
22963 s%@libdir@%$libdir%g
22964 s%@includedir@%$includedir%g
22965 s%@oldincludedir@%$oldincludedir%g
22966 s%@infodir@%$infodir%g
22967 s%@mandir@%$mandir%g
22969 s%@host_alias@%$host_alias%g
22970 s%@host_cpu@%$host_cpu%g
22971 s%@host_vendor@%$host_vendor%g
22972 s%@host_os@%$host_os%g
22973 s%@target@%$target%g
22974 s%@target_alias@%$target_alias%g
22975 s%@target_cpu@%$target_cpu%g
22976 s%@target_vendor@%$target_vendor%g
22977 s%@target_os@%$target_os%g
22979 s%@build_alias@%$build_alias%g
22980 s%@build_cpu@%$build_cpu%g
22981 s%@build_vendor@%$build_vendor%g
22982 s%@build_os@%$build_os%g
22983 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22984 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22985 s%@INSTALL_DATA@%$INSTALL_DATA%g
22986 s%@PACKAGE@%$PACKAGE%g
22987 s%@VERSION@%$VERSION%g
22988 s%@ACLOCAL@%$ACLOCAL%g
22989 s%@AUTOCONF@%$AUTOCONF%g
22990 s%@AUTOMAKE@%$AUTOMAKE%g
22991 s%@AUTOHEADER@%$AUTOHEADER%g
22992 s%@MAKEINFO@%$MAKEINFO%g
22993 s%@install_sh@%$install_sh%g
22996 s%@AMTARFLAGS@%$AMTARFLAGS%g
22997 s%@SET_MAKE@%$SET_MAKE%g
22998 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
22999 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23000 s%@top_builddir@%$top_builddir%g
23001 s%@ldap_subdir@%$ldap_subdir%g
23005 s%@OBJEXT@%$OBJEXT%g
23006 s%@EXEEXT@%$EXEEXT%g
23008 s%@RANLIB@%$RANLIB%g
23010 s%@DLLTOOL@%$DLLTOOL%g
23012 s%@OBJDUMP@%$OBJDUMP%g
23014 s%@LIBTOOL@%$LIBTOOL%g
23015 s%@LTSTATIC@%$LTSTATIC%g
23017 s%@PERLBIN@%$PERLBIN%g
23018 s%@OL_MKDEP@%$OL_MKDEP%g
23019 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23020 s%@LIBOBJS@%$LIBOBJS%g
23021 s%@LIBSRCS@%$LIBSRCS%g
23023 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23024 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23025 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
23026 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
23027 s%@BUILD_BDB@%$BUILD_BDB%g
23028 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23029 s%@BUILD_LDAP@%$BUILD_LDAP%g
23030 s%@BUILD_LDBM@%$BUILD_LDBM%g
23031 s%@BUILD_META@%$BUILD_META%g
23032 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23033 s%@BUILD_NULL@%$BUILD_NULL%g
23034 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23035 s%@BUILD_PERL@%$BUILD_PERL%g
23036 s%@BUILD_SHELL@%$BUILD_SHELL%g
23037 s%@BUILD_SQL@%$BUILD_SQL%g
23038 s%@BUILD_TCL@%$BUILD_TCL%g
23039 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
23040 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
23041 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
23042 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
23043 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
23044 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
23045 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
23046 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
23047 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
23048 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
23049 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
23050 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
23051 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23052 s%@LDAP_LIBS@%$LDAP_LIBS%g
23053 s%@LDIF_LIBS@%$LDIF_LIBS%g
23054 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23055 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23056 s%@LDBM_LIBS@%$LDBM_LIBS%g
23057 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23058 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23059 s%@WRAP_LIBS@%$WRAP_LIBS%g
23060 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
23061 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23062 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23063 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
23064 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23065 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23066 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23067 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23068 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23069 s%@KRB4_LIBS@%$KRB4_LIBS%g
23070 s%@KRB5_LIBS@%$KRB5_LIBS%g
23071 s%@READLINE_LIBS@%$READLINE_LIBS%g
23072 s%@SASL_LIBS@%$SASL_LIBS%g
23073 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
23074 s%@TLS_LIBS@%$TLS_LIBS%g
23075 s%@MODULES_LIBS@%$MODULES_LIBS%g
23076 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
23077 s%@LIBSLAPI@%$LIBSLAPI%g
23078 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
23079 s%@AUTH_LIBS@%$AUTH_LIBS%g
23080 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23081 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23082 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23083 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23088 cat >> $CONFIG_STATUS <<\EOF
23090 # Split the substitutions into bite-sized pieces for seds with
23091 # small command number limits, like on Digital OSF/1 and HP-UX.
23092 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23093 ac_file=1 # Number of current file.
23094 ac_beg=1 # First line for current file.
23095 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23098 while $ac_more_lines; do
23099 if test $ac_beg -gt 1; then
23100 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23102 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23104 if test ! -s conftest.s$ac_file; then
23105 ac_more_lines=false
23106 rm -f conftest.s$ac_file
23108 if test -z "$ac_sed_cmds"; then
23109 ac_sed_cmds="sed -f conftest.s$ac_file"
23111 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23113 ac_file=`expr $ac_file + 1`
23115 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23118 if test -z "$ac_sed_cmds"; then
23123 cat >> $CONFIG_STATUS <<EOF
23125 CONFIG_FILES=\${CONFIG_FILES-"\
23126 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23127 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23128 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23129 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23130 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23131 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23132 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23133 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23134 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23135 include/Makefile:build/top.mk:include/Makefile.in \
23136 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23137 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23138 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23139 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23140 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23141 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23142 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23143 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23144 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23145 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23146 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23147 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23148 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23149 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23150 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23151 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23152 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23153 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23154 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23155 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23156 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23157 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23158 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23159 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23160 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23161 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23162 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23163 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23164 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23165 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23168 cat >> $CONFIG_STATUS <<\EOF
23169 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23170 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23172 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23173 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23174 *) ac_file_in="${ac_file}.in" ;;
23177 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23179 # Remove last slash and all that follows it. Not all systems have dirname.
23180 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23181 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23182 # The file is in a subdirectory.
23183 test ! -d "$ac_dir" && mkdir "$ac_dir"
23184 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23185 # A "../" for each directory in $ac_dir_suffix.
23186 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23188 ac_dir_suffix= ac_dots=
23191 case "$ac_given_srcdir" in
23193 if test -z "$ac_dots"; then top_srcdir=.
23194 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23195 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23196 *) # Relative path.
23197 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23198 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23201 case "$ac_given_INSTALL" in
23202 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23203 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23206 echo creating "$ac_file"
23208 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23210 *[Mm]akefile*) ac_comsub="1i\\
23211 # $configure_input" ;;
23215 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23217 s%@configure_input@%$configure_input%g
23218 s%@srcdir@%$srcdir%g
23219 s%@top_srcdir@%$top_srcdir%g
23220 s%@INSTALL@%$INSTALL%g
23221 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23225 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23226 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23228 # ac_d sets the value in "#define NAME VALUE" lines.
23229 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23230 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23233 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23234 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23235 ac_uB='\([ ]\)%\1#\2define\3'
23238 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23239 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23240 ac_eB='$%\1#\2define\3'
23244 if test "${CONFIG_HEADERS+set}" != set; then
23246 cat >> $CONFIG_STATUS <<EOF
23247 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23249 cat >> $CONFIG_STATUS <<\EOF
23251 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23254 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23255 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23256 *) ac_file_in="${ac_file}.in" ;;
23259 echo creating $ac_file
23261 rm -f conftest.frag conftest.in conftest.out
23262 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23263 cat $ac_file_inputs > conftest.in
23267 # Transform confdefs.h into a sed script conftest.vals that substitutes
23268 # the proper values into config.h.in to produce config.h. And first:
23269 # Protect against being on the right side of a sed subst in config.status.
23270 # Protect against being in an unquoted here document in config.status.
23271 rm -f conftest.vals
23272 cat > conftest.hdr <<\EOF
23275 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23279 sed -n -f conftest.hdr confdefs.h > conftest.vals
23282 # This sed command replaces #undef with comments. This is necessary, for
23283 # example, in the case of _POSIX_SOURCE, which is predefined and required
23284 # on some systems where configure will not decide to define it.
23285 cat >> conftest.vals <<\EOF
23286 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23289 # Break up conftest.vals because some shells have a limit on
23290 # the size of here documents, and old seds have small limits too.
23292 rm -f conftest.tail
23295 ac_lines=`grep -c . conftest.vals`
23296 # grep -c gives empty output for an empty file on some AIX systems.
23297 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23298 # Write a limited-size here document to conftest.frag.
23299 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23300 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23302 sed -f conftest.frag conftest.in > conftest.out
23304 mv conftest.out conftest.in
23305 ' >> $CONFIG_STATUS
23306 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23307 rm -f conftest.vals
23308 mv conftest.tail conftest.vals
23310 rm -f conftest.vals
23312 cat >> $CONFIG_STATUS <<\EOF
23313 rm -f conftest.frag conftest.h
23314 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23315 cat conftest.in >> conftest.h
23317 if cmp -s $ac_file conftest.h 2>/dev/null; then
23318 echo "$ac_file is unchanged"
23321 # Remove last slash and all that follows it. Not all systems have dirname.
23322 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23323 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23324 # The file is in a subdirectory.
23325 test ! -d "$ac_dir" && mkdir "$ac_dir"
23328 mv conftest.h $ac_file
23333 cat >> $CONFIG_STATUS <<EOF
23336 cat >> $CONFIG_STATUS <<\EOF
23339 echo Please run \"make depend\" to build dependencies
23343 chmod +x $CONFIG_STATUS
23344 rm -fr confdefs* $ac_clean_files
23345 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1